/* ============================================
   RAPID APPLICATIONS — style.css
   Design: Dark tech / Grid precision
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color palette */
  --navy-deepest: #050c1a;
  --navy-deep:    #0a0f1e;
  --navy-mid:     #0d1730;
  --navy-card:    #111827;
  --navy-surface: #1a2540;
  --navy-border:  #1e3058;
  --navy-hover:   #243660;

  --cyan:         #00d4ff;
  --cyan-dim:     #00a8cc;
  --cyan-faint:   rgba(0, 212, 255, 0.08);
  --cyan-glow:    rgba(0, 212, 255, 0.15);

  --white:        #ffffff;
  --off-white:    #e8edf5;
  --text-primary: #cdd5e0;
  --text-muted:   #6b7a99;
  --text-subtle:  #3d4f6e;

  /* Typography */
  --font-body: 'Noto Sans JP', sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: 96px;
  --container:   1200px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  /* Transitions */
  --trans-fast:  0.15s ease;
  --trans-base:  0.3s ease;
  --trans-slow:  0.6s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-deep);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

.mono { font-family: var(--font-mono); }

.br-sp { display: none; }
.br-pc { display: inline; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 12, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
}

.site-header.scrolled {
  border-bottom-color: var(--navy-border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--off-white);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.logo-ltd {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.global-nav a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
  white-space: nowrap;
}

.global-nav a:hover {
  color: var(--off-white);
  background: var(--cyan-faint);
}

.nav-cta {
  background: var(--cyan) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  padding: 6px 16px !important;
}

.nav-cta:hover {
  background: var(--cyan-dim) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
}

.nav-toggle:hover { background: var(--cyan-faint); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--off-white);
  border-radius: 1px;
  transition: transform var(--trans-base), opacity var(--trans-fast);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, transparent 0%, var(--navy-deep) 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 120px;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero-eyebrow .mono {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow .mono::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title-sub {
  color: var(--cyan);
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-top: 8px;
}

.hero-lead {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-primary);
  max-width: 680px;
  margin-bottom: 32px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all var(--trans-base);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy-deep);
  border-color: var(--cyan);
}

.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border-color: var(--navy-border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-faint);
}

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

/* ---------- Scroll indicator ---------- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  opacity: 0.4;
}

.hero-scroll-indicator .mono {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--section-pad) 0;
}

.section-dark {
  background: var(--navy-mid);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-border), transparent);
}

.section-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-border), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-lead small {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ---------- PROBLEMS ---------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--trans-base), transform var(--trans-base), box-shadow var(--trans-base);
}

.problem-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--cyan-glow);
}

.problem-icon {
  width: 40px;
  height: 40px;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* viewBox だけの SVG はデフォルトで巨大化するため、コンテナにフィットさせる */
.problem-icon svg,
.service-icon svg {
  width: 100%;
  height: 100%;
}

.problem-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.5;
}

.problem-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--trans-base), transform var(--trans-base), box-shadow var(--trans-base);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--trans-base);
}

.service-card:hover {
  border-color: var(--navy-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.service-subtitle {
  font-size: 0.8rem;
  color: var(--cyan-dim);
  margin-bottom: 14px;
  font-weight: 500;
}

.service-card > p:not(.service-subtitle) {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-points {
  border-top: 1px solid var(--navy-border);
  padding-top: 16px;
}

.service-points li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  border-bottom: 1px solid rgba(30,48,88,0.5);
}

.service-points li:last-child {
  border-bottom: none;
}

.service-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.7rem;
  top: 6px;
}

/* ---------- EXPERTISE ---------- */
.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.expertise-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-border);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tech-item {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color var(--trans-base), background var(--trans-base);
}

.tech-item:hover {
  border-color: var(--cyan-dim);
  background: var(--navy-surface);
}

.tech-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  font-weight: bold;
  margin-bottom: 4px;
}

.tech-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.domain-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-item {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
}

.domain-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.domain-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- RESULTS ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--trans-base), transform var(--trans-base);
}

.result-card:hover {
  border-color: var(--navy-hover);
  transform: translateY(-4px);
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.result-industry {
  display: inline-block;
  padding: 3px 10px;
  background: var(--cyan-faint);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 2px;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
}

.result-stack {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.result-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}

.result-situation,
.result-action {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.result-situation strong,
.result-action strong {
  color: var(--off-white);
  font-weight: 600;
}

.accent-text {
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- REASONS ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reason-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--trans-base), transform var(--trans-base), box-shadow var(--trans-base);
}

.reason-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.reason-num {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  opacity: 0.7;
}

.reason-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.5;
}

.reason-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------- COMPANY ---------- */
.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--navy-border);
  font-size: 0.875rem;
  vertical-align: top;
}

.company-table th {
  width: 140px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  background: var(--navy-card);
}

.company-table td {
  color: var(--off-white);
}

.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: 1px solid var(--navy-border);
}

.message-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.message-label {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.message-card blockquote {
  font-style: normal;
  border-left: 2px solid var(--cyan);
  padding-left: 20px;
  margin-bottom: 24px;
}

.message-card blockquote p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.85;
  margin-bottom: 12px;
}

.message-card blockquote p:last-child {
  margin-bottom: 0;
}

.message-sig {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sig-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sig-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ---------- CONTACT ---------- */
.contact-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.contact-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.contact-title span {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--cyan);
  display: block;
  margin-top: 8px;
}

.contact-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 36px;
}

.contact-items {
  text-align: left;
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.contact-item-label {
  display: block;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.contact-items ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--navy-border);
  padding-left: 16px;
  position: relative;
}

.contact-items ul li:last-child {
  border-bottom: none;
}

.contact-items ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.contact-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-deepest);
  border-top: 1px solid var(--navy-border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.footer-nav a {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-subtle);
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast);
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-subtle);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* staggered delay for grid children */
.problems-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.problems-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.problems-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.problems-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.problems-grid .reveal:nth-child(5) { transition-delay: 0.33s; }
.problems-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

.services-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.35s; }

.results-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.results-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.results-grid .reveal:nth-child(3) { transition-delay: 0.25s; }

.reasons-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.reasons-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.reasons-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.reasons-grid .reveal:nth-child(4) { transition-delay: 0.20s; }
.reasons-grid .reveal:nth-child(5) { transition-delay: 0.25s; }

/* ---------- RESPONSIVE ---------- */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid  { grid-template-columns: repeat(2, 1fr); }
  .expertise-layout { grid-template-columns: 1fr; gap: 40px; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reason-card:nth-child(1),
  .reason-card:nth-child(2),
  .reason-card:nth-child(3),
  .reason-card:nth-child(4),
  .reason-card:nth-child(5) {
    grid-column: auto;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .br-sp { display: inline; }
  .br-pc { display: none; }

  /* Header */
  .nav-toggle { display: flex; }

  .global-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-deepest);
    border-bottom: 1px solid var(--navy-border);
    padding: 16px 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }

  .global-nav.open { display: block; }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
  }

  .global-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius-md);
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  /* Hero */
  .hero-inner { padding-top: 48px; padding-bottom: 80px; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }

  /* Grids */
  .problems-grid  { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr; }
  .results-grid   { grid-template-columns: 1fr; }
  .tech-grid      { grid-template-columns: repeat(2, 1fr); }

  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .reason-card:nth-child(1),
  .reason-card:nth-child(2),
  .reason-card:nth-child(3),
  .reason-card:nth-child(4),
  .reason-card:nth-child(5) {
    grid-column: auto;
  }

  /* Company */
  .company-layout { grid-template-columns: 1fr; gap: 24px; }
  .company-table th { width: 100px; }

  /* Contact */
  .contact-box { padding: 40px 24px; }
  .contact-lead { font-size: 0.85rem; }
  .contact-title { font-size: 1.4rem; }

  /* Logo text */
  .logo-text { display: none; }
}

/* Tiny mobile */
@media (max-width: 400px) {
  .tech-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 32px 16px; }
  .service-card { padding: 28px 20px; }
}

/* ---------- Focus / Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .hero-scroll-indicator,
  .hero-cta-group,
  .contact-box .btn,
  .nav-toggle { display: none; }

  body { background: white; color: black; }
  .section-dark { background: #f5f5f5; }
}
