﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

:root {
  --white: #fcfcfc;
  --dark: #1f2125;
  --accent: #ffe800;
  --accent-soft: rgba(255, 232, 0, 0.14);
  --accent-line: rgba(255, 232, 0, 0.36);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-medium: 0.55s;
  --dur-slow: 0.75s;
  --dur-fast: 0.2s;
  --shadow-nav: 0 12px 16px rgba(0, 0, 0, 0.16);
  --shadow-section: 0 12px 16px rgba(0, 0, 0, 0.32);
  --maxw: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --navbar-height: 60px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Inter Fallback", system-ui, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
a {
  -webkit-user-drag: none;
  user-drag: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.btn {
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform var(--dur-fast) var(--ease),
    filter var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .btn:hover {
    transform: scale(1.03);
    filter: brightness(1.12);
  }
}

.btn:active {
  transform: scale(1.01);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  box-shadow: var(--shadow-nav);
  min-height: var(--navbar-height);
  border-bottom: 1px solid rgba(252, 252, 252, 0.08);
}

.navbar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  min-height: var(--navbar-height);
  min-width: 0;
}

.nest-logo {
  grid-column: 1;
  justify-self: start;
  padding: 0;
  flex: none;
  line-height: 0;
  overflow: visible;
}

.nest-logo__img {
  --logo-h: 54px;
  display: block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 49 / 48);
  min-width: calc(var(--logo-h) * 49 / 48);
  max-width: none;
  aspect-ratio: 49 / 48;
  object-fit: contain;
  flex-shrink: 0;
}

.lang__code {
  flex-shrink: 0;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.btn--lang {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0.35rem 0.4rem;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  width: max-content;
  max-width: none;
  overflow: visible;
}

.btn--lang .lang__code {
  flex-shrink: 0;
}

.lang__chevron {
  flex-shrink: 0;
  margin-left: 0;
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur-fast) var(--ease);
}

.navbar__nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.btn--nav {
  font-size: clamp(0.9rem, 1.2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  color: var(--white);
  padding: 0.35rem 0.5rem;
}

.btn--pill {
  background: var(--accent);
  color: var(--dark);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  min-height: 33px;
  box-shadow: 0 0 0 1px rgba(31, 33, 37, 0.08), 0 8px 18px rgba(255, 232, 0, 0.12);
}

.btn--pill:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.navbar__link.is-active:not(.btn--pill) {
  color: var(--accent);
}

.lang {
  grid-column: 3;
  justify-self: end;
  position: relative;
  flex: none;
  width: max-content;
  overflow: visible;
}

.lang.is-open .lang__chevron {
  transform: rotate(90deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 11rem;
  list-style: none;
  background: color-mix(in srgb, var(--dark) 94%, white);
  border: 1px solid rgba(252, 252, 252, 0.12);
  border-radius: 8px;
  padding: 0.35rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    visibility var(--dur-fast) var(--ease);
}

.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  font-family: inherit;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  padding: 0.5rem 0.65rem;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    filter var(--dur-fast) var(--ease);
}

.lang__option:hover {
  background: rgba(252, 252, 252, 0.08);
  transform: scale(1.02);
  filter: brightness(1.12);
}

.lang__option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang__option-code {
  font-weight: 700;
  min-width: 1.75rem;
}

.lang__option-name {
  flex: 1;
}

.lang__check {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.lang__option.is-selected {
  color: var(--accent);
}

.lang__option.is-selected .lang__check {
  opacity: 1;
}

.header {
  position: relative;
  min-height: calc(100svh - var(--navbar-height));
  min-height: calc(100dvh - var(--navbar-height));
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 232, 0, 0.18), transparent 34%),
    var(--dark);
  box-shadow: var(--shadow-section);
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 232, 0, 0.12) 72%, transparent 100%);
  z-index: 2;
}

.header__media {
  position: absolute;
  inset: 0;
}

.header__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.64;
}

.header__bg--about {
  object-position: center;
  opacity: 0.72;
}

.header__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 232, 0, 0.16) 0%, rgba(255, 232, 0, 0) 28%),
    linear-gradient(180deg, rgba(31, 33, 37, 0.8) 0%, rgba(31, 33, 37, 0) 50%),
    linear-gradient(90deg, rgba(31, 33, 37, 0.8) 0%, rgba(31, 33, 37, 0.03) 100%);
}

.header__overlay--about {
  background:
    linear-gradient(180deg, rgba(31, 33, 37, 0.85) 0%, rgba(31, 33, 37, 0.2) 55%),
    linear-gradient(90deg, rgba(31, 33, 37, 0.75) 0%, rgba(31, 33, 37, 0.15) 100%);
}

.header__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.75rem, 8vw, 8rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.main-text {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 1069px;
}

.main-text__line {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 4px 4px rgba(31, 33, 37, 0.25);
  font-size: clamp(2.5rem, 7vw, 6rem);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.main-text__line--accent {
  color: var(--accent);
  font-size: clamp(2.75rem, 7.5vw, 6.75rem);
}

.description {
  max-width: 1024px;
  font-size: clamp(1.125rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.3;
}

.btn--learn {
  background: var(--white);
  color: var(--dark);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  letter-spacing: -0.06em;
  min-height: 44px;
  box-shadow: 0 14px 30px rgba(31, 33, 37, 0.2);
}

.btn--learn:hover {
  background: color-mix(in srgb, var(--white) 92%, var(--accent));
}

.icon {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--arrow {
  width: 0.9rem;
  height: 0.9rem;
}

.icon--globe {
  width: 1.125rem;
  height: 1.125rem;
}

.icon--chevron {
  width: 0.75rem;
  height: 0.75rem;
}

.btn--lang .icon--globe,
.btn--lang .icon--chevron {
  flex-shrink: 0;
  color: var(--white);
}

.header-animate {
  opacity: 1;
  transform: none;
}

.js .header-animate:not(.is-visible) {
  opacity: 0;
  transform: translateX(-2.5rem);
}

.js .header-animate.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity var(--dur-medium) var(--ease),
    transform var(--dur-medium) var(--ease);
}

.header-animate:nth-child(1) { transition-delay: 0.05s; }
.header-animate:nth-child(2) { transition-delay: 0.18s; }
.header-animate:nth-child(3) { transition-delay: 0.3s; }

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.5rem);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--dur-medium) var(--ease),
    transform var(--dur-medium) var(--ease);
}

.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }

.js .reveal.reveal--left:not(.is-visible) {
  transform: translateX(-2.5rem);
}

.js .reveal.reveal--right:not(.is-visible) {
  transform: translateX(2.5rem);
}

.js .reveal.reveal--scale:not(.is-visible) {
  transform: translateY(1.25rem) scale(0.975);
}

.js .reveal.reveal--fade:not(.is-visible) {
  transform: none;
}

.js .reveal.reveal--left.is-visible,
.js .reveal.reveal--right.is-visible,
.js .reveal.reveal--scale.is-visible,
.js .reveal.reveal--fade.is-visible {
  transform: translateX(0) translateY(0) scale(1);
}

.about-story__content > .reveal:nth-child(1) { transition-delay: 0s; }
.about-story__content > .reveal:nth-child(2) { transition-delay: 0.07s; }
.about-story__content > .reveal:nth-child(3) { transition-delay: 0.14s; }
.about-story__content > .reveal:nth-child(4) { transition-delay: 0.21s; }
.about-story__content > .reveal:nth-child(5) { transition-delay: 0.28s; }
.about-story__content > .reveal:nth-child(6) { transition-delay: 0.35s; }
.about-story__content > .reveal:nth-child(7) { transition-delay: 0.42s; }
.about-story__content > .reveal:nth-child(8) { transition-delay: 0.49s; }
.about-story__content > .reveal:nth-child(9) { transition-delay: 0.56s; }
.about-story__content > .reveal:nth-child(10) { transition-delay: 0.63s; }
.about-story__content > .reveal:nth-child(11) { transition-delay: 0.7s; }

.about-story {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 232, 0, 0.12), transparent 28%),
    var(--white);
  box-shadow: var(--shadow-section);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  overflow-x: clip;
}

.about-story__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-width: 0;
}

.about-story__title {
  font-size: clamp(2rem, 4.5vw, 3.625rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  padding-bottom: 0.75rem;
}

.about-story__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(3rem, 8vw, 5rem);
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease);
}

.js .about-story__title.is-visible::after {
  transform: scaleX(1);
  transition-delay: 0.2s;
}

.about-story__content {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  max-width: 920px;
  min-width: 0;
}

.about-story__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.about-story__content p {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.55;
  color: color-mix(in srgb, var(--dark) 88%, white);
}

.about-story__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-top: clamp(0.35rem, 1vw, 0.75rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.about-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(0.85rem, 2vw, 1.15rem);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 232, 0, 0.1), transparent 52%),
    color-mix(in srgb, var(--white) 92%, var(--dark));
  border: 1px solid rgba(31, 33, 37, 0.08);
  min-width: 0;
}

@media (min-width: 640px) {
  .about-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.55rem 1.5rem;
  }
}

.about-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.45;
  color: color-mix(in srgb, var(--dark) 86%, white);
  overflow-wrap: anywhere;
}

.js .about-list:not(.is-visible) li {
  opacity: 0;
  transform: translateX(-0.75rem);
}

.js .about-list.is-visible li {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity var(--dur-medium) var(--ease),
    transform var(--dur-medium) var(--ease);
}

.about-list.is-visible li:nth-child(1) { transition-delay: 0.1s; }
.about-list.is-visible li:nth-child(2) { transition-delay: 0.16s; }
.about-list.is-visible li:nth-child(3) { transition-delay: 0.22s; }
.about-list.is-visible li:nth-child(4) { transition-delay: 0.28s; }
.about-list.is-visible li:nth-child(5) { transition-delay: 0.34s; }

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 232, 0, 0.22);
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease);
}

.about-list.is-visible li::before {
  transform: scale(1);
}

.about-list.is-visible li:nth-child(1)::before { transition-delay: 0.14s; }
.about-list.is-visible li:nth-child(2)::before { transition-delay: 0.2s; }
.about-list.is-visible li:nth-child(3)::before { transition-delay: 0.26s; }
.about-list.is-visible li:nth-child(4)::before { transition-delay: 0.32s; }
.about-list.is-visible li:nth-child(5)::before { transition-delay: 0.38s; }

.about-vision {
  background:
    linear-gradient(135deg, rgba(255, 232, 0, 0.08), transparent 36%),
    var(--dark);
  box-shadow: var(--shadow-nav);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  overflow-x: clip;
}

.about-vision__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-width: 0;
}

.about-card {
  flex: 1 1 280px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 232, 0, 0.08), transparent 38%),
    color-mix(in srgb, var(--dark) 92%, white);
  border: 1px solid rgba(252, 252, 252, 0.1);
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-slow) var(--ease);
}

.js .about-card.is-visible::before {
  transform: scaleX(1);
  transition-delay: 0.25s;
}

.about-card.is-visible .about-card__title {
  animation: about-text-in var(--dur-slow) var(--ease) both;
  animation-delay: 0.15s;
}

.about-card.is-visible .about-card__text {
  animation: about-text-in var(--dur-slow) var(--ease) both;
  animation-delay: 0.28s;
}

@keyframes about-text-in {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-card.reveal--left.is-visible {
  transition-delay: 0.05s;
}

.about-card.reveal--right.is-visible {
  transition-delay: 0.18s;
}

.about-vision__divider.reveal.is-visible {
  transition-delay: 0.12s;
}

.about-vision__divider .icon {
  height: clamp(80px, 12vw, 140px);
  width: auto;
  color: rgba(252, 252, 252, 0.28);
}

.js .about-vision__divider:not(.is-visible) .icon {
  transform: scaleY(0.35);
  opacity: 0;
}

.js .about-vision__divider.is-visible .icon {
  transform: scaleY(1);
  opacity: 1;
  transition:
    transform var(--dur-slow) var(--ease),
    opacity var(--dur-medium) var(--ease);
}

@media (hover: hover) {
  .about-card:hover,
  .about-card.is-visible:hover,
  .js .about-card.reveal.is-visible:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 232, 0, 0.45);
  }
}

.about-card__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.about-card__text {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.55;
  color: var(--white);
  text-wrap: pretty;
}

.about-vision__divider {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
}

.div1 {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 232, 0, 0.14), transparent 24%),
    var(--white);
  box-shadow: var(--shadow-section);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--gutter);
}

.div1__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  min-width: 0;
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: rgba(252, 252, 252, 0.72);
  border: 1px solid rgba(31, 33, 37, 0.06);
  box-shadow: 0 12px 28px rgba(31, 33, 37, 0.06);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .stat:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 232, 0, 0.55);
    box-shadow: 0 18px 36px rgba(31, 33, 37, 0.1);
  }
}

.stat__icon {
  width: 3.8rem;
  height: 3.8rem;
  margin-bottom: 0.25rem;
  padding: 0.56rem;
  color: var(--accent);
  background: var(--dark);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(252, 252, 252, 0.05), 0 10px 22px rgba(31, 33, 37, 0.18);
}

.stat__icon--wide {
  width: 4.4rem;
  height: 3.8rem;
}

.stat__value {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat__divider {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.stat__divider .icon {
  height: clamp(80px, 12vw, 140px);
  width: auto;
  color: rgba(31, 33, 37, 0.28);
}

.div2 {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 232, 0, 0.08), transparent 36%),
    var(--dark);
  min-height: 315px;
  box-shadow: var(--shadow-nav);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.div2__visual {
  position: relative;
  min-height: 200px;
}

.div2__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  filter: saturate(0.92) contrast(1.05);
}

.div2__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 33, 37, 0) 52%, var(--dark) 100%),
    linear-gradient(180deg, rgba(31, 33, 37, 0.35) 0%, rgba(31, 33, 37, 0) 42%);
}

.div2__main {
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  justify-content: center;
}

.div2__title {
  font-size: clamp(2rem, 4.5vw, 3.625rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.service-card {
  background:
    linear-gradient(180deg, rgba(255, 232, 0, 0.08), transparent 38%),
    var(--white);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(31, 33, 37, 0.08);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--accent);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(31, 33, 37, 0.18);
    border-color: rgba(255, 232, 0, 0.55);
  }
}

.service-card__title {
  font-size: clamp(1rem, 1.4vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
}

.service-card__text {
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: center;
  flex: 1;
}

.service-card__icon {
  width: 4.25rem;
  height: 4.25rem;
  color: var(--accent);
  margin-top: auto;
  padding: 0.72rem;
  background: var(--dark);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(252, 252, 252, 0.05), 0 12px 24px rgba(31, 33, 37, 0.18);
}

.service-card__icon--chain {
  width: 4.25rem;
  height: 4.25rem;
}

.div3 {
  position: relative;
  background: var(--dark);
  min-height: 315px;
  overflow: hidden;
}

.div3__visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  pointer-events: none;
}

.div3__earth {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  filter: saturate(0.92) contrast(1.05);
}

.div3__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(31, 33, 37, 0) 52%, var(--dark) 100%),
    linear-gradient(180deg, rgba(31, 33, 37, 0.35) 0%, rgba(31, 33, 37, 0) 42%);
}

.div3__main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.div3__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.btn--contact {
  justify-content: flex-start;
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 0.35rem;
  gap: 0.85rem;
  border-radius: 999px;
  background: rgba(252, 252, 252, 0.04);
  border: 1px solid rgba(252, 252, 252, 0.07);
  box-sizing: border-box;
}

.btn--contact:hover {
  color: color-mix(in srgb, var(--white) 85%, var(--accent));
  background: rgba(252, 252, 252, 0.08);
}

.btn--contact span:last-child,
.div3__location span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.div3__location span:last-child {
  white-space: nowrap;
  overflow-wrap: normal;
}

.div3__location {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.85rem;
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 0.35rem;
  border-radius: 999px;
  background: rgba(252, 252, 252, 0.04);
  border: 1px solid rgba(252, 252, 252, 0.07);
  box-sizing: border-box;
}

.icon-slot {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.icon-slot .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.div3__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 232, 0, 0.2) 100%);
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .div2 {
    grid-template-columns: 1fr;
  }

  .div2__visual {
    min-height: 180px;
    max-height: 240px;
  }

  .div2__visual-overlay {
    background:
      linear-gradient(180deg, rgba(31, 33, 37, 0) 55%, var(--dark) 100%),
      linear-gradient(90deg, rgba(31, 33, 37, 0.3) 0%, rgba(31, 33, 37, 0) 45%);
  }

  .div2__main {
    padding: clamp(1.75rem, 5vw, 2.75rem) var(--gutter);
  }
}

@media (max-width: 900px) {
  .div1__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat__divider {
    display: none;
  }

  .stat__label {
    text-align: center;
    width: 100%;
    line-height: 1.15;
  }
}

@media (max-width: 900px) {
  .services {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 54px;
  }

  .js .header-animate:not(.is-visible) {
    transform: translateY(1rem);
  }

  .js .reveal.reveal--left:not(.is-visible),
  .js .reveal.reveal--right:not(.is-visible) {
    transform: translateY(1rem);
  }

  .services {
    grid-template-columns: 1fr;
  }

  .about-story {
    padding: clamp(1.75rem, 5vw, 2.5rem) var(--gutter);
  }

  .about-story__title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    margin-bottom: 1rem;
  }

  .about-story__lead {
    font-size: clamp(0.98rem, 3.8vw, 1.125rem);
    line-height: 1.5;
  }

  .about-story__content p {
    font-size: clamp(0.9rem, 3.4vw, 1rem);
    line-height: 1.55;
  }

  .about-story__subtitle {
    font-size: clamp(0.95rem, 3.6vw, 1.08rem);
    line-height: 1.4;
  }

  .about-story__content > .reveal:nth-child(1) { transition-delay: 0s; }
  .about-story__content > .reveal:nth-child(2) { transition-delay: 0.04s; }
  .about-story__content > .reveal:nth-child(3) { transition-delay: 0.08s; }
  .about-story__content > .reveal:nth-child(4) { transition-delay: 0.12s; }
  .about-story__content > .reveal:nth-child(5) { transition-delay: 0.16s; }
  .about-story__content > .reveal:nth-child(6) { transition-delay: 0.2s; }
  .about-story__content > .reveal:nth-child(7) { transition-delay: 0.24s; }
  .about-story__content > .reveal:nth-child(8) { transition-delay: 0.28s; }
  .about-story__content > .reveal:nth-child(9) { transition-delay: 0.32s; }
  .about-story__content > .reveal:nth-child(10) { transition-delay: 0.36s; }
  .about-story__content > .reveal:nth-child(11) { transition-delay: 0.4s; }

  .about-list {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
  }

  .about-list li {
    font-size: clamp(0.86rem, 3.2vw, 0.98rem);
  }

  .js .about-list:not(.is-visible) li {
    transform: translateY(0.35rem);
  }

  .about-vision {
    padding: clamp(1.75rem, 5vw, 2.5rem) var(--gutter);
  }

  .about-vision__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .about-vision__divider {
    display: none;
  }

  .about-card {
    flex: 1 1 auto;
    max-width: none;
    padding: 1.25rem 1.1rem;
    border-radius: 16px;
  }

  .about-card__title {
    font-size: clamp(1.15rem, 4.8vw, 1.5rem);
  }

  .about-card__text {
    font-size: clamp(0.9rem, 3.4vw, 1rem);
    line-height: 1.5;
  }

  .about-card.reveal--left.is-visible,
  .about-card.reveal--right.is-visible {
    transition-delay: 0.05s;
  }

  .navbar__inner {
    gap: 0.65rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .nest-logo__img {
    --logo-h: 42px;
  }

  .navbar__nav {
    gap: clamp(0.5rem, 2vw, 1rem);
  }

  .btn--nav {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    padding: 0.25rem 0.4rem;
  }

  .btn--lang,
  .btn--lang .lang__code {
    font-size: 0.8125rem;
    padding: 0.3rem 0.35rem;
    gap: 0.35rem;
  }

  .btn--lang .icon--globe {
    width: 1rem;
    height: 1rem;
  }

  .btn--lang .icon--chevron {
    width: 0.6875rem;
    height: 0.6875rem;
  }

  .btn--pill {
    min-height: 30px;
    padding: 0.32rem 0.65rem;
  }

  .lang {
    margin-left: 0;
  }

  .div1__inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.75rem;
  }

  .stat {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem;
  }

  .stat__icon {
    margin-bottom: 0.25rem;
  }

  .stat__value,
  .stat__label {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .stat__label {
    flex: none;
    max-width: 14rem;
    line-height: 1.15;
  }

  .div3__visual {
    width: 100%;
  }

  .div3__earth {
    width: 100%;
  }

  .div3__visual-overlay {
    background:
      linear-gradient(180deg, rgba(31, 33, 37, 0.35) 0%, rgba(31, 33, 37, 0) 42%),
      linear-gradient(90deg, rgba(31, 33, 37, 0.88) 0%, rgba(31, 33, 37, 0.54) 52%, rgba(31, 33, 37, 0.2) 100%);
  }

  .div3__main {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .div3__main > .reveal,
  .div3__title,
  .div3__main .btn--contact,
  .div3__main .div3__location {
    align-self: flex-start;
    margin-inline: 0;
  }

  .div3__title {
    width: 100%;
    text-align: left;
  }

  .div3__main .btn--contact,
  .div3__main .div3__location {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .main-text__line {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .main-text__line--accent {
    font-size: clamp(2.1rem, 9.5vw, 2.85rem);
  }
}

@media (max-width: 520px) {
  :root {
    --navbar-height: 48px;
  }

  .about-story,
  .about-vision {
    padding: 1.5rem 0.75rem;
  }

  .about-story__title {
    font-size: clamp(1.45rem, 8.5vw, 1.85rem);
    padding-bottom: 0.6rem;
  }

  .about-story__title::after {
    width: 2.75rem;
    height: 3px;
  }

  .about-story__content {
    gap: 0.75rem;
  }

  .about-list {
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
  }

  .about-list li {
    padding-left: 1rem;
  }

  .about-card {
    padding: 1.1rem 0.95rem;
  }

  .navbar__inner {
    gap: 0.35rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .nest-logo__img {
    --logo-h: 40px;
  }

  .navbar__nav {
    gap: 0.3rem;
  }

  .btn--nav {
    font-size: 0.78rem;
    padding: 0.2rem 0.3rem;
  }

  .btn--lang,
  .btn--lang .lang__code {
    font-size: 0.8125rem;
    padding: 0.28rem 0.32rem;
    gap: 0.3rem;
  }

  .btn--lang .icon--globe {
    width: 1rem;
    height: 1rem;
  }

  .btn--lang .icon--chevron {
    width: 0.6875rem;
    height: 0.6875rem;
  }

  .btn--pill {
    min-height: 28px;
    padding: 0.28rem 0.55rem;
  }

  .lang {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .btn--contact,
  .div3__location {
    align-items: center;
    align-self: flex-start;
    border-radius: 18px;
    padding: 0.55rem 0.75rem 0.55rem 0.4rem;
  }

  .icon-slot {
    width: 2.1rem;
    height: 2.1rem;
  }

  .icon-slot .icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header--about .header__content {
    padding-bottom: 1.75rem;
  }

  .main-text__line,
  .main-text__line--accent {
    white-space: normal;
  }

  .description {
    font-size: clamp(0.95rem, 4.2vw, 1.125rem);
    line-height: 1.4;
  }

  .btn--learn {
    width: 100%;
  }

  .stat__label {
    max-width: none;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }
}

@media (max-width: 380px) {
  .nest-logo__img {
    --logo-h: 36px;
  }

  .btn--nav:not(.btn--pill) {
    font-size: 0.72rem;
    padding: 0.2rem 0.25rem;
  }

  .btn--pill {
    font-size: 0.72rem;
    padding: 0.26rem 0.5rem;
  }

  .btn--lang,
  .btn--lang .lang__code {
    font-size: 0.75rem;
    padding: 0.25rem 0.3rem;
    gap: 0.28rem;
  }

  .btn--lang .icon--globe {
    width: 0.9375rem;
    height: 0.9375rem;
  }

  .btn--lang .icon--chevron {
    width: 0.625rem;
    height: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .header-animate,
  .reveal,
  .about-list li,
  .about-list li::before,
  .about-card::before,
  .about-story__title::after,
  .about-vision__divider .icon,
  .lang__chevron,
  .lang__menu,
  .lang__option,
  .lang__check {
    transition: none;
    animation: none;
  }

  .js .header-animate,
  .js .reveal,
  .js .about-list li,
  .js .about-vision__divider .icon,
  .header-animate,
  .reveal,
  .about-list li,
  .about-vision__divider .icon {
    opacity: 1;
    transform: none;
  }

  .about-story__title::after,
  .about-card::before {
    transform: none;
  }
}
