/* ======================================================
   FONT FACE
   ====================================================== */
@font-face {
  font-family: "SF Pro Display";
  src: url("font/SF-Pro-13.ttf") format("truetype");
  font-weight: 1 1000;
  font-stretch: 30% 150%;
  font-style: normal;
  font-display: swap;
}

/* ======================================================
   RESET & BASE
   ====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
  color: #565656;
  background-color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

ul {
  list-style: none;
}

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

/* ======================================================
   DESIGN TOKENS
   ====================================================== */
:root {
  --c-primary: #4c25e7;
  --c-text: #565656;
  --c-dark: #000;
  --c-card-bg: #f5f5ff;
  --c-white: #fff;

  --font-display:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  --font-body: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 80px;
  --max-w: 1440px;
  --pad-x: clamp(24px, 8.33vw, 120px);
  --r-xl: 40px;
  --r-md: 20px;
}

/* ======================================================
   LAYOUT HELPERS
   ====================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--pad-x);
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 6.25vw, 80px);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.06vw, 44px);
  font-weight: 600;
  font-stretch: expanded;
  letter-spacing: -0.01em;
  color: var(--c-dark);
  text-align: center;
  line-height: 1.2;
  margin-bottom: clamp(32px, 3.89vw, 56px);
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid #ccc;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  padding-inline: var(--pad-x);
  margin-inline: auto;
  height: var(--nav-h);
}

.navbar__logo img {
  height: 33px;
  width: auto;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 8.33vw, 120px);
}

.navbar__nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-dark);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.navbar__nav a:hover,
.navbar__nav a:focus-visible {
  color: var(--c-primary);
  outline: none;
}

/* Hamburger toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  transform-origin: center;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: relative;
  width: 100%;
  z-index: 0;
}

.hero__bg img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 945px;
  object-fit: cover;
  object-position: bottom center;
}

.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-top: 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.33vw, 48px);
  font-weight: 700;
  font-stretch: expanded;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-primary);
  line-height: 1.15;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.67vw, 24px);
  font-weight: 400;
  color: var(--c-text);
  letter-spacing: -0.01em;
  max-width: min(592px, 100%);
  line-height: 1.5;
}

/* ======================================================
   ABOUT
   ====================================================== */
.about__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.78vw, 40px);
  margin-bottom: clamp(24px, 2.78vw, 40px);
}

/* Photo card */
.photo-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 580 / 623;
  cursor: pointer;
}

.photo-card__img {
  position: absolute;
  inset: 0;
  /* filter: blur(9.5px); */
  transform: scale(1.06); /* compensate for blur edge clipping */
}

.photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* Default state — bottom gradient */
.photo-card__gradient {
  position: absolute;
  top: 33.4%; /* 208/623 — matches Figma gradient start */
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 76.654%
  );
  transition: opacity 0.25s ease;
}

/* White curtain — starts below the card, wipes upward on hover */
.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 1;
  }
  to {
    transform: translateY(0);
    opacity: 0;
  }
}

/* Default label — bottom-left, fades out as curtain rises */
.photo-card__label {
  position: absolute;
  left: clamp(20px, 2.78vw, 40px);
  right: 0;
  bottom: clamp(16px, 2.5vw, 36px);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.06vw, 44px);
  font-weight: 500;
  color: var(--c-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  transition: opacity 0.15s ease;
  z-index: 1;
}

/* Detail block — slides up and fades in after curtain arrives */
.photo-card__detail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 40px 56px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.35s ease 0.25s,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  z-index: 2;
}

.photo-card__detail h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.06vw, 44px);
  font-weight: 600;
  color: var(--c-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.photo-card__detail p {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.39vw, 20px);
  font-weight: 400;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 0;
}

/* ---- Hover-in ---- */
.photo-card:hover .photo-card__gradient {
  opacity: 0;
}

/* Curtain wipes from bottom up to cover the card */
.photo-card:hover .photo-card__overlay {
  transform: translateY(0);
}

.photo-card:hover .photo-card__label {
  opacity: 0;
}

/* Detail appears after the curtain has risen */
.photo-card:hover .photo-card__detail {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hover-out — detail hides fast, no delay ---- */
.photo-card:not(:hover) .photo-card__detail {
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

/* Info cards */
.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.78vw, 40px);
}

.info-card {
  background: var(--c-card-bg);
  border-radius: var(--r-md);
  padding: 24px 24px 48px;
}

.info-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.81vw, 26px);
  font-weight: 600;
  color: var(--c-dark);
  letter-spacing: -0.01em;
  margin-bottom: 13px;
}

.info-card__text {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

/* ======================================================
   VALUES
   ====================================================== */
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.39vw, 20px);
}

.value-card {
  background: var(--c-card-bg);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Icon sprite container — % values are relative to container size */
.value-card__icon {
  position: relative;
  width: 192px;
  height: 192px;
  overflow: hidden;
  flex-shrink: 0;
}

.value-card__icon img {
  position: absolute;
  width: 463.38%;
  height: 231.69%;
  max-width: none;
  pointer-events: none;
}

/* Sprite frame positions */
.icon-sprite--1 img {
  left: -231.68%;
  top: -19.22%;
}
.icon-sprite--2 img {
  left: -124.01%;
  top: -115.92%;
}
.icon-sprite--3 img {
  left: -124.01%;
  top: -16.1%;
}
.icon-sprite--4 img {
  left: -23.13%;
  top: -20.55%;
}

.value-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.81vw, 26px);
  font-weight: 600;
  color: var(--c-dark);
  letter-spacing: -0.01em;
}

.value-card__text {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

/* ======================================================
   CUSTOMERS
   ====================================================== */
.customers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.78vw, 40px);
}

.segment-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  height: clamp(280px, 30vw, 432px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.segment-card__img {
  position: absolute;
  inset: 0;
}

.segment-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.segment-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 197px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 76.654%
  );
}

.segment-card__text {
  position: relative;
  z-index: 1;
  padding: 24px 24px 48px;
}

.segment-card__text h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.81vw, 26px);
  font-weight: 500;
  color: var(--c-dark);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.segment-card__text p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

/* ======================================================
   CONTACT / CTA
   ====================================================== */
.contact__inner {
  display: flex;
  gap: clamp(20px, 2.01vw, 29px);
  align-items: flex-start;
}

.contact__info {
  flex: 0 0 auto;
  width: min(605px, 50%);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.06vw, 44px);
  font-weight: 500;
  font-stretch: expanded;
  color: var(--c-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.contact__item img {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__map {
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.contact__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================================================
   RESPONSIVE — TABLET (≤ 1100px)
   ====================================================== */
@media (max-width: 1100px) {
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-card {
    gap: 24px;
  }

  .value-card__icon {
    width: 140px;
    height: 140px;
  }

  .contact__info {
    width: auto;
    flex: 1;
  }
}

/* ======================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ====================================================== */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    /* --pad-x: 16px; */
  }

  /* === Main: offset for fixed navbar === */
  main {
    margin-top: var(--nav-h);
  }
  .navbar__toggle {
    display: flex;
  }

  .navbar__inner {
    padding-inline: 16px;
  }

  .navbar__logo img {
    height: 18px;
    width: 120px;
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid #eee;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .navbar__nav.is-open {
    display: flex;
  }

  .navbar__nav a {
    padding: 16px var(--pad-x);
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
  }

  /* === Hero === */
  .hero {
    background-color: #e3e9f9;
    height: 452px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 345px;
    z-index: 0;
  }

  .hero__bg img {
    width: 100%;
    height: 100%;
    max-height: none;
    /* object-fit: contain;
    object-position: bottom center; */
  }

  .hero__content {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-inline: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
  }

  .hero__title {
    font-size: 20px;
    text-align: center;
    justify-content: center;
    gap: 4px;
  }

  .hero__subtitle {
    font-size: 14px;
    text-align: center;
    max-width: 250px;
  }

  /* === Sections === */
  .section {
    padding-block: 40px;
  }

  .section__title {
    font-size: 20px;
    margin-bottom: 40px;
  }

  /* === About === */
  .about__photos {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .photo-card {
    aspect-ratio: unset;
    height: 240px;
    border-radius: 20px;
  }

  .photo-card__label {
    font-size: 20px;
    left: 32px;
    bottom: auto;
    top: 176px;
  }

  .photo-card__detail {
    padding: 20px;
  }

  .photo-card__detail h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .photo-card__detail p {
    font-size: 14px;
  }

  .about__info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-card {
    padding: 20px;
    border-radius: 20px;
  }

  .info-card__title {
    font-size: 16px;
  }

  .info-card__text {
    font-size: 14px;
  }

  /* === Values === */
  .values__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-card {
    padding: 20px;
    gap: 20px;
    border-radius: 20px;
  }

  .value-card__icon {
    width: 120px;
    height: 120px;
  }

  .value-card__title {
    font-size: 16px;
  }

  .value-card__text {
    font-size: 14px;
  }

  /* === Customers === */
  .customers__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .segment-card {
    height: 240px;
    border-radius: 20px;
  }

  .segment-card__overlay {
    top: 0;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 35%,
      rgba(255, 255, 255, 0.8) 82%
    );
  }

  .segment-card__text {
    padding: 20px;
  }

  .segment-card__text h3 {
    font-size: 16px;
  }

  .segment-card__text p {
    font-size: 14px;
  }

  /* === Contact === */
  .contact__inner {
    flex-direction: column;
    gap: 29px;
  }

  .contact__info {
    width: 100%;
    padding-left: 0;
    flex: none;
    gap: 20px;
  }

  .contact__title {
    font-size: 20px;
    text-align: center;
  }

  .contact__item {
    font-size: 14px;
  }

  .contact__item img {
    width: 16px;
    height: 16px;
  }

  .contact__map {
    width: 100%;
    flex: none;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
  }
}

/* ======================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ====================================================== */
@media (max-width: 480px) {
  .segment-card {
    height: 220px;
  }
}
