/*
Theme Name: Robrex
Theme URI: https://robrex.co.jp/
Author: Robrex Inc.
Description: 株式会社Robrex コーポレートサイト ｜ AI導入・開発支援、プロジェクトマネジメント支援、PM育成支援。standalone デザインを移植したクラシックテーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: robrex
*/

:root {
  --navy: #0c1116;
  --navy-700: #1a222c;
  --blue: #1b2430;
  --blue-bright: #2f6da8;
  --blue-soft: #eef1f4;
  --accent: #008c95;
  --accent-soft: #e3f0f0;
  --ink: #12161c;
  --paper: #ffffff;
  --paper-2: #f5f6f7;
  --line: #e8eaed;
  --line-strong: #d6d9de;
  --line-dark: rgba(255, 255, 255, .14);
  --muted: #646c76;
  --muted-2: #868d96;
  --muted-light: #b6bcc4;
  --maxw: 1400px;
  --gut: clamp(22px, 5vw, 72px);
  --radius: 6px;
  --radius-lg: 8px;
  --ff-jp: "Noto Sans JP", sans-serif;
  --ff-body: "Noto Sans JP", sans-serif;
  --ff-ui: "Inter", "Noto Sans JP", sans-serif;
  --ff-serif: "Noto Serif JP", Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(7, 20, 33, .05), 0 8px 24px rgba(7, 20, 33, .06);
  --shadow-md: 0 18px 44px rgba(7, 20, 33, .12);
}

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

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

body {
  font-family: var(--ff-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

section {
  position: relative;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.eng {
  font-family: var(--ff-ui);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-ui);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.kicker.on-dark {
  color: rgba(255, 255, 255, .6);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.sec-titles {
  max-width: 760px;
}

.sec-title {
  margin-top: 20px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.sec-title .ser {
  font-family: inherit;
  font-weight: inherit;
  font-style: normal;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.btn .arr {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.btn svg {
  width: 13px;
  height: 13px;
}

.btn-primary,
.btn-blue {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.btn-primary .arr,
.btn-blue .arr {
  background: rgba(255, 255, 255, .14);
}

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

.btn:hover .arr {
  transform: translateX(3px);
}

.btn-ghost,
.btn-light,
.btn-outline-light {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-strong);
}

.btn-ghost .arr,
.btn-light .arr,
.btn-outline-light .arr {
  background: var(--blue-soft);
  color: var(--blue);
}

.btn-ghost:hover,
.btn-light:hover,
.btn-outline-light:hover {
  border-color: var(--navy);
  background: #fff;
}

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: padding .25s ease, box-shadow .25s ease, background-color .3s ease, border-color .3s ease;
}

body.admin-bar .hdr {
  top: 32px;
}

.hdr.scrolled {
  padding: 11px 0;
  box-shadow: 0 8px 24px rgba(7, 20, 33, .06);
}

/* first view: blend the header into the dark hero */
.hdr--over-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hdr--over-hero .brand img {
  filter: brightness(0) invert(1);
}

.hdr--over-hero .nav a {
  color: #fff;
}

.hdr--over-hero .burger {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
}

.hdr--over-hero .burger span {
  background: #fff;
}

.hdr--over-hero .hdr-cta .btn-primary {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.hdr--over-hero .hdr-cta .btn-primary .arr {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.hdr--over-hero .hdr-cta .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hdr--over-hero .hdr-cta .btn-primary:hover .arr {
  background: var(--ink);
  color: #fff;
}

.hdr-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 36px;
  font-weight: 800;
  color: var(--navy);
}

.brand img {
  display: block;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
}

.brand-name {
  font-family: var(--ff-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 10px 13px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.hdr-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hdr-cta .btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: .88rem;
}

.hdr .lang {
  color: var(--muted);
  font-family: var(--ff-ui);
  font-size: .76rem;
  font-weight: 700;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.burger span {
  width: 21px;
  height: 2px;
  background: var(--navy);
  transition: transform .25s ease;
}

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 100px var(--gut) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
}

.mmenu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mmenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.mmenu a span {
  color: var(--muted-light);
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 600;
}

.mmenu .btn {
  margin-top: 24px;
}

.hero {
  padding: clamp(128px, 17vh, 188px) 0 clamp(72px, 9vw, 116px);
  overflow: clip;
  background: var(--paper);
}

/* full-bleed AI image hero */
.hero--media {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 0;
  background: var(--navy);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, .9) 0%, rgba(8, 11, 16, .55) 42%, rgba(8, 11, 16, .12) 78%),
    linear-gradient(180deg, rgba(8, 11, 16, .55) 0%, rgba(8, 11, 16, .12) 34%, rgba(8, 11, 16, .85) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero--media .wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: clamp(132px, 18vh, 200px);
  padding-bottom: clamp(34px, 5vh, 56px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  padding-bottom: 72px;
}

.hero-wrap > * {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-grid;
  grid-template-columns: auto 34px auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-eyebrow .tag {
  color: var(--blue);
  font-family: var(--ff-ui);
  font-size: .78rem;
  text-transform: uppercase;
}

.hero-eyebrow .bar {
  width: 34px;
  height: 1px;
  background: var(--line-strong);
}

h1.hero-title {
  max-width: 680px;
  margin-top: 30px;
  color: var(--ink);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h1.hero-title .u {
  color: var(--blue);
  white-space: normal;
  overflow-wrap: anywhere;
}

h1.hero-title .u::after {
  content: none;
}

.hero-lead {
  max-width: 590px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2.05;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  background: #fff;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 590px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-trust span {
  padding: 14px 12px 14px 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-trust span + span {
  padding-left: 16px;
}

.hero-trust span:last-child {
  border-right: 0;
}

.hero-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .18);
  background: var(--navy);
  box-shadow: 0 24px 56px rgba(7, 20, 33, .24);
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(.86) contrast(1.02);
}

.hero-media:hover img {
  transform: none;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 20, 33, .32), transparent 46%), linear-gradient(0deg, rgba(7, 20, 33, .38), transparent 50%);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .36);
  pointer-events: none;
}

.hero-media-shade {
  position: absolute;
  z-index: 2;
  right: 26px;
  top: 26px;
  width: 112px;
  height: 2px;
  background: rgba(255, 255, 255, .84);
  pointer-events: none;
}

.hero-command {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  width: min(320px, calc(100% - 56px));
  padding: 18px 20px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.hero-command .label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--ff-ui);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  gap: 12px;
}

.command-row b {
  color: var(--blue);
  font-family: var(--ff-ui);
  font-size: 1.18rem;
  line-height: 1;
}

.hero-chip {
  display: none;
}

/* =========================================================
   Hero — editorial minimal (redesign)
   ========================================================= */
.hero-head {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: end;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

h1.hero-title {
  margin-top: 30px;
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.5rem, 6.2vw, 5.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.hero-lead {
  max-width: 420px;
  margin-top: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
}

.hero-link .arr {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform .2s ease;
}

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

.hero-link:hover .arr {
  transform: translateX(4px);
}

.hero-figure {
  margin-top: clamp(54px, 7vw, 92px);
  aspect-ratio: 16 / 6.6;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* signature: capability index — honest 1-main / 2-sub structure */
.hero-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--ink);
}

.hx-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 10px;
  padding: 30px 34px 30px 0;
  transition: background-color .25s ease;
}

.hx-item + .hx-item {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.hx-no {
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: .04em;
}

.hx-name {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.hx-tag {
  grid-column: 2;
  justify-self: start;
  margin-top: -4px;
  padding: 2px 9px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hx-desc {
  grid-column: 2;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

.hx-item:hover {
  background: var(--paper-2);
}

.hx-item:hover .hx-name {
  color: var(--accent);
}

/* ----- dark overrides for the full-bleed image hero ----- */
.hero--media .btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hero--media .btn-light .arr {
  background: var(--ink);
  color: #fff;
}

.hero--media .btn-light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero--media .btn-light:hover .arr {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.hero--media .hero-head {
  margin-top: clamp(20px, 6vh, 64px);
}

.hero--media .hero-index {
  margin-top: auto;
}

.hero--media .hero-kicker {
  color: rgba(255, 255, 255, .72);
}

.hero--media h1.hero-title {
  color: #fff;
  text-shadow: 0 1px 30px rgba(0, 0, 0, .25);
}

.hero--media .hero-lead {
  color: rgba(255, 255, 255, .82);
}

.hero--media .hero-link {
  color: #fff;
}

.hero--media .hero-link:hover {
  color: #fff;
}

.hero--media .hero-link .arr {
  color: #fff;
}

.hero--media .hero-index {
  margin-top: clamp(48px, 9vh, 104px);
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.hero--media .hx-item + .hx-item {
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.hero--media .hx-no {
  color: rgba(255, 255, 255, .55);
}

.hero--media .hx-name {
  color: #fff;
}

.hero--media .hx-desc {
  color: rgba(255, 255, 255, .66);
}

.hero--media .hx-item:hover {
  background: rgba(255, 255, 255, .06);
}

.hero--media .hx-item:hover .hx-name {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-head {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .hero-index {
    grid-template-columns: 1fr;
  }

  .hx-item {
    padding: 22px 0;
    border-top: 1px solid var(--line);
  }

  .hx-item:first-child {
    border-top: 0;
  }

  .hx-item + .hx-item {
    padding-left: 0;
    border-left: 0;
  }
}

.cap-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.cap-strip .wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  align-items: start;
  padding-block: 28px;
}

.cap-label {
  color: var(--blue);
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
}

.cap-list span {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.6;
}

.cap-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.philo {
  padding: 112px 0;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.philo .wrap {
  position: relative;
  z-index: 2;
}

.philo-top {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 62px;
}

.philo-figure {
  position: relative;
  margin-bottom: 62px;
  aspect-ratio: 21 / 7;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

.philo-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 17, 22, .12) 0%, rgba(12, 17, 22, .5) 100%);
  pointer-events: none;
}

.philo-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(.92) contrast(1.02);
}

@media (max-width: 720px) {
  .philo-figure {
    aspect-ratio: 16 / 10;
    margin-bottom: 44px;
  }
}

.philo-statement {
  margin-top: 24px;
  padding-left: 28px;
  border-left: 2px solid var(--accent);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.36;
}

.philo-statement em {
  color: #89d2d6;
  font-style: normal;
}

.philo-body p {
  color: rgba(255, 255, 255, .74);
  font-size: .98rem;
  line-height: 2.05;
  margin-bottom: 18px;
}

.philo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
}

.philo-cell {
  padding: 34px;
  border-right: 1px solid var(--line-dark);
}

.philo-cell:last-child {
  border-right: 0;
}

.philo-cell .pn {
  color: #89d2d6;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 800;
}

.philo-cell h3 {
  margin: 16px 0 12px;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.5;
}

.philo-cell p {
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  line-height: 1.9;
}

.company {
  padding: 112px 0;
  background: var(--paper-2);
}

.company-heading {
  margin: 18px 0 36px;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
}

.company-table {
  border-top: 1px solid var(--line);
}

.company-table > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  color: var(--blue);
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.company-table dd {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

.company-table .co-reading {
  margin-left: 4px;
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 720px) {
  .company {
    padding: 72px 0;
  }

  .company-heading {
    font-size: 2rem;
  }

  .company-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.services,
.news,
.career,
.contact {
  padding: 112px 0;
}

.services {
  background: var(--paper);
}

.svc-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.svc-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.svc-tab {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 12px;
  gap: 18px;
  align-items: center;
  padding: 24px 18px 24px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background-color .2s ease, padding .2s ease;
}

.svc-tab .sn {
  color: var(--muted-2);
  font-family: var(--ff-ui);
  font-size: .88rem;
  font-weight: 800;
}

.svc-tab .st b {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
}

.svc-tab .st span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--ff-ui);
  font-size: .78rem;
  line-height: 1.4;
}

.svc-tab .sdot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.svc-tab:hover,
.svc-tab.active {
  background: #fff;
}

.svc-tab.active {
  padding-left: 17px;
  border-left: 3px solid var(--accent);
}

.svc-tab.active .sn,
.svc-tab.active .st span {
  color: var(--blue);
}

.svc-tab.active .sdot {
  background: var(--accent);
  border-color: var(--accent);
}

.svc-panel-wrap {
  position: relative;
  min-height: 520px;
}

.svc-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s ease;
}

.svc-panel.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.svc-visual {
  position: relative;
  margin-bottom: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
}

.svc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 20, 33, .46), transparent 58%);
  pointer-events: none;
}

.svc-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.02);
}

.svc-panel.active .svc-visual img {
  transform: none;
}

.svc-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  background: rgba(7, 20, 33, .74);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.svc-panel h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.45;
}

.svc-panel > p {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 2;
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.svc-chips span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 800;
}

.svc-link .arr {
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  transition: transform .2s ease;
}

.svc-link:hover .arr {
  transform: translateX(3px);
}

.news {
  background: #fff;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.news-tabs button {
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-size: .86rem;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.news-tabs button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.news-tabs button:hover:not(.active) {
  border-color: var(--blue);
  color: var(--blue);
}

.news-list {
  border-top: 1px solid var(--line-strong);
}

.news-empty {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 118px 1fr 38px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}

.news-item:hover {
  background: var(--paper-2);
}

.news-date {
  color: var(--muted);
  font-family: var(--ff-ui);
  font-size: .86rem;
  font-weight: 700;
}

.news-cat {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.4;
}

.cat-news {
  background: var(--blue-soft);
  color: var(--blue);
}

.cat-press {
  background: #f5ead8;
  color: #8a641e;
}

.cat-event {
  background: #e4f1ec;
  color: #1e6e56;
}

.news-ttl {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.65;
}

.news-arr {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--blue);
  transition: background-color .2s ease, color .2s ease;
}

.news-item:hover .news-arr {
  background: var(--navy);
  color: #fff;
}

.career {
  background: var(--paper-2);
}

.career-grid {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: 70px;
  align-items: center;
}

.career-eng {
  color: var(--blue);
  font-family: var(--ff-ui);
  font-size: .92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.career-eng em {
  color: var(--accent);
  font-style: normal;
}

.career-copy h2 {
  margin: 20px 0 18px;
  color: var(--ink);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.45;
}

.career-copy p {
  max-width: 570px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 2.05;
}

.career-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.career-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
}

.career-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 20, 33, .45), transparent 48%);
  pointer-events: none;
}

.career-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9);
}

.career-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .88);
}

.career-meta > div {
  padding: 16px 14px;
  background: rgba(255, 255, 255, .82);
}

.career-meta div .n {
  color: var(--ink);
  font-family: var(--ff-ui);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.career-meta div .l {
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

.contact {
  background: #fff;
}

.contact-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-left {
  position: relative;
  overflow: hidden;
  padding: 56px;
  background: var(--navy);
  color: #fff;
}

.contact-left .csym {
  position: absolute;
  right: -52px;
  bottom: -48px;
  width: 250px;
  opacity: .06;
}

.contact-left .label {
  color: #89d2d6;
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-left h2 {
  position: relative;
  z-index: 2;
  margin: 18px 0 20px;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.42;
}

.contact-left p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .74);
  font-size: .94rem;
  line-height: 1.95;
}

.contact-quick {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 34px;
}

.cq {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .92rem;
}

.cq .ic {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}

.cq .ic svg {
  width: 18px;
  height: 18px;
  color: #89d2d6;
}

.cq small {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .74rem;
}

.cq b {
  font-weight: 800;
}

.contact-form {
  padding: 48px;
}

.frow {
  margin-bottom: 19px;
}

.frow.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fl {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
}

.fl .req {
  margin-left: 6px;
  color: var(--blue);
  font-size: .72rem;
}

.fc {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: .94rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.fc:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 79, 145, .12);
}

textarea.fc {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.fc.err {
  border-color: #c83b2b;
  background: #fff5f3;
}

.err-msg {
  display: none;
  margin-top: 6px;
  color: #c83b2b;
  font-size: .78rem;
}

.fc.err + .err-msg {
  display: block;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-foot label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
}

.form-ok {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-ok.show {
  display: block;
}

.form-ok .ck {
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.form-ok h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 800;
}

.form-ok p {
  color: var(--muted);
  font-size: .92rem;
}

/* =========================================================
   Contact Form 7 — match the contact form design
   ========================================================= */
.contact-form.wpcf7-form {
  padding: 48px;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
}

/* CF7 generates .wpcf7-text/.wpcf7-textarea/.wpcf7-select; align with .fc */
.contact-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form textarea.wpcf7-textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

/* acceptance (consent) checkbox row */
.contact-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.contact-form .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
}

/* submit button → match .btn-blue */
.contact-form .wpcf7-submit {
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: background-color .2s ease, border-color .2s ease;
}

.contact-form .wpcf7-submit:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* validation + response messages */
.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #d23f31;
  font-size: .78rem;
}

.contact-form .wpcf7-form-control.wpcf7-not-valid {
  border-color: #d23f31;
}

.contact-form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.6;
}

.contact-form.invalid .wpcf7-response-output,
.contact-form.unaccepted .wpcf7-response-output {
  border: 1px solid #f0c7c2;
  background: #fdf2f1;
  color: #b23a2c;
}

.contact-form.sent .wpcf7-response-output {
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  color: #0a6a70;
}

@media (max-width: 720px) {
  .contact-form.wpcf7-form {
    padding: 32px 24px;
  }
}

.ftr {
  padding: 76px 0 34px;
  background: var(--navy);
  color: #fff;
}

.ftr-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line-dark);
}

.ftr-logo {
  margin-bottom: 22px;
  width: fit-content;
  color: #fff;
}

.ftr-logo img {
  filter: brightness(0) invert(1);
  opacity: .92;
}

.ftr-logo .brand-mark {
  background: rgba(255, 255, 255, .12);
}

.ftr-brand p {
  max-width: 310px;
  color: rgba(255, 255, 255, .66);
  font-size: .88rem;
  line-height: 1.9;
}

.ftr-col h4 {
  margin-bottom: 18px;
  color: #89d2d6;
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ftr-col a {
  display: block;
  padding: 7px 0;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  transition: color .2s ease, transform .2s ease;
}

.ftr-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.ftr-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  flex-wrap: wrap;
}

.ftr-bot small {
  color: rgba(255, 255, 255, .52);
  font-size: .8rem;
}

.ftr-social {
  display: flex;
  gap: 10px;
}

.ftr-social a {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .72);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ftr-social a:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.ftr-social svg {
  width: 17px;
  height: 17px;
}

.ph,
.ph.dark {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* No-JS / failed-script fallback: never hide content behind scroll reveal. */
.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.reveal.d1 {
  transition-delay: .06s;
}

.reveal.d2 {
  transition-delay: .12s;
}

.reveal.d3 {
  transition-delay: .18s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  h1.hero-title {
    font-size: 4rem;
  }

  .sec-title {
    font-size: 2.55rem;
  }

  .philo-statement,
  .career-copy h2 {
    font-size: 2.2rem;
  }

  .cap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  body.admin-bar .hdr {
    top: 46px;
  }

  .nav,
  .hdr-cta .lang {
    display: none;
  }

  .hdr-cta {
    margin-left: auto;
  }

  .burger {
    display: flex;
  }

  .hdr-cta .btn {
    display: none;
  }

  .hero {
    background: var(--paper);
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-bottom: 44px;
  }

  .hero-media {
    min-height: 430px;
  }

  .cap-strip .wrap,
  .philo-top,
  .svc-layout,
  .career-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .philo-top,
  .svc-layout,
  .career-grid {
    gap: 40px;
  }

  .svc-panel-wrap {
    min-height: 0;
  }

  .svc-panel {
    position: absolute;
  }

  .svc-panel.active {
    position: relative;
  }

  .career-visual {
    max-width: 560px;
    order: -1;
  }

  .ftr-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .ftr-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding-inline: 22px;
  }

  .hdr {
    padding: 12px 0;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .hero {
    padding-top: 116px;
  }

  /* raise the headline on mobile (was sitting too low) */
  .hero--media .wrap {
    padding-top: 92px;
    padding-bottom: 30px;
  }

  .hero--media .hero-head {
    margin-top: 18px;
  }

  .hero-cta .btn,
  .hero-cta .hero-link {
    width: 100%;
  }

  .cap-strip .wrap {
    gap: 16px;
    padding-block: 24px;
  }

  .cap-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .philo,
  .services,
  .news,
  .career,
  .contact {
    padding: 78px 0;
  }

  .sec-head {
    margin-bottom: 40px;
  }

  .sec-title {
    font-size: 2rem;
  }

  .philo-statement,
  .career-copy h2,
  .contact-left h2 {
    font-size: 1.85rem;
  }

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

  .philo-cell {
    padding: 26px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .philo-cell:last-child {
    border-bottom: 0;
  }

  .svc-tab {
    grid-template-columns: 34px 1fr 10px;
    gap: 12px;
    padding: 20px 15px 20px 3px;
  }

  .svc-tab.active {
    padding-left: 12px;
  }

  .svc-tab .st b {
    font-size: 1.05rem;
  }

  .svc-visual {
    aspect-ratio: 4 / 3;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .work-thumb {
    width: 100%;
  }

  .work-go {
    display: none;
  }

  .news-item {
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    padding: 20px 0;
  }

  .news-arr {
    display: none;
  }

  .news-ttl {
    grid-column: 1 / -1;
  }

  /* mobile: hide the white stats badge over the image */
  .career-meta {
    display: none;
  }

  /* mobile: show the image below the copy (reset order) and use a shorter height */
  .career-visual {
    order: 0;
    aspect-ratio: 4 / 3;
  }

  .contact-left,
  .contact-form {
    padding: 32px 24px;
  }

  .frow.two {
    grid-template-columns: 1fr;
  }

  .form-foot .btn {
    width: 100%;
  }

  .ftr-top {
    grid-template-columns: 1fr;
  }

  .ftr-bot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  h1.hero-title {
    font-size: 2.35rem;
    overflow-wrap: anywhere;
  }

  h1.hero-title .u {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* =========================================================
   Motion layer — entrance, scroll reveal variants, ambient
   ========================================================= */

/* ----- Scroll progress bar ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  will-change: transform;
}

/* ----- Hero entrance (runs on load) ----- */
@keyframes rbxRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rbxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-kicker,
h1.hero-title,
.hero-lead,
.hero-cta,
.hero-index {
  animation: rbxRise .9s cubic-bezier(.22, .61, .36, 1) both;
}

.hero-kicker   { animation-delay: .04s; }
h1.hero-title  { animation-delay: .14s; }
.hero-lead     { animation-delay: .30s; }
.hero-cta      { animation-delay: .40s; }
.hero-index    { animation-delay: .50s; }

/* very slow ken-burns drift on the hero image */
.hero-bg img {
  animation: rbxDrift 22s ease-in-out 1s infinite alternate;
}

@keyframes rbxDrift {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.5%, -1.5%); }
}

/* ----- Scroll reveal: stagger + directional variants ----- */
.reveal {
  transition-delay: calc(var(--si, 0) * .085s);
}

.reveal.rv-left  { transform: translateX(-30px); }
.reveal.rv-right { transform: translateX(30px); }
.reveal.rv-zoom  { transform: scale(.94) translateY(16px); }

.reveal.rv-left.in,
.reveal.rv-right.in,
.reveal.rv-zoom.in {
  transform: none;
}

/* keep the manual delay helpers winning over the auto stagger */
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }

/* ----- Subtle hover lift on content cards ----- */
.philo-cell {
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease;
}

.philo-cell:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ----- Pulsing dot on the active service tab ----- */
.svc-tab.active .sdot {
  animation: rbxPulse 2s ease-in-out infinite;
}

@keyframes rbxPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 140, 149, .45); }
  50%      { box-shadow: 0 0 0 7px rgba(0, 140, 149, 0); }
}

/* ----- Animated capability chips on reveal ----- */
.cap-list span {
  transition: transform .25s ease, color .25s ease;
}

.cap-list span:hover {
  transform: translateY(-3px);
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }

  .hero-kicker,
  h1.hero-title,
  .hero-lead,
  .hero-cta,
  .hero-index,
  .hero-bg img {
    animation: none !important;
  }
}

/* =========================================================
   Static pages (page.php) + rich text content
   ========================================================= */
.page-view {
  padding: clamp(140px, 17vh, 200px) 0 120px;
}

.page-view-head {
  margin-bottom: 48px;
}

/* ----- Breadcrumbs ----- */
.breadcrumb {
  margin-bottom: 30px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: var(--ff-ui);
  font-size: .82rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  color: var(--muted);
}

.breadcrumb li:not(:first-child)::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}

.breadcrumb a {
  color: var(--muted);
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* ----- 404 ----- */
.error-404 {
  text-align: center;
}

.error-404-inner {
  max-width: 640px;
  margin: 0 auto;
}

.error-404 .kicker {
  justify-content: center;
}

.error-404 .kicker::before {
  display: none;
}

.error-code {
  margin: 12px 0 4px;
  font-family: var(--ff-ui);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--blue);
}

.error-lead {
  margin: 18px auto 0;
  max-width: 480px;
  color: var(--muted);
  line-height: 2;
}

.error-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.page-content {
  max-width: 820px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 2;
}

.entry-content > * + * {
  margin-top: 1.4em;
}

.entry-content h2 {
  margin-top: 2em;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--line);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.4;
}

.entry-content h3 {
  margin-top: 1.8em;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.5;
}

.entry-content p {
  color: var(--muted);
}

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

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  color: var(--muted);
}

.entry-content li + li {
  margin-top: .5em;
}

.entry-content ul li {
  list-style: disc;
}

.entry-content ol li {
  list-style: decimal;
}

.entry-content blockquote {
  padding: 8px 0 8px 22px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}

.entry-content th,
.entry-content td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  width: 32%;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.entry-content img {
  border-radius: var(--radius);
}

@media (max-width: 720px) {
  .page-view {
    padding-top: 120px;
  }

  .entry-content th {
    width: auto;
    white-space: normal;
  }
}
