/*
 * EKAT GROUP — Shared site styles
 * Global foundations, header, footer and reusable components.
 */

:root {
  --navy: var(--ekat-navy);
  --aqua: var(--ekat-aqua);
  --deep: var(--ekat-deep);
  --paper: var(--ekat-paper);
  --white: var(--ekat-white);
  --ink: var(--ekat-ink);
  --muted: var(--ekat-muted);
  --line: var(--ekat-line);
  --container: var(--ekat-container);
  --section-space: var(--ekat-space-section);
  --radius-sm: var(--ekat-radius-small);
  --radius-md: var(--ekat-radius-medium);
  --radius-media: var(--ekat-radius-media);
  --radius-control: var(--ekat-radius-control);
  --shadow: var(--ekat-shadow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button:not(.menu-toggle):not(.dropdown-toggle),
.touch,
.button,
.cta-actions a,
.form-actions button,
.profile-download a,
.project-cta a,
.gallery-cta a,
.service-cta a,
.about-page .cta > a {
  border-radius: var(--radius-control) !important;
}

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.story-image,
.service-photo,
.project,
.step,
.feature-image,
.gallery-tile,
.journal-card,
.article-card,
.article-cover,
.article-inline-image,
.related-card,
.overview-image,
.sample,
.method-image,
.service-hero-image,
.project-card figure,
.project-visuals figure,
.gallery-item button {
  border-radius: var(--radius-media);
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 80px;
  width: min(var(--container), 100%);
  margin: 0 auto 52px;
}

.section-head h2,
.scroll-gallery-head h2,
.journal-head h2 {
  margin: 18px 0 0;
  font: 500 clamp(40px, 4.1vw, 62px) / 1.04 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.section-head h2 span,
.scroll-gallery-head h2 span,
.journal-head h2 span {
  color: var(--aqua);
}

.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Hero */

.hero {
  position: relative;
  width: 100%;
  height: min(900px, 100vh);
  min-height: 720px;
  overflow: hidden;
  background: var(--deep)
    url("https://ekatgroup.co/wp-content/uploads/2025/06/Ran-016.jpg")
    center 42% / cover;
  color: var(--white);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 149.78vh);
  height: max(66.76vw, 100vh);
  border: 0;
  transform: translate(-50%, -50%);
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 47, 62, 0.34),
    rgba(8, 47, 62, 0.04) 36%,
    rgba(8, 47, 62, 0.74)
  );
  pointer-events: none;
}

nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  height: 100px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-logo {
  width: 154px;
  height: 58px;
}

.header-logo img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.menu-primary {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu-primary > a,
.dropdown-toggle {
  white-space: nowrap;
  transition: color 0.25s ease;
}

.menu-primary > a:hover,
.menu-primary > a:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  color: var(--aqua);
}

.menu-brand,
.menu-socials {
  display: none;
}

.nav-item {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.dropdown-toggle span {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.dropdown-toggle[aria-expanded="true"] span {
  margin-top: 3px;
  transform: rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  left: -22px;
  display: grid;
  min-width: 250px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(8, 47, 62, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-menu a {
  padding: 11px 12px;
  border-radius: 7px;
  color: #d5e0e3;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--aqua);
}

.navright {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.menu-toggle {
  display: none;
}

.touch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.93);
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
}

.touch::after {
  content: "→";
  font-size: 17px;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 31%;
  right: 0;
  left: 0;
}

.hero-copy .badge {
  border-color: rgba(255, 255, 255, 0.6);
}

.hero h1 {
  max-width: 1060px;
  margin: 24px 0 0;
  font: 500 clamp(58px, 6.4vw, 88px) / 0.98 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: var(--aqua);
}

.hero-lower {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 48px;
  left: 0;
}

.hero-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-intro p {
  max-width: 520px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.counsel {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.counsel b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--deep);
}

/* Trust strip */

.trust-strip {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 22px 24px;
}

.trust-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  width: min(var(--container), 100%);
  margin: auto;
}

.trust-inner > span {
  color: var(--navy);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trustRail 24s linear infinite;
}

.trust-track b {
  min-width: 210px;
  color: #899194;
  font: 500 15px "Manrope", sans-serif;
  text-align: center;
}

.trust-track .trust-logo {
  display: flex;
  min-width: 190px;
  height: 52px;
  align-items: center;
  justify-content: center;
}

.trust-track .trust-logo img {
  display: block;
  max-width: 140px;
  max-height: 42px;
  object-fit: contain;
}

.trust-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
}

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

/* About */

.story {
  padding: var(--section-space) 24px;
  overflow: hidden;
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px 350px;
  grid-template-rows: 215px 370px;
  gap: 0 44px;
  width: min(var(--container), 100%);
  margin: auto;
}

.story-heading {
  grid-column: 1 / 3;
}

.story-heading .badge {
  border-color: var(--line);
  color: var(--ink);
}

.story-heading h2 {
  max-width: 720px;
  margin: 18px 0 0;
  font: 500 clamp(40px, 4.1vw, 60px) / 1.04 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.story-heading h2 span {
  color: var(--aqua);
}

.story-image {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.story-image:hover img {
  transform: scale(1.035);
}

.story-image-tall {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 350px;
  height: 406px;
}

.story-years {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  align-items: flex-end;
  align-self: start;
  gap: 16px;
  height: 316px;
  margin-top: 58px;
}

.story-years strong {
  color: var(--aqua);
  font: 500 clamp(130px, 14vw, 190px) / 0.72 "Manrope", sans-serif;
  letter-spacing: -0.09em;
}

.story-years small {
  max-width: 82px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.story-image-low {
  grid-column: 2;
  grid-row: 2;
  width: 270px;
  height: 316px;
  margin-top: 58px;
}

.story-copy {
  grid-column: 3;
  grid-row: 2;
  margin-top: 216px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.story-copy p {
  margin: 0 0 20px;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 7px 8px 7px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
}

.story-link i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--deep);
  font-style: normal;
}

/* Services */

.services,
.projects,
.stats-showcase,
.process,
.feature {
  width: 100%;
  padding-inline: max(24px, calc((100% - var(--container)) / 2));
}

.services {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--navy);
  color: var(--white);
}

.services .badge {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: var(--white) !important;
}

.services .section-head p {
  color: #d3e1e4;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.service-photo {
  position: relative;
  height: 570px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--deep);
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.65s ease;
}

.service-photo.changing img {
  opacity: 0;
  transform: scale(1.035);
}

.service-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(8, 47, 62, 0.86);
  color: var(--white);
  font-size: 13px;
  line-height: 1.55;
  backdrop-filter: blur(10px);
}

.service-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service {
  display: grid;
  grid-template-columns: 46px 1fr 40px;
  align-items: center;
  min-height: 74px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: padding 0.25s ease, background 0.25s ease;
}

.service:hover,
.service:focus,
.service.active {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.service b {
  color: var(--aqua);
  font-size: 10px;
}

.service h3 {
  margin: 0;
  color: var(--white);
  font: 500 clamp(18px, 2vw, 25px) "Manrope", sans-serif;
}

.service:hover h3,
.service:focus h3,
.service.active h3 {
  color: var(--aqua);
}

.arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--deep);
  font-size: 18px;
  transition: transform 0.25s ease;
}

.service:hover .arrow,
.service:focus .arrow {
  transform: rotate(-35deg);
}

/* Projects */

.projects {
  padding-top: var(--section-space);
  padding-right: 0;
  padding-bottom: var(--section-space);
  padding-left: 0;
  overflow: hidden;
  background: var(--white);
}

.projects .section-head {
  width: min(var(--container), calc(100% - 48px));
}

.projects-grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: max-content;
  margin-left: -110px;
  animation: projectRail 52s linear infinite;
  will-change: transform;
}

.projects-grid:hover {
  animation-play-state: paused;
}

.projects > .projects-grid + .projects-grid {
  display: none;
}

.project {
  position: relative;
  flex: 0 0 clamp(310px, 29vw, 420px);
}

.project img {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  object-fit: cover;
  transition: transform 0.55s ease;
}

.project:hover img {
  transform: scale(0.985);
}

.project::before {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  background: rgba(8, 47, 62, 0.55);
  color: var(--white);
  content: "PROJECT · EKAT GROUP";
  font-size: 9px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.project-info {
  padding-top: 13px;
}

.project-info small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-info h3 {
  margin: 5px 0 0;
  font: 500 19px "Manrope", sans-serif;
}

@keyframes projectRail {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}

/* Metrics and 3D scroll object */

.stats-showcase {
  position: relative;
  min-height: 680px;
  padding-top: 90px;
  overflow: visible;
  background: var(--paper);
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  width: min(var(--container), 100%);
  margin: auto;
}

.stat strong {
  display: block;
  color: var(--ink);
  font: 600 clamp(38px, 4vw, 56px) "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.stat-line {
  display: block;
  height: 1px;
  margin: 15px 0 17px;
  background: var(--line);
}

.stat h3 {
  margin: 0 0 8px;
  font: 600 16px "Manrope", sans-serif;
}

.stat p {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.stats-watermark {
  position: absolute;
  z-index: 0;
  bottom: 3px;
  left: -12px;
  color: #e9eae9;
  font: 500 clamp(150px, 25vw, 390px) / 0.7 "Manrope", sans-serif;
  letter-spacing: -0.09em;
  user-select: none;
}

.stats-render {
  --scroll-x: 48px;
  position: absolute;
  z-index: 3;
  right: 4vw;
  bottom: -70px;
  width: min(700px, 48vw);
  opacity: 0;
  filter: drop-shadow(0 25px 28px rgba(20, 31, 33, 0.13));
  transform: translate3d(var(--scroll-x), 0, 0);
  transition: opacity 0.65s ease;
  will-change: transform;
}

.stats-showcase.on .stats-render {
  opacity: 1;
}

/* Process */

.process {
  position: relative;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow: hidden;
  background: var(--white);
}

.process::before {
  position: absolute;
  inset: 170px 0 0;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, #9fb3b6 1px, transparent 1px),
    linear-gradient(#9fb3b6 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  pointer-events: none;
}

.process > * {
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid #e4e8e7;
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 7px 7px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  border-color: #b9dadd;
  transform: translateY(-5px);
}

.step img {
  width: 100%;
  height: 135px;
  border-radius: 12px;
  object-fit: cover;
}

.step h3 {
  margin: 22px 16px 12px;
  font: 600 17px "Manrope", sans-serif;
}

.step h3 b {
  margin-right: 3px;
  color: var(--aqua);
}

.step p {
  max-width: 210px;
  margin: 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.step::after {
  position: absolute;
  right: 10px;
  bottom: -8px;
  color: #eef1f0;
  content: attr(data-step);
  font: 600 58px "Manrope", sans-serif;
}

/* Why EKAT */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  min-height: 610px;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background:
    linear-gradient(90deg, rgba(3, 26, 34, 0.97), rgba(3, 26, 34, 0.58)),
    url("https://ekatgroup.co/wp-content/uploads/2025/06/Aspire-010.jpg")
      center / cover;
  color: var(--white);
}

.feature h2 {
  margin: 18px 0;
  font: 500 clamp(40px, 4.1vw, 62px) / 1.05 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.feature h2 span {
  color: var(--aqua);
}

.feature-copy p {
  max-width: 500px;
  color: #c0cdd0;
  font-size: 14px;
  line-height: 1.7;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  font-size: 13px;
}

.check::before {
  margin-right: 10px;
  color: var(--aqua);
  content: "✓";
}

.feature-image {
  height: 390px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inside EKAT */

.scroll-gallery {
  width: 100%;
  padding: var(--section-space) 0;
  overflow: hidden;
  background: var(--white);
}

.scroll-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto 42px;
}

.scroll-gallery-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.gallery-viewport {
  display: grid;
  gap: 18px;
}

.gallery-row {
  --gallery-x: 0px;
  display: flex;
  gap: 18px;
  width: max-content;
  transform: translate3d(var(--gallery-x), 0, 0);
  will-change: transform;
}

.gallery-tile {
  flex: 0 0 380px;
  height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Journal */

.journal {
  width: 100%;
  padding: var(--section-space) max(24px, calc((100% - var(--container)) / 2));
  background: var(--paper);
}

.journal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.journal-head a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journal-card img {
  width: 100%;
  height: 270px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.journal-card small {
  display: block;
  margin: 17px 0 9px;
  color: var(--aqua);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-card h3 {
  margin: 0;
  font: 500 20px / 1.3 "Manrope", sans-serif;
}

/* CTA */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
  width: 100%;
  min-height: 210px;
  padding: 70px max(24px, calc((100% - var(--container)) / 2));
  background: var(--navy);
  color: var(--white);
}

.cta-copy h2 {
  margin: 0 0 10px;
  color: var(--aqua);
  font: 600 clamp(30px, 3vw, 42px) / 1.1 "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

.cta-copy p {
  max-width: 600px;
  margin: 0;
  color: #d3e1e4;
  font-size: 15px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 204px;
  min-height: 58px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--white);
  color: var(--deep);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.cta-actions a:first-child {
  background: var(--white);
  color: var(--deep);
}

.cta-actions a:last-child {
  background: var(--white);
  color: var(--deep);
}

.cta-actions a::after {
  content: "\2197";
  font-size: 15px;
  line-height: 1;
}

.cta-actions a > span:first-child {
  display: none;
}

.cta-actions a:hover,
.cta-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.86);
  color: var(--deep);
  transform: translateY(-3px);
}

/* Project enquiry */

.enquiry-dialog {
  width: min(1100px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 35px 90px rgba(3, 26, 34, 0.3);
}

.enquiry-dialog::backdrop {
  background: rgba(3, 26, 34, 0.78);
  backdrop-filter: blur(8px);
}

.enquiry-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  min-height: 620px;
}

.enquiry-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--deep);
  cursor: pointer;
  font-size: 26px;
}

.enquiry-intro {
  padding: 58px 45px;
  background: var(--deep);
  color: var(--white);
}

.enquiry-intro .badge {
  border-color: rgba(255, 255, 255, 0.35);
}

.enquiry-intro h2 {
  margin: 28px 0 18px;
  font: 500 clamp(36px, 4vw, 58px) / 1.04 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.enquiry-intro p {
  color: #c2d1d5;
  font-size: 14px;
  line-height: 1.75;
}

.enquiry-contact {
  display: grid;
  gap: 9px;
  margin-top: 60px;
  font-size: 14px;
}

.enquiry-contact span {
  margin-bottom: 5px;
  color: #8fa8b1;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.enquiry-contact a {
  color: var(--aqua);
}

.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 24px 20px;
  padding: 72px 56px 48px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-wide,
.form-actions,
.form-success {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--deep);
  font-size: 12px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #bfc9ca;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 11px 0;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--aqua);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
}

.form-actions p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.form-actions button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 12px 18px 12px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--aqua);
  color: var(--deep);
  cursor: pointer;
  font-weight: 600;
}

.form-actions button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
}

.form-success {
  margin: 0;
  padding: 14px;
  border-left: 3px solid var(--aqua);
  background: var(--paper);
  color: var(--deep);
  font-size: 13px;
}

/* Footer */

footer {
  width: 100%;
  padding: 76px 32px 34px;
  background: var(--deep);
  color: #c2d1d5;
}

.footer-grid,
.copy {
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.72fr 0.92fr 1.12fr;
  gap: 68px;
}

.footer-logo {
  display: block;
  width: 220px;
  height: 78px;
  margin-bottom: 20px;
}

.footer-about p {
  max-width: 290px;
  margin: 0;
  font-size: 15px;
  line-height: 2;
}

.footer-grid h4 {
  margin: 3px 0 28px;
  color: var(--white);
  font-size: 15px;
}

.footer-links {
  display: grid;
  gap: 18px;
  font-size: 14px;
}

.footer-links a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--aqua);
  transform: translateX(3px);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.socials a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 163, 175, 0.15);
  color: var(--white);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-list {
  display: grid;
  gap: 16px;
  font-size: 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  line-height: 1.75;
}

.contact-row i {
  color: var(--aqua);
  font-style: normal;
}

.contact-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: translateY(4px);
}

.contact-row strong {
  color: var(--white);
  font-weight: 500;
}

.copy {
  display: flex;
  justify-content: space-between;
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 163, 175, 0.27);
  font-size: 13px;
}

.copy strong {
  color: var(--white);
  font-weight: 500;
}

/* Reveal states */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.on {
  opacity: 1;
  transform: none;
}

.hero,
.story {
  opacity: 1;
  transform: none;
}

/* Tablet */

@media (max-width: 900px) {
  :root {
    --section-space: 82px;
  }

  nav {
    grid-template-columns: 1fr auto;
  }

  .menu {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 22px max(24px, calc((100% - 620px) / 2));
    background: var(--deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  .menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu-brand {
    display: block;
    width: 155px;
    height: 64px;
    margin-bottom: 20px;
  }

  .menu-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
  }

  .menu-primary {
    display: grid;
    width: 100%;
  }

  .menu-primary > a,
  .dropdown-toggle {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    font: 500 clamp(22px, 4.6vw, 30px) "Manrope", sans-serif;
    letter-spacing: -0.04em;
  }

  .dropdown-toggle {
    justify-content: space-between;
  }

  .nav-item {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    max-height: 0;
    padding: 0 0 0 16px;
    overflow: hidden;
    border: 0;
    border-bottom: 0 solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: visible;
    transform: translateY(-6px);
    transition:
      max-height 0.38s cubic-bezier(0.2, 0.7, 0.2, 1),
      padding 0.38s cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 0.24s ease,
      transform 0.3s ease,
      border-width 0.3s ease;
  }

  .nav-item.is-open .dropdown-menu {
    max-height: 360px;
    padding: 8px 0 12px 16px;
    border-bottom-width: 1px;
    opacity: 1;
    transform: none;
  }

  .dropdown-menu a {
    padding: 7px 0;
    border-radius: 0;
    color: #c5d3d7;
    font-size: 16px;
    line-height: 1.35;
  }

  .menu-socials {
    display: grid;
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .menu-socials > span {
    margin-bottom: 9px;
    color: #7d9aa5;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .menu-socials div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .menu-socials a {
    color: var(--aqua);
    font-size: 13px;
  }

  .menu-toggle {
    position: relative;
    z-index: 21;
    display: grid;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(8, 47, 62, 0.3);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--white);
    transition: transform 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    height: 780px;
    min-height: 680px;
  }

  .hero-copy {
    top: 220px;
  }

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

  .hero-intro {
    display: block;
  }

  .hero-intro p {
    margin-bottom: 22px;
  }

  .section-head,
  .service-layout,
  .feature,
  .cta {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 34px;
  }

  .story-heading {
    grid-column: 1 / -1;
  }

  .story-image-tall {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 390px;
  }

  .story-years {
    grid-column: 1;
    grid-row: 2;
    height: 260px;
    margin: 0;
  }

  .story-image-low {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    height: 290px;
    margin: 0;
  }

  .story-copy {
    grid-column: 2;
    grid-row: 3;
    margin-top: 100px;
  }

  .service-photo {
    height: 480px;
  }

  .stats-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .stats-showcase {
    min-height: 770px;
  }

  .stats-render {
    right: 7vw;
    width: 68vw;
  }

  .feature {
    gap: 42px;
  }

  .cta {
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Mobile */

@media (max-width: 560px) {
  :root {
    --section-space: 64px;
  }

  .wrap {
    width: calc(100% - 28px);
  }

  nav {
    height: 82px;
  }

  .header-logo {
    width: 132px;
  }

  .navright .touch {
    display: none;
  }

  .hero {
    height: 690px;
    min-height: 650px;
  }

  .hero-copy {
    top: 180px;
  }

  .hero h1 {
    font-size: 47px;
    line-height: 1.01;
  }

  .hero-lower {
    bottom: 28px;
  }

  .hero-intro p {
    font-size: 13px;
  }

  .trust-strip {
    padding: 20px 14px;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .story {
    padding-inline: 14px;
  }

  .story-grid {
    display: block;
  }

  .story-heading {
    margin-bottom: 34px;
  }

  .story-heading h2,
  .section-head h2,
  .scroll-gallery-head h2,
  .journal-head h2 {
    font-size: 38px;
  }

  .story-image-tall {
    width: 100%;
    height: 350px;
  }

  .story-years {
    height: auto;
    margin: 48px 0;
  }

  .story-years strong {
    font-size: 124px;
  }

  .story-image-low {
    width: 100%;
    height: 300px;
  }

  .story-copy {
    margin-top: 28px;
  }

  .services,
  .process,
  .feature {
    padding-inline: 14px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 24px;
  }

  .service-photo {
    height: 390px;
  }

  .service {
    grid-template-columns: 34px 1fr 36px;
  }

  .service h3 {
    font-size: 18px;
  }

  .projects .section-head {
    width: calc(100% - 28px);
  }

  .projects-grid {
    width: auto;
    margin-left: 14px;
    padding-bottom: 15px;
    overflow-x: auto;
    animation: none;
    scroll-snap-type: x mandatory;
  }

  .project {
    flex-basis: 82vw;
    scroll-snap-align: start;
  }

  .project img {
    height: 500px;
  }

  .stats-showcase {
    min-height: 990px;
    padding: 62px 14px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 18px;
  }

  .stats-render {
    right: -3vw;
    bottom: 8px;
    width: 96vw;
  }

  .stats-watermark {
    bottom: 260px;
    font-size: 180px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 320px;
  }

  .step img {
    height: 150px;
  }

  .feature {
    min-height: auto;
  }

  .feature-image {
    height: 320px;
  }

  .checks {
    grid-template-columns: 1fr;
  }

  .scroll-gallery-head,
  .journal-head {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 28px);
  }

  .gallery-tile {
    flex-basis: 270px;
    height: 220px;
  }

  .journal {
    padding-inline: 14px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .journal-card img {
    height: 230px;
  }

  .cta {
    gap: 30px;
    padding: 58px 14px;
  }

  .cta-copy h2 {
    font-size: 38px;
  }

  .cta-copy p br {
    display: none;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions a {
    min-width: 0;
  }

  .enquiry-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .enquiry-panel {
    grid-template-columns: 1fr;
  }

  .enquiry-intro {
    padding: 50px 24px 36px;
  }

  .enquiry-contact {
    margin-top: 30px;
  }

  .enquiry-form {
    grid-template-columns: 1fr;
    padding: 40px 24px 30px;
  }

  .form-field,
  .form-field-wide,
  .form-actions,
  .form-success {
    grid-column: 1;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions button {
    justify-content: space-between;
  }

  footer {
    padding-inline: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .copy {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .stats-render {
    opacity: 1;
    transform: none;
  }
}

button:not(.menu-toggle):not(.dropdown-toggle):not(.work-arrow):not(.project-lightbox button),
.touch,
.button,
.counsel,
.story-link,
.cta-actions a,
.form-actions button,
.profile-download a,
.project-cta a,
.gallery-cta a,
.service-cta a,
.about-page .cta > a,
.about-page .mission-feature figure a,
.project-nav a,
.projects-filter button,
.gallery-filters button,
.journal-toolbar button {
  border-radius: var(--radius-control) !important;
}

.about-page .page-title h1,
.contact-hero h1,
.gallery-hero h1,
.service-title h1,
.projects-hero h1,
.project-detail-hero h1,
.article-hero h1,
.page-hero h1 {
  max-width: none !important;
  font-size: clamp(44px, 4.2vw, 64px) !important;
  line-height: 1 !important;
}

@media (min-width: 701px) {
  .about-page .page-title h1,
  .contact-hero h1,
  .gallery-hero h1,
  .service-title h1,
  .projects-hero h1,
  .project-detail-hero h1,
  .article-hero h1,
  .page-hero h1 {
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .about-page .page-title h1,
  .contact-hero h1,
  .gallery-hero h1,
  .service-title h1,
  .projects-hero h1,
  .project-detail-hero h1,
  .article-hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 10.5vw, 46px) !important;
  }
}
