.home-page .site-header:not(.is-scrolled) {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.home-page .site-header.is-scrolled {
  background: #fff;
}

.home-page .site-header:not(.is-scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}

.home-page .site-header:not(.is-scrolled) .global-nav a::after {
  background: #fff;
}

.home-page .site-header:not(.is-scrolled) .header-contact {
  --header-contact-text-color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  color: transparent;
}

.home-page .site-header:not(.is-scrolled) .menu-button span {
  background: #fff;
}

.home-page .site-header:not(.is-scrolled) .header-contact:focus-visible {
  --header-contact-text-color: #fff;
  border-color: #616c86;
  background: #616c86;
  color: transparent;
}

.hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  overflow: hidden;
  background: #02070b;
}

.hero.fade-section {
  transform: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease;
}

.hero-media img.is-active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 94, 104, 0.45), transparent 38%),
    linear-gradient(90deg, transparent 54%, rgba(0, 0, 0, 0.74));
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  right: 88px;
  bottom: 56px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: inherit;
  letter-spacing: 0;
  font-weight: 500;
  line-height: 2.05;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.28);
}

.hero-copy span {
  display: block;
  writing-mode: vertical-rl;
}

.cookie-info-button {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 18px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cookie-info-button:focus-visible {
  transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
  .cookie-info-button:hover {
    transform: scale(1.08);
  }
}

.cookie-info-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.cookie-info-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.cookie-consent {
  position: absolute;
  z-index: 3;
  left: 68px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(580px, calc(100% - 88px));
  min-height: 64px;
  padding: 14px 16px 14px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  pointer-events: none;
}

.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

.cookie-text {
  font-size: 13px;
  line-height: 1.7;
}

.cookie-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-agree {
  min-width: 64px;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.cookie-agree:focus-visible {
  opacity: 0.72;
}

@media (hover: hover) and (pointer: fine) {
  .cookie-agree:hover {
    opacity: 0.72;
  }
}

.cookie-agree:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.service-guide {
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 96px;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  max-width: none;
  margin: 0 auto;
}

.service-tile {
  display: grid;
  align-content: start;
  gap: 20px;
  font-weight: 700;
}

.tile-visual {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-tile-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 48px;
  text-align: center;
}

.service-tile strong {
  font-size: var(--text-large);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.service-tile-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: auto;
  object-fit: contain;
}

.service-tile:focus-visible .service-tile-arrow {
  animation: service-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .service-tile:hover .service-tile-arrow {
    animation: service-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes service-arrow-swap {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  42% {
    opacity: 0;
    transform: translateX(12px);
  }

  43% {
    opacity: 0;
    transform: translateX(-12px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.what-we-do {
  min-height: 559px;
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}

.wedo-logo {
  width: 108px;
  margin: 0 auto 40px;
}

.product-card-more span {
  display: inline-grid;
  place-items: center;
  position: absolute;
  right: 20px;
  overflow: hidden;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #323333;
  color: #fff;
  font-size: 0;
  line-height: 1;
  transition: transform 0.3s ease;
}

.product-card-more span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 10px;
  background: url("../images/common/arrow.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.product-card:focus-visible .product-card-more span {
  transform: scale(1.12);
}

.product-card:focus-visible .product-card-more span::before {
  animation: pill-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card-more span {
    transform: scale(1.12);
  }

  .product-card:hover .product-card-more span::before {
    animation: pill-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.engineering,
.products,
.cases {
  background: var(--soft);
}

.engineering {
  padding-top: 96px;
}

.engineering .narrow {
  margin-bottom: 0;
}

.process-graphic {
  width: 486px;
  margin: 0 auto 40px;
}

.engineering h3 {
  margin: 48px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #b2b2b2;
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.05em;
}

.tech-list {
  display: grid;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.home-sp-break {
  display: none;
}

.tech-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 72px;
  row-gap: 16px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid #b2b2b2;
}

.tech-card img {
  grid-column: 1;
  grid-row: 2 / 4;
  width: 240px;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
}

.tech-card > div {
  display: contents;
}

.eyebrow {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: fit-content;
  margin: 0;
  padding: 0 0.06em;
  color: #616c86;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.025em;
  box-shadow:
    inset 0 -0.07em 0 rgba(255, 255, 255, 0.98),
    inset 0 -0.13em 0 rgba(255, 255, 255, 0.58),
    inset 0 -0.19em 0 rgba(255, 255, 255, 0.24);
}

.tech-card h4,
.tech-card p:not(.eyebrow),
.tech-card .pill-link {
  grid-column: 2;
}

.tech-card h4 {
  grid-row: 1;
  margin: 0;
  padding-top: 6px;
  position: relative;
  font-family: "YakuHanJP", var(--font-ja);
  font-size: var(--text-large);
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.45;
}

.tech-card p:not(.eyebrow) {
  grid-row: 2;
  position: relative;
}

.tech-card .pill-link {
  grid-row: 3;
  align-self: end;
  justify-self: start;
}

.product-card h3,
.case-card h3,
.career-card h3 {
  margin: 0 0 16px;
  font-size: var(--text-base);
  line-height: 1.45;
}

.product-card h3 {
  margin: 0 0 30px;
  font-weight: 500;
  line-height: 30px;
}

.tech-card h4::before {
  content: "";
  position: absolute;
  top: 0.68em;
  right: calc(100% + 16px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.tech-card p:not(.eyebrow),
.product-card p,
.case-card p,
.career-card p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: var(--text-base);
}

.tech-card p:not(.eyebrow)::before {
  content: "";
  position: absolute;
  top: 0.72em;
  right: calc(100% + 16px);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid var(--red);
}

.products {
  padding-top: 0;
}

.cases {
  padding-top: 4px;
}

/* Keep the shared Products/Cases background visible while only the Cases content fades in. */
.home-page .cases.fade-section {
  opacity: 1;
  transform: none;
}

.home-page .cases.fade-section > .section-heading,
.home-page .cases.fade-section > .case-carousel {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-page .cases.fade-section.is-visible > .section-heading,
.home-page .cases.fade-section.is-visible > .case-carousel {
  opacity: 1;
  transform: translateY(0);
}

.career {
  padding-top: 96px;
  padding-bottom: 96px;
}

.products .section-heading,
.cases .section-heading,
.career .section-heading {
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  justify-items: center;
  min-height: 286px;
  padding: 40px 24px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.product-card img {
  width: auto;
  height: 150px;
  object-fit: contain;
  margin-bottom: 24px;
}

.product-card-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 200px;
  min-height: 50px;
  padding: 0 64px 0 24px;
  border: 1px solid #b2b2b2;
  border-radius: 999px;
  background: #fff;
  margin-top: auto;
  font-size: var(--text-base);
  font-weight: 700;
}

.product-card .red { background: var(--red); }
.product-card .gold { background: #a99f20; }
.product-card .violet { background: #4839eb; }
.product-card .black { background: #363a3d; }

.case-carousel {
  position: relative;
  --case-carousel-pad: 54px;
  --case-arrow-size: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--case-carousel-pad);
}

.case-window {
  overflow: hidden;
}

.case-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 40px;
}

.case-pagination-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #616c86;
  cursor: pointer;
}

.case-pagination-dot.is-active {
  background: #323333;
}

.case-pagination-dot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.case-track {
  display: flex;
  gap: 64px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.case-card {
  display: flex;
  flex: 0 0 calc((100% - 128px) / 3);
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.case-card:focus-visible {
  border-radius: 12px;
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.case-card h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.case-card p:first-of-type {
  color: #616c86;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-bottom: 16px;
  border-bottom: 1px solid #b2b2b2;
}

.case-card p:not(:first-of-type) {
  line-height: 1.75;
  text-align: left;
}

.case-card-more {
  align-self: center;
  margin-top: auto;
}

.case-card-media {
  display: block;
  width: 344px;
  max-width: 100%;
  height: 258px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 24px;
}

.case-card-placeholder {
  background: #fff;
}

.arrow {
  position: absolute;
  top: var(--case-arrow-top, 28%);
  z-index: 2;
  overflow: hidden;
  width: var(--case-arrow-size);
  height: var(--case-arrow-size);
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 10px;
  background: url("../images/common/arrow.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.prev::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.next::before {
  transform: translate(-50%, -50%);
}

.arrow:not(:disabled):focus-visible {
  transform: scale(1.12);
}

.arrow:disabled {
  background: #b9bbbd;
  cursor: default;
  opacity: 1;
  transform: none;
}

.prev:not(:disabled):focus-visible::before {
  animation: case-arrow-swap-prev 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.next:not(:disabled):focus-visible::before {
  animation: pill-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .arrow:not(:disabled):hover {
    transform: scale(1.12);
  }

  .prev:not(:disabled):hover::before {
    animation: case-arrow-swap-prev 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .next:not(:disabled):hover::before {
    animation: pill-arrow-swap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes case-arrow-swap-prev {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) translateX(0);
  }

  42% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg) translateX(12px);
  }

  43% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg) translateX(-12px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-more span,
  .arrow,
  .cookie-info-button,
  .cookie-consent,
  .cookie-agree {
    transition: none;
  }

  .product-card:focus-visible .product-card-more span,
  .arrow:not(:disabled):focus-visible {
    transform: none;
  }

  .product-card:focus-visible .product-card-more span::before,
  .prev:not(:disabled):focus-visible::before,
  .next:not(:disabled):focus-visible::before,
  .service-tile:focus-visible .service-tile-arrow {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card-more span,
  .arrow:not(:disabled):hover {
    transform: none;
  }

  .product-card:hover .product-card-more span::before,
  .prev:not(:disabled):hover::before,
  .next:not(:disabled):hover::before,
  .service-tile:hover .service-tile-arrow {
    animation: none;
  }
}

.prev {
  left: calc(var(--case-carousel-pad) - (var(--case-arrow-size) / 2));
}

.next {
  right: calc(var(--case-carousel-pad) - (var(--case-arrow-size) / 2));
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  width: min(1144px, 100%);
  max-width: 1144px;
  margin: 0 auto;
}

.career-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  padding: 36px;
  border-radius: 12px;
  background: var(--soft);
}

.career-card h3 {
  justify-self: center;
  width: fit-content;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-align: center;
}

.career-card h3 span {
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow:
    inset 0 -0.07em 0 rgba(255, 255, 255, 0.98),
    inset 0 -0.13em 0 rgba(255, 255, 255, 0.58),
    inset 0 -0.19em 0 rgba(255, 255, 255, 0.24);
}

.career-card .pill-link {
  display: flex;
  align-self: end;
  margin-left: auto;
  margin-top: auto;
}

.career-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.career-card > div {
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
}

.final-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 576px;
  height: calc(100vw * 640 / 1440);
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.final-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta div {
  position: relative;
  z-index: 2;
}

.final-cta p {
  margin: 0 0 24px;
  font-size: 32px;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.light {
  width: 260px;
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.light span {
  background: #fff;
}

.light span::before {
  filter: invert(1);
}

.light:focus-visible span {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .light:hover span {
    transform: none;
  }
}

@media (max-width: 1160px) {
  .hero {
    height: 100svh;
    min-height: 0;
  }

  .service-tile-label {
    padding: 0;
  }

  .service-grid {
    gap: 22px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 550px;
  }

  .career-grid {
    max-width: 550px;
    gap: 20px;
  }

  .career-card {
    padding: 36px 24px;
  }

  .career-card > div {
    margin-top: -8px;
  }

  .career-card .pill-link {
    justify-self: center;
    margin-right: auto;
    margin-left: auto;
  }

  .career-card p {
    font-size: 13px;
    line-height: 25px;
  }

  .product-card {
    padding: 32px 24px;
  }

  .product-card h3 {
    margin-bottom: 18px;
    line-height: 26px;
  }

  .product-card-more {
    width: 176px;
    min-height: 44px;
  }

  .case-track {
    gap: 36px;
  }

  .case-card {
    flex-basis: calc((100% - 72px) / 3);
  }

  .case-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .case-card p:not(:first-of-type) {
    font-size: 13px;
    letter-spacing: 0.025em;
  }

  .case-card p:first-of-type {
    font-size: 10px;
  }

  .wedo-logo {
    width: 93px;
    margin-bottom: 12px;
  }

  .product-card-more span {
    width: 32px;
    height: 32px;
  }

  .process-graphic {
    width: 400px;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .tech-list {
    max-width: 550px;
  }

  .tech-card {
    grid-template-columns: 200px 1fr;
    padding-bottom: 28px;
  }

  .tech-card img {
    width: 200px;
    height: auto;
  }

  .final-cta {
    min-height: 370px;
  }

  .final-cta p {
    font-size: 20px;
  }

  .cases {
    padding-top: 0;
  }

  .service-guide {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .case-card h3 {
    font-size: 16px;
  }

  .career-card h3 {
    font-size: 16px;
  }

  .engineering h3,
  .eyebrow {
    font-size: 20px;
  }

  .tech-card h4 {
    font-size: 17px;
  }

  .light {
    width: 228px;
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1160px) {
  .hero-copy {
    right: 72px;
    bottom: 56px;
    font-size: 26px;
  }

  .home-page .section-heading > span {
    margin-bottom: 8px;
  }

  .home-page .what-we-do {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .home-page .wedo-logo {
    margin-bottom: 32px;
  }

  .home-page .engineering {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .home-page .contact {
    padding-top: 64px;
  }

  .home-page .products {
    padding-bottom: 64px;
  }

  .home-page .career {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 900px) {
  .arrow {
    top: var(--case-arrow-top, 28%);
  }

  .prev {
    left: calc(var(--case-carousel-pad) - (var(--case-arrow-size) / 2));
  }

  .next {
    right: calc(var(--case-carousel-pad) - (var(--case-arrow-size) / 2));
  }
}

@media (max-width: 767px) {
  .cookie-info-button {
    left: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 56px;
    grid-template-columns: 1fr;
    gap: 12px;
    width: auto;
    padding: 16px;
  }

  .cookie-agree {
    justify-self: end;
    min-height: 28px;
  }

  .cookie-agree:focus-visible {
    outline: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .product-card h3 br {
    display: none;
  }

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

  .case-carousel {
    --case-carousel-pad: 18px;
    max-width: 420px;
  }

  .case-card {
    flex-basis: 100%;
  }

  .tech-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }

  .tech-card img,
  .eyebrow,
  .tech-card h4,
  .tech-card p:not(.eyebrow),
  .tech-card .pill-link {
    grid-column: 1;
    grid-row: auto;
  }

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

  .hero-copy {
    right: 22px;
    bottom: 32px;
    gap: 0;
    font-size: var(--text-large);
    letter-spacing: 0.1em;
  }

  .final-cta p {
    font-size: var(--text-large);
    letter-spacing: 0.1em;
  }

  .home-page .section {
    width: 100%;
    padding: 56px 24px;
  }

  .home-page .section-heading {
    margin-bottom: 32px;
  }

  .home-page .section-title {
    font-size: 24px;
  }

  .home-page .service-guide {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .home-page .service-grid {
    gap: 20px;
  }

  .home-page .service-tile {
    gap: 20px;
  }

  .home-page .service-tile-label {
    gap: 8px;
  }

  .home-page .service-tile strong {
    font-size: 14px;
    line-height: 1.6;
  }

  .home-page .what-we-do {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .home-page .wedo-logo {
    width: 93px;
    margin-bottom: 20px;
  }

  .home-page .lead {
    padding-right: 24px;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.9;
  }

  .home-page .pill-link {
    width: fit-content;
    min-width: 176px;
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }

  .home-page .pill-link span {
    width: 28px;
    height: 28px;
  }

  .home-page .engineering {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home-page .process-graphic {
    width: 240px;
    margin-bottom: 32px;
  }

  .home-page .engineering h3 {
    margin-top: 48px;
    padding-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
  }

  .home-page .tech-list {
    gap: 20px;
  }

  .home-page .home-sp-break {
    display: inline;
  }

  .home-page .tech-card {
    gap: 12px;
    padding-bottom: 24px;
  }

  .home-page .tech-list .tech-card:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .home-page .tech-card .eyebrow {
    order: 1;
    justify-self: center;
    font-size: 20px;
  }

  .home-page .tech-card img {
    order: 2;
    justify-self: center;
    width: 160px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    object-fit: cover;
  }

  .home-page .tech-card h4 {
    order: 3;
    justify-self: stretch;
    padding-top: 0;
    padding-left: 18px;
    font-size: 14px;
    text-align: left;
  }

  .home-page .tech-card h4::before {
    top: 0.55em;
    right: auto;
    left: 0;
  }

  .home-page .tech-card p:not(.eyebrow) {
    order: 4;
    margin-bottom: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.9;
  }

  .home-page .tech-card p:not(.eyebrow)::before {
    right: auto;
    left: 0;
  }

  .home-page .tech-card .pill-link {
    order: 5;
    justify-self: center;
  }

  .home-page .contact {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home-page .contact .section-heading {
    margin-bottom: 32px;
  }

  .home-page .contact-chara {
    height: 121px;
  }

  .home-page .contact-message-img {
    width: 100%;
    max-width: 286px;
  }

  .home-page .products {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .home-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 327px;
  }

  .home-page .product-card {
    min-height: 240px;
    padding: 20px 10px 12px;
    border-radius: 8px;
  }

  .home-page .product-card img {
    height: 96px;
    margin-bottom: 12px;
  }

  .home-page .product-card h3 {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.7;
  }

  .home-page .product-card-more {
    width: fit-content;
    min-width: min(176px, 100%);
    height: 44px;
    min-height: 44px;
    padding: 0 38px 0 10px;
    font-size: 12px;
  }

  .home-page .product-card-more span {
    right: 6px;
    width: 24px;
    height: 24px;
  }

  .home-page .cases {
    padding-top: 0;
    padding-bottom: 56px;
    touch-action: manipulation;
  }

  .home-page .case-carousel {
    --case-carousel-pad: 0;
    --case-arrow-size: 48px;
    max-width: 327px;
  }

  .home-page .case-pagination {
    justify-content: center;
    margin-top: 20px;
  }

  .home-page .case-window {
    width: min(280px, 100%);
    margin-right: auto;
    margin-left: auto;
    touch-action: pan-y pinch-zoom;
  }

  .home-page .case-track {
    gap: 0;
  }

  .home-page .case-card-media {
    width: 100%;
    height: auto;
    margin: 0 auto 48px;
    border-radius: 0;
    aspect-ratio: 4 / 3;
  }

  .home-page .case-card h3 {
    font-size: 16px;
  }

  .home-page .case-card p:not(:first-of-type) {
    font-size: 13px;
    line-height: 1.9;
  }

  .home-page .arrow {
    top: var(--case-arrow-top, calc((165px - var(--case-arrow-size)) / 2));
    border: 4px solid transparent;
    background-clip: padding-box;
  }

  .home-page .prev {
    left: -4px;
  }

  .home-page .next {
    right: -4px;
  }

  .home-page .career {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home-page .career-grid {
    gap: 24px;
    max-width: 280px;
  }

  .home-page .career-card {
    gap: 16px;
    padding: 24px;
  }

  .home-page .career-card > div {
    margin-top: 0;
  }

  .home-page .career-card h3 {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .home-page .career-card p {
    font-size: 13px;
    line-height: 1.9;
  }

  .home-page .final-cta {
    min-height: 200px;
    height: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-page .cases.fade-section > .section-heading,
  .home-page .cases.fade-section > .case-carousel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
