:root {
  --navy: #0d2a66;
  --navy-deep: #081c47;
  --blue: #0c4cc9;
  --red: #d50102;
  --ink: #142238;
  --muted: #5b6678;
  --soft: #f3f6fb;
  --line: #e1e7f1;
  --wrap: 1280px;
  --radius: 28px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 18px/1.6 Jost, 'Century Gothic', Futura, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
}

h3 {
  font-size: 23px;
  line-height: 1.2;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - clamp(32px, 6vw, 96px), var(--wrap));
  margin-inline: auto;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 17px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: #b00001;
}

.btn-blue {
  background: var(--navy);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue);
}

.btn-line {
  border-color: var(--line);
  background: #fff;
}

.btn-line:hover {
  border-color: var(--navy);
}

/* Floating glass header */
.bar {
  position: fixed;
  inset: 16px clamp(16px, 2.4vw, 32px) auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 12px 0 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  background: rgba(13, 42, 102, .9);
  color: #fff;
}

.bar-logo img {
  width: clamp(226px, 21vw, 290px);
}

.bar-nav {
  display: flex;
  gap: clamp(20px, 2.8vw, 40px);
  font-size: 17px;
  font-weight: 500;
}

.bar-nav a {
  position: relative;
  padding: 4px 0;
}

.bar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}

.bar-nav a:hover::after {
  transform: scaleX(1);
}

.nav-contact {
  display: none;
}

.bar-contact {
  justify-self: end;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--red);
  font-weight: 500;
  transition: background-color .25s;
}

.bar-contact:hover {
  background: #b00001;
}

.bar-menu {
  display: none;
  justify-self: end;
  padding: 8px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* Hero: pinned while the video shrinks from full screen into a card and the words move onto white. */
.hero {
  --p: 0;
  --out: 1;
  --in: 0;
  position: relative;
  height: 250vh;
  background: #fff;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy-deep);
  clip-path: inset(
    calc(var(--p) * 14vh) calc(var(--p) * 3vw) calc(var(--p) * 5vh) calc(var(--p) * 47vw)
    round calc(var(--p) * 36px)
  );
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.14 - var(--p) * .14));
}

.hero-shade {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--p) * .85);
  background: linear-gradient(rgba(8, 28, 71, .45), rgba(8, 28, 71, .14) 22%, rgba(8, 28, 71, .32) 48%, rgba(8, 28, 71, .86));
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(36px, 6vw, 80px);
  color: #fff;
  opacity: var(--out);
  transform: translateY(calc(var(--p) * -70px));
}

.hero-copy[data-off] {
  visibility: hidden;
}

h1 {
  font-size: clamp(50px, 8.2vw, 124px);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.mask {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

.mask > span {
  display: block;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}

.hero-copy .btn {
  margin-top: 26px;
}

.hero-after {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  top: 50%;
  width: 40vw;
  color: var(--navy);
  opacity: var(--in);
  transform: translateY(calc(-50% + (1 - var(--in)) * 60px));
  pointer-events: none;
}

.hero-after[data-on] {
  pointer-events: auto;
}

.hero-after-title {
  font-size: clamp(42px, 5.2vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.hero-after-title {
  text-wrap: balance;
}

.hero-after > p:not(.hero-after-title) {
  max-width: 28em;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
}

.hero-after .btn {
  margin-top: 24px;
}

@keyframes mask-up {
  from {
    transform: translateY(110%);
  }
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

/* Loader: the logo fills as the video really downloads, then flies forward in one motion,
   its colours dissolving into the video until the hero fills the screen. */
.loader {
  display: none;
}

.intro-wait {
  overflow: hidden;
}

.intro-wait .loader,
.intro-opening .loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.intro-wait .loader {
  pointer-events: auto;
}

.intro-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.veil-white {
  fill: #fff;
}

.mark-red {
  fill: var(--red);
}

.mark-blue {
  fill: var(--blue);
}

.mark-ghost {
  fill: var(--line);
}

.loader-foot {
  position: absolute;
  inset: auto clamp(20px, 4vw, 56px) clamp(18px, 3.4vmin, 36px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  color: var(--navy);
}

.loader-name,
.loader-count {
  overflow: hidden;
}

.loader-name > div,
.loader-count > p {
  transition: transform .55s cubic-bezier(.76, 0, .24, 1);
}

.intro-closing .loader-name > div,
.intro-closing .loader-count > p {
  transform: translateY(110%);
}

.loader-name {
  padding-bottom: 4px;
  max-width: 30em;
}

.loader-name p:first-child {
  font-size: clamp(18px, 2.2vmin, 22px);
  font-weight: 500;
}

.loader-name p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(14px, 1.8vmin, 17px);
  line-height: 1.4;
}

.loader-count {
  flex: none;
  font-size: clamp(60px, 15vmin, 150px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.03em;
}

.loader-line {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--line);
  transition: opacity .3s;
}

.intro-closing .loader-line {
  opacity: 0;
}

.loader-line span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 560px) {
  .loader-foot {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

.intro-wait .bar,
.intro-wait .progress {
  visibility: hidden;
}

/* The video drifts back to rest while the view flies in. */
.intro-opening .hero-frame {
  animation: hero-settle 2.1s cubic-bezier(.22, 1, .36, 1) both;
}

.intro-opening .bar {
  animation: bar-in .8s var(--ease) 1.2s both;
}

@keyframes hero-settle {
  from {
    transform: scale(1.3);
  }
}

@keyframes bar-in {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.intro-wait .mask > span,
.intro-opening .mask > span {
  animation: mask-up 1.2s var(--ease) .75s both;
}

.intro-wait .mask + .mask > span,
.intro-opening .mask + .mask > span {
  animation-delay: .88s;
}

.intro-wait .hero-copy p,
.intro-opening .hero-copy p {
  animation: up 1s var(--ease) 1.05s both;
}

.intro-wait .hero-copy .btn,
.intro-opening .hero-copy .btn {
  animation: up 1s var(--ease) 1.18s both;
}

.intro-wait .mask > span,
.intro-wait .hero-copy p,
.intro-wait .hero-copy .btn {
  animation-play-state: paused;
}

@keyframes logo-pop {
  from {
    opacity: 0;
    transform: scale(.4);
  }
}

@keyframes hero-open {
  0% {
    clip-path: inset(50% 50% 50% 50%);
  }

  40%,
  55% {
    clip-path: inset(25% 25% 25% 25%);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.35);
  }
}

@keyframes bar-in {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
}

/* Sections rise as they arrive */
.js .rise {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease-out, transform .9s var(--ease);
}

.js .rise.is-in {
  opacity: 1;
  transform: none;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: var(--section);
}

.about-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--soft);
}

.about-mark img {
  width: 54%;
}

.kicker {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 18px;
  font-weight: 500;
}

.about-text h2 {
  color: var(--navy);
  font-size: clamp(32px, 3.6vw, 50px);
}

.about-text > p:not(.kicker) {
  margin-top: 22px;
  color: var(--muted);
}

.about-text > p + p {
  margin-top: 14px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* How we work: the panel opens out to full width as it arrives */
.work {
  --open: 0;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  clip-path: inset(0 calc((1 - var(--open)) * 6vw) round calc((1 - var(--open)) * 40px));
}

.work-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 28, 71, .74), rgba(8, 28, 71, .18));
}

.work-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
  align-items: center;
  padding: clamp(40px, 6vw, 88px);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.work-grid li {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: rgba(8, 28, 71, .66);
  transition: background-color .3s;
}

.work-grid li:hover {
  background: rgba(8, 28, 71, .84);
}

.work-grid p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.5;
}

/* Products */
.products {
  padding-top: var(--section);
}

.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  margin-bottom: 36px;
}

.head h2 {
  color: var(--navy);
}

.head p {
  color: var(--muted);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.cat {
  position: relative;
  grid-column: span 2;
  height: 340px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cat:nth-child(-n+2) {
  grid-column: span 3;
  height: 400px;
}

.cat img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  translate: 0 -7%;
  transition: transform 1s var(--ease);
}

.cat:hover img {
  transform: scale(1.06);
}

/* The photo inside wipes open; the box itself stays put so it can be seen arriving. */
.js .wipe > img {
  clip-path: inset(0);
  transition: clip-path 1.2s cubic-bezier(.76, 0, .24, 1) var(--d, 0ms), transform 1s var(--ease);
}

.js .wipe:not(.is-in) > img {
  clip-path: inset(100% 0 0);
}

.cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 71, .86), rgba(8, 28, 71, 0) 50%);
}

.cat span {
  position: absolute;
  left: 26px;
  bottom: 20px;
  z-index: 1;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 500;
  letter-spacing: -.02em;
}

.cat:focus-visible {
  outline: 4px solid var(--red);
  outline-offset: 2px;
}

/* Our Story page: a timeline whose line fills as you scroll */
.cat-hero.story-hero {
  min-height: clamp(420px, 70vh, 680px);
}

.story-span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .85);
  font-size: 18px;
  letter-spacing: .04em;
}

.timeline {
  --wrap: 1000px;
  position: relative;
  padding-block: clamp(56px, 8vw, 110px);
  /* Cards wait off to the side before sliding in; never let them widen the page. */
  overflow-x: clip;
}

.tl-line {
  position: absolute;
  top: clamp(56px, 8vw, 110px);
  bottom: clamp(56px, 8vw, 110px);
  left: 50%;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.tl-line span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
}

.tl-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
}

.tl-item + .tl-item {
  margin-top: clamp(32px, 4vw, 64px);
}

.tl-item > * {
  grid-row: 1;
}

.tl-year {
  grid-column: 1;
  justify-self: end;
  padding-right: clamp(16px, 3vw, 48px);
  color: #c9d3e6;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  transition: color .6s, transform 1s var(--ease), opacity 1s var(--ease);
}

.tl-dot {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: center;
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: border-color .4s, transform .5s var(--ease);
}

.tl-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform .5s var(--ease);
}

.tl-card {
  grid-column: 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px -30px rgba(13, 42, 102, .35);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}

.tl-item:nth-child(even) .tl-year {
  grid-column: 3;
  justify-self: start;
  padding: 0 0 0 clamp(16px, 3vw, 48px);
}

.tl-item:nth-child(even) .tl-card {
  grid-column: 1;
}

.tl-media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--soft);
}

.tl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.tl-media .tl-logo {
  padding: 3% 18%;
  background: #fff;
  object-fit: contain;
}

.tl-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.tl-duo img {
  object-position: top;
}

.tl-body {
  padding: 18px 22px 22px;
}

.tl-label {
  color: var(--red);
  font-size: 16px;
  font-weight: 500;
}

.tl-body h2 {
  margin-top: 6px;
  color: var(--navy);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
}

.tl-body p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Reached years light up; cards slide in from their side. */
.tl-item.is-active .tl-year {
  color: var(--red);
}

.tl-item.is-active .tl-dot {
  border-color: var(--red);
  transform: scale(1.15);
}

.tl-item.is-active .tl-dot::after {
  transform: scale(1);
}

.js .tl-item:not(.is-in) .tl-year {
  opacity: 0;
  transform: translateY(40px);
}

.js .tl-item:not(.is-in) .tl-card {
  opacity: 0;
  transform: translateX(48px);
}

.js .tl-item:nth-child(even):not(.is-in) .tl-card {
  transform: translateX(-48px);
}

.js .tl-item:not(.is-in) .tl-media img {
  transform: scale(1.15);
}

.story-end {
  padding-bottom: var(--section);
  text-align: center;
}

@media (max-width: 760px) {
  .tl-line {
    left: 11px;
    transform: none;
  }

  .tl-item,
  .tl-item:nth-child(even) {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    align-items: start;
  }

  .tl-item .tl-dot,
  .tl-item:nth-child(even) .tl-dot {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
  }

  .tl-item .tl-year,
  .tl-item:nth-child(even) .tl-year {
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
    padding: 0;
    font-size: 40px;
  }

  .tl-item .tl-card,
  .tl-item:nth-child(even) .tl-card {
    grid-row: 2;
    grid-column: 2;
  }

  .js .tl-item:nth-child(n):not(.is-in) .tl-card {
    transform: translateY(40px);
  }

  .tl-body {
    padding: 16px 18px 20px;
  }
}

/* Photo credits page */
.credits {
  padding-block: 130px var(--section);
}

.credits h1 {
  color: var(--navy);
  font-size: clamp(36px, 5vw, 60px);
}

.credits > p {
  max-width: 46em;
  margin-top: 14px;
  color: var(--muted);
}

.credits-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.5;
}

.credits-list a,
.foot-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credits-list strong {
  color: var(--navy);
  font-weight: 500;
}

/* Our innovative products page: banner with a short line, then the enquiry form */
/* A solid white pill so "Coming soon" stands out on the dark banner, with a soft pulse. */
.innov-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
  animation: up 1s var(--ease) both, badge-pulse 2.4s ease-out 1.2s infinite;
}

.innov-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
}

@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .innov-badge {
    animation: none;
  }
}

.innov-lead {
  max-width: 34em;
  margin-top: 16px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  animation: up 1s var(--ease) .3s both;
}

/* Category pages: one short line under the heading */
.cat-intro {
  max-width: 40em;
  margin-top: 14px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  animation: up 1s var(--ease) .3s both;
}

/* Home FAQ: plain questions that open in place */
.faq {
  padding-top: var(--section);
}

.faq h2 {
  color: var(--navy);
  font-size: clamp(32px, 3.4vw, 46px);
}

.faq-list {
  max-width: 900px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  color: var(--navy);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.faq-item p {
  max-width: 46em;
  padding-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
}

/* Privacy policy and terms pages */
.legal {
  padding-block: 130px var(--section);
  line-height: 1.65;
}

.legal > * {
  max-width: 44em;
}

.legal h1 {
  color: var(--navy);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}

.legal-date {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.legal h2 {
  margin-top: 40px;
  color: var(--navy);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.3;
}

.legal h3 {
  margin-top: 20px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 500;
}

.legal p,
.legal ul,
.legal address {
  margin-top: 12px;
}

.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  list-style: disc;
}

.legal strong {
  color: var(--navy);
  font-weight: 500;
}

.legal address {
  font-style: normal;
}

.legal a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category pages: one page per category, every product with a photo */
.cat-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(300px, 46vh, 460px);
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 1.6s var(--ease) both;
}

.cat-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 28, 71, .55), rgba(8, 28, 71, .25) 45%, rgba(8, 28, 71, .82));
}

.cat-hero-in {
  position: relative;
  z-index: 1;
  padding-block: 130px clamp(28px, 4vw, 48px);
}

.cat-back {
  display: inline-block;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  font-size: 16px;
}

.cat-hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -.03em;
  animation: up 1s var(--ease) .15s both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
}

.cat-tabs a {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}

.cat-tabs a:hover {
  border-color: var(--navy);
}

.cat-tabs a[aria-current='page'] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.cat-list {
  padding-block: 36px var(--section);
}

.prod-group + .prod-group {
  margin-top: clamp(40px, 5vw, 64px);
}

.prod-group h2 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.prod {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}

.prod:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px -18px rgba(13, 42, 102, .35);
  transform: translateY(-4px);
}

.prod-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.prod-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.prod:hover .prod-photo img {
  transform: scale(1.06);
}

/* Until a product has its photo, the brand mark stands in. */
.prod-photo.is-empty {
  background: linear-gradient(135deg, var(--soft), #e6ecf6);
}

.prod-photo svg {
  width: 26%;
  fill: #d3dcea;
}

.prod-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 20px;
}

.prod-body h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.prod-enquire {
  align-self: flex-start;
  padding: 9px 18px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font: 500 15px/1 Jost, sans-serif;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}

.prod-enquire:hover {
  background: var(--red);
  color: #fff;
}

@media (max-width: 700px) {
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .prod-body {
    padding: 14px 14px 16px;
  }

  .prod-body h3 {
    font-size: 17px;
  }

  .prod-enquire {
    padding: 8px 14px;
    font-size: 14px;
  }

  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cat-tabs a {
    flex: none;
  }
}

/* Certificates and companies */
.logos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(56px, 7vw, 96px);
  padding-top: var(--section);
}

.logos-block h2 {
  margin-bottom: 28px;
  color: var(--navy);
  font-size: clamp(32px, 3.4vw, 46px);
}

.marquee {
  overflow: hidden;
  /* Room for a card to lift on hover without being clipped. */
  padding-block: 8px;
  margin-block: -8px;
  margin-inline: calc((100% - 100vw) / 2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.logo-row {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.logo-row li {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(190px, 21vw, 300px);
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition: transform .4s var(--ease), border-color .3s;
}

.logo-row li:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
}

.logo-row img {
  width: auto;
  max-width: 72%;
  max-height: 96px;
}

.logo-word {
  color: var(--navy);
  font-size: 44px;
  font-weight: 600;
}

.company-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-row li {
  display: grid;
  place-items: center;
  height: 170px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition: transform .4s var(--ease), border-color .3s;
}

.company-row li:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
}

/* Logos only: each one centred and sized to fit its card. */
.company-row img {
  width: auto;
  max-width: 86%;
  max-height: 112px;
  object-fit: contain;
}

/* Emblem with the company name beside it, like a logo lockup. */
.company-row .company-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Same-size box for each emblem, so the names line up across cards. */
.company-lockup img {
  flex: none;
  width: 96px;
  max-width: none;
  height: 96px;
  object-fit: contain;
}

.company-text {
  display: grid;
  gap: 4px;
  text-align: left;
}

.company-text strong {
  color: var(--navy);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.company-text span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

/* Directors */
.directors {
  padding-top: var(--section);
}

.directors > h2 {
  margin-bottom: 36px;
  color: var(--navy);
}

.dir-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dir-row article {
  padding: 16px 16px 26px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.dir-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 18px;
}

.dir-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.dir-row h3,
.dir-row p {
  padding-inline: 10px;
}

.dir-row p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.4;
}

/* Contact */
.contact {
  padding-block: var(--section);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: 36px;
  background: var(--soft);
}

.contact-side h2 {
  color: var(--navy);
}

.contact-side > p {
  margin-top: 12px;
  color: var(--muted);
}

.contact-map {
  aspect-ratio: 4 / 3;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--line);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-side > .contact-phone {
  margin-top: 16px;
  color: var(--ink);
  font-size: 18px;
}

.contact-phone a {
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
}

.contact-address {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.55;
}

.contact-address strong {
  color: var(--ink);
  font-weight: 500;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.form {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.form > label,
.two {
  width: 100%;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.4 Jost, sans-serif;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.form .btn {
  padding: 10px 30px;
  font-size: 19px;
}

.note {
  color: var(--muted);
  font-size: 15px;
}

/* Footer */
.foot {
  padding-block: clamp(48px, 6vw, 80px) 24px;
  background: var(--navy-deep);
  color: #fff;
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px;
}

.foot-line-big {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
}

/* The logo runs the full width of the page. */
.foot-logo {
  margin-top: clamp(48px, 7vw, 104px);
}

.foot-logo img {
  width: 100%;
  height: auto;
}

.js .foot-logo.wipe > img {
  transition-duration: .8s;
  transition-delay: 0s;
}

.foot h2 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: 0;
}

.foot-in > div:nth-child(2) a {
  display: block;
  padding: 3px 0;
  color: rgba(255, 255, 255, .86);
}

.foot-in a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: background-color .25s;
}

.social a:hover {
  background: var(--red);
}

.social svg {
  fill: currentColor;
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
}

@media (max-width: 960px) {
  .bar {
    grid-template-columns: 1fr auto;
    height: 62px;
    padding-left: 18px;
    padding-right: 8px;
    border-radius: 16px;
  }

  .bar-logo img {
    width: min(240px, 62vw);
  }

  .bar-contact {
    display: none;
  }

  .nav-contact {
    display: block;
  }

  .bar-menu {
    display: block;
  }

  .bar-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 16px;
    background: var(--navy);
    font-size: 21px;
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0 round 16px);
    transition: clip-path .4s cubic-bezier(.76, 0, .24, 1), opacity .3s .1s, visibility 0s .4s;
  }

  .menu-open .bar-nav {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0 0 0 0 round 16px);
    transition: clip-path .55s var(--ease), opacity .2s, visibility 0s;
  }

  .bar-nav a {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .2s, transform .2s;
  }

  .menu-open .bar-nav a {
    opacity: 1;
    transform: none;
    transition: opacity .45s var(--ease) var(--menu-delay, 0ms), transform .55s var(--ease) var(--menu-delay, 0ms);
  }

  .bar-nav a:nth-child(1) { --menu-delay: 70ms; }
  .bar-nav a:nth-child(2) { --menu-delay: 120ms; }
  .bar-nav a:nth-child(3) { --menu-delay: 170ms; }
  .bar-nav a:nth-child(4) { --menu-delay: 220ms; }
  .bar-nav a:nth-child(5) { --menu-delay: 270ms; }

  /* The three lines fold into a close icon. */
  .bar-menu path {
    transform-origin: 12px 12px;
    transition: transform .45s var(--ease), opacity .2s;
  }

  .menu-open .menu-line-top {
    transform: rotate(45deg) translateY(5px);
  }

  .menu-open .menu-line-mid {
    opacity: 0;
    transform: scaleX(.2);
  }

  .menu-open .menu-line-bottom {
    transform: rotate(-45deg) translateY(-5px);
  }

  .about,
  .work-in,
  .contact-card,
  .foot-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-frame {
    clip-path: inset(
      calc(var(--p) * 12vh) calc(var(--p) * 4vw) calc(var(--p) * 48vh) calc(var(--p) * 4vw)
      round calc(var(--p) * 26px)
    );
  }

  .hero-after-title {
    font-size: clamp(30px, 8.4vw, 58px);
  }

  .hero-after > p:not(.hero-after-title) {
    margin-top: 12px;
    font-size: clamp(15px, 4vw, 19px);
  }

  .hero-after .btn {
    margin-top: 14px;
  }

  .hero-after {
    top: auto;
    bottom: 3vh;
    right: 24px;
    width: auto;
    transform: translateY(calc((1 - var(--in)) * 60px));
  }

  .work-in {
    padding: 100px 24px 40px;
  }

  .about-mark {
    width: min(58%, 300px);
    justify-self: center;
  }

  .company-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-row li {
    height: 190px;
  }

  .company-row img {
    max-width: 88%;
    max-height: 124px;
  }

  /* Wide single-column cards (tablet): emblem and name centred like the
     Panayappilly logo, with the names lined up across the two cards. */
  .company-text {
    min-width: 240px;
  }

  .company-lockup img {
    width: 104px;
    height: 104px;
  }

  .company-text strong {
    font-size: 24px;
  }

  .company-text span {
    font-size: 16px;
  }

}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 12.6vw;
  }

  .work-grid,
  .two {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat,
  .cat:nth-child(-n+2) {
    grid-column: 1 / -1;
    height: 240px;
  }

  .logo-row li {
    height: 120px;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 11.6vw;
  }

  /* Phones: directors stack, as before; company cards keep their left-aligned lockups. */
  .dir-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dir-photo {
    aspect-ratio: 4 / 5;
  }

  .company-row .company-lockup {
    justify-content: flex-start;
    padding-left: 32px;
  }

  .company-text {
    min-width: 0;
  }
}

/* Phones held sideways and other short screens */
@media (max-height: 600px) {
  .hero-stage {
    min-height: 0;
  }

  h1 {
    font-size: clamp(32px, 13vh, 56px);
  }

  .hero-copy {
    bottom: 18px;
  }

  .hero-copy p {
    margin-top: 8px;
    font-size: 15px;
  }

  .hero-copy .btn {
    margin-top: 10px;
  }

  .hero-after-title {
    font-size: clamp(24px, 8vh, 40px);
  }

  .hero-after > p:not(.hero-after-title) {
    margin-top: 8px;
    font-size: 14px;
  }

  .hero-after .btn {
    margin-top: 10px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero-frame {
    clip-path: inset(
      calc(var(--p) * 96px) calc(var(--p) * 3vw) calc(var(--p) * 16px) calc(var(--p) * 50vw)
      round calc(var(--p) * 22px)
    );
  }

  .hero-after {
    top: 96px;
    right: auto;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 42vw;
    transform: translateY(calc((1 - var(--in)) * 40px));
  }
}

/* Our Process: six numbered steps, with the transfer note under the heading. */
.transfer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
  animation: transfer-pulse 2.6s ease-out infinite;
}

.transfer-icons {
  display: inline-flex;
  flex: none;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}

@keyframes transfer-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .transfer { animation: none; }
}

.work-grid .step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}

/* Our Companies: the parent company's card is wider, so its logo reads larger. */
.company-row .company-main {
  padding: 16px 18px;
}

.company-row .company-main img {
  max-width: 100%;
  max-height: 140px;
}

@media (max-width: 700px) {
  .company-row .company-main {
    padding: 20px;
  }

  .company-row .company-main img {
    max-width: 94%;
  }

  .transfer {
    font-size: 16px;
  }
}

@media (min-width: 961px) {
  .company-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.contact-side > .contact-phone + .contact-phone {
  margin-top: 8px;
}

/* Step 7: the transfer step spans the full row so it stands out. */
.work-grid .step-transfer {
  grid-column: 1 / -1;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(8, 28, 71, .86);
}

.freight {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.work-grid .freight li {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
