:root {
  --n-night: #06100f;
  --n-paper: #f2f0e8;
  --n-ink: #0a1715;
  --n-mint: #9af0d3;
  --n-cyan: #58d9e7;
  --n-coral: #ff7b5e;
  --n-line: rgba(255, 255, 255, .18);
  --n-serif: Georgia, "Times New Roman", serif;
  --n-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Master portal */
.master-home {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
  background: var(--n-night);
  isolation: isolate;
}

.master-video,
.master-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.master-video {
  z-index: -3;
  object-fit: cover;
  filter: saturate(.78) contrast(1.08);
}

.master-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 21% 58%, rgba(42, 202, 215, .18), transparent 32%),
    radial-gradient(circle at 82% 62%, rgba(255, 123, 94, .14), transparent 31%),
    linear-gradient(180deg, rgba(2, 8, 8, .82) 0%, rgba(2, 8, 8, .38) 38%, rgba(2, 8, 8, .9) 100%);
}

.master-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 30%, transparent 70%, rgba(0, 0, 0, .2));
}

.master-header {
  z-index: 10;
  width: min(1380px, calc(100% - clamp(2rem, 6vw, 6rem)));
  margin: 0 auto;
  padding: clamp(.8rem, 2vw, 1.45rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.master-brand,
.story-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.master-brand img {
  width: clamp(62px, 5.4vw, 82px);
  height: clamp(62px, 5.4vw, 82px);
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .42));
}

.master-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.master-nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem .95rem;
  border: 1px solid var(--n-line);
  border-radius: 99px;
  color: #fff;
  background: rgba(4, 12, 11, .44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  font: 750 .67rem/1 var(--n-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}

.master-nav-link:hover {
  border-color: rgba(154, 240, 211, .7);
  background: rgba(12, 34, 30, .72);
  transform: translateY(-2px);
}

.gateway {
  width: min(1180px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin: auto;
  padding: clamp(.8rem, 2.6vh, 2rem) 0 clamp(1.2rem, 3vh, 2.4rem);
  align-self: center;
}

.gateway-heading {
  margin: 0 0 clamp(1.15rem, 2.7vh, 2rem);
  text-align: center;
}

.gateway-heading p {
  margin: 0 0 .6rem;
  color: var(--n-mint);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gateway-heading h1 {
  margin: 0;
  font: 400 clamp(2.15rem, 4.6vw, 4.35rem)/.95 var(--n-serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.4rem);
}

.gateway-card {
  position: relative;
  min-height: clamp(280px, 39vh, 420px);
  overflow: hidden;
  border: 1px solid var(--n-line);
  border-radius: clamp(1.35rem, 2.4vw, 2rem);
  color: #fff;
  background: #091312;
  box-shadow: 0 26px 72px rgba(0, 0, 0, .4);
  text-decoration: none;
  isolation: isolate;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s, opacity .3s;
}

.gateway-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .5s;
}

.gateway-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 10, 9, .06), rgba(3, 10, 9, .2) 48%, rgba(3, 10, 9, .95));
}

.gateway-wash::after {
  content: "";
  position: absolute;
  left: clamp(1.1rem, 2.6vw, 1.8rem);
  bottom: clamp(4.9rem, 7vw, 6.1rem);
  width: 3rem;
  height: 2px;
}

.gateway-shipping .gateway-wash::after { background: linear-gradient(90deg, var(--n-cyan), var(--n-mint)); }
.gateway-sourcing .gateway-wash::after { background: linear-gradient(90deg, var(--n-coral), #ffc29d); }

.gateway-title {
  position: absolute;
  left: clamp(1.1rem, 2.6vw, 1.8rem);
  right: 4.8rem;
  bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  font: 400 clamp(1.9rem, 3.5vw, 3.05rem)/.95 var(--n-serif);
  letter-spacing: -.035em;
}

.gateway-title strong { font-weight: 400; color: rgba(255, 255, 255, .72); }

.gateway-arrow {
  position: absolute;
  right: clamp(1rem, 2.2vw, 1.55rem);
  bottom: clamp(1rem, 2.2vw, 1.55rem);
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07110f;
  background: #fff;
  font-size: 1.1rem;
  transition: transform .3s, background .3s;
}

.gateway-card:hover,
.gateway-card:focus-visible { transform: translateY(-8px); }
.gateway-card:hover img,
.gateway-card:focus-visible img { transform: scale(1.055); filter: saturate(1.07); }
.gateway-shipping:hover,
.gateway-shipping:focus-visible { border-color: rgba(88, 217, 231, .72); box-shadow: 0 34px 90px rgba(0, 0, 0, .5), 0 0 35px rgba(88, 217, 231, .12); }
.gateway-sourcing:hover,
.gateway-sourcing:focus-visible { border-color: rgba(255, 123, 94, .72); box-shadow: 0 34px 90px rgba(0, 0, 0, .5), 0 0 35px rgba(255, 123, 94, .11); }
.gateway-shipping:hover .gateway-arrow,
.gateway-shipping:focus-visible .gateway-arrow { background: var(--n-mint); transform: rotate(10deg); }
.gateway-sourcing:hover .gateway-arrow,
.gateway-sourcing:focus-visible .gateway-arrow { background: #ffc29d; transform: rotate(10deg); }
.gateway-grid:has(.gateway-card:hover) .gateway-card:not(:hover) { opacity: .76; }

.master-footer {
  width: min(1380px, calc(100% - clamp(2rem, 6vw, 6rem)));
  margin: 0 auto;
  padding: .9rem 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  font-size: .7rem;
}

.master-footer nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.65rem, 1.7vw, 1.35rem); }
.master-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.master-footer a:hover { color: #fff; }

/* Who we are */
.story-page { color: var(--n-ink); background: var(--n-paper); }

.story-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 94px;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.story-back,
.story-language {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem .9rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  color: #fff;
  background: rgba(4, 12, 11, .48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  font: 750 .67rem/1 var(--n-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.story-brand { justify-self: center; }
.story-brand img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .45)); }
.story-language { justify-self: end; }
.story-back:hover,
.story-language:hover { border-color: var(--n-mint); background: rgba(10, 29, 26, .76); }

.story-hero {
  position: relative;
  min-height: min(860px, 92svh);
  padding: clamp(8rem, 16vh, 11rem) clamp(1.2rem, 7vw, 7rem) clamp(3rem, 8vh, 6rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--n-night);
  isolation: isolate;
}

.story-hero video,
.story-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-hero video { z-index: -2; object-fit: cover; filter: saturate(.7) contrast(1.08); }
.story-hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(3, 10, 9, .92), rgba(3, 10, 9, .5) 58%, rgba(3, 10, 9, .3)), linear-gradient(0deg, rgba(3, 10, 9, .94), transparent 66%); }

.story-hero-copy { width: min(900px, 86%); }
.story-kicker { margin: 0 0 1rem; color: var(--n-mint); font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.story-kicker.dark { color: #267063; }
.story-hero h1 { margin: 0; font: 400 clamp(3.2rem, 8vw, 7.6rem)/.88 var(--n-serif); letter-spacing: -.058em; text-wrap: balance; }
.story-hero-copy > p:last-child { max-width: 680px; margin: 1.5rem 0 0; color: rgba(255, 255, 255, .72); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.story-scroll { position: absolute; right: clamp(1.2rem, 7vw, 7rem); bottom: clamp(3rem, 8vh, 6rem); color: rgba(255, 255, 255, .65); text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.story-intro {
  max-width: 1280px;
  margin: auto;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: .18fr .82fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.story-index { padding-top: .35rem; color: #7c8c87; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.story-title h2,
.method-heading h2 { margin: 0; font: 400 clamp(2.35rem, 4.7vw, 4.75rem)/.98 var(--n-serif); letter-spacing: -.045em; text-wrap: balance; }
.story-copy { padding-top: 1.6rem; }
.story-copy p { margin: 0 0 1.4rem; color: #55635f; line-height: 1.8; }
.story-copy .story-lead { color: #1d302c; font: 400 clamp(1.2rem, 2vw, 1.65rem)/1.5 var(--n-serif); }

.story-divisions { padding: clamp(5rem, 9vw, 8.5rem) clamp(1.2rem, 7vw, 7rem); color: #fff; background: #071210; }
.story-divisions > header { max-width: 900px; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.story-divisions h2 { margin: 0; font: 400 clamp(2.5rem, 5.5vw, 5.5rem)/.95 var(--n-serif); letter-spacing: -.05em; text-wrap: balance; }
.division-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.division-card { position: relative; min-height: 390px; padding: clamp(1.7rem, 4vw, 3.25rem); display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .15); border-radius: 1.75rem; background: rgba(255, 255, 255, .035); overflow: hidden; }
.division-card::after { content: ""; position: absolute; right: -20%; bottom: -45%; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(20px); opacity: .14; }
.division-card.shipping::after { background: var(--n-cyan); }
.division-card.sourcing::after { background: var(--n-coral); }
.division-card > span { color: rgba(255, 255, 255, .38); font-size: .72rem; letter-spacing: .15em; }
.division-card h3 { margin: auto 0 1.1rem; font: 400 clamp(2rem, 3.6vw, 3.55rem)/1 var(--n-serif); letter-spacing: -.04em; }
.division-card p { max-width: 510px; margin: 0 0 1.5rem; color: rgba(255, 255, 255, .61); line-height: 1.7; }
.division-card a { position: relative; z-index: 1; width: fit-content; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: 5px; }
.division-card.shipping a { text-decoration-color: var(--n-cyan); }
.division-card.sourcing a { text-decoration-color: var(--n-coral); }

.story-method { max-width: 1280px; margin: auto; padding: clamp(5rem, 10vw, 10rem) clamp(1.2rem, 5vw, 4rem); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); }
.method-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bbc4c0; }
.method-list li { padding: 1.7rem 0; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; border-bottom: 1px solid #bbc4c0; }
.method-list span { color: #2e7568; font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.method-list h3 { margin: 0; font: 400 clamp(1.3rem, 2vw, 1.75rem)/1.15 var(--n-serif); }
.method-list p { margin: .55rem 0 0; color: #5c6965; line-height: 1.6; }

.story-close { padding: clamp(5rem, 10vw, 9rem) 1.2rem; text-align: center; color: #fff; background: radial-gradient(circle at 50% 100%, rgba(88, 217, 231, .13), transparent 35%), #06100f; }
.story-close h2 { max-width: 860px; margin: 0 auto clamp(2rem, 4vw, 3rem); font: 400 clamp(2.55rem, 6vw, 5.8rem)/.95 var(--n-serif); letter-spacing: -.05em; text-wrap: balance; }
.story-actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.story-action { min-width: 220px; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; color: #fff; background: rgba(255, 255, 255, .05); text-decoration: none; font-weight: 750; }
.story-action.shipping:hover { border-color: var(--n-cyan); background: rgba(88, 217, 231, .09); }
.story-action.sourcing:hover { border-color: var(--n-coral); background: rgba(255, 123, 94, .09); }

.story-footer { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.2rem, 6vw, 6rem) 1.5rem; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; color: rgba(255, 255, 255, .65); background: #030908; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }
.story-footer strong { color: #fff; font: 400 2rem/1 var(--n-serif); }
.story-footer p { margin: .65rem 0 0; }
.story-footer nav,
.story-contact { display: grid; align-content: start; gap: .65rem; }
.story-footer a { width: fit-content; color: rgba(255, 255, 255, .7); text-decoration: none; }
.story-footer a:hover { color: #fff; }
.story-footer small { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .38); }

@media (max-width: 900px) {
  .story-intro { grid-template-columns: 2.5rem 1fr; }
  .story-copy { grid-column: 2; padding-top: 0; }
  .story-method { grid-template-columns: 1fr; }
  .story-footer { grid-template-columns: 1fr 1fr; }
  .story-footer > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .master-home { display: block; }
  .master-header { width: calc(100% - 1.4rem); }
  .gateway { width: calc(100% - 1.4rem); padding: 1rem 0 1.3rem; }
  .gateway-heading { text-align: left; }
  .gateway-grid { grid-template-columns: 1fr; }
  .gateway-card { min-height: 250px; }
  .master-footer { width: calc(100% - 1.4rem); padding: .75rem 0 .85rem; align-items: flex-start; }
  .master-footer nav { max-width: 74%; flex-wrap: wrap; row-gap: .55rem; }
  .master-footer nav a:nth-last-child(2) { display: none; }
  .story-hero { min-height: 760px; }
  .story-hero-copy { width: 100%; }
  .story-scroll { display: none; }
  .division-grid { grid-template-columns: 1fr; }
  .division-card { min-height: 330px; }
}

@media (max-width: 520px) {
  .master-header { padding: .55rem 0; }
  .master-brand img { width: 56px; height: 56px; }
  .master-nav { gap: .4rem; }
  .master-nav-link { min-height: 38px; padding: .65rem .72rem; font-size: .6rem; letter-spacing: .08em; }
  .gateway { padding-top: .6rem; }
  .gateway-heading { margin-bottom: .9rem; }
  .gateway-heading p { margin-bottom: .4rem; font-size: .6rem; }
  .gateway-heading h1 { font-size: clamp(2rem, 11vw, 2.7rem); }
  .gateway-card { min-height: 218px; border-radius: 1.2rem; }
  .gateway-title { right: 4rem; font-size: clamp(1.75rem, 8vw, 2.15rem); }
  .gateway-arrow { width: 40px; }
  .gateway-wash::after { bottom: 4.45rem; }
  .master-footer { font-size: .62rem; gap: .5rem; }
  .master-footer nav { max-width: 78%; gap: .5rem .75rem; }
  .master-footer nav a:nth-child(3),
  .master-footer nav a:nth-last-child(2) { display: none; }
  .story-header { min-height: 76px; grid-template-columns: 1fr auto; padding: .65rem .75rem; }
  .story-brand { display: none; }
  .story-back,
  .story-language { min-height: 38px; padding: .65rem .72rem; font-size: .59rem; letter-spacing: .07em; }
  .story-hero { min-height: 680px; padding: 7rem 1.1rem 3rem; }
  .story-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .story-hero-copy > p:last-child { font-size: .96rem; line-height: 1.6; }
  .story-intro { padding: 4.5rem 1.1rem; grid-template-columns: 1fr; gap: 1rem; }
  .story-index { display: none; }
  .story-copy { grid-column: auto; }
  .story-title h2,
  .method-heading h2 { font-size: 2.7rem; }
  .story-divisions { padding: 4.5rem 1.1rem; }
  .story-divisions h2 { font-size: 2.8rem; }
  .division-card { min-height: 300px; padding: 1.35rem; border-radius: 1.35rem; }
  .division-card h3 { font-size: 2.3rem; }
  .story-method { padding: 4.5rem 1.1rem; gap: 2.2rem; }
  .method-list li { padding: 1.4rem 0; grid-template-columns: 2.5rem 1fr; }
  .story-actions { flex-direction: column; }
  .story-action { width: 100%; }
  .story-footer { grid-template-columns: 1fr 1fr; padding: 2.5rem 1.1rem 1rem; gap: 1.7rem 1rem; }
  .story-footer nav { font-size: .7rem; }
  .story-contact { font-size: .7rem; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .master-header { padding-block: .55rem; }
  .master-brand img { width: 60px; height: 60px; }
  .gateway { padding-block: .4rem 1rem; }
  .gateway-heading { margin-bottom: .9rem; }
  .gateway-heading h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
  .gateway-card { min-height: 280px; }
  .master-footer { padding-block: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gateway-card,
  .gateway-card img,
  .gateway-arrow,
  .master-nav-link { transition: none; }
  .gateway-card:hover,
  .gateway-card:focus-visible,
  .master-nav-link:hover { transform: none; }
}
