:root {
  --header-height: 68px;
  --navy: rgb(5, 24, 40);
  --navy-2: #0b3048;
  --ink: rgb(5, 24, 40);
  --muted: #60717b;
  --paper: #f6f8f7;
  --mist: #edf3f3;
  --line: #d6dee1;
  --white: #ffffff;
  --red: #d73d52;
  --red-deep: #b8293f;
  --teal: #438b90;
  --sage: #718673;
  --gold: #d6b36d;
  --shadow: 0 22px 60px rgba(5, 24, 40, 0.12);
  --container: 1240px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 28px;
  --space-xl: 40px;
  --space-section: clamp(52px, 4.8vw, 72px);
  --space-section-compact: clamp(44px, 4vw, 60px);
  --type-hero: clamp(42px, 4.8vw, 68px);
  --type-page: clamp(32px, 3.4vw, 46px);
  --type-section: clamp(30px, 2.8vw, 40px);
  --type-subsection: clamp(20px, 1.7vw, 25px);
  --type-body: 16px;
  --type-small: 13px;
  --font-ja-body: "Noto Sans JP";
  --font-ja-title: "Noto Sans JP";
  --font-en-body: "Roboto";
  --font-en-title: "Open Sans";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ja-body), sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip;
  font-synthesis-weight: none;
}

html.intro-active,
body.intro-active {
  overflow: hidden;
  touch-action: none;
}

html.skip-intro .site-intro {
  display: none !important;
}

html.skip-intro,
html.skip-intro body.intro-active {
  overflow: auto !important;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  color: var(--white);
  background: #000;
  opacity: 1;
}

.site-intro.is-ending {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-intro__frame {
  position: absolute;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #000;
}

.site-intro__montage,
.site-intro__catch,
.site-intro__fade-black,
.site-intro__vignette,
.site-intro__tint,
.site-intro__mobility-tint,
.site-intro__flash {
  position: absolute;
  inset: 0;
}

/* Bento-style asymmetric mosaic: shared proportions with .home-hero__media so the
   opening animation's last frame and the Hero section line up exactly. */
.site-intro__scenes {
  position: absolute;
  inset: 6%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-intro__scene-row {
  display: flex;
  gap: 10px;
  min-height: 0;
}

.site-intro__scene-row--top {
  flex: 0 0 58%;
}

.site-intro__scene-row--bottom {
  flex: 1;
}

.site-intro__scene-row--top #introScene1,
.site-intro__scene-row--bottom #introScene3 {
  flex: 1.55;
}

.site-intro__scene-row--top #introScene2 {
  flex: 1;
}

.site-intro__scene-row--bottom #introScene4,
.site-intro__scene-row--bottom #introScene5 {
  flex: 1;
}

.site-intro__scene {
  position: relative;
  overflow: hidden;
  opacity: 0;
  border-radius: 0;
  background: #111;
}

.site-intro__scene > img,
.site-intro__montage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: center center;
}

.site-intro__scene > img {
  filter: contrast(1.04) saturate(0.88);
}

.site-intro__glow,
.site-intro__led,
.site-intro__inner-sweep,
.site-intro__transition-sweep,
.site-intro__road-streak,
.site-intro__flash {
  display: none;
}

.site-intro__vignette {
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.site-intro__tint {
  background: rgba(0, 0, 0, 0.18);
}

.site-intro__mobility-tint {
  background: linear-gradient(180deg, rgba(20, 40, 60, 0.15), rgba(0, 0, 0, 0.35));
}

.site-intro__glow {
  position: absolute;
  top: 34%;
  left: 50%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 150, 0.9), rgba(255, 140, 60, 0.35) 40%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.site-intro__led {
  position: absolute;
  top: 55%;
  left: 70%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7cff9e;
  box-shadow: 0 0 12px 4px rgba(124, 255, 158, 0.85);
  pointer-events: none;
}

.site-intro__inner-sweep,
.site-intro__transition-sweep {
  position: absolute;
  top: -40%;
  left: -40%;
  height: 180%;
  transform: skewX(-16deg);
  opacity: 0;
  pointer-events: none;
}

.site-intro__inner-sweep {
  width: 26%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35) 50%, transparent);
}

.site-intro__transition-sweep {
  z-index: 12;
  width: 30%;
  transform: skewX(-18deg);
}

.site-intro__road-streak {
  position: absolute;
  left: -20%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0;
  pointer-events: none;
}

.site-intro__flash {
  background: rgba(255, 200, 140, 0);
  pointer-events: none;
}

.site-intro__fade-black {
  z-index: 11;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.site-intro__montage {
  z-index: 9;
  overflow: hidden;
  opacity: 0;
}

.site-intro__montage > img {
  filter: contrast(1.15) saturate(1.1) brightness(1.02);
}

.site-intro__catch {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.64);
}

.site-intro__catch-jp {
  font-family: var(--font-ja-title), sans-serif;
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow: none;
  opacity: 0;
  transform: translateY(20px);
}

.site-intro__catch-rule {
  width: 60px;
  height: 2px;
  margin: 22px auto 0;
  background: #c8102e;
  opacity: 0;
}

.site-intro__catch-en {
  margin-top: 0.9em;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-en-title), sans-serif;
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(16px);
}

.site-intro__scroll {
  position: absolute;
  bottom: 5%;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  pointer-events: none;
}

.site-intro__scroll svg {
  transition: transform 240ms ease;
}

.site-intro__scroll:hover svg,
.site-intro__scroll:focus-visible svg {
  transform: translateY(3px);
}

body.intro-active .home-hero {
  transform: scale(1.018);
}

body.intro-revealing .home-hero {
  transform: scale(1);
  transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-intro__scroll span {
  font-family: var(--font-en-body), sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.site-intro__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: min(34vw, 480px);
  min-width: 220px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

.site-intro__logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-intro__light {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 62%);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-intro__sweep {
  position: absolute;
  top: -40%;
  left: -60%;
  z-index: 7;
  width: 34%;
  height: 180%;
  background: linear-gradient(
    115deg,
    transparent,
    rgba(255, 255, 255, 0.55) 50%,
    transparent
  );
  opacity: 0;
  transform: skewX(-20deg);
  pointer-events: none;
}

.site-intro__skip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 9;
  min-height: 34px;
  padding: 7px 15px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--font-en-body), sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-intro__skip:hover,
.site-intro__skip:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

body::selection {
  color: var(--white);
  background: var(--red);
}

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

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

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

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  background: rgba(247, 245, 239, 0.88);
  border-bottom: 1px solid rgba(5, 24, 40, 0.1);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--teal), var(--gold));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.95);
  box-shadow: 0 14px 42px rgba(5, 24, 40, 0.11);
}

.header-inner {
  width: calc(100% - 32px);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
}

.brand {
  width: 214px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin-left: auto;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.main-nav > a,
.nav-group > a {
  min-height: 68px;
  display: inline-flex;
  position: relative;
  align-items: center;
  white-space: nowrap;
}

.main-nav > a::after,
.nav-group > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.main-nav > a:hover::after,
.nav-group:hover > a::after,
.nav-group:focus-within > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 58px;
  left: -18px;
  width: 260px;
  padding: 10px;
  border: 1px solid rgba(5, 24, 40, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 12px 13px;
  color: var(--muted);
  border-radius: 4px;
  font-size: 13px;
}

.nav-dropdown a:hover {
  color: var(--navy);
  background: var(--mist);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

section[id] {
  scroll-margin-top: 88px;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-ja-title), sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: var(--type-section);
}

h3 {
  font-size: var(--type-subsection);
}

.home-hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transform-origin: center top;
  transition:
    transform 800ms cubic-bezier(0.45, 0, 0.18, 1),
    opacity 680ms cubic-bezier(0.45, 0, 0.18, 1);
}

.home-content {
  position: relative;
  z-index: 1;
  background: var(--paper);
  transform: translate3d(0, 0, 0);
  transition: transform 800ms cubic-bezier(0.45, 0, 0.18, 1);
}

body.hero-snap-starting .home-hero {
  opacity: 0.995;
  transform: translate3d(0, -7px, 0) scale(1.002);
  transition-duration: 100ms;
  transition-timing-function: cubic-bezier(0.42, 0, 1, 1);
}

body.hero-snap-starting .home-content {
  transform: translate3d(0, -3px, 0);
  transition-duration: 100ms;
  transition-timing-function: cubic-bezier(0.42, 0, 1, 1);
}

body.hero-snap-hidden .home-hero {
  opacity: 0.88;
  transform: translate3d(0, -100%, 0) scale(1.01);
}

body.hero-snap-hidden .home-content {
  transform: translate3d(0, var(--hero-snap-offset, 0px), 0);
}

body.hero-snap-transitioning .home-hero,
body.hero-snap-transitioning .home-content {
  will-change: transform, opacity;
}

body.hero-snap-returning .home-hero,
body.hero-snap-returning .home-content {
  transition-duration: 860ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

body.hero-snap-no-transition .home-hero,
body.hero-snap-no-transition .home-content {
  transition: none !important;
}

.home-hero__media,
.home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-hero__media {
  inset: 6%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-hero__media::after {
  content: none;
}

.home-hero__shade {
  z-index: -1;
  background: rgba(0, 0, 0, 0.64);
}

.home-hero__tile-row {
  display: flex;
  gap: 10px;
  min-height: 0;
}

.home-hero__tile-row--top {
  flex: 0 0 58%;
}

.home-hero__tile-row--bottom {
  flex: 1;
}

.home-hero__tile--1,
.home-hero__tile--3 {
  flex: 1.55;
}

.home-hero__tile--2,
.home-hero__tile--4,
.home-hero__tile--5 {
  flex: 1;
}

.home-hero__tile {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}

.home-hero__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.88);
}

.home-hero__inner {
  height: 100%;
  min-height: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0;
}

.home-hero__copy {
  width: min(100%, 900px);
  justify-self: center;
  padding: 0;
  text-align: center;
}

.home-hero .section-label {
  color: rgba(255, 255, 255, 0.72);
}

.home-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.home-hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-slogan__rule {
  width: 60px;
  height: 2px;
  margin: 22px auto 0;
  background: #c8102e;
}

.home-hero .hero-slogan__sub {
  margin: 0.9em 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-en-title), sans-serif;
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.button-primary,
.button-text,
.submit-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.button-primary {
  padding: 0 24px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(215, 61, 82, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button-primary:hover {
  background: #bd3348;
  box-shadow: 0 20px 42px rgba(215, 61, 82, 0.32);
  transform: translateY(-2px);
}

.button-text {
  gap: 12px;
  color: var(--white);
}

.button-text::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.button-text:hover::after {
  transform: translateX(6px);
}

.hero-gallery {
  display: none;
  min-height: 390px;
  position: relative;
}

.hero-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.35s ease;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
}

.hero-frame figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-frame figcaption span {
  color: var(--gold);
}

.hero-frame--large {
  top: 4%;
  right: 4%;
  width: min(74%, 460px);
  height: 245px;
}

.hero-frame--small {
  top: 50%;
  left: 0;
  width: min(46%, 260px);
  height: 145px;
}

.hero-frame--wide {
  right: 0;
  bottom: 1%;
  width: min(76%, 440px);
  height: 164px;
}

.scroll-cue {
  position: absolute;
  right: 34px;
  bottom: 28px;
  display: grid;
  gap: 12px;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 1px;
  height: 18px;
  background: currentColor;
  animation: scroll-cue 1.35s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: scaleY(0.45); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

.customer-logos {
  padding: 10px 0;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customer-logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.customer-logo-track {
  --logo-scroll-translate: -50%;
  --logo-gap: 20px;
  display: flex;
  width: max-content;
  align-items: center;
  animation: customer-logo-scroll var(--logo-scroll-duration, 120s) linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Normalized logo set: every image shares a 240px-tall canvas with built-in
   side padding, so item width follows the image's natural aspect ratio. */
.customer-logo-item {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-right: var(--logo-gap);
}

.customer-logo-item img {
  width: var(--logo-render-width, auto);
  height: var(--logo-render-height, 56px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.customer-logo-item:hover img {
  transform: scale(1.04);
}

@keyframes customer-logo-scroll {
  to { transform: translate3d(var(--logo-scroll-translate), 0, 0); }
}

.home-intro {
  overflow: hidden;
  background: var(--paper);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

.intro-title h2 {
  max-width: 620px;
}

.intro-copy {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
}

.intro-copy p + p {
  margin-top: var(--space-sm);
}

.intro-signature {
  margin-top: var(--space-md);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-word {
  position: absolute;
  right: -2vw;
  bottom: -0.18em;
  color: rgba(5, 24, 40, 0.045);
  font-size: clamp(76px, 15vw, 220px);
  font-weight: 900;
  line-height: 0.85;
  pointer-events: none;
}

.motion-story {
  background: var(--white);
  overflow: clip;
}

.story-heading {
  width: min(calc(100% - 56px), var(--container));
  margin-right: auto;
  margin-left: max(28px, calc((100% - var(--container)) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.story-heading .section-label {
  margin-bottom: 0;
}

.story-heading h2 {
  max-width: none;
  font-size: var(--type-section);
  line-height: 1.2;
  white-space: nowrap;
}

.story-stack {
  display: grid;
  gap: clamp(26px, 3vw, 40px);
  width: min(calc(100% - 56px), var(--container));
  max-width: 100%;
  margin-top: var(--space-lg);
  margin-right: auto;
  margin-left: auto;
}

.story-panel {
  --panel-bg: #f0f4f2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.68fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transform: translateY(var(--parallax-y, 0));
}

.story-panel > * {
  min-width: 0;
}

.story-panel--reverse {
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.12fr);
}

.story-panel--reverse .story-visual {
  order: 2;
}

/* 16:9 ratio box via padding-bottom so the visual always tracks its column
   width — no reliance on the newer aspect-ratio property. */
.story-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  contain: paint;
  border-radius: 6px;
  background: var(--panel-bg);
}

.story-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transform: scale(1.02);
  transition: transform 0.75s ease, filter 0.45s ease;
  transform-origin: center;
}

.story-panel:hover .story-visual img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.06);
}

/* The whole story block sits inside the standard 1240px container, so the
   copy needs no synthetic gutters — its edges already match the page text. */
.story-copy {
  width: 100%;
  min-width: 0;
  max-width: 680px;
  padding: var(--space-md) 0;
  overflow-wrap: anywhere;
}

.story-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-copy p {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
}

.services-section {
  padding: var(--space-section-compact) 0 var(--space-section);
  background: var(--mist);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  column-gap: clamp(24px, 3.5vw, 44px);
  row-gap: 6px;
  align-items: start;
}

.section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2 {
  font-size: var(--type-section);
}

.section-heading p {
  max-width: 520px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.7;
}

.service-matrix {
  margin-top: 24px;
}

.service-group-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(5, 24, 40, 0.18);
  border-bottom: 1px solid rgba(5, 24, 40, 0.18);
}

.service-group-head:not(:first-child) {
  margin-top: 26px;
}

.service-group-head span {
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-group-head a {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.service-row {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.service-row--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-item {
  min-height: 286px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: var(--space-xs);
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(5, 24, 40, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--teal));
  transition: right 0.32s ease;
}

.service-item:hover {
  border-color: rgba(5, 24, 40, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.service-item:hover::before {
  right: 0;
}

.service-number {
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.service-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--mist);
  filter: saturate(0.8) contrast(1.02);
}

.service-item img.service-item-image--contain {
  padding: 5px 8px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

img.service-media--contain {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.service-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.industries-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(5, 24, 40, 0.98), rgba(8, 50, 65, 0.94)),
    url("service-images/prototype.jpg") center / cover no-repeat;
}

.industries-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 38px);
}

.industries-section h2,
.industries-section h3 {
  color: var(--white);
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.industry-list article {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "number"
    "title"
    "copy";
  align-content: start;
  gap: 14px;
  min-height: 220px;
  padding: clamp(20px, 2.3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  transition: transform 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.industry-list article:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.industry-list span {
  grid-area: number;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.industry-list h3 {
  grid-area: title;
  margin: 0;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.industry-list p {
  grid-area: copy;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.network-section {
  background: var(--paper);
}

.network-headline span {
  display: block;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.office-grid article {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border: 1px solid rgba(5, 24, 40, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 3px 0 var(--teal);
}

.office-grid article span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.office-grid h3 {
  margin: 10px 0;
  font-size: 24px;
}

.office-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.office-grid a {
  margin-top: auto;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact {
  padding: clamp(32px, 3.5vw, 44px) 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgb(5, 24, 40), #0b3048 58%, #123c40);
}

.contact h2,
.contact .section-label {
  color: var(--white);
}

.contact .section-label {
  opacity: 0.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 4vw, 56px);
  align-items: start;
}

.contact-grid > div > p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.contact-info {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.company-name {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.contact-email {
  width: fit-content;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-address-row {
  display: flex;
  max-width: 560px;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.contact-address {
  display: grid;
  min-width: 0;
  gap: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
}

.contact-address > span {
  display: block;
  overflow-wrap: anywhere;
}

.linkedin-link {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  opacity: 0.86;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.linkedin-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.linkedin-link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

form {
  padding: clamp(26px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 2.2vw, 30px);
  row-gap: 18px;
}

label {
  display: grid;
  gap: 3px;
  color: #4d5b61;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid rgba(5, 24, 40, 0.24);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 1px 0 var(--red);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.submit-button {
  padding: 0 26px;
  border: 0;
  color: var(--white);
  background: var(--red);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact .submit-button {
  min-height: 46px;
}

.submit-button:hover {
  background: #bd3348;
  box-shadow: 0 14px 30px rgba(215, 61, 82, 0.26);
  transform: translateY(-2px);
}

.form-message {
  display: none;
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 13px;
}

.site-footer {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.68);
  background: rgb(5, 24, 40);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  color: var(--white);
  font-weight: 800;
}

.detail-page {
  background: var(--paper);
}

.sub-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(5, 24, 40, 0.98), rgba(10, 52, 75, 0.94) 62%, rgba(56, 88, 78, 0.9));
}

.sub-hero__inner {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(390px, 0.72fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: var(--space-section-compact) 0;
}

.sub-hero .section-label,
.sub-hero h1 {
  color: var(--white);
}

.sub-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: var(--type-page);
  line-height: 1.18;
}

.sub-hero p {
  max-width: 700px;
  margin: var(--space-sm) 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--type-body);
  line-height: 1.75;
}

.sub-hero__visual {
  height: 280px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transform: translateY(var(--parallax-y, 0));
}

.sub-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
}

.detail-jump-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(5, 24, 40, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.detail-jump-nav .container {
  display: grid;
}

.detail-jump-nav-six .container {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-jump-nav-three .container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-jump-nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 8px;
  border-left: 1px solid rgba(5, 24, 40, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.detail-jump-nav a:last-child {
  border-right: 1px solid rgba(5, 24, 40, 0.1);
}

.detail-jump-nav a:hover,
.detail-jump-nav a.is-active {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.66);
}

.detail-jump-nav span {
  color: var(--red-deep);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.detail-intro {
  background: var(--white);
}

.detail-intro__grid {
  display: grid;
  grid-template-columns: minmax(620px, 0.95fr) minmax(360px, 0.65fr);
  grid-template-areas:
    "detail-title detail-copy"
    "detail-metrics detail-metrics";
  column-gap: clamp(28px, 3.5vw, 44px);
  row-gap: 24px;
  align-items: center;
}

.detail-intro__grid > div:first-child {
  grid-area: detail-title;
}

.detail-intro__grid > div:last-child {
  display: contents;
}

.detail-intro h2 {
  max-width: 700px;
  font-size: var(--type-section);
  line-height: 1.25;
  text-wrap: balance;
}

.detail-intro .section-label {
  margin-bottom: var(--space-sm);
}

.detail-intro p {
  grid-area: detail-copy;
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
}

.detail-metrics {
  grid-area: detail-metrics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.detail-metrics li {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  background: var(--paper);
}

.detail-metrics b {
  color: var(--red);
  font-size: 26px;
  line-height: 1;
}

.detail-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-detail-section {
  scroll-margin-top: 130px;
  padding: var(--space-section-compact) 0;
  background: var(--paper);
  border-top: 1px solid rgba(5, 24, 40, 0.08);
}

.service-detail-alt {
  background: var(--mist);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.service-detail-layout--reverse .service-detail-visual {
  order: 2;
}

.service-detail-visual {
  position: sticky;
  top: 132px;
  min-height: 350px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe7e5;
  box-shadow: 0 18px 46px rgba(5, 24, 40, 0.12);
  transform: translateY(var(--parallax-y, 0));
}

.service-detail-visual img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
}

.service-detail-visual img.service-media--contain {
  object-fit: contain;
  object-position: center;
}

.service-detail-visual.testing-media {
  min-height: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #081722;
}

.testing-media__primary,
.testing-media__tile {
  position: relative;
  overflow: hidden;
  background: #102735;
}

.testing-media__primary {
  aspect-ratio: 16 / 9;
}

.testing-media__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.testing-media__tile {
  aspect-ratio: 16 / 9;
}

.service-detail-visual.testing-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: none;
}

.testing-media__primary span,
.testing-media__tile span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 10px 8px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(2, 12, 20, 0.82));
  font-family: var(--font-en-body), sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.testing-media__primary span {
  padding: 34px 14px 11px;
  font-size: 12px;
}

.service-detail-copy {
  min-width: 0;
}

.service-detail-number {
  display: inline-flex;
  gap: var(--space-xs);
  align-items: center;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-detail-number::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.service-detail-copy h2 {
  margin-bottom: var(--space-sm);
  font-size: var(--type-section);
}

.service-detail-copy > p {
  max-width: 760px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
}

.design-service .service-detail-layout {
  grid-template-columns: minmax(350px, 0.72fr) minmax(0, 1fr);
}

.design-service .service-detail-visual {
  min-height: 430px;
}

.design-service .service-detail-visual img {
  min-height: 430px;
}

.design-lead {
  max-width: 680px;
  line-height: 1.75;
}

.design-scope,
.design-capabilities {
  margin-top: 24px;
}

.design-block-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 10px;
}

.design-block-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.design-block-heading > span {
  order: 2;
  color: var(--red);
  font-family: var(--font-en-title), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.design-part-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(5, 24, 40, 0.14);
  border-left: 1px solid rgba(5, 24, 40, 0.14);
}

.design-part-grid article {
  min-height: 68px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-content: center;
  gap: var(--space-xs);
  padding: 12px;
  border-right: 1px solid rgba(5, 24, 40, 0.14);
  border-bottom: 1px solid rgba(5, 24, 40, 0.14);
  background: rgba(255, 255, 255, 0.42);
}

.design-part-grid article > span,
.design-capability-list > li > span {
  color: var(--red);
  font-family: var(--font-en-title), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.design-part-grid h4,
.design-capability-list h4 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.55;
}

.design-capability-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(5, 24, 40, 0.14);
  list-style: none;
}

.design-capability-list > li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--space-sm);
  padding: 12px 0;
  border-bottom: 1px solid rgba(5, 24, 40, 0.14);
}

.design-capability-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.design-consultation {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: var(--mist);
}

.design-consultation h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.design-consultation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-consultation li {
  position: relative;
  padding-left: 15px;
  color: var(--navy);
  font-size: 14px;
}

.design-consultation li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.design-consultation p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  margin-top: 22px;
}

.detail-columns h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(5, 24, 40, 0.12);
}

.detail-list li:last-child {
  border-bottom: 1px solid rgba(5, 24, 40, 0.12);
}

.detail-list b {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.65;
}

.detail-list span {
  display: block;
  max-width: 720px;
  line-height: 1.75;
}

.detail-list span,
.detail-challenges {
  color: var(--muted);
  font-size: 15px;
}

.detail-challenges {
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.62);
}

.detail-challenges h3 {
  color: var(--navy);
}

.detail-challenges ul {
  margin: 0;
  padding-left: 1.15em;
}

.detail-challenges li {
  margin: 7px 0;
}

.detail-challenges p {
  margin: 0;
}

.main-nav,
.nav-dropdown,
.button-primary,
.button-text,
.submit-button,
label,
.service-group-head a,
.detail-jump-nav a,
.detail-list b,
.detail-challenges h3,
.footer-links a {
  font-family: var(--font-ja-title), sans-serif;
  font-weight: 500;
}

.section-label,
.hero-frame figcaption,
.scroll-cue,
.intro-signature,
.intro-word,
.story-copy span,
.service-group-head span,
.service-number,
.industry-list span,
.detail-jump-nav span,
.office-grid span,
.office-grid h3,
.service-detail-number,
.detail-metrics b,
.footer-links a {
  font-family: var(--font-en-title), sans-serif;
  font-weight: 600;
}

.detail-metrics span,
.office-grid p,
.office-grid a,
.site-footer,
.footer-links span {
  font-family: var(--font-en-body), sans-serif;
  font-weight: 300;
}

.home-hero p,
.intro-copy,
.story-copy p,
.section-heading p,
.service-item p,
.industry-list p,
.contact-grid p,
.sub-hero p,
.detail-intro p,
.service-detail-copy > p,
.detail-list span,
.detail-challenges,
input,
select,
textarea {
  font-family: var(--font-ja-body), sans-serif;
  font-weight: 300;
}

.js-enhanced .reveal-item {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.78s cubic-bezier(0.2, 0.65, 0.25, 1) var(--reveal-delay, 0ms),
    transform 0.78s cubic-bezier(0.2, 0.65, 0.25, 1) var(--reveal-delay, 0ms);
}

.js-enhanced .reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }

  .home-hero__inner,
  .sub-hero__inner {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    min-height: 500px;
  }

  .section-heading,
  .intro-layout,
  .story-heading,
  .detail-intro__grid,
  .industries-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 28px;
  }

  .detail-intro__grid {
    grid-template-areas:
      "detail-title"
      "detail-copy"
      "detail-metrics";
    row-gap: 24px;
  }

  .story-heading h2 {
    white-space: normal;
  }

  .story-stack {
    width: min(calc(100% - 48px), var(--container));
    margin-right: auto;
    margin-left: auto;
  }

  .story-copy,
  .story-panel--reverse .story-copy {
    max-width: 760px;
    padding-right: 0;
    padding-left: 0;
  }

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

  .service-row--six,
  .service-row--three,
  .office-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-layout,
  .service-detail-layout--reverse {
    grid-template-columns: 1fr;
  }

  .design-service .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .service-detail-layout--reverse .service-detail-visual {
    order: 0;
  }

  .service-detail-visual {
    position: static;
  }

  .design-service .service-detail-visual,
  .design-service .service-detail-visual img {
    min-height: 330px;
  }

  .detail-jump-nav {
    overflow-x: auto;
  }

  .detail-jump-nav .container,
  .detail-jump-nav-six .container,
  .detail-jump-nav-three .container {
    width: max-content;
    min-width: 100%;
  }

  .detail-jump-nav-six .container {
    grid-template-columns: repeat(6, minmax(158px, 1fr));
  }

  .detail-jump-nav-three .container {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .story-panel,
  .story-panel--reverse {
    grid-template-columns: 1fr;
  }

  .story-panel--reverse .story-visual {
    order: 0;
  }
}

@media (max-width: 820px) {
  .site-intro__scenes,
  .home-hero__media {
    inset: 4%;
  }

  .site-intro__scene-row,
  .home-hero__tile-row {
    flex-direction: column;
  }

  .site-intro__scene-row--top,
  .home-hero__tile-row--top {
    flex: 2;
  }

  .site-intro__scene-row--bottom,
  .home-hero__tile-row--bottom {
    flex: 3;
  }

  .site-intro__scene-row--top #introScene1,
  .site-intro__scene-row--top #introScene2,
  .site-intro__scene-row--bottom #introScene3,
  .site-intro__scene-row--bottom #introScene4,
  .site-intro__scene-row--bottom #introScene5,
  .home-hero__tile--1,
  .home-hero__tile--2,
  .home-hero__tile--3,
  .home-hero__tile--4,
  .home-hero__tile--5 {
    flex: 1;
  }

  :root {
    --header-height: 60px;
    --space-section: 44px;
    --space-section-compact: 40px;
    --type-hero: clamp(32px, 9.4vw, 38px);
    --type-page: clamp(28px, 8vw, 34px);
    --type-section: clamp(27px, 7.6vw, 33px);
    --type-subsection: 20px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-intro__catch {
    padding: 0 24px;
  }

  .site-intro__catch-jp {
    font-size: clamp(23px, 7vw, 32px);
  }

  .site-intro__catch-en {
    font-size: clamp(12px, 3.8vw, 17px);
  }

  .site-intro__logo {
    width: min(58vw, 300px);
    min-width: 190px;
  }

  .site-intro__skip {
    right: 14px;
    bottom: 14px;
  }

  .story-heading {
    width: min(calc(100% - 32px), var(--container));
    margin-left: 16px;
  }

  .story-stack {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 60px;
  }

  .brand {
    width: 196px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px 16px 18px;
    background: rgba(247, 245, 239, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 50px rgba(5, 24, 40, 0.12);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav > a,
  .nav-group > a {
    min-height: 44px;
  }

  .main-nav > a::after,
  .nav-group > a::after {
    display: none;
  }

  .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-group:focus-within .nav-dropdown,
  .nav-group:hover .nav-dropdown {
    display: block;
  }

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

  .contact {
    padding: 36px 0;
  }

  .contact-grid {
    gap: 24px;
  }

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

  .section-heading {
    row-gap: 6px;
  }

  .section-heading p {
    margin-top: 0;
    font-size: 16px;
  }

  .service-matrix {
    margin-top: 22px;
  }

  .service-group-head:not(:first-child) {
    margin-top: 26px;
  }

  .service-row {
    gap: 12px;
    margin-top: 12px;
  }

  h2 {
    font-size: var(--type-section);
  }

  .home-hero,
  .home-hero__inner {
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 500px;
  }

  .home-hero__inner {
    align-items: center;
    padding: 0;
  }

  .home-hero h1 {
    font-size: clamp(23px, 7vw, 32px);
  }

  .home-hero h1 span {
    white-space: normal;
  }

  .home-hero .hero-slogan__sub {
    font-size: clamp(12px, 3.8vw, 17px);
  }

  .hero-gallery {
    min-height: 160px;
  }

  .hero-frame--large {
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    height: 160px;
  }

  .hero-frame--small {
    display: none;
  }

  .hero-frame--wide {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .customer-logo-item {
    --logo-gap: 12px;
  }


  .story-heading,
  .story-panel,
  .story-panel--reverse {
    grid-template-columns: 1fr;
  }

  .story-panel--reverse .story-visual {
    order: 0;
  }

  .story-visual,
  .story-visual img {
    min-height: 0;
  }

  .service-row--six,
  .service-row--three,
  .office-grid,
  .form-grid,
  .detail-metrics,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: auto;
    grid-template-rows: auto auto auto 1fr;
    padding: 13px;
  }

  .industry-list article {
    grid-template-columns: 1fr;
    grid-template-areas:
      "number"
      "title"
      "copy";
    gap: 10px;
    min-height: 0;
  }

  .industry-list {
    grid-template-columns: 1fr;
  }

  .office-grid article {
    min-height: 0;
  }

  .full {
    grid-column: auto;
  }

  .footer-inner,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-hero__inner {
    min-height: auto;
    gap: 22px;
    padding: 26px 0;
  }

  .sub-hero h1 {
    font-size: var(--type-page);
  }

  .sub-hero p {
    margin-top: 14px;
    font-size: 16px;
  }

  .sub-hero__visual {
    height: 150px;
  }

  .detail-jump-nav {
    top: 60px;
  }

  .detail-jump-nav a {
    min-height: 48px;
  }

  .service-detail-section {
    scroll-margin-top: 112px;
    padding: var(--space-section-compact) 0;
  }

  .service-detail-visual,
  .service-detail-visual img {
    min-height: 240px;
  }

  .design-service .service-detail-visual,
  .design-service .service-detail-visual img {
    min-height: 240px;
  }

  .design-part-grid {
    grid-template-columns: 1fr;
  }

  .design-part-grid article {
    min-height: 62px;
  }

  .design-block-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .design-block-heading > span {
    order: 0;
  }

  .design-consultation {
    padding: 15px;
  }

  .design-consultation ul {
    display: grid;
    gap: 7px;
  }

  .detail-list li {
    gap: 6px;
  }
}

@media (min-width: 600px) and (max-width: 820px) {
  .service-row--six,
  .service-row--three,
  .office-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .contact-address-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-address {
    font-size: 13px;
  }

  .linkedin-link {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enhanced .reveal-item {
    opacity: 1;
    transform: none;
  }

  body.hero-snap-starting .home-hero,
  body.hero-snap-starting .home-content {
    transition-duration: 80ms !important;
  }

  body.hero-snap-transitioning:not(.hero-snap-starting) .home-hero,
  body.hero-snap-transitioning:not(.hero-snap-starting) .home-content {
    transition-duration: 480ms !important;
  }

  .customer-logo-track {
    animation-duration: var(--logo-scroll-duration, 120s) !important;
    animation-iteration-count: infinite !important;
  }

}

/* Links to the German and English websites. */
.language-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.language-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  border-radius: 4px;
}
.language-links img { display: block; width: 28px; height: auto; }
.language-links a:hover { background: var(--mist); }
.language-links a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (min-width: 821px) and (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .header-inner .brand { width: 170px; }
  .main-nav { gap: 14px; font-size: 12px; }
}
@media (max-width: 820px) {
  .header-inner { gap: 8px; }
  .header-inner .brand { flex: 0 1 196px; min-width: 0; }
  .language-links { margin-left: auto; }
  .menu-toggle { order: 3; flex: 0 0 42px; }
}
