/*
Theme Name: Q-Techo
Theme URI: https://www.q-techo.com/
Author: Q Technology Co., Ltd.
Author URI: https://www.q-techo.com/
Description: Qテクノロジー株式会社 コーポレートサイト用のカスタムテーマ。
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: q-techo
*/

/* ============================================
   DESIGN SYSTEM

   ============================================ */

:root {
  /* === Carbon Colors (Theming Tokens) === */
  --cds-blue-60: #0f62fe;
  --cds-blue-70: #0043ce;
  --cds-blue-80: #002d9c;
  --cds-blue-10: #edf5ff;
  
  --cds-gray-100: #161616;
  --cds-gray-90: #262626;
  --cds-gray-80: #393939;
  --cds-gray-70: #525252;
  --cds-gray-30: #c6c6c6;
  --cds-gray-20: #e0e0e0;
  --cds-gray-10: #f4f4f4;
  
  --cds-white: #ffffff;
  --cds-red-60: #da1e28;
  --cds-green-50: #24a148;

  /* === Q-Techo Implementation Mappings === */
  --color-primary: var(--cds-blue-60);
  --color-primary-hover: var(--cds-blue-70);
  --color-primary-active: var(--cds-blue-80);
  --color-primary-subtle: var(--cds-blue-10);

  --color-bg: var(--cds-white);
  --color-bg-secondary: var(--cds-gray-10);
  --color-bg-tertiary: var(--cds-gray-20);
  --color-bg-dark: var(--cds-gray-100);
  --color-bg-dark-secondary: var(--cds-gray-90);

  --color-text-primary: var(--cds-gray-100);
  --color-text-secondary: var(--cds-gray-70);
  --color-text-muted: var(--cds-gray-60);
  --color-text-on-dark: var(--cds-gray-10);
  --color-text-white: var(--cds-white);

  --color-border: var(--cds-gray-30);
  --color-border-subtle: var(--cds-gray-20);
  --color-border-on-dark: var(--cds-gray-80);

  /* === Typography ===
     Primary  : Zen Kaku Gothic New (本文・UI 全般・上品で読みやすい和文ゴシック)
     Display  : Noto Sans JP        (大見出し・ヒーロー用・抑揚のある現代的書体)
     Serif    : Shippori Mincho     (引用・特別な見出し用・端正な明朝)
     Brush    : Yuji Mai            (署名・手書き風)
     Mono     : IBM Plex Mono       (ラベル・コード・数字)
  */
  --font-primary: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN',
                  'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo',
                  -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'Noto Sans JP', 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN',
                  'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-serif:   'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho',
                  'YuMincho', serif;
  --font-brush:   'Yuji Mai', 'Shippori Mincho', cursive;
  --font-mono:    'IBM Plex Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* size tokens */
  --fs-display: clamp(3rem, 6vw, 3.75rem); /* 60px */
  --fs-h1: clamp(2rem, 4vw, 2.625rem); /* 42px */
  --fs-h2: 2rem; /* 32px */
  --fs-h3: 1.5rem; /* 24px */
  --fs-h4: 1.25rem; /* 20px */
  --fs-body: 1rem; /* 16px */
  --fs-small: 1.25rem; /* 20px (Enlarged for Nav) */
  --fs-micro: 0.75rem; /* 12px */

  /* spacing tokens (8px base) */
  --space-8: 0.5rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-96: 6rem;
  --space-160: 10rem;

  /* layout tokens */
  --container-max: 1200px;
  --masthead-height: 100px; /* Enlarged for prominent logo */

  /* === No Shadows (Carbon Identity) === */
  --shadow-standard: none;
  --shadow-elevated: none;
  --shadow-deep: 0 2px 6px rgba(0,0,0,0.3); /* Reserved for floating elements */

  /* === No Rounding (Carbon Identity) === */
  --radius-0: 0px;
  --radius-pill: 24px; /* Exception for tags/labels */

  /* === Transitions === */
  --transition-base: 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
}


/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1, "kern" 1;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.85;            /* 和文に最適なゆとりある行間 */
  letter-spacing: 0.02em;       /* 和文向けにわずかなトラッキング */
  color: var(--color-text-primary);
  background-color: transparent;
  overflow-x: hidden;
  font-feature-settings: "palt" 1, "kern" 1;  /* プロポーショナル字形 + カーニング */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-24);
  font-feature-settings: "palt" 1, "kern" 1;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

ul, ol { list-style: none; }

::selection {
  background: var(--color-primary);
  color: #fff;
}


/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.container--narrow {
  max-width: 760px;
}

.single-thumb {
  margin: 0 auto var(--space-48);
  max-width: 560px;
}

.single-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: var(--space-64) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg);
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: var(--space-48);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-16);
  display: block;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-24);
}

.bg-gray {
  background-color: var(--color-bg-secondary);
}


/* ============================================
   SITE HEADER (IBM Dark Masthead)
   ============================================ */

.site-header {
  background-color: transparent;
  height: var(--masthead-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

/* Keep the fixed header (and mobile drawer) below the WordPress admin bar */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-drawer { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-drawer { top: 46px; }
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.site-header.scrolled::after {
  opacity: 1;
  visibility: visible;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-24);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  height: 54px;
  width: auto;
  transition: all var(--transition-base);
}

.site-header.scrolled .nav-logo img {
  height: 46px; /* Slightly shrink on scroll for better visibility */
}

/* Company wordmark next to the logo mark */
.nav-logo__name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
  white-space: nowrap;
  transition: font-size var(--transition-base);
}

.nav-logo__name-suffix {
  font-weight: 500;
  font-size: 0.6em;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin-left: 0.15em;
}

.site-header.scrolled .nav-logo__name {
  font-size: 1.2rem;
}

/* Footer logo lockup (mark rendered white on the dark footer) */
.footer-logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo__name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.footer-logo__name-suffix {
  font-weight: 500;
  font-size: 0.6em;
  letter-spacing: 0.04em;
  color: var(--cds-gray-30);
  margin-left: 0.15em;
}

/* Mobile drawer logo lockup */
.mobile-drawer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mobile-drawer__name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.mobile-drawer__name-suffix {
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin-left: 0.12em;
}

.nav-menu {
  display: flex;
  gap: var(--space-48);
  height: 100%;
  align-items: center;
}

.nav-menu a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-width: 100px;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  text-align: center;
}

.nav-label-en {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.nav-label-jp {
  font-family: var(--font-primary);
  font-size: 11px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.nav-menu a:hover {
  background-color: var(--cds-gray-10);
}

.nav-menu a.current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-40);
  right: var(--space-40);
  height: 2px;
  background-color: var(--color-primary);
}

/* Background Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-color: var(--color-bg);
}

/* Contact Page Button Fix */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border: none;
  padding: var(--space-16) var(--space-32);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

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

/* .nav-toggle Removed */


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding-top: calc(var(--masthead-height) + var(--space-96));
  padding-bottom: var(--space-96);
  background-color: transparent;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Vignette gradient on top of canvas in hero only */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(15, 98, 254, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(83, 58, 253, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

.page-hero {
  padding-top: calc(var(--masthead-height) + var(--space-64));
  padding-bottom: var(--space-64);
  background-color: var(--cds-gray-10);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin: 0;
}

.page-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: var(--space-16);
  letter-spacing: 0.08em;
}

.hero-content {
  max-width: 800px;
}

/* Break Japanese text at natural phrase boundaries instead of mid-word
   (e.g. keep 「実装により、」together rather than splitting after 「よ」).
   auto-phrase: Chrome/Safari; line-break:strict is the broader fallback. */
.hero-title,
.hero-subtitle,
.section-title,
.section-header p,
.page-title,
.page-desc,
.cta-subtitle,
.ceo-message,
.ceo-title-text,
.service-desc {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-32);
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-48);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 1px; /* Carbon-style butting buttons */
}


/* ============================================
   BUTTONS (0px radius)
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 63px 14px 15px; /* Carbon standard */
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-0);
  transition: all var(--transition-base);
  min-width: 200px;
  position: relative;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  text-decoration: none;
}

.btn--secondary {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.btn--secondary:hover {
  background-color: var(--cds-gray-90);
  text-decoration: none;
}

.btn--outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn--outline:hover {
  background-color: var(--color-primary-subtle);
  text-decoration: none;
}

.btn-arrow {
  position: absolute;
  right: 15px;
  font-size: 1.2rem;
}


/* ============================================
   HERO BUTTONS — refined hover interaction
   ============================================ */

.hero-actions .btn {
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  /* arrow flows right after the label with a gap (no absolute overlap) */
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 28px;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease,
    border-color 0.3s ease;
}

/* keep label + arrow above the sliding fill */
.hero-actions .btn > * {
  position: relative;
  z-index: 2;
}

/* arrow sits inline after the label (cancel the global absolute right-pin,
   but stay positioned so it renders above the sliding fill) */
.hero-actions .btn-arrow {
  position: relative;
  right: auto;
}

/* the fill that wipes in from the left on hover */
.hero-actions .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn:hover::before,
.hero-actions .btn:focus-visible::before {
  transform: translateX(0);
}

.hero-actions .btn:hover,
.hero-actions .btn:focus-visible {
  transform: translateY(-3px);
}

.hero-actions .btn:active {
  transform: translateY(-1px);
  transition-duration: 0.12s;
}

/* arrow glides right */
.hero-actions .btn-arrow {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn:hover .btn-arrow,
.hero-actions .btn:focus-visible .btn-arrow {
  transform: translateX(7px);
}

/* Primary: solid blue → white fill, text flips to blue */
.hero-actions .btn--primary {
  border: 1px solid var(--color-primary);
}
.hero-actions .btn--primary::before {
  background: var(--color-text-white);
}
.hero-actions .btn--primary:hover,
.hero-actions .btn--primary:focus-visible {
  color: var(--color-primary);
  box-shadow: 0 16px 32px -12px rgba(15, 98, 254, 0.6);
}

/* Secondary: charcoal → white fill, text flips to charcoal
   (white/dark keeps it clearly distinct from the blue primary on hover) */
.hero-actions .btn--secondary {
  border: 1px solid var(--color-bg-dark);
}
.hero-actions .btn--secondary::before {
  background: var(--color-text-white);
}
.hero-actions .btn--secondary:hover,
.hero-actions .btn--secondary:focus-visible {
  color: var(--color-text-primary);
  border-color: var(--color-bg-dark);
  box-shadow: 0 16px 32px -12px rgba(22, 22, 22, 0.4);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn,
  .hero-actions .btn::before,
  .hero-actions .btn-arrow {
    transition-duration: 0.01ms;
  }
  .hero-actions .btn:hover,
  .hero-actions .btn:focus-visible {
    transform: none;
  }
}


/* ============================================
   CARDS & TILES (Flat layer style)
   ============================================ */

.glass-card { /* Class name kept for compatibility, style updated */
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-0);
  padding: var(--space-32);
  transition: background-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  box-shadow: none;
  position: relative;
}

.glass-card:hover {
  background-color: var(--cds-gray-20);
  transform: none;
}

/* Linked variant — clickable card */
a.glass-card,
.glass-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.glass-card:hover,
.glass-card--link:hover {
  background-color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(15, 98, 254, 0.28);
  text-decoration: none;
  color: inherit;
}

a.glass-card:hover .card-arrow,
.glass-card--link:hover .card-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

.card-arrow {
  position: absolute;
  right: var(--space-32);
  bottom: var(--space-24);
  font-size: 1.4rem;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base), color var(--transition-base);
  line-height: 1;
}

.card-number {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.card-icon {
  margin-bottom: var(--space-24);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: var(--space-16);
}

.card-desc {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
}

.card-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-top: auto;
  align-self: flex-start;
}


/* ============================================
   STATS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.stat-item {
  padding: var(--space-32);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-micro);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}


/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; /* Line grid */
  background-color: var(--color-border); /* Lines through background */
}

.services-grid > * {
  background-color: var(--color-bg);
}


/* ============================================
   CEO MESSAGE (Corporate Tech)
   ============================================ */

.ceo-section {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

.ceo-grid {
  display: block;
  max-width: 820px;
  margin: 0 auto;
}

.ceo-text {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-24);
  color: var(--color-text-primary);
  text-align: justify;
  font-feature-settings: "palt" 1, "kern" 1;
}

.ceo-name {
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  color: var(--color-text-primary);
}

.ceo-title-text {
  font-family: var(--font-brush);
  color: var(--color-text-secondary);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.ceo-visual-frame {
  background-color: var(--color-bg-secondary);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ceo-visual-inner {
  font-size: 8rem;
  color: var(--cds-gray-30);
  font-weight: 300;
}


/* ============================================
   TABLES & FORMS (Carbon style)
   ============================================ */

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border-subtle);
}

.info-table th {
  padding: var(--space-16);
  background-color: var(--color-bg-secondary);
  text-align: left;
  width: 200px;
  font-size: var(--fs-small);
  font-weight: 600;
}

.info-table td {
  padding: var(--space-16);
  font-size: var(--fs-small);
}

/* Form wrapper card */
.contact-form-wrap {
  background-color: #ffffff;
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-48);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(15, 98, 254, 0.12);
}

@media (max-width: 768px) {
  .contact-form-wrap { padding: var(--space-24); }
}

/* Forms */
.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-0);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text-primary);
  transition: border-color 200ms ease,
              box-shadow 200ms ease,
              background-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0b6c0;
  font-weight: 400;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #8a93a4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cds-blue-60);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.18);
  background-color: #ffffff;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%230f62fe' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}

/* Required asterisk in labels */
.form-group label .req,
.form-group label::after {
  color: #c0392b;
}

/* ── Contact Form 7 support (when plugin installed) ── */
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  border-radius: 0;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none;
  border-color: var(--cds-blue-60);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.18);
}
.wpcf7 label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 .wpcf7-submit {
  background-color: var(--cds-blue-60);
  color: #fff;
  border: 0;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  width: 100%;
  font-family: var(--font-primary);
  transition: background-color 200ms ease;
}
.wpcf7 .wpcf7-submit:hover { background-color: var(--cds-blue-70); }
.wpcf7-not-valid-tip { color: #c0392b; font-size: 12px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  margin: var(--space-16) 0 0;
  font-size: 13px;
}


/* ============================================
   NEWS
   ============================================ */

.news-item {
  display: grid;
  grid-template-columns: 200px 130px 1fr;
  gap: var(--space-32);
  align-items: center;
  padding: var(--space-24);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color var(--transition-base), transform var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.news-item:hover {
  background-color: var(--color-bg-secondary);
  text-decoration: none;
  color: inherit;
}

.news-thumb {
  display: block;
  width: 200px;
  height: 130px;
  overflow: hidden;
  background-color: var(--cds-gray-10);
  position: relative;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}

.news-item:hover .news-thumb img {
  transform: scale(1.06);
}

/* Placeholder when no featured image */
.news-thumb--placeholder {
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.10) 0%, rgba(83, 58, 253, 0.12) 100%),
    var(--cds-gray-10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumb--placeholder::after {
  content: 'Q';
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(15, 98, 254, 0.35);
  letter-spacing: -0.04em;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  align-self: start;
  padding-top: 4px;
}

.news-content {
  min-width: 0;
}

.news-title-text {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
  margin-bottom: var(--space-12);
  color: var(--color-text-primary);
  transition: color var(--transition-base);
}

.news-item:hover .news-title-text {
  color: var(--color-primary);
}

.news-excerpt {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  .news-thumb {
    width: 100%;
    height: 200px;
  }
}


/* ============================================
   FOOTER (Solid Enterprise)
   ============================================ */

.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-80) 0 var(--space-32);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-24);
  color: var(--color-text-white);
}

.footer-links a {
  font-family: var(--font-primary);
  color: var(--cds-gray-30);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-8);
  display: block;
}

.footer-links a:hover {
  color: var(--color-text-white);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: var(--space-64);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border-on-dark);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-micro);
  color: var(--cds-gray-30);
}


/* ============================================
   SINGLE ARTICLE (Magazine layout)
   ============================================ */

.article-hero {
  padding-top: calc(var(--masthead-height) + var(--space-80));
  padding-bottom: var(--space-48);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--cds-gray-10) 100%);
  position: relative;
  z-index: 1;
}

.article-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.article-hero__cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cds-blue-60);
  padding: 6px 14px;
  border: 1px solid var(--cds-blue-60);
  text-decoration: none;
  transition: all var(--transition-base);
  margin-bottom: var(--space-24);
}
.article-hero__cat:hover {
  background-color: var(--cds-blue-60);
  color: #fff;
  text-decoration: none;
}

.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-32);
  font-feature-settings: "palt" 1, "kern" 1;
}

.article-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
.article-meta__sep {
  opacity: 0.5;
}

/* Cover image */
.article-cover {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-32);
}
.article-cover .container {
  max-width: 980px;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

.article-section {
  padding-top: var(--space-32);
}

/* ────────── Prose / article body ────────── */
.article-body {
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  font-feature-settings: "palt" 1, "kern" 1;
}

.article-body > * + * {
  margin-top: var(--space-24);
}

/* Headings */
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
}

.article-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.5;
  margin-top: var(--space-64);
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-16);
  position: relative;
  border-bottom: 1px solid var(--color-border-subtle);
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--cds-blue-60) 0%, #4733ff 100%);
}

.article-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.55;
  margin-top: var(--space-48);
  margin-bottom: var(--space-16);
  padding-left: var(--space-16);
  border-left: 4px solid var(--cds-blue-60);
}

.article-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
  margin-top: var(--space-32);
  margin-bottom: var(--space-12);
  color: var(--cds-blue-70);
}
.article-body h4::before {
  content: '#';
  color: var(--cds-blue-60);
  font-family: var(--font-mono);
  margin-right: 8px;
  opacity: 0.6;
}

.article-body h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: var(--space-24);
}

/* Paragraphs */
.article-body p {
  margin: 0 0 var(--space-24);
  text-align: justify;
}

.article-body strong,
.article-body b {
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(15, 98, 254, 0.18) 65%);
  padding: 0 2px;
}
.article-body em,
.article-body i {
  font-style: italic;
  color: var(--cds-blue-70);
}

/* Links */
.article-body a {
  color: var(--cds-blue-60);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 98, 254, 0.4);
  transition: border-color var(--transition-base), color var(--transition-base);
}
.article-body a:hover {
  border-bottom-color: var(--cds-blue-60);
  color: var(--cds-blue-70);
  text-decoration: none;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: var(--space-24) 0;
  padding-left: var(--space-32);
}
.article-body ul li,
.article-body ol li {
  margin-bottom: 12px;
  line-height: 1.85;
  position: relative;
}
.article-body ul li {
  list-style: none;
  padding-left: 4px;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0.85em;
  width: 8px;
  height: 8px;
  background-color: var(--cds-blue-60);
  border-radius: 50%;
  transform: translateY(-50%);
}
.article-body ol {
  counter-reset: ol-counter;
  list-style: none;
  padding-left: var(--space-32);
}
.article-body ol > li {
  counter-increment: ol-counter;
}
.article-body ol > li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: -36px;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cds-blue-60);
  line-height: 1.85;
}
.article-body li > ul,
.article-body li > ol {
  margin: 8px 0 8px;
}

/* Blockquote */
.article-body blockquote {
  margin: var(--space-32) 0;
  padding: var(--space-24) var(--space-32);
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.04) 0%, rgba(83, 58, 253, 0.06) 100%);
  border-left: 4px solid var(--cds-blue-60);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: normal;
  line-height: 1.9;
  color: var(--color-text-primary);
  position: relative;
}
.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(15, 98, 254, 0.18);
  font-weight: 700;
}
.article-body blockquote p { margin-bottom: 12px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-style: normal;
  color: var(--color-text-secondary);
}
.article-body blockquote cite::before { content: '— '; }

/* Pull quote (Gutenberg) */
.article-body .wp-block-pullquote {
  margin: var(--space-48) 0;
  padding: var(--space-48) var(--space-24);
  border-top: 2px solid var(--cds-blue-60);
  border-bottom: 2px solid var(--cds-blue-60);
  text-align: center;
  background: transparent;
}
.article-body .wp-block-pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin: 0;
}

/* Code */
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--cds-gray-10);
  color: var(--cds-blue-70);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--color-border-subtle);
}
.article-body pre {
  background-color: var(--cds-gray-100);
  color: #f4f4f4;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  padding: var(--space-24) var(--space-32);
  margin: var(--space-32) 0;
  overflow-x: auto;
  border-left: 4px solid var(--cds-blue-60);
  position: relative;
}
.article-body pre::before {
  content: 'CODE';
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}
.article-body pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Keyboard */
.article-body kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background-color: #fff;
  border: 1px solid var(--cds-gray-30);
  border-bottom-width: 2px;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--cds-gray-100);
}

/* HR */
.article-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cds-gray-30) 50%, transparent 100%);
  margin: var(--space-64) 0;
}

/* Images / figures */
.article-body figure,
.article-body .wp-block-image {
  margin: var(--space-32) 0;
}
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
}
.article-body figcaption,
.article-body .wp-block-image figcaption {
  font-size: 13px;
  font-family: var(--font-primary);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-32) 0;
  font-size: 14px;
}
.article-body th,
.article-body td {
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}
.article-body thead th {
  background-color: var(--cds-blue-60);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.article-body tbody tr:nth-child(even) {
  background-color: var(--cds-gray-10);
}

/* Embed responsive */
.article-body iframe {
  max-width: 100%;
  display: block;
  margin: var(--space-32) 0;
}
.article-body .wp-block-embed {
  margin: var(--space-32) 0;
}

/* ────────── Tags ────────── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-48) 0 var(--space-32);
}
.article-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cds-blue-70);
  background-color: rgba(15, 98, 254, 0.06);
  padding: 6px 12px;
  text-decoration: none;
  border: 1px solid rgba(15, 98, 254, 0.18);
  transition: all var(--transition-base);
}
.article-tag:hover {
  background-color: var(--cds-blue-60);
  color: #fff;
  text-decoration: none;
  border-color: var(--cds-blue-60);
}

/* ────────── Share ────────── */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-48) 0;
  padding: var(--space-24) 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}
.article-share__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--color-text-secondary);
  margin-right: 8px;
}
.article-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}
.article-share__btn:hover {
  background-color: var(--cds-blue-60);
  border-color: var(--cds-blue-60);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ────────── Author card ────────── */
.article-author {
  display: flex;
  gap: var(--space-24);
  align-items: flex-start;
  padding: var(--space-32);
  background-color: var(--cds-gray-10);
  margin: var(--space-48) 0;
  border-left: 4px solid var(--cds-blue-60);
}
.article-author__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
}
.article-author__body {
  flex: 1;
  min-width: 0;
}
.article-author__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.article-author__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.article-author__bio {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ────────── Prev / Next ────────── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin: var(--space-48) 0;
}
.article-nav__item {
  display: block;
  padding: var(--space-24);
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  background-color: #ffffff;
}
.article-nav__item:hover {
  border-color: var(--cds-blue-60);
  text-decoration: none;
  color: var(--cds-blue-70);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(15, 98, 254, 0.3);
}
.article-nav__item--next { text-align: right; }
.article-nav__dir {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cds-blue-60);
  margin-bottom: 8px;
}
.article-nav__title {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-back {
  text-align: center;
  margin: var(--space-32) 0 var(--space-16);
}
.article-back .btn {
  min-width: 240px;
  justify-content: center;
}

@media (max-width: 768px) {
  .article-hero {
    padding-top: calc(var(--masthead-height) + var(--space-48));
    padding-bottom: var(--space-32);
  }
  .article-hero__title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .article-body { font-size: 16px; line-height: 1.95; }
  .article-body h2 { font-size: 1.3rem; margin-top: var(--space-48); }
  .article-body h3 { font-size: 1.1rem; }
  .article-body blockquote { padding: var(--space-16); font-size: 1rem; }
  .article-body pre { padding: var(--space-16); font-size: 12px; }
  .article-body ul, .article-body ol { padding-left: var(--space-24); }
  .article-body ol > li::before { left: -28px; font-size: 11px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-author { flex-direction: column; align-items: center; text-align: center; padding: var(--space-24); }
  .article-author { border-left: 0; border-top: 4px solid var(--cds-blue-60); }
}


/* ============================================
   PRODUCT / SERVICE PAGES (editor-driven)
   ============================================ */

.product-content {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  font-feature-settings: "palt" 1, "kern" 1;
}

/* Headings */
.product-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin: var(--space-64) 0 var(--space-24);
  padding-bottom: var(--space-16);
  border-bottom: 2px solid var(--cds-blue-60);
  position: relative;
}
.product-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background-color: #4733ff;
}
.product-content > h2:first-child { margin-top: 0; }

.product-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--cds-blue-70);
  margin: var(--space-48) 0 var(--space-16);
  padding-left: 14px;
  border-left: 4px solid var(--cds-blue-60);
}

.product-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: var(--space-32) 0 var(--space-16);
  color: var(--color-text-primary);
}

/* Paragraphs */
.product-content p {
  margin-bottom: var(--space-16);
}

.product-content strong {
  color: #c0392b;
  font-weight: 600;
}

/* Lists */
.product-content ul,
.product-content ol {
  margin: var(--space-16) 0 var(--space-24);
  padding-left: var(--space-24);
}
.product-content ul li,
.product-content ol li {
  margin-bottom: 8px;
  list-style: disc inside;
}
.product-content ol li { list-style: decimal inside; }

/* Tables */
.product-content table,
.product-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-24) 0;
  font-size: 14px;
}
.product-content th,
.product-content td {
  border: 1px solid var(--cds-gray-30);
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}
.product-content thead th {
  background-color: var(--cds-blue-60);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.product-content tbody th {
  background-color: var(--cds-gray-10);
  font-weight: 600;
  width: 30%;
}

/* ── Pricing comparison table (styled to match the reference design) ── */
.product-content .qt-price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  border: 2px solid #1f3864;
  margin: var(--space-24) 0;
}
.product-content .qt-price-table th,
.product-content .qt-price-table td {
  border: 1px solid #b9c0cc;
  padding: 9px 6px;
  text-align: center;
  vertical-align: middle;
  color: #1a2440;
  line-height: 1.45;
  word-break: break-word;
}
.product-content .qt-price-table thead th {
  background: #1f3864;
  color: #ffffff;
  font-weight: 700;
  border-color: #48587a;
}
.product-content .qt-price-table .corner {
  background: #ffffff;
  border-color: #b9c0cc;
}
.product-content .qt-price-table .rl,
.product-content .qt-price-table .rl2 {
  background: #ffffff;
  color: #1a2440;
  font-weight: 600;
  text-align: left;
  width: auto;
}
.product-content .qt-price-table .grp {
  background: #ffffff;
  font-weight: 700;
  text-align: center;
  width: auto;
}
.product-content .qt-price-table .g { background: #c6e0b4; }  /* included */
.product-content .qt-price-table .y { background: #fff2cc; }  /* customer-handled */
.product-content .qt-price-table .w { background: #ffffff; }  /* not included */
.product-content .qt-price-table .b { background: #bdd7ee; font-weight: 700; }
.product-content .qt-price-table .price-label {
  background: #bdd7ee;
  font-weight: 700;
}
.qt-price-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .product-content .qt-price-table { min-width: 560px; font-size: 12px; }
}

/* Images */
.product-content img,
.product-content .wp-block-image img {
  max-width: 100%;
  height: auto;
}
.product-content figure {
  margin: var(--space-32) 0;
  text-align: center;
}
.product-content figure img,
.product-content .wp-block-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-0);
}
.product-content figcaption {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 8px;
}

/* Image placeholders inside HTML blocks */
.product-content .img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  background:
    repeating-linear-gradient(45deg, var(--cds-gray-10) 0 12px, #fff 12px 24px);
  border: 2px dashed var(--cds-gray-30);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cds-gray-70);
  text-align: center;
  margin: var(--space-24) 0;
  padding: var(--space-16);
}

/* Highlight callout box */
.product-content .callout {
  background-color: #f0f4ff;
  border-left: 4px solid var(--cds-blue-60);
  padding: var(--space-24);
  margin: var(--space-32) 0;
  font-size: 14px;
  line-height: 1.85;
}
.product-content .callout--phone {
  border: 1px solid #cfd9ff;
  border-left: 1px solid #cfd9ff;
  text-align: center;
  max-width: 520px;
  margin: var(--space-48) auto;
}
.product-content .callout--phone .phone-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: block;
  margin: 6px 0;
  color: var(--cds-gray-100);
}
.product-content .callout--phone .phone-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* CTA button */
.product-content .product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 14px 32px;
  background-color: #0b2545;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 24px;
  text-decoration: none;
  transition: background-color var(--transition-base), transform var(--transition-base);
}
.product-content .product-btn:hover {
  background-color: var(--cds-blue-60);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.product-content .btn-center {
  text-align: center;
  margin: var(--space-32) 0;
}

/* Highlight pricing tables */
.product-content table.pricing th {
  background-color: var(--cds-gray-10);
  color: var(--color-text-primary);
  text-align: center;
  width: 35%;
}
.product-content table.pricing td {
  font-weight: 600;
}
.product-content .promo {
  display: block;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .product-content table { font-size: 13px; }
  .product-content th, .product-content td { padding: 8px 10px; }
  .product-content tbody th { width: auto; }
}





/* ============================================
   ARTICLES (Owned Media)
   ============================================ */

.articles-hero {
  padding: calc(var(--masthead-height) + var(--space-80)) 0 var(--space-64);
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.06) 0%, rgba(83, 58, 253, 0.08) 100%),
    var(--cds-gray-10);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  z-index: 1;
}

.articles-hero-title {
  font-size: var(--fs-display);
  font-weight: 200;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-16);
  font-family: var(--font-primary);
}

.articles-hero-desc {
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* Featured (hero) article */
.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1),
              box-shadow 300ms ease;
}

.featured-article:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(15, 98, 254, 0.25);
}

.featured-article__media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background-color: var(--cds-gray-10);
}

.featured-article__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0, 0.2, 1);
}

.featured-article:hover .featured-article__media img {
  transform: scale(1.05);
}

.featured-article__placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.18) 0%, rgba(83, 58, 253, 0.22) 100%),
    radial-gradient(circle at 70% 30%, rgba(0, 200, 220, 0.15) 0%, transparent 60%),
    var(--cds-gray-10);
}

.featured-article__placeholder::after {
  content: 'Q';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.04em;
}

.featured-article__body {
  padding: var(--space-48);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article__badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--cds-blue-60), #4733ff);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
  align-self: flex-start;
}

.featured-article__title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  margin: var(--space-16) 0;
  color: var(--color-text-primary);
}

.featured-article__excerpt {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
}

.featured-article__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-16);
}

.featured-article__cta {
  color: var(--color-primary);
  font-weight: 600;
}

/* Article card grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
  margin-top: var(--space-32);
}

.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0, 0.2, 1),
              box-shadow 280ms ease,
              border-color 280ms ease;
}

.article-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 18px 36px -20px rgba(15, 98, 254, 0.25);
}

.article-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--cds-gray-10);
}

.article-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0, 0.2, 1);
}

.article-card:hover .article-card__media img {
  transform: scale(1.07);
}

.article-card__placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.12) 0%, rgba(83, 58, 253, 0.16) 100%),
    var(--cds-gray-10);
}

.article-card__placeholder::after {
  content: 'Q';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 200;
  color: rgba(15, 98, 254, 0.4);
}

.article-card__body {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-cat {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 3px 8px;
  border: 1px solid var(--color-primary);
  margin-bottom: var(--space-16);
}

.article-card__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text-primary);
  margin-bottom: var(--space-16);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 200ms ease;
}

.article-card:hover .article-card__title {
  color: var(--color-primary);
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-16);
}

/* Pagination */
.articles-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-64);
  flex-wrap: wrap;
}

.articles-pagination a,
.articles-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  transition: all var(--transition-base);
}

.articles-pagination a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.articles-pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article__media { min-height: 280px; }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .featured-article__body { padding: var(--space-32); }
  .articles-hero-title { font-size: var(--fs-h1); }
}


/* ============================================
   PAGE LOADER (Quantum boot sequence)
   ============================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center,
              #ffffff 0%,
              #f4f7ff 50%,
              #e8efff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.loader-content {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s ease;
}

/* On dismiss, the whole mark eases out with a gentle zoom */
.page-loader.loaded .loader-content {
  transform: scale(1.12);
  opacity: 0;
}

.loader-content img {
  position: relative;
  z-index: 5;
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(15, 98, 254, 0.22));
  animation:
    loaderLogoIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both,
    loaderBreathe 2.8s ease-in-out 0.7s infinite;
}

/* ── Concentric rotating arcs (echo the logo's colored rings) ── */
.loader-arc {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 3px solid transparent;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.loader-arc--outer {
  width: 190px;
  height: 190px;
  border-top-color: #0f62fe;
  border-right-color: #0f62fe;
  animation: loaderArcSpin 2.4s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}

.loader-arc--mid {
  width: 150px;
  height: 150px;
  border-bottom-color: #f7941e;
  opacity: 0.95;
  animation: loaderArcSpin 1.8s linear infinite reverse;
}

.loader-arc--inner {
  width: 112px;
  height: 112px;
  border-top-color: #23b0e8;
  border-left-color: #23b0e8;
  animation: loaderArcSpin 1.4s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}

/* Soft breathing glow behind the logo */
.loader-content::before {
  content: '';
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(15, 98, 254, 0.16) 0%,
              rgba(15, 98, 254, 0) 70%);
  animation: loaderGlow 2.8s ease-in-out infinite;
}

@keyframes loaderArcSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes loaderLogoIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes loaderBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

@keyframes loaderGlow {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .loader-arc { animation-duration: 0.001ms; }
  .loader-content img { animation: loaderLogoIn 0.4s ease both; }
  .loader-content::before { animation: none; }
}


/* ============================================
   CONTACT BUTTON (Nav) — refined with icon
   ============================================ */

.btn--contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(135deg,
              var(--cds-blue-60) 0%,
              #4733ff 100%);
  border: 1px solid transparent;
  border-radius: var(--radius-0);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.2, 0, 0.2, 1),
              box-shadow 220ms ease,
              background 220ms ease;
  box-shadow: 0 6px 18px -8px rgba(15, 98, 254, 0.55);
}

.btn--contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              transparent 0%,
              rgba(255, 255, 255, 0.35) 50%,
              transparent 100%);
  transform: translateX(-120%);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(15, 98, 254, 0.65);
  background: linear-gradient(135deg, #1a6dff 0%, #5642ff 100%);
  text-decoration: none;
  color: #fff;
}

.btn--contact:hover::before {
  transform: translateX(120%);
}

.btn--contact:active {
  transform: translateY(0);
}

.btn--contact .btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.btn--contact .btn-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--contact .btn-text {
  position: relative;
  z-index: 1;
}

/* Subtle ambient pulse on the icon */
.btn--contact .btn-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  animation: contactIconPulse 2.8s ease-in-out infinite;
  z-index: -1;
}

@keyframes contactIconPulse {
  0%, 100% { opacity: 0;    transform: scale(0.6); }
  50%      { opacity: 0.45; transform: scale(1); }
}


/* ============================================
   UTILITIES
   ============================================ */

.reveal { /* Simple reveals without over-the-top effects */
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s ease-out;
}

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

.accent-text {
  color: var(--color-primary);
  font-weight: 400;
}


/* ============================================
   HAMBURGER & MOBILE DRAWER
   ============================================ */

.nav-toggle {
  display: none; /* hidden on desktop, shown on mobile via media query */
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--cds-gray-100);
  border-radius: 1px;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms ease,
              top 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 8px; }
.nav-toggle__bars span:nth-child(3) { top: 16px; }

.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Drawer container */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 360ms;
}
.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 320ms ease;
}
.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background-color: #ffffff;
  box-shadow: -24px 0 60px -20px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) var(--space-24);
  border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-drawer__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.mobile-drawer__close {
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cds-gray-100);
  border-radius: 50%;
  transition: background-color var(--transition-base);
}
.mobile-drawer__close:hover {
  background-color: var(--cds-gray-10);
}

.mobile-drawer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-16) 0;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24);
  text-decoration: none;
  color: var(--cds-gray-100);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.2, 0, 0.2, 1),
              background-color var(--transition-base);
  transition-delay: calc(60ms * var(--i, 0));
}
.mobile-drawer.is-open .mobile-drawer__link {
  opacity: 1;
  transform: translateX(0);
}
.mobile-drawer__link:hover,
.mobile-drawer__link:focus {
  background-color: var(--cds-gray-10);
  text-decoration: none;
  color: var(--cds-blue-60);
}
.mobile-drawer__link.is-current {
  border-left: 3px solid var(--cds-blue-60);
  padding-left: calc(var(--space-24) - 3px);
  background-color: rgba(15, 98, 254, 0.04);
  color: var(--cds-blue-60);
}

.mobile-drawer__en {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: block;
  flex: 1;
}
.mobile-drawer__jp {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  display: block;
  margin-top: 4px;
}
.mobile-drawer__link > div,
.mobile-drawer__link {
  flex-wrap: wrap;
}
/* Stack en + jp vertically inside link */
.mobile-drawer__link > .mobile-drawer__en,
.mobile-drawer__link > .mobile-drawer__jp {
  flex: 0 0 100%;
}
.mobile-drawer__link > .mobile-drawer__jp {
  margin-top: -2px;
}
.mobile-drawer__arrow {
  position: absolute;
  right: var(--space-24);
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base), color var(--transition-base);
}
.mobile-drawer__link:hover .mobile-drawer__arrow {
  transform: translateY(-50%) translateX(4px);
  color: var(--cds-blue-60);
}

.mobile-drawer__cta {
  padding: var(--space-24);
  border-top: 1px solid var(--color-border-subtle);
}
.mobile-drawer__cta .btn--contact {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
}

.mobile-drawer__footer {
  padding: var(--space-16) var(--space-24);
  text-align: center;
  font-size: 11px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-subtle);
}

/* Lock body scroll when open */
body.drawer-open {
  overflow: hidden;
}


/* ============================================
   RESPONSIVE
   Breakpoints:
     1024px  desktop → tablet
      768px  tablet  → mobile (large)
      480px  mobile (small)
   ============================================ */

/* ─── Tablet (≤1024px) ───────────────────────── */
@media (max-width: 1024px) {

  :root {
    --masthead-height: 84px;
  }

  .container {
    padding: 0 var(--space-16);
  }

  .section {
    padding: var(--space-48) 0;
  }

  /* Grids — 3 items look balanced in 3 columns (avoids an empty 2+1 cell) */
  .services-grid,
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero text sizing */
  .hero {
    min-height: 70vh;
    padding-top: calc(var(--masthead-height) + var(--space-64));
    padding-bottom: var(--space-64);
  }

  /* Footer 3-col → 2-col */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-32) !important;
  }
  .footer-brand { grid-column: 1 / -1; }

  /* Contact page two columns */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-48) !important;
  }

  /* Nav menu items spacing */
  .nav-menu { gap: var(--space-16); }
  .nav-menu a { min-width: 78px; }
  .nav-label-en { font-size: 13px; }
  .nav-label-jp { font-size: 9px; }
}


/* ─── Tablet nav: switch to the hamburger before the desktop nav gets cramped ─── */
@media (max-width: 960px) {
  .nav-menu,
  .nav-actions { display: none !important; }
  .nav-toggle { display: inline-flex; }
}
.btn--contact .btn-text { white-space: nowrap; }


/* ─── Mobile (≤768px) ────────────────────────── */
@media (max-width: 768px) {

  :root {
    --masthead-height: 64px;
  }

  body { font-size: 15px; }

  .container { padding: 0 var(--space-16); }

  .section {
    padding: var(--space-48) 0;
  }

  /* ── Site header (logo + hamburger only on mobile) ── */
  .site-header {
    height: var(--masthead-height);
  }
  .nav-inner {
    padding: 0 var(--space-16);
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }
  .nav-logo { gap: 10px; }
  .nav-logo img {
    height: 36px;
  }
  .site-header.scrolled .nav-logo img { height: 32px; }
  .nav-logo__name,
  .site-header.scrolled .nav-logo__name { font-size: 1.05rem; }

  /* Hide desktop nav menu and CTA, show hamburger */
  .nav-menu,
  .nav-actions {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex;
  }

  /* ── Hero ── */
  .hero {
    min-height: auto;
    padding-top: calc(var(--masthead-height) + var(--space-80));
    padding-bottom: var(--space-64);
  }
  .hero-title {
    font-size: clamp(2.5rem, 9.5vw, 3.4rem);
    line-height: 1.28;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 1px;
    align-items: stretch;
  }
  .hero-actions .btn {
    min-width: 0;
    width: 100%;
  }

  /* ── Page hero (about / contact / news / product) ── */
  .page-hero {
    padding-top: calc(var(--masthead-height) + var(--space-48));
    padding-bottom: var(--space-32);
  }
  .page-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  /* ── Services / CEO stack to 1 column ── */
  .services-grid,
  .ceo-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-24);
  }
  .ceo-grid { padding: 0 var(--space-8); }

  /* ── Stats stay a compact 3-up row (short numbers) ── */
  .stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .stat-item { padding: var(--space-24) var(--space-8); text-align: center; }
  .stat-number { font-size: clamp(1.5rem, 6.5vw, 2.1rem); }
  .stat-label { font-size: 10px; letter-spacing: 0.03em; }

  /* ── Long CJK lines must always wrap (no right-edge clipping) ── */
  .hero-subtitle { letter-spacing: 0.02em; }

  /* ── Section headings ── */
  .section-title {
    font-size: var(--fs-h2);
  }

  /* ── Glass cards (services) ── */
  .glass-card { padding: var(--space-24); }
  .card-arrow {
    right: var(--space-24);
    bottom: var(--space-24);
  }

  /* ── CEO text smaller padding ── */
  .ceo-name { font-size: var(--fs-h3); }
  .ceo-title-text { font-size: 1rem; }

  /* ── CTA section ── */
  #cta .section-title { font-size: var(--fs-h1) !important; }
  #cta p { font-size: var(--fs-body) !important; }

  /* ── Footer ── */
  .site-footer {
    padding: var(--space-48) 0 var(--space-24);
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-32) !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-16);
    text-align: center;
  }

  /* ── About page info table ── */
  .info-table {
    display: block;
    width: 100%;
  }
  .info-table tbody,
  .info-table tr {
    display: block;
    width: 100%;
  }
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 8px var(--space-16);
    text-align: left;
    border: none;
  }
  .info-table th {
    background-color: var(--cds-gray-10);
    font-weight: 600;
    border-top: 1px solid var(--color-border-subtle);
  }

  /* ── Contact page form ── */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-48) !important;
  }
  .contact-form .form-row-2 {
    grid-template-columns: 1fr !important;
  }

  /* ── News items ── */
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding: var(--space-16);
  }
  .news-thumb {
    width: 100%;
    height: 180px;
  }
  .news-date {
    padding-top: 0;
  }

  /* ── Articles grid ── */
  .articles-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-24);
  }
  .articles-hero {
    padding: calc(var(--masthead-height) + var(--space-48)) 0 var(--space-48);
  }
  .articles-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  /* ── Product content (gpu / nqs / poc) ── */
  .product-content { font-size: 15px; }
  .product-content h2 {
    font-size: 1.25rem;
    margin: var(--space-48) 0 var(--space-16);
  }
  .product-content h3 {
    font-size: 1.05rem;
  }
  .product-content table { font-size: 13px; }
  .product-content th,
  .product-content td { padding: 8px 10px; }
  .product-content tbody th { width: auto; }

  /* Make wide tables horizontally scrollable on mobile */
  .product-content .wp-block-table,
  .product-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .product-content .product-btn {
    min-width: 0;
    width: 100%;
    padding: 12px 16px;
  }

  .product-content .callout--phone {
    padding: var(--space-16);
  }
  .product-content .callout--phone .phone-num {
    font-size: 18px;
  }

  /* ── Page loader (scale arcs to the smaller container) ── */
  .loader-content { width: 168px; height: 168px; }
  .loader-content img { height: 50px; }
  .loader-arc--outer { width: 158px; height: 158px; }
  .loader-arc--mid   { width: 124px; height: 124px; }
  .loader-arc--inner { width: 92px;  height: 92px; }
}


/* ─── Small mobile (≤480px) ──────────────────── */
@media (max-width: 480px) {

  :root {
    --masthead-height: 56px;
  }

  .nav-logo img { height: 30px; }
  .nav-logo__name,
  .site-header.scrolled .nav-logo__name { font-size: 0.9rem; }
  .nav-logo__name-suffix { font-size: 0.62em; }

  .hero-title { font-size: clamp(2.3rem, 10vw, 2.8rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .section-title { font-size: 1.5rem; }

  /* Footer compact */
  .footer-brand p { max-width: none !important; }

  /* Contact form full width */
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; /* prevent zoom on iOS */ }

  /* CTA */
  .btn { padding: 12px 16px; font-size: 14px; min-width: 0; width: 100%; }
}


/* ─── Disable cursor glow on touch devices ──── */
@media (hover: none) {
  .cursor-glow { display: none; }
}
