/* ==========================================================
   RELAY® · Global Logistics · concept design
   Coal + yellow, Geist + Fragment Mono, fluid display type
   ========================================================== */

:root {
  --coal: #040404;
  --n600: #1e1e1f;
  --n500: #29292b;
  --n400: #9e9e9e;
  --n300: #bfbfbf;
  --n200: #e0e0e0;
  --n100: #f2f2f2;
  --white: #ffffff;
  --yellow: #fedb5b;
  --ink: #333333;
  --nav-bg: #f4f4f4;

  --font-primary: "Geist", Arial, sans-serif;
  --font-mono: "Fragment Mono", monospace;

  --r-sm: 2px;
  --r-md: 8px;
  --r-lg: 12px;

  --pad-site: 1.5rem;
  --nav-h: 64px;

  --ease-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.05em;
  color: var(--ink);
  background: var(--n100);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* ---------- type scale ---------- */
.display-7xl { font-size: clamp(2.75rem, 5.55vw, 5rem); line-height: 1.05; letter-spacing: -0.05em; font-weight: 400; }
.display-5xl { font-size: clamp(1.9rem, 3.73vw, 3.5rem); line-height: 1.1; letter-spacing: -0.045em; font-weight: 400; }
.display-4xl { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.2; letter-spacing: -0.05em; font-weight: 400; }
.display-3xl { font-size: clamp(1.5rem, 2.667vw, 2.5rem); line-height: 1.2; letter-spacing: -0.05em; font-weight: 400; }
.display-2xl { font-size: clamp(1.4rem, 2.133vw, 2rem); line-height: 1.2; letter-spacing: -0.05em; font-weight: 400; }
.display-l  { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 400; }

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- layout primitives ---------- */
.container { padding-left: var(--pad-site); padding-right: var(--pad-site); width: 100%; }
.section { position: relative; }
.section-light { background: var(--n100); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }

.label-wrap { display: flex; align-items: center; gap: 0.5rem; }
.label-wrap.centered { justify-content: center; }
.plus-icon { color: var(--ink); flex: 0 0 auto; }
.plus-icon.light { color: var(--white); }
.plus-icon.boxed { color: var(--ink); }
.divider { height: 1px; width: 100%; background: rgba(4, 4, 4, 0.15); }
.divider.light { background: rgba(255, 255, 255, 0.35); }

/* ---------- buttons: two-layer fill ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--r-sm);
  padding: 0.72rem 1.1rem;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1;
  isolation: isolate;
}
.btn-text { position: relative; z-index: 2; transition: color 0.35s ease; }
.btn-bg {
  position: absolute; inset: 0; z-index: 1;
  transform: translateY(102%);
  transition: transform 0.5s var(--ease-quart);
}
.btn:hover .btn-bg { transform: translateY(0); }

.btn-coal { background: var(--n600); color: var(--white); }
.btn-coal .btn-bg { background: var(--yellow); }
.btn-coal:hover .btn-text { color: var(--coal); }

.btn-gray { background: var(--n200); color: var(--coal); }
.btn-gray .btn-bg { background: var(--coal); }
.btn-gray:hover .btn-text { color: var(--white); }

.btn-glass { background: rgba(30, 30, 31, 0.72); color: var(--white); backdrop-filter: blur(6px); }
.btn-glass .btn-bg { background: var(--yellow); }
.btn-glass:hover .btn-text { color: var(--coal); }

.btn-white { background: var(--n100); color: var(--coal); }
.btn-white .btn-bg { background: var(--yellow); }

.btn-yellow { background: var(--yellow); color: var(--coal); }
.btn-yellow .btn-bg { background: var(--coal); }
.btn-yellow:hover .btn-text { color: var(--white); }

/* ---------- nav ---------- */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  height: var(--nav-h);
}
.nav-inner {
  height: 100%;
  padding: 0 var(--pad-site);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.04em; color: var(--coal); justify-self: start; }
.nav-logo .reg, .menu-logo .reg { font-size: 0.55em; vertical-align: super; font-weight: 500; }
.menu-toggle { justify-self: center; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.menu-line { display: block; width: 26px; height: 2px; background: var(--coal); transition: transform 0.45s var(--ease-quart), opacity 0.35s ease; }
.menu-open .line-1 { transform: translateY(4.5px); opacity: 0; }
.menu-open .line-2 { transform: translateY(-4.5px); }
body.menu-open { overflow: hidden; }
.nav-quote { justify-self: end; color: var(--coal); position: relative; }
.nav-quote::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--coal); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-quart);
}
.nav-quote:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- menu overlay ---------- */
.menu-overlay {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--n200);
  transform: translateY(-101%);
  visibility: hidden;
  display: flex;
  flex-direction: column;
}
.menu-content { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 3rem var(--pad-site) 2.5rem; max-height: 100%; overflow-y: auto; }
.menu-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.menu-label { color: var(--coal); margin-bottom: 1.6rem; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; max-width: 620px; }
.menu-link {
  display: inline-block;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.35;
  color: var(--coal);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}
.menu-link:hover { opacity: 0.45; transform: translateX(8px); }
.menu-cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.menu-divider { height: 1px; background: rgba(4, 4, 4, 0.14); margin: 3rem var(--pad-site) 0; }
.menu-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; padding: 2.2rem var(--pad-site) 0; align-items: start; }
.menu-address { letter-spacing: -0.03em; color: var(--ink); }
.menu-logo-block { justify-self: end; align-self: end; }
.menu-logo { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--coal); }

.social-row { display: flex; gap: 0.5rem; }
.social-box {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(4, 4, 4, 0.18);
  border-radius: var(--r-sm);
  color: var(--coal);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.social-box:hover { background: var(--coal); color: var(--white); border-color: var(--coal); }
.social-box.dark { border-color: rgba(255, 255, 255, 0.22); color: var(--n300); }
.social-box.dark:hover { background: var(--yellow); color: var(--coal); border-color: var(--yellow); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: flex-end;
  overflow: clip;
}
.hero-media { position: absolute; inset: var(--nav-h) 0 0 0; overflow: hidden; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,4,4,0.5) 0%, rgba(4,4,4,0.18) 45%, rgba(4,4,4,0.62) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad-site) 2.5rem; }
.hero-top { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.4rem; }
.hero-crumb { color: var(--white); }
.hero-crumb .mono-text { color: var(--white); }
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: end;
}
.hero-headline { color: var(--white); max-width: 14ch; }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; justify-self: end; max-width: 320px; }
.hero-note { color: var(--white); font-size: 1.05rem; letter-spacing: -0.04em; line-height: 1.3; }
.note-arrow { font-family: var(--font-mono); margin-right: 0.15rem; }

/* ---------- what we do ---------- */
.section-light.section { padding: 7rem 0; }
.col-label { grid-column: 1 / span 3; }
.col-content { grid-column: 4 / span 8; }
.section-light .display-3xl { max-width: 46ch; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin: 4.5rem 0 3.5rem;
}
.service-item .plus-icon.boxed { margin-bottom: 2.2rem; }
.service-title { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.service-text { font-size: 0.92rem; letter-spacing: -0.02em; line-height: 1.45; color: rgba(51, 51, 51, 0.78); max-width: 30ch; }

/* ---------- three image cards ---------- */
.section-cards { background: var(--coal); }
.cards-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.image-card { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; }
.card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.image-card:hover .card-img { transform: scale(1.06); }
.card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,4,4,0.42) 0%, rgba(4,4,4,0.08) 40%, rgba(4,4,4,0.66) 100%);
  transition: background 0.5s ease;
}
.card-head { position: absolute; top: 1.4rem; left: 1.4rem; }
.number-circle {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.card-body { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.5rem; color: var(--white); }
.card-body .display-l { margin-bottom: 0.6rem; }
.card-text { font-size: 0.88rem; letter-spacing: -0.02em; line-height: 1.45; color: rgba(255, 255, 255, 0.82); max-width: 34ch; }

/* ---------- yellow / technology ---------- */
.section-yellow { background: var(--yellow); color: var(--ink); padding: 7.5rem 0; }
.yellow-inner { display: flex; flex-direction: column; align-items: center; gap: 2.6rem; text-align: center; }
.inline-content { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.inline-row { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.inline-pill {
  display: inline-block; height: 0.95em; width: 2.5em;
  font-size: clamp(1.9rem, 3.73vw, 3.5rem);
  border-radius: 999px; overflow: hidden; flex: 0 0 auto;
}
.inline-pill img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- how we work ---------- */
.section-work { position: relative; padding: 9rem 0; overflow: clip; }
.work-media { position: absolute; inset: 0; }
.work-img { width: 100%; height: 100%; object-fit: cover; }
.work-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,4,4,0.88) 0%, rgba(4,4,4,0.55) 55%, rgba(4,4,4,0.35) 100%); }
.work-content { position: relative; z-index: 2; }
.work-content .label-wrap .mono-text { color: var(--white); }
.work-headline { color: var(--white); max-width: 44ch; margin: 1.6rem 0 6rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-top { display: flex; align-items: center; gap: 0.9rem; color: var(--n300); margin-bottom: 1rem; }
.step-arrow { font-family: var(--font-primary); font-size: 1rem; }
.step-text { font-size: 0.9rem; letter-spacing: -0.02em; line-height: 1.5; color: rgba(255, 255, 255, 0.85); max-width: 34ch; }

/* ---------- newsroom ---------- */
.section-news { padding: 7rem 0 6rem; }
.news-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.news-header .label-wrap { margin-bottom: 1.2rem; }
.news-slider { position: relative; }
#newsSwiper { padding-left: var(--pad-site); padding-right: var(--pad-site); }
.swiper-wrapper { transition-timing-function: var(--ease-quart); }
.news-card { width: 30%; }
.news-link { display: block; }
.news-img-wrap { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); margin-bottom: 1.1rem; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.news-link:hover .news-img { transform: scale(1.05); }
.news-meta { color: rgba(51, 51, 51, 0.6); margin-bottom: 0.55rem; }
.news-title-row { display: flex; align-items: baseline; gap: 0.5rem; }
.news-arrow { transition: transform 0.4s var(--ease-quart); display: inline-block; }
.news-link:hover .news-arrow { transform: translateX(6px); }
.news-title { font-size: 1.02rem; font-weight: 400; letter-spacing: -0.03em; }

.slider-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 2.5rem; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(4, 4, 4, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.slider-dots .dot.active { background: var(--coal); transform: scale(1.15); }
.slider-arrows { display: flex; gap: 0.5rem; }
.slider-arrow {
  width: 44px; height: 44px;
  border: 1px solid rgba(4, 4, 4, 0.2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--coal);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.slider-arrow:hover { background: var(--coal); color: var(--white); border-color: var(--coal); }

/* ---------- CTA: fixed image window ---------- */
.section-cta {
  position: relative;
  min-height: 92vh;
  clip-path: inset(0);
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  overflow: clip;
}
.cta-fixed-wrap { position: fixed; inset: 0; z-index: -1; }
.cta-img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: rgba(4, 4, 4, 0.55); }
.cta-content { position: relative; z-index: 2; text-align: center; padding: 6rem var(--pad-site); display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cta-content .mono-text { color: var(--white); }
.cta-headline { color: var(--white); max-width: 16ch; }

/* ---------- footer ---------- */
.footer { background: var(--coal); color: var(--white); position: relative; overflow: clip; }
.footer-top { padding: 5.5rem 0 0; }
.footer-label { color: var(--n400); margin-bottom: 1.4rem; }
.footer-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-cta-text { color: var(--white); }
.footer-divider { height: 1px; background: rgba(255, 255, 255, 0.12); margin: 2.8rem 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.footer-list { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-link {
  color: var(--n400);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-block;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-link:hover { color: var(--white); border-color: var(--white); }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 2rem; color: var(--n400); flex-wrap: wrap; }

.footer-giant { line-height: 0.72; text-align: center; margin-top: 1.5rem; }
.footer-giant-text {
  display: inline-block;
  font-size: 24.5vw;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #6b6b6e;
  transform: translateY(0.09em);
  white-space: nowrap;
}
.giant-reg { font-size: 0.18em; vertical-align: super; font-weight: 500; }

/* ---------- animation states ---------- */
.anim-up { opacity: 0; transform: translateY(24px); }
html.no-js .anim-up, body.reduced-motion .anim-up { opacity: 1; transform: none; }

/* split text masks */
.split-mask { display: inline-block; overflow: clip; vertical-align: bottom; }
.split-word { display: inline-block; will-change: transform; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 991px) {
  .col-label { grid-column: 1 / -1; margin-bottom: 2rem; }
  .col-content { grid-column: 1 / -1; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .cards-wrap { grid-template-columns: 1fr; }
  .image-card { aspect-ratio: 4 / 3.4; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; }
  .steps-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .work-headline { margin-bottom: 4rem; }
  .news-card { width: 46%; }
  .menu-grid { grid-template-columns: 1fr; gap: 3rem; }
  .menu-bottom { grid-template-columns: 1fr 1fr; }
  .menu-logo-block { justify-self: start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --pad-site: 1rem; --nav-h: 58px; }
  body { font-size: 16px; }
  .section-light.section { padding: 4.5rem 0; }
  .section-yellow { padding: 5rem 0; }
  .section-work { padding: 5.5rem 0; }
  .section-news { padding: 4.5rem 0; }
  .services-grid { grid-template-columns: 1fr; gap: 2.2rem; margin: 3rem 0 2.6rem; }
  .service-item .plus-icon.boxed { margin-bottom: 1.2rem; }
  .hero-headline { max-width: none; }
  .news-card { width: 82%; }
  .news-header { flex-direction: row; align-items: flex-end; }
  .inline-row { gap: 0.6rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-cta-row { flex-direction: column; align-items: flex-start; }
  .menu-links { grid-template-columns: 1fr; }
  .menu-link { font-size: 2rem; line-height: 1.45; }
  .menu-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .menu-content { justify-content: flex-start; padding-top: 2rem; }
  .cta-headline { max-width: 12ch; }
  .footer-giant-text { font-size: 24vw; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
