@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");


:root {
  /* Evo brand palette (from logo) */
  --brand-navy: #071a33;
  --brand-cyan: #00bff2;
  --brand-cyan-2: #1fd2ff;
  --brand-yellow: #f6c20e;
  --brand-orange: #ff7a2f;

  /* Smart aliases + shades (use these instead of hardcoding) */
  --accent: var(--brand-orange);
  --accent-soft: color-mix(in srgb, var(--accent), white 18%);
  --accent-deep: color-mix(in srgb, var(--accent), black 12%);

  /* Neutral base */
  --base-100: #f7f9fc;
  --base-200: #0f172a;

  /* Primary brand alias used across the file */
  --brand-blue: var(--brand-cyan);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  /* Switch: make the main page background navy */
  background-color: var(--brand-navy);
  color: var(--base-200);
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 5vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--brand-cyan);
  letter-spacing: 0.01em;
}

/* Serif italic highlight style (to match the reference font treatment) */
.emph {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--base-100);
  background: var(--accent);
  padding: 0.1em 0.18em;
  margin: 0 0.08em;
  display: inline-block;
  line-height: 1;
}

a {
  text-decoration: none;
  color: var(--base-200);
  font-family: "Host Grotesk";
  font-size: 1.125rem;
  font-weight: 450;
  line-height: 0.9;
}

.navbar-backdrop,
 .navbar-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;

  /* Must be interactive so the nav links can receive hover/click events */
  pointer-events: auto;

  overflow: hidden;

}

.navbar-background, .navbar-items{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  min-width: 720px;
  aspect-ratio: 16/9;
  will-change: width, height;

}

.navbar-background{
  /* Make the navbar canvas match the page background (prevents white rectangle) */
  background-color: #d8dee6;
  pointer-events: none;
  z-index: 0;
}

.navbar-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;

  /* Ensure nav links are clickable (some parent layers have pointer-events: none) */
  pointer-events: auto;
}

.navbar-logo {
  position:absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 2.5rem;
  pointer-events: all;
  z-index: 2;

  /* keep the logo from overflowing the center box */
  display: grid;
  place-items: center;
}

.navbar-logo.navbar-logo-pinned {
  bottom: unset;
  top: -0.25rem;

}


.navbar-logo img {
  object-fit: contain;

  /* scale down so it fits within the gray box */
  width: 100%;
  height: auto;
  max-height: 260px;
}

.navbar-links {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: flex-start;
  gap: 26px;

  /* Make sure the links column accepts pointer interactions */
  pointer-events: auto;
}

.navbar-links a {
  display: inline-block;
  padding: 0.15rem 0;
}

.navbar-links:nth-child(1){
  padding: 2.5rem 5rem 0 2.5rem;
}

.navbar-links:nth-child(2){
  padding: 2.5rem 2.5rem 0 5rem;
  transform: translateX(-18%);
}

/* Make desktop navbar links behave like real navigation */
.navbar-items a {
  pointer-events: auto;
  cursor: pointer;
}

section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

/* Allow overlap elements (like the Projects folder) to render above the next section */
.projects,
.projects * {
  overflow: visible;
}


.hero {
  padding: 0;
  margin-top: 200svh;
  min-height: 100svh;
  /* keep original overall placement */
  align-items: flex-end;
  justify-content: flex-end;
  /* match the reference layout: content sits as one block */
  flex-direction: column;
  text-align: left;
}

.hero-image {
  position: absolute;
  top: 6.5rem;
  /* move the text block a bit more to the right */
  left: 10vw;
  /* make it wider */
  width: clamp(340px, 40vw, 720px);

  /* remove aspect lock so it can be taller */
  aspect-ratio: auto;
  min-height: clamp(520px, 60vh, 760px);

  overflow: hidden;
  pointer-events: none;

  /* No image border/panel look */
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;

  /* Move the text down by ~20% of the box height */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 20%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

/* When we use the "text block" instead of the image, let the container size itself */
.hero-image:has(.hero-image-text) {
  overflow: visible;
}

/* Text replacement inside the hero-image box */
.hero-image-text {
  width: 100%;
  height: 100%;
  display: block;
  text-align: left;
  padding: 0;
  background: transparent;
}

.hero-image-text-title {
  /* Match upper headline style */
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;

  /* +30% size, then +20% */
  font-size: clamp(1.8rem, 2.05vw, 2.4rem);

  /* closer to the H1 rhythm */
  line-height: 1.05;
  margin: 0;
  color: rgba(0, 0, 0, 0.92);
}

.hero-image-text-body {
  margin-top: 0.55rem;
  font-family: "Host Grotesk";
  font-weight: 450;

  /* +30% size, then +20% */
  font-size: clamp(1.55rem, 1.62vw, 1.86rem);
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.72);
}

.hero-image-text-body strong {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.85);
}

/* Make ONLY the requested part 20% smaller */
.hero-image-text-body-small {
  font-size: 0.6em;
}

.hero h1 {
  width: 50%;
}

/* Match the existing "hero-title" treatment so new elements align perfectly */
.hero-subtitle,
.hero-cta {
  width: 50%;
  text-align: left;
  margin-right: 6vw;
}

.hero-subtitle {
  margin-top: 1.1rem;
  margin-bottom: 0;
  font-family: "Host Grotesk";
  font-size: clamp(1rem, 1.05vw, 1.2rem);
  font-weight: 450;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.72);
  max-width: 62ch;
}

.hero-cta {
  margin-top: 1.6rem;
  display: inline-flex;
  gap: 1.25rem;
  justify-content: flex-start;
  align-items: center;
  pointer-events: all;
}

/* Buttons should feel like your current style: lighter, sharper, not "pill UI" */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* bigger buttons */
  padding: 1.05rem 1.75rem;
  border-radius: 0;
  font-family: "Host Grotesk";
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  border: 0;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--base-100);
  border-color: var(--accent);
  /* rounded corners only for the orange button */
  border-radius: 14px;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Featured Projects (reference-like) */
.projects {
  padding: 6.5rem 0 6.5rem;
  /* Switch: make the outer background navy, and keep the panel white */
  background: var(--brand-navy);
  color: #0f1115;
  align-items: flex-start;

  /* Rounded bottom corners like the reference */
  border-bottom-left-radius: 56px;
  border-bottom-right-radius: 56px;
  overflow: hidden;
}

/* Inner rounded panel like the reference, but BLUE as requested */
.projects-wrap {
  /* make the whole panel wider like the reference */
  width: min(1640px, 98vw);
  margin: 0 auto;
  pointer-events: all;
  border-radius: 18px;

  /* Switch: make the big box white */
  background: #ffffff;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.35);

  /* wider side padding like the reference */
  padding: 3.5rem 5.25rem 4.25rem;

  /* Pull the white panel slightly up so the section bottom curve reads clean */
  margin-bottom: 2.5rem;
}

.projects-header {
  border-top: 1px solid rgba(15, 23, 42, 0.14);
  padding-top: 1.15rem;
  padding-bottom: 1.85rem;
}

.projects-title {
  font-family: "Host Grotesk";
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 2.2vw, 3rem);
  color: #0f172a;
  text-align: center;
  text-shadow: 0 0 18px rgba(0,0,0,0.08);
}

/* TrueFocus (vanilla) */
.projects-title .focus-container {
  position: relative;
  display: inline-flex;
  gap: 0.6em;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  outline: none;
  user-select: none;
}

.projects-title .focus-word {
  position: relative;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: default;
  user-select: none;
  will-change: filter;
}

.projects-title .focus-frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  box-sizing: content-box;
  border: none;
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  will-change: transform, width, height;
}

.projects-title .corner {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
 border: 3px solid var(--border-color, #fff);
 filter:
   drop-shadow(0px 0px 4px var(--border-color, #fff))
   drop-shadow(0px 0px 14px var(--glow-color, rgba(255,255,255,0.35)));
 border-radius: 3px;
}

.projects-title .top-left {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.projects-title .top-right {
 top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
}

.projects-title .bottom-left {
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
}

.projects-title .bottom-right {
 bottom: -10px;
  right: -10px;
  border-left: none;
 border-top: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.project {
  display: block;
}

.project-link {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.05rem;
  color: inherit;
}

.project-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 44px rgba(0,0,0,0.14);
}

.project--wide .project-media {
  aspect-ratio: 16 / 9;
}

.project:not(.project--wide) .project-media {
  aspect-ratio: 4 / 5;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 320ms ease;
}

.project-link:hover .project-media img {
  transform: scale(1.04);
}

.project-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(12, 12, 18, 0.45);
  color: rgba(255,255,255,0.92);
  font-family: "Host Grotesk";
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.15;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 16px 44px rgba(0,0,0,0.14), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent) inset;
}

.project-chip small {
  display: block;
  margin-top: 0.2rem;
  font-weight: 450;
  font-size: 0.82rem;
  opacity: 0.9;
}

.project-number {
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-family: "Host Grotesk";
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.project-label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  color: rgba(15,17,21,0.55);
  background: rgba(255,255,255,0.35);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
}

.project-meta {
  text-align: left;
}

.project-name {
  font-family: "Host Grotesk";
  font-weight: 900;
  font-size: clamp(2.1rem, 1.6vw, 2.55rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.project-sub {
  margin-top: 0.45rem;
  font-family: "Host Grotesk";
  font-size: clamp(1.12rem, 0.95vw, 1.3rem);
  font-weight: 450;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.4;
}

.project-sub strong {
  font-weight: 850;
  color: rgba(15, 23, 42, 0.92);
}

/* Second row should be 2 equal columns like the reference */
.project:nth-child(3),
.project:nth-child(4) {
  grid-column: span 1;
}

.projects-grid .project:nth-child(3) {
  grid-column: 1;
}

.projects-grid .project:nth-child(4) {
  grid-column: 2;
}

/* Folder CTA (pure CSS toggle) */
.projects-folder {
  /*
    Make a clean gap between Projects and the next section.
    Folder sits in that gap.
  */
  margin-top: 4.25rem;
  transform: none;
  margin-bottom: 0;

  display: grid;
  place-items: center;

  position: relative;
  z-index: 10;
  pointer-events: all;
  isolation: isolate;
}

/* Ensure the folder renders above the section below */
.projects-folder * {
  pointer-events: auto;
}

.folder-scale {
  /* Smaller by ~20% */
  transform: scale(3.92);
  transform-origin: center;
}

.folder-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.folder {
  /* keep folder cyan, just add a subtle orange glow like the logo accent */
  --folder-color: var(--brand-cyan);
  --folder-back-color: color-mix(in srgb, var(--brand-cyan) 78%, var(--brand-navy));
  --paper-1: #eef3f8;
  --paper-2: #f6f9fc;
  --paper-3: #ffffff;

  display: inline-block;
  transition: transform 0.2s ease-in;
  cursor: pointer;
  filter:
    drop-shadow(0px 0px 0px color-mix(in srgb, var(--accent) 0%, transparent))
    drop-shadow(0px 18px 40px color-mix(in srgb, var(--accent) 10%, transparent));
}

.folder--click:hover {
  transform: translateY(-8px);
}

.folder--click:hover .paper {
  transform: translate(-50%, 0%);
}

.folder--click:hover .folder__front {
  transform: skew(15deg) scaleY(0.6);
}

.folder--click:hover .folder__front.right {
  transform: skew(-15deg) scaleY(0.6);
}

/* Open state driven by checkbox */
.folder-toggle:checked + .folder {
  transform: translateY(-8px);
}

.folder-toggle:checked + .folder .paper:nth-child(1) {
  transform: translate(-120%, -70%) rotateZ(-15deg);
}

.folder-toggle:checked + .folder .paper:nth-child(1):hover {
  transform: translate(-120%, -70%) rotateZ(-15deg) scale(1.1);
}

.folder-toggle:checked + .folder .paper:nth-child(2) {
  transform: translate(10%, -70%) rotateZ(15deg);
  height: 80%;
}

.folder-toggle:checked + .folder .paper:nth-child(2):hover {
  transform: translate(10%, -70%) rotateZ(15deg) scale(1.1);
}

.folder-toggle:checked + .folder .paper:nth-child(3) {
  transform: translate(-50%, -100%) rotateZ(5deg);
  height: 80%;
}

.folder-toggle:checked + .folder .paper:nth-child(3):hover {
  transform: translate(-50%, -100%) rotateZ(5deg) scale(1.1);
}

.folder-toggle:checked + .folder .folder__front {
  transform: skew(15deg) scaleY(0.6);
}

.folder-toggle:checked + .folder .folder__front.right {
  transform: skew(-15deg) scaleY(0.6);
}

.folder__back {
  position: relative;
  width: 170px;
  height: 80px;
  background: var(--folder-back-color);
  border-radius: 0px 10px 10px 10px;
}

.folder__back::after {
  position: absolute;
  z-index: 0;
  bottom: 98%;
  left: 0;
  content: "";
  width: 30px;
  height: 10px;
  background: var(--folder-back-color);
  border-radius: 5px 5px 0 0;
}

.paper {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, 10%);
  width: 70%;
  height: 80%;
  background: var(--paper-1);
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.paper:nth-child(2) {
  background: var(--paper-2);
  width: 80%;
  height: 70%;
}

.paper:nth-child(3) {
  background: var(--paper-3);
  width: 90%;
  height: 60%;
}

.folder__front {
  position: absolute;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: var(--folder-color);
  border-radius: 5px 10px 10px 10px;
  transform-origin: bottom;
  transition: all 0.3s ease-in-out;
  display: grid;
  align-content: center;
  overflow: hidden; /* keep title inside rounded face */
}

.folder__front.right {
  clip-path: polygon(85% 0, 100% 0, 100% 100%, 0 100%, 0 90%, 85% 90%);
}

/* Big title on the folder face */
.folder-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 92%;
  padding: 0.05rem 0.15rem;
  color: #000 !important;
  text-align: center;
  white-space: nowrap;

  /* More "silly" handwritten / marker vibe */
  font-family: "Caveat", cursive;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.85;

  /* Make it look like ink on the folder */
  text-shadow:
    0 2px 0 rgba(0,0,0,0.18),
    0 10px 30px rgba(0,0,0,0.18);

  /* Bigger */
  font-size: 1.18rem;

  pointer-events: none;
}

/* scale with the folder (preserve true centering) */
.folder-scale .folder-title {
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
}

.paper-content {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--brand-cyan) 85%, var(--brand-navy));
  transform: rotate(-4deg);
  text-align: center;
}


@media (max-width: 900px) {
  .projects-wrap {
    padding: 2.25rem 1.25rem 2.75rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid .project:nth-child(3),
  .projects-grid .project:nth-child(4) {
    grid-column: auto;
  }

  .project--wide .project-media,
  .project:not(.project--wide) .project-media {
    aspect-ratio: 16 / 10;
  }

  .project-label {
    font-size: 2rem;
  }

  .projects-folder {
    margin-top: 3rem;
  }

  .folder-scale {
    transform: scale(2.88);
  }
}


/* Masonry (GSAP) */
.masonry {
  padding: 6.5rem 0 7rem;
  background: var(--brand-navy);
  align-items: flex-start;
}

.masonry-wrap {
  width: min(1900px, 96vw);
  margin: 0 auto;
  pointer-events: all;
}

.masonry-frame {
  position: relative;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(180deg, rgba(7, 7, 24, 0.92), rgba(5, 5, 18, 0.92));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
}

.masonry-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.masonry-refresh {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 9, 18, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.masonry-refresh:hover {
  background: rgba(15, 15, 28, 0.7);
}

/* From your Masonry.css (adapted) */
.masonry .list {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.masonry .item-wrapper {
  position: absolute;
  will-change: transform, width, height, opacity;
  padding: 8px;
  cursor: pointer;
  top: 0;
  left: 0;
}

.masonry .item-wrapper > .item-img {
  position: relative;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0px 18px 60px -18px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

@media (max-width: 720px) {
  .masonry-frame {
    padding: 16px;
    border-radius: 18px;
  }

  .masonry .item-wrapper {
    padding: 6px;
  }
}

/* Gallery (reference-like grid/cards) */
.gallery {
  padding: 7rem 0 7rem;
  align-items: flex-start;
  background: var(--brand-navy);
  color: var(--base-100);
}

.gallery-wrap {
  width: min(1900px, 98vw);
  margin: 0 auto;
  pointer-events: all;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2.8fr 1.4fr 1.4fr;
  grid-auto-rows: auto;
  gap: 0.75rem;
  align-items: start;
}

.gcard {
  background: transparent;
  overflow: hidden;
}

.gcard-link {
  display: block;
  color: inherit;
}

.gcard-media {
  border-radius: 0;
  overflow: hidden;
  background: #0b0c26;
}

/* Top row sizing like the reference */
.gcard--hero .gcard-media {
  aspect-ratio: 16 / 10;
}

.gcard--tall .gcard-media {
  aspect-ratio: 3 / 5;
}

/* Second row layout (match reference):
   row 2 col 1: small
   row 2 col 2: small
   row 2 col 3: big (spans 2 columns) */
.gcard--wide {
  grid-column: span 1;
}

/* 4th card overall = first wide in row 2 */
.gcard--wide:nth-of-type(4) {
  grid-column: 1;
}

/* 5th card overall = second wide in row 2 */
.gcard--wide:nth-of-type(5) {
  grid-column: 2;
}

/* 6th card overall = third wide in row 2 (make it the big one) */
.gcard--wide:nth-of-type(6) {
  grid-column: 3 / span 2;
}

.gcard--wide .gcard-media {
  aspect-ratio: 16 / 8;
}

.gcard--wide:nth-of-type(6) .gcard-media {
  aspect-ratio: 16 / 7;
}

.gcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 350ms ease;
}

.gcard:hover img {
  transform: scale(1.06);
}

.gcard-meta {
  padding-top: 1rem;
  text-align: left;
}

.gcard-kicker {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--brand-cyan);
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.gcard-title {
  font-family: "Host Grotesk";
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--base-100);
}

/* Position + size like the reference (bottom-right block) */
.hero-title {
  font-size: clamp(1.4rem, 2.1vw, 2.6rem);
  text-align: left;
  margin: 0 6vw 0 0;
  color: #000 !important;
}

/* Keep the whole hero block vertically placed like before, but let items stack naturally */
.hero {
  padding-bottom: 80vh;
}

/* Testimonial (quote card section like screenshot) */
.testimonial {
  position: relative;
  padding: 7rem 0 7.5rem;
  /* Add extra top space so there's a clear gap after the folder */
  margin-top: 6rem;
  /* Smoothly blend into the next (navy) section so it feels like ONE section */
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,0.55), transparent 55%),
    linear-gradient(180deg,
      #d8dee6 0%,
      #cbd2dc 38%,
      var(--brand-navy) 100%
    );
  color: #0e0e10;
}


.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--brand-cyan) 45%, transparent) 0px,
      color-mix(in srgb, var(--brand-cyan) 45%, transparent) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 6px
    );
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

/* Big moving background words (two looping rows) */
.testimonial::after {
  content: "";
}

.testimonial {
  --marquee-ink: rgba(10, 12, 16, 0.16);
}

.testimonial .testimonial-marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.testimonial .testimonial-marquee-row {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* bring it a bit up and slightly to the left */
  transform: translate(-6vw, -2.2rem);
}

.testimonial .testimonial-marquee-row + .testimonial-marquee-row {
  margin-top: 1.2rem;
  transform: translate(-6vw, -0.2rem);
}

.testimonial .testimonial-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  will-change: transform;
  animation: testimonial-marquee-left 34s linear infinite;
}

.testimonial .testimonial-marquee-row--slow .testimonial-marquee-track {
  animation-duration: 46s;
}

.testimonial .testimonial-marquee-text {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 0.88;
  color: var(--marquee-ink);
  white-space: nowrap;
}

@keyframes testimonial-marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-wrap {
  width: min(1200px, 94vw);
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  width: min(980px, 92vw);
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(2.2rem, 4.2vw, 3.4rem);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
}

.testimonial-quote {
  color: var(--accent);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.testimonial-title {
  font-family: "Host Grotesk";
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.06;
  color: #15161a;
  text-align: left;
}

.testimonial-person {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1.1rem;
  align-items: center;
}

.testimonial-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: var(--brand-yellow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.testimonial-name {
  font-family: "Host Grotesk";
  font-weight: 800;
  font-size: 1.35rem;
  color: #15161a;
  text-align: left;
}

.testimonial-role {
  font-family: "Host Grotesk";
  font-weight: 450;
  font-size: 1.05rem;
  color: rgba(21, 22, 26, 0.72);
  text-align: left;
}

@media (max-width: 720px) {
  .testimonial {
    padding: 5.25rem 0 5.75rem;
    margin-top: 4rem;
  }

  .testimonial-card {
    border-radius: 14px;
  }

  .testimonial-person {
    grid-template-columns: 70px 1fr;
  }

  .testimonial-avatar {
    width: 70px;
    height: 70px;
  }

  .testimonial-avatar img {
    width: 62px;
    height: 62px;
  }
}

/* Metrics dashboard section (cards around a center tile) */
.metrics {
  /* Brand navy background */
  background: var(--brand-navy);
  padding: 10.5rem 0 7.5rem;
  color: #0f1115;
  align-items: flex-start;
  z-index: 1;

  /* Remove any visible seam between testimonial gradient and this section */
  margin-top: -1px;
}

/* If any content in Metrics creates its own stacking context, keep it under the folder */
.metrics-wrap {
  position: relative;
  z-index: 1;
}

/* Metrics headline (WE ALWAYS DO More THAN JUST WEBSITES) */
.metrics-header {
  width: min(1200px, 92vw);
  margin: 0 auto 4.25rem;
  text-align: center;
  pointer-events: all;
}

.metrics-headline {
  margin: 0;
  color: #fff;
  font-family: "Host Grotesk";
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
}

.metrics-headline-line {
  display: inline-block;
}

.metrics-headline-line--script {
  font-family: "Pacifico", "Playfair Display", serif;
  text-transform: none;
  font-weight: 400;
  color: var(--brand-yellow);
  letter-spacing: -0.02em;
  margin: 0 0.18em;
  transform: translateY(0.08em);
}

.metrics-subhead {
  margin: 1.6rem auto 0;
  max-width: 46ch;
  font-family: "Host Grotesk";
  font-weight: 450;
  font-size: clamp(1.1rem, 1.4vw, 1.75rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.88);
}

.metrics-wrap {
  width: min(1600px, 96vw);
  margin: 0 auto;
  pointer-events: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 2.2fr 1.05fr 1.05fr;
  grid-template-rows: 220px 260px;
  gap: 1.5rem;
  align-items: stretch;
}

.metrics-card,
.metrics-center {
  border-radius: 18px;
  background: #d8d9e2;
  border: 1px solid rgba(18, 22, 34, 0.10);
  box-shadow:
    0 18px 44px rgba(2, 6, 16, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms ease;
}

.metrics-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 25% 0%, rgba(255, 255, 255, 0.45), transparent 52%),
    radial-gradient(120% 120% at 85% 100%, rgba(70, 60, 200, 0.10), transparent 55%);
  opacity: 0.7;
}

.metrics-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 70px rgba(2, 6, 16, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  background: #e1e2ea;
}

.metrics-card-title {
  font-family: "Host Grotesk";
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-align: left;
  padding: 1.05rem 1.1rem 0;
  color: rgba(15, 17, 21, 0.88);
}

.metrics-card-title + * {
  position: relative;
  z-index: 1;
}

/* Layout mapping (approx like screenshot) */
.metrics-card--conversion { grid-column: 1; grid-row: 1; }
.metrics-card--booking    { grid-column: 2; grid-row: 1; }
.metrics-card--optimization { grid-column: 4; grid-row: 1; min-height: calc(100% + 40px); }
.metrics-card--ads        { grid-column: 5; grid-row: 1; }

.metrics-card--brand      { grid-column: 1 / span 2; grid-row: 2; margin-right: 230px; }
.metrics-card--sales      { grid-column: 2; grid-row: 2; transform: translateY(40px); }
.metrics-card--secure     { grid-column: 4; grid-row: 2; transform: translateY(30px); }
.metrics-card--mobile     { grid-column: 5; grid-row: 2; }

.metrics-center {
  grid-column: 3;
  grid-row: 1 / span 2;
  background: linear-gradient(180deg, #131a26 0%, #0e1522 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 90px rgba(3, 7, 16, 0.62);
}

.metrics-center-inner {
  height: 100%;
  display: grid;
  place-items: center;
  gap: 1.25rem;
  padding: 2.25rem;
}

.metrics-globe {
  width: min(240px, 40vw);
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  position: relative;
}

.metrics-globe::before,
.metrics-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

/* Longitude lines */
.metrics-globe::before {
  border-left: 6px solid rgba(255, 255, 255, 0.98);
  border-right: 6px solid rgba(255, 255, 255, 0.98);
  left: 50%;
  right: auto;
  width: 52%;
  transform: translateX(-50%);
  opacity: 0.95;
}

/* Latitude lines */
.metrics-globe::after {
  border-top: 6px solid rgba(255, 255, 255, 0.98);
  border-bottom: 6px solid rgba(255, 255, 255, 0.98);
  top: 50%;
  bottom: auto;
  height: 52%;
  transform: translateY(-50%);
  opacity: 0.95;
}

.metrics-domain {
  font-family: "Host Grotesk";
  font-weight: 450;
  font-size: 1.85rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Conversion card */
.metrics-card--conversion .metrics-card-body {
  padding: 1.15rem 1.2rem 1.2rem;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.metrics-pill {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.0) 60%),
    rgba(73, 61, 199, 0.16);
  display: grid;
  place-items: center;
  color: #3d36ff;
  font-size: 1.55rem;
  box-shadow:
    0 16px 34px rgba(73, 61, 199, 0.18),
    0 0 0 12px rgba(73, 61, 199, 0.07) inset;
}

.metrics-graph {
  height: 230px; /* +40px */
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  /* With Lottie inside, keep background minimal */
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(18, 22, 34, 0.08);
  box-shadow:
    0 14px 32px rgba(2, 6, 16, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

/* Booking card (match screenshot: icon + title, divider, rows) */
.metrics-card--booking {
  padding-bottom: 0.25rem;
  min-height: calc(100% + 50px);
}

.metrics-card--booking .metrics-card-title {
  /* Replace title with icon + label */
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.1rem 0;
  font-size: 1.18rem;
  font-weight: 850;
  color: rgba(15, 17, 21, 0.9);
}

.metrics-card--booking .metrics-card-title::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.0) 60%),
    #e85b1a;
  box-shadow:
    0 10px 18px rgba(232, 91, 26, 0.28),
    0 0 0 6px rgba(232, 91, 26, 0.10) inset;
}

.metrics-card--booking .metrics-list {
  padding: 0.7rem 1.1rem 1.05rem;
  display: grid;
  gap: 0.55rem;
  position: relative;
}

/* Divider line under the header */
.metrics-card--booking .metrics-list::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(15, 17, 21, 0.28);
  margin: 0.15rem 0 0.35rem;
}

.metrics-card--booking .metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: "Host Grotesk";
  font-size: 0.86rem;
  color: rgba(15, 17, 21, 0.78);
  border-bottom: 1px solid rgba(15, 17, 21, 0.18);
  padding-bottom: 0.52rem;
}

.metrics-card--booking .metrics-row span:last-child {
  color: rgba(15, 17, 21, 0.55);
  white-space: nowrap;
}

.metrics-card--booking .metrics-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Brand loyalty */
.metrics-card--brand .metrics-badge {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 4px solid color-mix(in srgb, var(--brand-yellow) 70%, transparent);
  display: grid;
  place-items: center;
  font-family: "Host Grotesk";
  font-weight: 800;
  color: rgba(15, 17, 21, 0.75);
  background: rgba(255,255,255,0.55);
}

.metrics-card-note {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  right: 1.2rem;
  font-family: "Host Grotesk";
  font-size: 0.9rem;
  color: rgba(15, 17, 21, 0.65);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

/* Sales */
.metrics-big {
  font-family: "Host Grotesk";
  font-weight: 900;
  font-size: 3.2rem;
  color: #2ea463;
  text-align: left;
  padding: 0.75rem 1.2rem 0;
}

.metrics-status {
  margin: 1.1rem 1.2rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Host Grotesk";
  font-size: 0.95rem;
  color: rgba(15, 17, 21, 0.72);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.metrics-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2ea463;
}

/* Optimization ring */
.metrics-ring {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  margin: 1.25rem auto 0;
  background:
    conic-gradient(#42b876 0 75%, rgba(15, 17, 21, 0.18) 0 100%);
  display: grid;
  place-items: center;
  box-shadow:
    0 16px 40px rgba(2, 6, 16, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.metrics-ring::before {
  content: "";
  width: 122px;
  height: 122px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15, 17, 21, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.metrics-ring span {
  position: absolute;
  font-family: "Host Grotesk";
  font-weight: 900;
  font-size: 3rem;
  color: #2ea463;
}

/* Secure connection */
.metrics-lock {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 1.2rem auto 0;
  background: rgba(0,0,0,0.06);
  position: relative;
}

.metrics-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 44px;
  border-radius: 12px;
  background: rgba(73, 61, 199, 0.16);
}

.metrics-lock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: 44px;
  height: 36px;
  border: 8px solid rgba(73, 61, 199, 0.75);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.metrics-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(235, 77, 77, 0.55), transparent 32%),
    linear-gradient(90deg, transparent 68%, rgba(66, 184, 118, 0.55));
  opacity: 0.9;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0.85) 100%);
}

/* Advertising efficiency */
.metrics-cursor {
  width: 170px;
  height: 120px;
  margin: 1.2rem auto 0;
  border-radius: 16px;
  background: rgba(0,0,0,0.06);
  position: relative;
}

.metrics-cursor::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: 70px;
  height: 70px;
  border-left: 6px solid rgba(15, 17, 21, 0.35);
  border-top: 6px solid rgba(15, 17, 21, 0.35);
  border-right: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.metrics-cursor::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 32%;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 3px solid rgba(15, 17, 21, 0.25);
  transform: rotate(10deg);
}

/* Mobile friendly */
.metrics-phone {
  width: 170px;
  height: 150px;
  margin: 1.1rem auto 0;
  border-radius: 26px;
  border: 4px solid rgba(15, 17, 21, 0.22);
  position: relative;
  background: rgba(255,255,255,0.35);
}

.metrics-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 58px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.16);
}

.metrics-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(46, 164, 99, 0.22);
  box-shadow: 0 10px 22px rgba(46, 164, 99, 0.18);
}

@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .metrics-card,
  .metrics-center {
    grid-column: auto;
    grid-row: auto;
  }

  .metrics-center {
    min-height: 420px;
  }
}

/* Mobile: turn metrics cards into a slider "gallery" with same-size cards */
@media (max-width: 720px) {
  .metrics {
    padding: 7.5rem 0 6.5rem;
  }

  .metrics-wrap {
    pointer-events: all;
  }

  /* Make the container full-bleed for smooth horizontal scrolling */
  .metrics-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    grid-template-columns: none;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    padding: 0 4vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    pointer-events: auto;
  }

  .metrics-grid::-webkit-scrollbar {
    height: 0;
    display: none;
  }

  /* All items (including the graph tile + center tile) are equal sized slides */
  .metrics-grid > * {
    scroll-snap-align: center;
    min-height: 360px;
    height: 360px;
    width: 100%;
  }

  .metrics-graph {
    border-radius: 18px;
    overflow: hidden;
  }

  .metrics-card,
  .metrics-center {
    min-height: 360px;
    height: 360px;
  }

  /* Ensure inner content doesn't overflow */
  .metrics-card-title {
    font-size: 1.05rem;
  }

  .metrics-domain {
    font-size: 1.5rem;
  }

  /* Stop desktop transforms from affecting mobile */
  .metrics-card--sales,
  .metrics-card--secure,
  .metrics-card--optimization {
    transform: none;
  }

  .metrics-card--brand {
    margin-right: 0;
  }
}

/* Assurance section ("YOU CAN be sure THAT WE") */
.assurance {
  background: var(--brand-navy);
  color: #fff;
  padding: 7rem 0 7.5rem;
  align-items: flex-start;
}

.assurance-wrap {
  width: min(1600px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  padding: 0 3.25rem;
  pointer-events: all;
}

.assurance-title {
  text-align: left;
  line-height: 0.95;
}

.assurance-title-line {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #15161a;
  font-size: clamp(3.8rem, 6.2vw, 6.8rem);
}

.assurance-title-line--script {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--brand-cyan);
  margin: 0.15em 0;
}

.assurance-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.assurance-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 50px rgba(18, 22, 30, 0.12);
  min-height: 240px;
  padding: 2.25rem;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  text-align: left;
}

.assurance-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0f1622;
  color: #fff;
  font-family: "Host Grotesk";
  font-weight: 800;
  font-size: 1.8rem;
}

.assurance-text {
  margin-top: auto;
  font-family: "Host Grotesk";
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.06;
  color: #15161a;
}

@media (max-width: 980px) {
  .assurance-wrap {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }

  .assurance-cards {
    grid-template-columns: 1fr;
  }
}

/* Card Swap */
.card-swap {
  padding: 6.5rem 0 7rem;
  background: var(--brand-navy);
  color: #fff;
  align-items: flex-start;
}

.card-swap-wrap {
  width: min(1900px, 96vw);
  margin: 0 auto;
  pointer-events: all;
}

.card-swap-frame {
  position: relative;
  border-radius: 24px;
  /* extra right padding so the stack is never clipped */
  padding: clamp(1.5rem, 3vw, 2.5rem);
  padding-right: clamp(5rem, 9vw, 9rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(180deg, rgba(7, 7, 24, 0.92), rgba(5, 5, 18, 0.92));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 520px;
}

.card-swap-left {
  text-align: left;
  padding-left: clamp(0.25rem, 1vw, 1rem);
}

.card-swap-title {
  font-family: "Host Grotesk";
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.92);
}

.card-swap-subtitle {
  margin-top: 0.9rem;
  font-family: "Host Grotesk";
  font-weight: 450;
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
}

.card-swap-right {
  position: relative;
  min-height: 440px;
}

.card-swap-container {
  position: absolute;
  right: 0;
  bottom: 0;
  /* stronger left shift + slightly less Y drop to match reference */
  transform: translate(-68%, 6%);
  transform-origin: bottom right;
  perspective: 900px;
  overflow: visible;
}

.card-swap-container .card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.85);
  background:
    radial-gradient(circle at 35% 25%, rgba(140, 80, 255, 0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(40, 180, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(12, 12, 26, 0.96), rgba(6, 6, 14, 0.96));
  box-shadow:
    0 28px 90px rgba(0,0,0,0.65),
    0 1px 0 rgba(255,255,255,0.08) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-swap-container .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.10), transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.card-swap-container .card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
}

/* Card content (futuristic website panel) */
.card-swap-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-swap-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.card-swap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  font-family: "Host Grotesk";
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.9);
  opacity: 0.95;
  white-space: nowrap;
}

.card-swap-tag {
  font-family: "Host Grotesk";
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
}

.card-swap-meta {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.2rem;
  font-family: "Host Grotesk";
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
}

.card-swap-badge {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1.1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 6vw, 6.5rem);
  line-height: 1;
  color: rgba(160, 110, 255, 0.78);
  text-shadow:
    0 14px 40px rgba(120, 80, 255, 0.35),
    0 2px 0 rgba(255,255,255,0.08);
}

@media (max-width: 980px) {
  .card-swap-frame {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .card-swap-right {
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  .card-swap-container {
    transform: scale(0.75) translate(25%, 25%);
  }
}

@media (max-width: 480px) {
  .card-swap-container {
    transform: scale(0.55) translate(25%, 25%);
  }
}

/* Feature section (3 big cards + headline) */
.feature {
  background: var(--brand-navy);
  color: #fff;
  padding: 7rem 0 7.5rem;
  align-items: flex-start;
}

/* Contact CTA (reference-like) */
.contact-cta {
  background: #eef3f8;
  color: var(--brand-cyan);
  padding: 8rem 0;
  align-items: stretch;
}

.contact-cta-wrap {
  width: min(1900px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  padding: 0 3.25rem;
}

.contact-cta-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(3.5rem, 6.2vw, 7rem);
  color: var(--brand-cyan);
}

.contact-cta-line {
  display: block;
}

.contact-cta-line--emph {
  margin-top: 0.25rem;
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  background: var(--accent);
  color: #fff;
  padding: 0.08em 0.18em;
}

.contact-cta-link {
  min-width: 260px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
  color: #111;
  border-bottom: 2px solid rgba(0, 0, 0, 0.75);
}

.contact-cta-link-text {
  font-family: "Host Grotesk";
  font-size: 1.05rem;
  font-weight: 550;
  color: #111;
}

.contact-cta-link-arrow {
  font-size: 1.6rem;
  color: #111;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .contact-cta {
    padding: 6rem 0;
  }

  .contact-cta-wrap {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 0 1.25rem;
  }

  .contact-cta-link {
    width: min(320px, 100%);
  }
}

.feature-wrap {
  width: min(1400px, 94vw);
  margin: 0 auto;
  pointer-events: all;
}

.feature-title {
  font-family: "Host Grotesk";
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  line-height: 1.05;
  text-align: center;
  margin: 0 auto 3.25rem;
  max-width: 18ch;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.fcard {
  position: relative;
  background: #0b0b0b;
  border-radius: 0.9rem;
  overflow: hidden;
  min-height: 700px;
}

.fcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.fcard-media {
  position: absolute;
  inset: 0;
}

.fcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transform: scale(1.08);
}

/* Professional bottom treatment: soft fade into blur + bottom legibility */
.fcard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Two layers:
     1) subtle darkening at the bottom for text legibility
     2) long, soft fade where blur transitions into the sharp top */
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.30) 14%,
      rgba(0, 0, 0, 0.10) 26%,
      rgba(0, 0, 0, 0.00) 52%
    );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Instead of a hard 50% cut, fade the visibility of the overlay itself */
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 26%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.00) 52%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 26%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.00) 52%
  );
}

.fcard-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 2;
}

.fcard-text {
  font-family: "Host Grotesk";
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
  line-height: 1.15;
}

.fcard-plus {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.fcard:hover .fcard-media img {
  filter: brightness(0.9);
  transition: filter 250ms ease;
}

.fcard:hover .fcard-plus {
  color: rgba(255, 255, 255, 0.92);
}

.fcard:hover .fcard-media::after {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Footer (reference-like) */
.site-footer {
  display: block;
  position: relative;
  z-index: 10;
  --footer-bg: #070718;
  --footer-ink: var(--accent);
  background:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(180deg, #050514 0%, #050514 40%, #070718 100%);
  color: var(--footer-ink);
  padding: 5.5rem 0 2.25rem;
}

.site-footer__top {
  width: min(1900px, 96vw);
  margin: 0 auto;
  padding: 0 3.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.site-footer__nav {
  display: grid;
  gap: 1.25rem;
}

.site-footer__link {
  font-family: "Host Grotesk";
  font-weight: 650;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.05;
  color: var(--footer-ink);
  position: relative;
  z-index: 2;
}

.site-footer__link--external {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-footer__ext {
  font-size: 0.6em;
  transform: translateY(-0.1em);
}

.site-footer__big {
  width: min(1900px, 96vw);
  margin: 4rem auto 0;
  padding: 0 3.25rem;
  display: grid;
  grid-template-columns: 1.05fr 1.6fr 0.75fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.site-footer__big-left,
.site-footer__big-right {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--footer-ink);
}

.site-footer__big-left {
  display: flex;
  align-items: center;
  font-size: clamp(5rem, 12vw, 11.5rem);
  line-height: 0.85;
}

.site-footer__logo {
  width: min(520px, 38vw);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 60px rgba(0, 0, 0, 0.55));
}

.site-footer__bar {
  height: clamp(3.75rem, 7vw, 7.25rem);
  background: var(--footer-ink);
}

.site-footer__big-right {
  font-size: clamp(4.5rem, 9vw, 10.5rem);
  line-height: 0.85;
  justify-self: end;
}

.site-footer__bottom {
  width: min(1900px, 96vw);
  margin: 1.75rem auto 0;
  padding: 0 3.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.site-footer__legal {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.site-footer__mini,
.site-footer__copy {
  font-family: "Host Grotesk";
  font-size: 0.95rem;
  font-weight: 450;
  color: color-mix(in srgb, var(--brand-cyan) 92%, white);
  position: relative;
  z-index: 2;
}

.site-footer__credits {
  text-align: right;
}

@media (max-width: 980px) {
  .site-footer {
    padding: 4.25rem 0 2rem;
  }

  .site-footer__top,
  .site-footer__big,
  .site-footer__bottom {
    padding: 0 1.25rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__link {
    font-size: 2.2rem;
  }

  .site-footer__big {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer__bar {
    width: 100%;
    height: 70px;
  }

  .site-footer__big-right {
    justify-self: start;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer__credits {
    text-align: left;
  }
}

@media(max-width: 720px){
  /* Mobile hero background image + blue overlay (mix of photo + blue) */

  /* Folder CTA: smaller + cleaner on small devices (match the example) */
  .projects-folder {
    margin-top: 6rem;
  }

  .folder-scale {
    transform: scale(2.35);
  }

  .folder__back {
    width: 128px;
    height: 68px;
    border-radius: 0px 12px 12px 12px;
  }

  .paper-content {
    font-size: 0.78rem;
  }

  .folder-title {
    font-size: 1.05rem;
  }

  /* Featured Projects: round ONLY the top corners on small devices */
  .projects {
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
  }

  /* Inner white panel rounding to match */
  .projects-wrap {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }

  body {
    /* Put the photo on the <body> (fixed so it behaves like desktop),
       and tint it with a blue overlay for readability. */
    background-image:
      linear-gradient(180deg, rgba(7, 26, 51, 0.78) 0%, rgba(7, 26, 51, 0.42) 45%, rgba(7, 26, 51, 0.86) 100%),
      url("../images/hero-imgs/Image_20260227_141207.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .navbar-background,
  .navbar-items{
    min-width:100%;
  }

  .navbar-items,
  .navbar-links {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .navbar-items {
    padding: 2rem;
  }

  .navbar-links:nth-child(1),
  .navbar-links:nth-child(2){
    padding: 0;
  }

  .navbar-logo,
  .navbar-logo.navbar-logo-pinned{
    left: 0;
    transform: translateX(0);
  }

  .hero {
    height: 100svh;
    margin-top: 0;
    align-items: center;
    justify-content: center;
  }

  .hero-image {
    position: relative;
    top: unset;
    left: unset;
    order: -1;
    width: min(520px, 80vw);
    margin: 0 auto 1.5rem;
  }

  .hero h1 {
    padding: 2.5em;
    width: 100%;
  }

  .hero-subtitle {
    width: 100%;
    text-align: center;
    margin: 0.9rem 0 0;
    padding: 0 2.5em;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    margin: 1.1rem 0 0;
    padding: 0 2.5em;
    flex-wrap: wrap;
  }

  .gallery-wrap {
    width: 100%;
    padding: 0 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .feature {
    padding: 5rem 0 5.5rem;
  }

  .feature-title {
    margin-bottom: 2.25rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fcard {
    min-height: 420px;
  }

  .hero-title {
    text-align: center;
    margin: 0;
  }

  .hero-subtitle,
  .hero-cta {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
}

/* Gradual blur (top overlay, full page, border-to-border) */
.gradual-blur {
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 9999;
  isolation: isolate;
}

.gradual-blur--top {
  /* flip: move the blur to the bottom */
  top: auto;
  bottom: 0;
  /* taller blur bar */
  height: clamp(10rem, 18vh, 16rem);
}

/* Optional: a very subtle animation to make the glow feel alive */
@media (prefers-reduced-motion: no-preference) {
  .gradual-blur--top::after {
    animation: gradual-blur-glow 6s ease-in-out infinite;
  }

  @keyframes gradual-blur-glow {
    0%,
    100% {
      transform: translateY(0);
      opacity: 0.95;
    }
    50% {
      transform: translateY(-6px);
      opacity: 1;
    }
  }
}

.gradual-blur__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.gradual-blur__layer {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(var(--blur, 0px));
  -webkit-backdrop-filter: blur(var(--blur, 0px));

  /* Natural edge: strongest at the bottom, smoothly fades upward (no hard border) */
  mask-image: linear-gradient(to top, rgba(0,0,0,var(--a, 0)) 0%, rgba(0,0,0,0) 78%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,var(--a, 0)) 0%, rgba(0,0,0,0) 78%, rgba(0,0,0,0) 100%);
}

/* 10 layers: smooth stack */
.gradual-blur__layer:nth-child(1)  { --blur: 16px; --a: 0.95; }
.gradual-blur__layer:nth-child(2)  { --blur: 14px; --a: 0.85; }
.gradual-blur__layer:nth-child(3)  { --blur: 12px; --a: 0.75; }
.gradual-blur__layer:nth-child(4)  { --blur: 10px; --a: 0.66; }
.gradual-blur__layer:nth-child(5)  { --blur: 8px;  --a: 0.56; }
.gradual-blur__layer:nth-child(6)  { --blur: 6px;  --a: 0.46; }
.gradual-blur__layer:nth-child(7)  { --blur: 5px;  --a: 0.36; }
.gradual-blur__layer:nth-child(8)  { --blur: 4px;  --a: 0.28; }
.gradual-blur__layer:nth-child(9)  { --blur: 3px;  --a: 0.20; }
.gradual-blur__layer:nth-child(10) { --blur: 2px;  --a: 0.12; }

/* Bottom glow: softer + more gradual so it feels "natural" (no visible border) */
.gradual-blur--top::after {
  content: "";
  position: absolute;
  inset: -20px 0 -10px 0;
  background:
    radial-gradient(140% 120% at 50% 115%, rgba(0, 191, 242, 0.22), rgba(0, 191, 242, 0) 68%),
    radial-gradient(140% 120% at 50% 115%, rgba(255, 122, 47, 0.12), rgba(255, 122, 47, 0) 70%),
    linear-gradient(to top, rgba(0,0,0,0.22), rgba(0,0,0,0) 72%);
  opacity: 1;
  pointer-events: none;
  filter: blur(10px);
}

@supports not (backdrop-filter: blur(1px)) {
  .gradual-blur__layer {
    background: rgba(0, 0, 0, 0.16);
  }
}