/* ============================================================
   Appflavor Japan, Inc. — corporate site
   Theme: warm cream with earth-pastel accents (sage / clay / terracotta / rose)
   Concept: a sprinkle of flavor on services
   ============================================================ */

:root {
  /* Earth-tone pastel theme */
  --bg: #f7f2e8;            /* warm cream */
  --bg-soft: #efe7d6;       /* sand */
  --bg-card: rgba(255, 252, 245, 0.7);
  --border: rgba(74, 58, 42, 0.10);
  --border-strong: rgba(74, 58, 42, 0.22);

  --text: #3d3528;          /* warm dark brown */
  --text-soft: #6e6253;     /* medium warm gray-brown */
  --text-mute: #a89a85;     /* tan */

  --accent: #9caf88;        /* sage green */
  --accent-2: #cf9a82;      /* terracotta */
  --accent-3: #d4a5a5;      /* dusty rose */
  --accent-4: #c9b89e;      /* clay beige */

  --grad: linear-gradient(135deg, #9caf88 0%, #c9b89e 35%, #cf9a82 70%, #d4a5a5 100%);
  --grad-text: linear-gradient(135deg, #6b8e5a 0%, #a78867 40%, #b87a5e 70%, #b08484 100%);
  --grad-soft: linear-gradient(135deg, rgba(156,175,136,.18), rgba(201,184,158,.18), rgba(207,154,130,.18), rgba(212,165,165,.18));

  --radius: 12px;
  --radius-lg: 18px;

  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Background canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* Body needs to layer above canvas */
.site-header, section, .site-footer { position: relative; z-index: 1; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 242, 232, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-color: var(--border);
  background: rgba(247, 242, 232, 0.88);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(74, 58, 42, 0.12));
  transition: transform .4s ease, filter .4s ease;
}
.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 4px 12px rgba(184, 122, 94, 0.4));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-en { font-family: var(--font-en); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.logo-jp { font-size: 10px; color: var(--text-mute); letter-spacing: 0.08em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.6);
  transition: all .25s;
}
.nav-cta:hover {
  background: var(--text);
  color: var(--bg) !important;
  border-color: transparent;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(20px, 4vw, 56px) 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 58, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 58, 42, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  background: rgba(255,255,255,0.02);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp .8s .1s forwards;
}
.dot-pulse {
  position: relative;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.dot-pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s forwards;
}
.hero-title .line:nth-child(1) { animation-delay: .2s; }
.hero-title .line:nth-child(2) { animation-delay: .4s; }
.hero-title em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .9s .6s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp .9s .8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 15px;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(61, 53, 43, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #2a241b;
  box-shadow: 0 8px 22px rgba(61, 53, 43, 0.28);
}
.btn-primary svg { transition: transform .3s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 252, 245, 0.6);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(207, 154, 130, 0.08);
}
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.hero-stats {
  display: flex;
  gap: clamp(24px, 6vw, 80px);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s 1s forwards;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-en);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-num small { font-size: 0.6em; opacity: 0.7; }
.stat-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
}

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

/* ===== Sections (common) ===== */
.section {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 56px);
  max-width: var(--container);
  margin: 0 auto;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.section-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-title .en {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-title .jp {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.2em;
}
.section-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 640px;
  margin-top: -40px;
  margin-bottom: 56px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-headline {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.about-body {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 20px;
}
.about-visual { position: relative; }
.viz-card {
  background: linear-gradient(180deg, #fffaf0, #f5ebd9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(74, 58, 42, 0.10);
  position: relative;
}
.viz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}
.viz-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 240, 0.6);
}
.viz-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.viz-dot:nth-child(1) { background: #cf9a82; } /* terracotta */
.viz-dot:nth-child(2) { background: #c9b89e; } /* clay */
.viz-dot:nth-child(3) { background: #9caf88; } /* sage */
.viz-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.viz-code {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  overflow-x: auto;
  white-space: pre;
}
.c-key { color: #6b8e5a; }              /* deep sage */
.c-str { color: #b87a5e; }              /* deep terracotta */
.c-com { color: var(--text-mute); font-style: italic; }
.c-out { color: #b78686; display: block; margin-top: 8px; } /* deep rose */

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .35s, border-color .35s, background .35s;
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(156, 175, 136, 0.14);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #6b8e5a;
  transition: transform .4s, color .4s, background .4s;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
  color: #b87a5e;
  background: rgba(207, 154, 130, 0.14);
}
.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.service-card--cta {
  background: var(--text);
  border: none;
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(61, 53, 43, 0.18);
}
.service-card--cta::before { display: none; }
.service-card--cta:hover {
  transform: translateY(-6px);
  background: #2a241b;
  box-shadow: 0 16px 36px rgba(61, 53, 43, 0.26);
}
.service-card--cta .service-title { color: var(--bg); font-size: 22px; }
.service-card--cta .service-desc { color: rgba(247, 242, 232, 0.78); }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--bg);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap .3s;
}
.service-link:hover { gap: 14px; }

/* ===== Works ===== */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.work-card {
  max-width: 820px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.work-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.work-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.work-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.work-desc {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.work-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-stack li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  background: rgba(207, 154, 130, 0.10);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
}

/* ===== Company ===== */
.company-table {
  border-top: 1px solid var(--border);
}
.company-table .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.company-table dt {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
  padding-top: 2px;
}
.company-table dd { font-size: 15px; }
.company-table .muted {
  color: var(--text-mute);
  font-family: var(--font-en);
  font-size: 13px;
}
.biz-list { display: flex; flex-direction: column; gap: 10px; }
.biz-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 14px;
}
.biz-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--grad);
}

/* ===== Access ===== */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
}
.access-info {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.access-addr {
  font-size: 18px;
  line-height: 1.7;
}
.access-addr strong {
  font-size: 22px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.access-routes { display: flex; flex-direction: column; gap: 16px; }
.access-routes li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-soft);
  padding: 14px 16px;
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.access-routes strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.line-badge {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  padding: 0 8px;
}
.line-badge.metro { background: #7fa8b6; color: #fff; } /* muted teal */
.line-badge.jr    { background: #8aa672; color: #fff; } /* muted olive */
.access-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
  position: relative;
}
.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(0.9) contrast(0.97);
}

/* ===== Contact ===== */
.contact { padding-bottom: clamp(60px, 8vw, 100px); }
.contact-card {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top, rgba(156, 175, 136, 0.22), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(212, 165, 165, 0.22), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(201, 184, 158, 0.22), transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 58, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 58, 42, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.contact-title {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.contact-desc {
  color: var(--text-soft);
  margin-bottom: 40px;
  font-size: 15px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px clamp(20px, 4vw, 56px) 32px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
}
.footer-jp {
  font-size: 11px;
  color: var(--text-mute);
}
.footer-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-soft);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent-2); }
.copy {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    position: fixed;
    inset: 70px 0 0 0;
    flex-direction: column;
    background: rgba(247, 242, 232, 0.97);
    backdrop-filter: blur(20px);
    padding: 40px 28px;
    gap: 24px;
    align-items: flex-start;
  }
  .primary-nav.is-open a { font-size: 22px; }
  .menu-toggle { display: flex; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 120px; padding-bottom: 60px; min-height: auto; }
  .section-head { flex-direction: column; gap: 8px; margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .company-table .row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .access-info { padding: 28px; }
  .footer-nav { gap: 18px; }
  .logo-text { display: none; }
  .sp-only { display: inline; }
}

@media (min-width: 721px) {
  .sp-only { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  /* Ensure reveal targets are not stuck invisible if the observer never fires */
  .reveal { opacity: 1 !important; transform: none !important; }
  /* Bring fade-up animated elements to their final state */
  .eyebrow, .hero-title .line, .hero-lead, .hero-actions, .hero-stats {
    opacity: 1 !important;
    transform: none !important;
  }
}
