.ocean {
  --wrap: min(1280px, calc(100% - clamp(36px, 10vw, 180px)));
  --header-height: 76px;
  --ink: #effbf9;
  --text: #b0c8ca;
  --blue-dark: #78e5d3;
  --mint: #8ae8d7;
  color-scheme: dark;
  background: #05141a;
  color: var(--ink);
}

.ocean [hidden] { display: none !important; }
.ocean .skip { color: #05141a; z-index: 20; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ocean .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 8;
  border: 0;
  background: linear-gradient(#031217de, #03121700);
}
.ocean .site-header.has-scrolled { background: #05141aed; backdrop-filter: blur(15px); }
.ocean .header-inner { gap: clamp(14px, 4vw, 56px); }
.ocean .brand-name { letter-spacing: .16em; }
.ocean #navigation { gap: clamp(17px, 3vw, 45px); }
.ocean #navigation > a {
  color: #cce2e2;
  font-size: .8rem;
  letter-spacing: .10em;
}
.ocean #navigation > a:hover,
.ocean #navigation > a[aria-current] { color: var(--mint); }
.header-contact { font-size: .86rem; font-weight: 750; white-space: nowrap; }
.header-contact span, .back-link:hover { color: var(--mint); }

.ocean-intro {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-items: end;
  overflow: hidden;
  background: #06161b;
}
.intro-film, .intro-image, .intro-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.intro-image { display: block; }
.intro-film, .intro-start { visibility: hidden; }
.intro-start { z-index: 1; }
[data-intro="loading"] .intro-start,
[data-intro="loading"] .intro-film,
[data-intro="playing"] .intro-film { visibility: visible; }
[data-intro="loading"] .intro-logo, [data-intro="playing"] .intro-logo { visibility: hidden; }
.intro-headline {
  position: absolute;
  inset-block-start: min(max(74%, calc(50% + 12vw)), calc(100% - 80px));
  z-index: 3;
  width: min(calc(100% - 48px), 34em);
  color: #e9f5f4;
  font-size: clamp(.93rem, 1.62vw, 1.46rem);
  font-weight: 650;
  line-height: 1.48;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 12px #031217;
}
[data-intro]:not([data-intro="logo"]) .intro-headline { visibility: hidden; }
@media (orientation: portrait) {
  .intro-headline { inset-block-start: min(max(67%, calc(50% + 23vw)), calc(100% - 100px)); }
}
.ocean-intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 24%;
  background: linear-gradient(transparent, #05141a);
  pointer-events: none;
}
.intro-scroll, .intro-control { position: absolute; z-index: 3; }
.intro-scroll {
  bottom: max(25px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 6px 14px;
  color: #d7e9e8;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .24em;
}
.intro-scroll span:last-child { color: var(--mint); font-size: 1.15rem; letter-spacing: 0; }
.intro-control {
  bottom: max(30px, env(safe-area-inset-bottom));
  right: clamp(15px, 5vw, 76px);
  padding: 7px 12px;
  border: 0;
  border-radius: 25px;
  background: #071b23cf;
  color: var(--ink);
  cursor: pointer;
  font-size: .78rem;
}
.intro-control:hover { background: #14383e; }

.ocean-story {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 81% 17%, #143d4562, transparent 34%),
    radial-gradient(ellipse at 10% 59%, #22665e42, transparent 39%),
    linear-gradient(180deg, #05141a, #09252c 36%, #0c282d 57%, #07191e 85%, #05141a);
}
.ocean-current {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ocean-current-view {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  mask-image: linear-gradient(transparent, #000 18%, #000 84%, transparent);
}
.swimming-whale {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(260px, 58vw, 860px);
  transform: translate3d(calc(-50% + var(--swim-x, 24vw)), calc(-50% + var(--swim-y, 0px)), 0) scale(var(--swim-scale, .9));
  opacity: calc(var(--swim-opacity, .38) * var(--swim-depth-opacity, .9));
  filter: blur(var(--swim-sharpness, 4px)) saturate(.76);
}
.whale-poses {
  display: grid;
  isolation: isolate;
  transform: perspective(1000px) rotateY(var(--swim-turn, .24rad)) rotate(var(--swim-pitch, 0deg));
}
.whale-poses img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  opacity: 0;
  mix-blend-mode: plus-lighter;
}
.whale-poses img:first-child { opacity: 1; }
.ocean .chapter { position: relative; padding-block: clamp(75px, 11vw, 175px); }
.ocean .chapter h2, .ocean .contact h2 {
  font-size: clamp(2.65rem, 6.1vw, 6.6rem);
  font-weight: 820;
  letter-spacing: -.075em;
  line-height: 1.04;
}
.chapter h2 em { color: var(--mint); font-style: normal; }
.chapter-label, .ocean .eyebrow {
  margin-bottom: 18px;
  color: var(--mint);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .20em;
}
.about-layout { display: grid; gap: 28px; }
.about-copy {
  align-self: end;
  max-width: 33em;
  color: var(--text);
  font-size: clamp(1.1rem, 1.7vw, 1.44rem);
}
.about-copy p + p { margin-top: 14px; }
.work-layout { display: grid; gap: clamp(28px, 5vw, 84px); }
.work-lead { align-self: start; }
.work-steps, .examples { display: grid; gap: 16px; }
.story-box {
  min-width: 0;
  padding: clamp(23px, 4vw, 52px);
  background: linear-gradient(133deg, #204650bd, #122f37ab);
  border-radius: 8px;
}
.story-box > :last-child { margin-bottom: 0; }
.story-box h3, .examples summary {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  font-weight: 775;
  letter-spacing: -.048em;
  line-height: 1.2;
}
.story-box p:not(.chapter-label) { margin-top: 12px; color: var(--text); }
.work-steps .story-box.is-active { background: linear-gradient(133deg, #27535b, #14363d); }
.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(24px, 6vw, 72px); }
.examples summary { cursor: pointer; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.examples .brief-link { display: inline-block; margin-top: 13px; font-size: .92rem; }

.ocean .contact, .ocean .site-footer { background: transparent; color: var(--text); border: 0; }
.ocean .contact { padding-block: clamp(70px, 8vw, 120px); }
.ocean .contact h2 { color: var(--ink); font-size: clamp(2.35rem, 4.8vw, 5rem); }
.ocean .brief { background: #123039; color: var(--ink); border: 0; border-radius: 8px; }
.ocean .brief input, .ocean .brief select, .ocean .brief textarea { border: 0; background: #061f27; color: var(--ink); }
.ocean .brief input::placeholder, .ocean .brief textarea::placeholder { color: #a5bfc0; }
.ocean .button-primary { background: var(--mint); color: #0a252e; }
.ocean .button-primary:hover { background: #a5f7ea; }
.ocean .footer-inner { padding-block: 20px; }
.site-version { color: var(--mint); font-weight: 750; }
.ocean .questions details { border: 0; }
.ocean .faq .section-heading h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.chapter, .ocean .contact { scroll-margin-top: 6px; }

@media (min-width: 761px) {
  .about-layout { grid-template-columns: 1.4fr .7fr; gap: clamp(24px, 6vw, 95px); }
  .work-layout { grid-template-columns: minmax(0, .90fr) minmax(0, 1.1fr); }
  .work-lead { position: sticky; top: calc(var(--header-height) + clamp(26px, 5vh, 62px)); }
  .work-steps { gap: clamp(25px, 8vh, 108px); padding-block: clamp(20px, 14vh, 150px) 40px; }
  .work-steps .story-box { min-height: clamp(240px, 38vh, 450px); display: grid; align-content: center; }
}
@media (max-width: 760px) {
  .ocean { --header-height: 63px; }
  .ocean .header-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 0 12px; }
  .header-contact { grid-column: 2; grid-row: 1; }
  .ocean .menu-toggle:not([hidden]) {
    display: block;
    grid-column: 3;
    grid-row: 1;
    padding: 6px 10px;
    background: #0e3239;
    color: var(--ink);
    border: 0;
  }
  .ocean #navigation {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 4px 13px;
  }
  .ocean .site-header.menu-ready:not(.menu-open) #navigation { display: none; }
  .ocean .site-header.menu-open { background: #05141a; }
  .ocean #navigation > a:not(.button) { display: flex; align-items: center; min-height: 43px; }
  .ocean .split, .solution-grid { grid-template-columns: 1fr; gap: 16px; }
  .swimming-whale { --swim-opacity: .3; }
}
@media (prefers-reduced-motion: no-preference) {
  .ocean { scroll-behavior: smooth; }
  .motion-ready .reveal, .motion-ready .slide {
    opacity: 0;
    transform: translate3d(0, 29px, 0);
    transition: opacity .62s ease, transform .72s cubic-bezier(.22, .7, .28, 1);
  }
  .motion-ready .slide { transform: translate3d(clamp(16px, 4vw, 56px), 22px, 0); }
  .motion-ready .is-visible, .motion-ready .slide:focus-within, .motion-ready .reveal:focus-within { opacity: 1; transform: none; }
  .intro-scroll span:last-child { animation: scroll-nudge 2s ease-in-out 3; }
  @keyframes scroll-nudge {
    50% { transform: translateY(5px); }
  }
}
