@import url('/assets/css/tokens.css');

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: var(--type-body);
  line-height: 1.58;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open,
body.modal-open,
body.switching {
  overflow: hidden;
}

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

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

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

button:disabled:not(.btn-primary) {
  opacity: 0.56;
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.wrap {
  width: min(var(--container-max), calc(100% - 48px));
  margin: 0 auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-3);
}

.bgfx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.bgfx::before,
.bgfx::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: bgfx-float 22s var(--easing) infinite;
}

.bgfx::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74, 124, 255, 0.14), transparent 70%);
  top: -15%;
  left: -8%;
}

.bgfx::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 107, 61, 0.09), rgba(124, 93, 255, 0.06), transparent 70%);
  bottom: -10%;
  right: -6%;
  animation-delay: -11s;
  animation-direction: reverse;
}

@keyframes bgfx-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.06); }
  66% { transform: translate(-30px, 30px) scale(0.94); }
}

.page {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  transition: opacity var(--dur-fast) var(--easing);
}

body.switching .page {
  opacity: 0.25;
}

.lang-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(245, 248, 253, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--easing);
}

.lang-loader.show {
  opacity: 1;
  pointer-events: auto;
}

.loader-core {
  width: min(250px, 72vw);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: var(--s-4);
  text-align: center;
}

.loader-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-2);
}

.loader-note {
  font-size: var(--type-small);
  color: var(--muted);
}

.loader-line {
  width: 100%;
  height: 4px;
  margin-top: var(--s-2);
  border-radius: 999px;
  overflow: hidden;
  background: #dfe6f2;
}

.loader-line::after {
  content: '';
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: loader-scan 1s var(--easing) infinite;
}

@keyframes loader-scan {
  from {
    transform: translateX(-140%);
  }

  to {
    transform: translateX(320%);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-base) var(--easing),
    border-color var(--dur-base) var(--easing),
    box-shadow var(--dur-base) var(--easing);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(74, 124, 255, 0.08);
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 4px 24px rgba(15, 23, 41, 0.06);
}

.site-header-wrap {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 240px;
}

.mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.wordmark strong {
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.wordmark span {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-small);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #364763;
  font-size: var(--type-small);
  font-weight: 500;
  white-space: nowrap;
  transition:
    border-color var(--dur-fast) var(--easing),
    color var(--dur-fast) var(--easing),
    background-color var(--dur-fast) var(--easing);
}

.site-nav-link:hover,
.site-nav-link:focus-visible,
.site-nav-link.is-active,
.site-nav-link[aria-current='page'] {
  border-color: rgba(74, 124, 255, 0.2);
  background: rgba(74, 124, 255, 0.05);
  color: var(--accent);
}

.header-controls {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-role {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--type-small);
  font-weight: 500;
}

.header-logout-form {
  margin: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.language-switch label {
  font-size: var(--type-label);
  color: var(--muted);
  font-weight: 500;
}

.language-switch select {
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--text);
  font-size: var(--type-small);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: #33435f;
  font-size: var(--type-small);
  font-weight: 500;
}

.menu-toggle-icon {
  width: 16px;
  height: 12px;
  display: inline-grid;
  gap: 3px;
}

.menu-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section {
  padding: var(--s-8) 0;
  scroll-margin-top: 110px;
}

main > .section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent 0%, rgba(240, 245, 251, 0.5) 50%, transparent 100%);
}

.section + .section {
  border-top: none;
}

.section-hero {
  padding-top: calc(var(--s-8) + 20px);
  padding-bottom: calc(var(--s-8) + 20px);
}

.section-header {
  margin-bottom: var(--s-4);
}

.section-note {
  margin-top: var(--s-2);
  color: var(--muted);
  max-width: 68ch;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--type-h1);
  line-height: 1.02;
  max-width: 18ch;
}

#hero-title {
  color: var(--text);
  position: relative;
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  #hero-title {
    background: var(--gradient-hero, linear-gradient(135deg, #2d5fce 0%, #4a7cff 30%, #7c5dff 60%, #ff6b3d 100%));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .is-ios #hero-title {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
  }

  .is-ios #hero-title::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--gradient-hero, linear-gradient(135deg, #2d5fce 0%, #4a7cff 30%, #7c5dff 60%, #ff6b3d 100%));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

h2 {
  font-size: var(--type-h2);
  line-height: 1.12;
}

h3 {
  font-size: var(--type-h3);
  line-height: 1.18;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--s-3);
  padding: 6px 14px;
  border: 1px solid rgba(74, 124, 255, 0.2);
  border-radius: 999px;
  background: rgba(74, 124, 255, 0.06);
  color: var(--accent);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  margin-top: var(--s-3);
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.52;
}

.hero-shell {
  max-width: 920px;
}

.hero-points {
  margin-top: var(--s-4);
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 64ch;
}

.hero-points li {
  position: relative;
  padding-left: 16px;
  color: #43536d;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-warm);
}

.hero-actions {
  margin-top: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.hero-link {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition:
    color var(--dur-fast) var(--easing),
    text-decoration-color var(--dur-fast) var(--easing);
}

.hero-link:hover,
.hero-link:focus-visible {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

.hero-scroll-hint {
  margin-top: var(--s-4);
  color: #6c7a90;
  font-size: var(--type-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity var(--dur-base) var(--easing), transform var(--dur-base) var(--easing);
}

body.has-scrolled .hero-scroll-hint {
  opacity: 0;
  transform: translateY(-5px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #c2ccda;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--easing),
    background-color var(--dur-fast) var(--easing),
    color var(--dur-fast) var(--easing),
    transform var(--dur-fast) var(--easing),
    box-shadow var(--dur-fast) var(--easing);
}

.btn:hover {
  border-color: #aab8cb;
  transform: translateY(-1px);
}

.btn-primary {
  border-color: transparent;
  background-color: var(--accent-warm);
  background-image: var(--gradient-btn, linear-gradient(135deg, #ff6b3d 0%, #ff8a5c 100%));
  color: #fff;
  -webkit-text-fill-color: #fff;
  opacity: 1;
  box-shadow: 0 8px 24px rgba(255, 107, 61, 0.28);
}

.btn-primary:hover {
  border-color: transparent;
  background-color: var(--accent-warm-hover);
  background-image: var(--gradient-btn-hover, linear-gradient(135deg, #e85a2e 0%, #ff7a4a 100%));
  box-shadow: 0 12px 32px rgba(255, 107, 61, 0.38);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.9;
  cursor: not-allowed;
}

.btn-secondary {
  color: #33445f;
}

.btn-secondary:hover {
  background: var(--surface-tint);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: #364763;
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: var(--type-small);
}

.card {
  border: 1px solid rgba(220, 228, 239, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(15, 23, 41, 0.03), 0 8px 24px rgba(15, 23, 41, 0.05);
  padding: clamp(24px, 3vw, 32px);
  transition:
    border-color var(--dur-base) var(--easing),
    box-shadow var(--dur-base) var(--easing),
    transform var(--dur-base) var(--easing);
}

.graphic-svg {
  width: 100%;
  height: auto;
}

.graphic-icon {
  width: 22px;
  height: 22px;
}

.system-grid,
.promise-grid,
.trust-grid,
.services-grid,
.projects-grid,
.delivery-grid {
  align-items: stretch;
}

.system-diagram-card {
  grid-column: span 7;
  display: grid;
  gap: var(--s-2);
}

.system-diagram-wrap {
  position: relative;
  border: 1px solid #c8d5e5;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: var(--s-3);
}

.system-diagram {
  color: #4f6480;
}

.system-diagram .diag-line {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  stroke-linecap: round;
  transition: stroke-dashoffset 700ms var(--easing);
}

.system-diagram.is-visible .diag-line {
  stroke-dashoffset: 0;
}

.diagram-hotspot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 1px solid rgba(74, 124, 255, 0.42);
  border-radius: 999px;
  background: rgba(74, 124, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.09);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--easing), box-shadow var(--dur-fast) var(--easing);
}

.diagram-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 6px rgba(74, 124, 255, 0.14);
}

.diagram-hotspot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--accent);
}

.diagram-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 200px;
  max-width: 280px;
  border: 1px solid #c8d5e5;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  color: #41516d;
  font-size: var(--type-small);
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition: opacity var(--dur-fast) var(--easing);
  pointer-events: none;
}

.diagram-tooltip.show {
  opacity: 1;
}

.system-info-grid {
  grid-column: span 5;
  display: grid;
  gap: var(--s-3);
}

.system-info-card {
  display: grid;
  gap: 10px;
}

.system-note {
  color: var(--muted);
  font-size: var(--type-small);
}

.system-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.system-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
}

.system-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.promise-card,
.trust-item,
.project-card,
.delivery-card {
  grid-column: span 4;
  display: grid;
  gap: 10px;
}

.promise-card,
.trust-item {
  position: relative;
  overflow: hidden;
}

.promise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(124, 93, 255, 0.7) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}

.trust-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(124, 93, 255, 0.8) 0%, var(--accent) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}

.promise-card:hover,
.trust-item:hover,
.project-card:hover,
.delivery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 124, 255, 0.2);
  box-shadow: var(--gradient-card-glow);
}

.promise-card p,
.trust-item p,
.project-card p,
.delivery-card p {
  color: var(--muted);
}

.promise-proof,
.trust-proof {
  color: #4d5f7c;
  font-size: var(--type-small);
  border-top: 1px solid rgba(220, 228, 239, 0.5);
  padding-top: 8px;
}

.services-grid {
  row-gap: var(--s-3);
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
}

.service-card {
  grid-column: span 6;
  display: grid;
  gap: 10px;
  transition:
    transform var(--dur-fast) var(--easing),
    border-color var(--dur-fast) var(--easing),
    box-shadow var(--dur-fast) var(--easing);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 124, 255, 0.25);
  box-shadow: var(--gradient-card-glow);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.12) 0%, rgba(124, 93, 255, 0.08) 100%);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.service-card p {
  color: var(--muted);
}

.service-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(74, 124, 255, 0.15);
  border-radius: 999px;
  background: rgba(74, 124, 255, 0.04);
  color: var(--accent);
  font-size: var(--type-small);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--easing), border-color var(--dur-fast) var(--easing);
}

.service-toggle:hover {
  background: rgba(74, 124, 255, 0.08);
  border-color: rgba(74, 124, 255, 0.25);
}

.service-toggle::after {
  content: '＋';
  font-size: 20px;
  line-height: 1;
}

.service-card.is-open .service-toggle::after {
  content: '−';
}

.service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--easing), opacity var(--dur-base) var(--easing);
}

.service-card.is-open .service-details {
  max-height: 320px;
  opacity: 1;
}

.service-label {
  margin-top: 8px;
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #50607a;
}

.service-deliverables {
  list-style: none;
  display: grid;
  gap: 8px;
}

.service-deliverables li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: var(--type-small);
}

.service-deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.service-impact {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: #4d5f7c;
  font-size: var(--type-small);
}

.service-impact span {
  font-weight: 500;
  color: #364b66;
  margin-right: 4px;
}

.project-context,
.project-line,
.delivery-line,
.case-line {
  color: var(--muted);
  font-size: var(--type-small);
}

.case-context {
  color: #42526d;
  font-size: var(--type-small);
}

.delivery-line span,
.case-line span {
  font-weight: 500;
  color: #364b66;
  margin-right: 4px;
}

.process-list {
  margin: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
  position: relative;
  isolation: isolate;
}

.process-list::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
  border-radius: 999px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.process-item {
  counter-increment: step;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  border: 1px solid rgba(220, 228, 239, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 253, 255, 0.94) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 4px rgba(15, 23, 41, 0.03), 0 4px 16px rgba(15, 23, 41, 0.04);
  padding: 18px;
  margin-bottom: 14px;
  transition:
    border-color var(--dur-base) var(--easing),
    box-shadow var(--dur-base) var(--easing),
    transform var(--dur-base) var(--easing);
}

.process-item:last-child {
  margin-bottom: 0;
}

.process-item:hover {
  border-color: rgba(74, 124, 255, 0.2);
  box-shadow: var(--gradient-card-glow);
  transform: translateX(4px);
}

.process-marker {
  width: 58px;
}

.process-item::before,
.process-item::after,
.process-marker::before,
.process-marker::after {
  display: none !important;
  content: none !important;
}

.process-index {
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.12) 0%, rgba(124, 93, 255, 0.08) 100%);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.process-index::before {
  content: counter(step);
}

.process-body {
  display: grid;
  gap: 8px;
}

.process-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.process-heading h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.process-icon {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.12) 0%, rgba(124, 93, 255, 0.08) 100%);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.process-body p {
  color: var(--muted);
}

.process-output {
  font-size: var(--type-small);
  color: #4b5f79;
}

.process-output span {
  font-weight: 500;
  color: #364b66;
  margin-right: 4px;
}

.cases-shell {
  display: grid;
  gap: var(--s-3);
}

.cases-carousel {
  overflow: hidden;
  border-radius: var(--radius);
}

.cases-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0;
  scrollbar-width: none;
}

.cases-track::-webkit-scrollbar {
  display: none;
}

.case-card {
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  min-height: 100%;
}

.case-thumb {
  border: 1px solid #cdd9e8;
  border-radius: var(--radius-sm);
  background: #edf3fb;
  color: #5a6e88;
  padding: 10px;
}

.case-thumb .bar,
.case-thumb .flow,
.case-thumb .trend {
  transform: none;
  opacity: 1;
  transition: opacity 220ms var(--easing);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

.carousel-arrows {
  display: inline-flex;
  gap: 8px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #c2cfde;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #344861;
  font-size: 20px;
  cursor: pointer;
}

.carousel-arrow:disabled {
  border-color: var(--border);
  color: #8b97ab;
  background: #f0f4fa;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #b7c4d4;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--easing), background-color var(--dur-fast) var(--easing);
}

.carousel-dot.is-active {
  transform: scale(1.35);
  background: var(--accent-warm);
}

.contact-cta {
  max-width: 820px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border-color: rgba(74, 124, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(74, 124, 255, 0.06) 50%, rgba(124, 93, 255, 0.04) 100%);
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  border-radius: var(--radius) var(--radius) 0 0;
}

.contact-cta-title {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.12;
  font-weight: 500;
}

.contact-cta-text {
  color: var(--muted);
  max-width: 62ch;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 16px;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 30, 58, 0.52);
}

.contact-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(740px, calc(100% - 8px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  border-radius: var(--radius-lg);
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #4e5c72;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-dialog h3 {
  margin: 0 56px 10px 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  color: var(--text);
  display: inline-block;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .contact-modal-dialog h3 {
    background: var(--gradient-hero);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text);
  }
}

.contact-modal-text {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  max-width: 58ch;
}

.contact-next {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  padding: 10px 12px;
}

.contact-next summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.contact-next summary::-webkit-details-marker {
  display: none;
}

.contact-next p {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--type-small);
}

.contact-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  color: #44536d;
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-row input:not([type='checkbox']):not([type='radio']),
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  padding: 14px 16px;
}

.form-row input:not([type='checkbox']):not([type='radio'])::placeholder,
.form-row textarea::placeholder {
  color: #8a95a7;
}

.form-row input:not([type='checkbox']):not([type='radio']):focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: rgba(74, 124, 255, 0.5);
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
}

.form-row-consent {
  margin-top: 2px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}

.consent-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 auto;
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-label a:hover {
  color: var(--accent-hover);
}

.form-hint {
  color: var(--muted);
  font-size: var(--type-small);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn {
  justify-self: start;
  min-width: 240px;
}

.status {
  display: none;
  border: 1px solid rgba(15, 120, 76, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(15, 120, 76, 0.08);
  color: #0d6f49;
  padding: 10px 12px;
  font-size: var(--type-small);
  line-height: 1.45;
}

.status.show {
  display: block;
}

.status.error {
  border-color: rgba(184, 44, 44, 0.35);
  background: rgba(184, 44, 44, 0.1);
  color: #8f2727;
}

.status-action {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: var(--accent);
  text-decoration: underline;
}

.auth-main .section-hero {
  padding-top: calc(var(--s-7) + 14px);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: var(--s-3);
  align-items: start;
}

.auth-card h1 {
  max-width: 14ch;
}

.auth-note {
  max-width: 62ch;
}

.auth-form {
  margin-top: 12px;
}

.auth-error {
  margin-top: 12px;
}

.auth-list {
  margin-top: 12px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.auth-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
}

.auth-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.policy {
  display: grid;
  gap: var(--s-4);
}

.policy .lead {
  margin-top: 0;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.policy-card {
  display: grid;
  gap: 10px;
}

.policy-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.policy-card li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
}

.policy-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.policy-card p {
  color: var(--muted);
}

.site-footer {
  border-top: none;
  background: linear-gradient(180deg, transparent 0%, rgba(240, 245, 251, 0.6) 100%);
}

.footer-inner {
  padding: var(--s-6) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
}

.footer-meta {
  display: grid;
  gap: 8px;
}

.brand-compact .mark {
  width: 48px;
  height: 48px;
}

.fine {
  color: var(--muted);
  font-size: var(--type-small);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links a {
  color: #3b4d6a;
  font-size: var(--type-small);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color var(--dur-fast) var(--easing), text-decoration-color var(--dur-fast) var(--easing);
}

.footer-links a:hover {
  color: var(--accent-warm);
  text-decoration-color: currentColor;
}

.cookie-banner {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 70;
  border: 1px solid rgba(220, 228, 239, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(15, 23, 41, 0.1);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cookie-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 72ch;
}

.cookie-copy a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--easing), transform var(--dur-slow) var(--easing);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-reveal-delay='1'] {
  transition-delay: 80ms;
}

[data-reveal][data-reveal-delay='2'] {
  transition-delay: 160ms;
}

[data-reveal][data-reveal-delay='3'] {
  transition-delay: 240ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .system-diagram-card,
  .system-info-grid,
  .service-card,
  .policy-card {
    grid-column: 1 / span 12;
  }

  .promise-card,
  .trust-item,
  .project-card,
  .delivery-card {
    grid-column: span 6;
  }
}

@media (max-width: 1180px) {
  .section {
    scroll-margin-top: 150px;
  }

  .site-header-wrap {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 84px;
    padding: 8px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 4;
    display: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 8px;
    gap: 6px;
    justify-content: flex-start;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .header-controls {
    justify-content: flex-start;
    grid-column: 1 / -1;
    order: 5;
    width: 100%;
  }

  .page {
    padding-top: 136px;
  }

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

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

@media (max-width: 760px) {
  .hero-shell[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section {
    scroll-margin-top: 176px;
  }

  .wrap {
    width: calc(100% - 24px);
  }

  .section {
    padding: var(--s-7) 0;
  }

  .section-hero {
    padding-top: var(--s-4);
  }

  .wordmark span,
  .language-switch label {
    display: none;
  }

  .language-switch {
    min-height: 36px;
    padding: 0 8px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-modal {
    padding: 8px;
  }

  .contact-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: var(--radius);
  }

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

  .promise-card,
  .trust-item,
  .project-card,
  .delivery-card,
  .case-card {
    grid-column: 1 / -1;
  }

  .process-item {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 14px;
  }

  .process-list::before {
    left: 34px;
  }

  .process-heading h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .cases-track {
    grid-auto-columns: 100%;
  }

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

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .section {
    scroll-margin-top: 188px;
  }

  .page {
    padding-top: 122px;
  }

  .brand {
    min-width: 0;
  }

  .mark {
    width: 48px;
    height: 48px;
  }

  .wordmark strong {
    font-size: 18px;
  }

  .header-controls {
    gap: 6px;
  }

  .btn-small,
  .menu-toggle {
    min-height: 36px;
    font-size: 13px;
    padding: 0 10px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-marker {
    width: auto;
  }

  .process-list::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .bgfx::before,
  .bgfx::after {
    animation: none;
  }
}
