@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light dark;
  --font-display: "Manrope", "Avenir Next", sans-serif;
  --font-body: "DM Sans", "Avenir Next", sans-serif;
  --bg: #f3f5f8;
  --text: #11141a;
  --muted: rgba(17, 20, 26, 0.62);
  --quiet: rgba(17, 20, 26, 0.46);
  --line: rgba(24, 34, 48, 0.14);
  --header: rgba(246, 248, 251, 0.82);
  --blue: #3f8fdc;
  --warm: #e46e42;
  --max: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090d;
    --text: #f5f7f9;
    --muted: rgba(245, 247, 249, 0.6);
    --quiet: rgba(245, 247, 249, 0.43);
    --line: rgba(235, 242, 248, 0.11);
    --header: rgba(7, 9, 13, 0.82);
    --blue: #68b4f7;
    --warm: #ef8057;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 14%, rgba(65, 146, 225, 0.13), transparent 27%),
    radial-gradient(circle at 91% 36%, rgba(230, 108, 66, 0.11), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(108, 128, 154, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 128, 154, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
}

.studio-brand,
.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  line-height: 1;
}

.site-header .studio-brand {
  display: inline-block;
  height: auto;
}

.header-identity {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.studio-tagline {
  display: inline-block;
  height: auto;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  height: 40px;
  line-height: 1;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.contact-link {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.portfolio-intro,
.story-stack,
.worldwide-heading,
.portfolio-footer {
  width: min(var(--max), calc(100% - 96px));
  margin-right: auto;
  margin-left: auto;
}

.portfolio-intro {
  padding: clamp(112px, 14vh, 170px) 0 clamp(24px, 3vw, 44px);
}

.eyebrow,
.story-kicker {
  margin: 0 0 13px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 1050px;
  font-size: clamp(50px, 6.3vw, 104px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(48px, 8vw, 150px);
  padding: clamp(20px, 2.25vw, 36px) 0;
}

.story-row--media-left {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}

.story-row--geo {
  align-items: start;
  padding-top: 0;
}

.story-copy {
  width: min(100%, 590px);
  position: relative;
  z-index: 2;
}

.story-row--media-left .story-copy {
  justify-self: end;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: clamp(44px, 6vw, 82px);
}

.product-identity > img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.product-identity strong,
.product-identity span {
  display: block;
}

.product-identity strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.product-identity span {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.story-copy h2,
.story-copy h3 {
  max-width: 650px;
  font-size: clamp(42px, 4.4vw, 72px);
}

.story-summary {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.story-link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.38;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.story-link {
  position: relative;
}

.story-link:hover::after,
.story-link:focus-visible::after {
  transform: scaleX(1);
}

.story-media {
  min-width: 0;
  min-height: clamp(470px, 49vw, 760px);
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.story-media--geo::before,
.story-media--elnino::before,
.story-media--globe::before {
  position: absolute;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  filter: blur(48px);
  opacity: 0.38;
}

.story-media--geo::before {
  background: radial-gradient(circle, rgba(69, 151, 235, 0.62), transparent 68%);
}

.story-media--geo {
  min-height: 0;
  align-self: start;
  padding-top: 24px;
}

.story-media--elnino::before {
  background: radial-gradient(circle, rgba(232, 111, 67, 0.54), transparent 68%);
}

.story-media--geo video {
  width: 112%;
  max-width: 980px;
  border-radius: clamp(16px, 1.7vw, 26px);
  box-shadow: 0 38px 100px rgba(27, 52, 89, 0.28);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}

.story-media--elnino {
  min-height: clamp(590px, 57vw, 830px);
}

.phone {
  position: absolute;
  width: min(44%, 370px);
  max-height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 40px 55px rgba(0, 0, 0, 0.52));
}

.phone--signal {
  top: 20%;
  left: 5%;
  z-index: 1;
  transform: rotate(-5deg) scale(0.93);
}

.phone--map {
  top: 12%;
  right: 6%;
  z-index: 2;
  transform: rotate(4deg);
}

.worldwide {
  --muted: rgba(244, 247, 249, 0.6);
  --quiet: rgba(244, 247, 249, 0.45);
  position: relative;
  margin-top: 0;
  overflow: hidden;
  background: #06080c;
  color: #f4f7f9;
}

.worldwide::before {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .worldwide {
    background: transparent;
  }
}

.worldwide-heading,
.story-stack--world,
.portfolio-footer {
  position: relative;
  z-index: 1;
}

.worldwide-heading {
  padding-top: clamp(100px, 11vw, 170px);
}

.worldwide-heading .eyebrow,
.worldwide .story-kicker {
  color: rgba(244, 247, 249, 0.48);
}

.worldwide-heading h2 {
  max-width: 980px;
  font-size: clamp(48px, 6vw, 96px);
}

.story-media--globe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.story-media--globe::before {
  background: radial-gradient(circle, rgba(67, 143, 218, 0.25), rgba(229, 104, 63, 0.12) 45%, transparent 70%);
}

.story-media--globe iframe {
  flex: 0 0 auto;
  width: 100%;
  height: clamp(560px, 46vw, 600px);
  border: 0;
  background: transparent;
}

.story-row--geo-globe .story-media--globe iframe {
  height: clamp(510px, 42vw, 540px);
}

.story-row--geo-globe {
  padding-bottom: calc(clamp(20px, 2.25vw, 36px) + clamp(90px, 5.7vw, 116px));
}

.story-row--elnino-globe {
  padding-bottom: calc(clamp(20px, 2.25vw, 36px) + clamp(82px, 5vw, 102px));
}

.story-row--geo-globe .story-media--globe {
  transform: translateY(clamp(90px, 5.7vw, 116px));
}

.story-row--elnino-globe .story-media--globe {
  transform: translateY(clamp(82px, 5vw, 102px));
}

.app-store-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-width: 174px;
  margin-top: 18px;
  padding: 8px 15px 8px 13px;
  border: 1px solid rgba(244, 247, 249, 0.28);
  border-radius: 11px;
  background: rgba(244, 247, 249, 0.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  color: #f4f7f9;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.app-store-link:hover,
.app-store-link:focus-visible {
  border-color: rgba(244, 247, 249, 0.58);
  background: rgba(244, 247, 249, 0.11);
  transform: translateY(-2px);
}

.app-store-link__mark {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 29px;
  line-height: 1;
}

.app-store-link span:last-child,
.app-store-link small,
.app-store-link strong {
  display: block;
}

.app-store-link small {
  margin-bottom: 1px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.app-store-link strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 34px;
  border-top: 1px solid rgba(239, 245, 250, 0.1);
  color: rgba(244, 247, 249, 0.48);
  font-size: 11px;
}

.portfolio-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.portfolio-footer a {
  text-decoration: none;
}

.site-nav a:focus-visible,
.studio-brand:focus-visible,
.story-link:focus-visible,
.app-store-link:focus-visible,
.portfolio-footer a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

@media (max-width: 980px) {
  .portfolio-intro,
  .story-stack,
  .worldwide-heading,
  .portfolio-footer {
    width: min(100% - 40px, var(--max));
  }

  .story-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
  }

  .story-copy h2,
  .story-copy h3 {
    font-size: clamp(38px, 5.4vw, 58px);
  }

  .story-summary {
    font-size: 16px;
  }

  .story-media {
    min-height: 540px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 54px;
    min-height: 54px;
    padding: 8px 14px;
  }

  .site-nav a:not(.contact-link) {
    display: none;
  }

  .studio-tagline {
    display: none;
  }

  .contact-link {
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .portfolio-intro,
  .story-stack,
  .worldwide-heading,
  .portfolio-footer {
    width: min(100% - 28px, var(--max));
  }

  .portfolio-intro {
    padding: 96px 0 30px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .story-row {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 26px 0;
  }

  .story-row--geo {
    padding-top: 0;
  }

  .story-row--geo-globe,
  .story-row--elnino-globe {
    padding-bottom: 26px;
  }

  .story-row--geo-globe .story-media--globe,
  .story-row--elnino-globe .story-media--globe {
    transform: none;
  }

  .story-row--media-left .story-copy {
    justify-self: start;
  }

  .product-identity {
    margin-bottom: 38px;
  }

  .story-copy h2,
  .story-copy h3 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .story-summary {
    margin-top: 18px;
  }

  .story-media,
  .story-media--elnino {
    min-height: 520px;
  }

  .story-media--geo video {
    width: 108%;
    border-radius: 15px;
    transform: none;
  }

  .story-media--geo {
    min-height: 0;
    padding-top: 0;
  }

  .phone {
    width: min(52%, 280px);
  }

  .phone--signal {
    top: 8%;
    left: 0;
  }

  .phone--map {
    top: 0;
    right: 0;
  }

  .worldwide-heading {
    padding-top: 92px;
  }

  .story-media--globe {
    min-height: 0;
    height: auto;
  }

  .story-media--globe iframe {
    min-height: 500px;
    height: 500px;
  }

  .portfolio-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .story-media,
  .story-media--elnino {
    min-height: 450px;
  }

  .story-media--globe iframe {
    min-height: 450px;
    height: 450px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
