/* All custom css styling added - Mobile First
*/

.link-container {
  color: #fff;
  margin-top: 100px; /* make responsive */
}

.link-container > .link {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 50px;
  padding: 1em 2em;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.link-container > .link:hover {
  text-decoration: none;
  background-color: #fff;
  color: #000;
}

.link-container > .link::before {
  content: none;
}

.moving-gallery li img {
  border: none !important;
}

.hero-subtext {
  font-family: "Six Caps", sans-serif;
  /* font-family: "Poppins"; */
  text-transform: uppercase;
  margin-top: 20px;
  letter-spacing: 5px;
}

#logo img {
  display: block;
  height: 80px;
}

.our-studio-container .page-nav-caption.height-title {
  padding-top: 10px;
}

.footer-container-custom {
  padding-bottom: 20px;
}

.hero-title__main {
  font-family: "Anton", sans-serif !important;
  text-transform: uppercase;
  font-size: 18rem !important;
  line-height: 18rem !important;
}

.hero-caption-container {
  align-items: flex-end !important;
}

#hero > #canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.overlapping-image-inner {
  cursor: none !important;
}

.content__img {
  position: absolute;
  width: 250px;
  height: 230px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  will-change: transform, opacity;
}

/* ──Project showcase grid Styling: all projects showcase ── */
.projects {
  --clr-bg: #ffffff;
  --clr-surface: #141414;
  --clr-border: rgba(0, 0, 0, 0.1);
  --clr-text: #0c0c0c;
  --clr-muted: rgba(12, 12, 12, 0.4);
  --clr-accent: #00b7ff;
  --radius: 12px;
  --gap: 12px;
}

.content-max-width:has(.projects) {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

/* ── Title ── */
.projects__header {
  text-align: center;
  margin-bottom: 60px;
  /* opacity: 0; */
  transform: translateY(10px);
}

.projects__title-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--clr-text);
  margin: 0 auto;
  border-radius: 2px;
  opacity: 0.25;
}

/* ── Grid ── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ── Card ── */
.projects__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f2f2f2;
  /* border: 1px solid rgba(0, 0, 0, 0.08); */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  cursor: pointer;
  /* opacity: 0; */
  transform: translateY(40px);
  aspect-ratio: 16 / 10;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
  /* subtle lift on hover */
  transition:
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects__item:hover {
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.09),
    0 20px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

/* ── Media ── */
.projects__media {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.projects__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Overlay ── */
.projects__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  transition: background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects__item:hover .projects__overlay {
  background: rgba(10, 10, 10, 0.72);
}

.projects__item:hover .projects__img {
  transform: scale(1.04);
  filter: brightness(0.6);
}

/* ── Info block ── */
.projects__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(14px);
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects__info h3 {
  color: var(--clr-bg) !important;
  line-height: 1rem !important;
}

.projects__item:hover .projects__info {
  opacity: 1;
  transform: translateY(0);
}

/* Arrow icon */
.projects__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.projects__item:hover .projects__icon {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}

.projects__icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  transition: stroke 0.25s ease;
}

.projects__item:hover .projects__icon svg {
  stroke: #0c0c0c;
}

.projects__info h3 {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ── Small screen ── */
@media (max-width: 1024px), (hover: none) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px;
  }

  .projects__header {
    margin-bottom: 45px;
  }

  /* Card becomes: [image] over [caption bar] */
  .projects__item {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    aspect-ratio: auto;
    background: var(--clr-surface);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: none; /* remove this line if GSAP/JS animates the cards in */
  }

  /* The image now owns the aspect ratio */
  .projects__media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  /* Overlay turns into the caption bar */
  .projects__overlay,
  .projects__item:hover .projects__overlay {
    position: static;
    inset: auto;
    background: none;
    display: block;
    padding: 14px 16px;
  }

  .projects__info,
  .projects__item:hover .projects__info {
    width: 100%;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    opacity: 1;
    transform: none;
  }

  .projects__info h3 {
    font-size: 0.85rem;
    line-height: 1.2rem !important;
    letter-spacing: 0.03em;
    color: var(--clr-bg) !important;
  }

  .projects__icon,
  .projects__item:hover .projects__icon {
    width: auto;
    height: auto;
    background: none;
    border: 0;
  }

  .projects__icon svg,
  .projects__item:hover .projects__icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2;
  }

  /* Kill sticky-hover image effects on touch */
  .projects__item:hover .projects__img {
    transform: none;
    filter: none;
  }

  /* Tap feedback instead */
  .projects__item:active .projects__img {
    transform: scale(1.03);
  }
}

/* ── Tablet ── */
@media (max-width: 767px) {
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }

  .projects__header {
    margin-bottom: 40px;
  }
}

/* ── Mobile ── */
@media (max-width: 479px) {

  .item-image {
    object-fit: contain !important;
  }

  .hero-title__main {
    font-size: 10rem !important;
    line-height: 100% !important;
  }

  .projects__grid {
    gap: 20px;
    padding: 0 16px;
  }

  .projects__media {
    aspect-ratio: 4 / 3;
  }

  .projects__overlay,
  .projects__item:hover .projects__overlay {
    padding: 12px 14px;
  }

  .projects__info h3 {
    font-size: 0.78rem;
  }

  .projects__icon,
  .projects__item:hover .projects__icon {
    width: 30px;
    height: 30px;
  }

  .projects__header {
    margin-bottom: 30px;
  }

  .paragraph-spacing {
    padding: 0px 10px;
  }
}

/* ── Card index number ── */
.projects__index {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 2px 7px;
  transition: color 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.projects__item:hover .projects__index {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}

/**
Project Page Styles
**/

.showcase-portfolio {
  justify-content: center;
}

.showcase-portfolio .clapat-item {
  width: calc(50% - 80px) !important;
  height: 25vw !important;
}

.showcase-portfolio .clapat-item:nth-child(even) {
  margin: 50px 40px 50px 20px !important;
}

.showcase-portfolio .clapat-item:nth-child(odd) {
  margin: 50px 20px 50px 40px !important;
}

.showcase-portfolio .slide-caption {
  height: calc(100% + 50px) !important;
}

/* ── Project page responsive ── */
@media only screen and (max-width: 1024px) {
  .showcase-portfolio .clapat-item {
    width: calc(60% - 40px) !important;
    height: 25vw !important;
  }
}

@media only screen and (max-width: 768px) {
  .showcase-portfolio .clapat-item {
    width: calc(100% - 30px) !important;
    height: 55vw !important;
  }
  .showcase-portfolio .clapat-item:nth-child(odd),
  .showcase-portfolio .clapat-item:nth-child(even) {
    margin: 30px 15px 60px 15px !important;
  }
}

@media only screen and (max-width: 479px) {
  .showcase-portfolio .clapat-item {
    width: calc(100% - 20px) !important;
    height: 55vw !important;
  }
  .showcase-portfolio .clapat-item:nth-child(odd),
  .showcase-portfolio .clapat-item:nth-child(even) {
    margin: 20px 10px 60px 10px !important;
  }
}

/**
Individual Project Page Styles
**/
.project-showcase__solution,
.project-showcase__results {
  --accent: #0081fd;
  --text-soft: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.14);
}

.project-showcase {
  width: 100%;
}

.project-showcase__solution {
  padding: 96px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 100px;
  row-gap: 0;
}

.project-showcase__solution .two-col > div {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}

.project-showcase__solution h2,
.project-showcase__results h2 {
  position: relative;
  font-size: 1.6rem;
  line-height: 1.15;
  text-align: left;
  margin: 0 0 28px;
  padding-bottom: 16px;
}
.project-showcase__solution h2::after,
.project-showcase__results h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
}

.project-showcase__solution p,
.project-showcase__results p {
  margin: 0 0 32px;
  max-width: 56ch;
  color: var(--text-soft);
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Pointer lists (Challenge and Solution) ── */
.project-showcase__points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-showcase__points li {
  position: relative;
  padding: 20px 0 20px 26px;
  border-top: 1px solid var(--line);
}

.project-showcase__points li:last-child {
  border-bottom: 1px solid var(--line);
}

.project-showcase__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.project-showcase__points strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-showcase__points span {
  display: block;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

.project-showcase__image-block {
  width: 100%;
  height: 540px;
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  overflow: hidden;
}

.project-showcase__image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-showcase__image-block-results {
  width: 100%;
  height: 540px;
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  overflow: hidden;
}

.project-showcase__image-block-results img {
  width: 80%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Results: text left, image right ── */
.project-showcase__results {
  --results-image-max: 520px;
  padding: 128px 0px 64px 0px;
  text-align: left;
}

.project-showcase__results-grid {
  display: grid;
  max-width: 80%;
  grid-template-columns: 1fr minmax(0, var(--results-image-max));
  gap: 80px;
  align-items: center;
}

.project-showcase__results h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.project-showcase__results p {
  margin: 0;
  color: white;
  font-size: 0.95rem;
  max-width: 52ch;
}

.project-showcase__results-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.project-showcase__results-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-showcase__results-list li svg {
  width: 20px;
  height: 20px;
}

.project-showcase__results-list .icon {
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 5px;
}

.results-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: #f0b323; /* icon colour, change to your brand colour */
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-showcase__results-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── CTA ── */
.project-showcase__cta {
  --plate: #1c1d1f;
  --hole: #24292e;
  --press: #0081fd;

  background-color: var(--plate);
  background-image: radial-gradient(
    circle at center,
    var(--hole) 0 5px,
    transparent 5.5px
  );
  background-size: 34px 34px;
  padding: 96px 0;
  width: 100%;
}

.project-showcase__cta-wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.project-showcase__cta-box {
  background: var(--plate);
  max-width: 760px;
  padding: 24px;
  border-left: 8px solid var(--press);
  box-shadow: 0 0 0 14px var(--plate);
  text-align: left;
}

.project-showcase__cta-box h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 16px;
  text-align: left;
  color: #fff;
}

.project-showcase__cta-box p {
  margin: 0 0 28px;
  max-width: 56ch;
  color: #d6dbdf;
  font-size: 0.95rem;
  text-align: left;
}

.project-showcase__cta-btn {
  display: inline-block;
  background: var(--press);
  color: #1f2428;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 26px;
  border: 2px solid var(--press);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.project-showcase__cta-btn:hover,
.project-showcase__cta-btn:focus-visible {
  background: transparent;
  color: var(--press);
}

.project-showcase__cta-btn:hover,
.project-showcase__cta-btn:focus-visible {
  background: white;
  border: 2px solid white;
  color: black;
}

/* ── Individual project page responsive ── */
@media only screen and (max-width: 768px) {
  project-showcase__results-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 30px;
  }
  .project-showcase__cta {
    padding: 64px 0;
  }
  .two-col {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 56px;
    padding: 0 30px;
  }
  .project-showcase__solution .two-col > div {
    display: block;
    grid-row: auto;
  }
  .project-showcase__solution {
    padding: 64px 0;
  }
  .project-showcase__cta-box {
    padding: 28px 24px;
    box-shadow: 0 0 0 8px var(--plate);
    margin: 0 8px;
  }
  .project-showcase__cta-box h2 {
    font-size: 1.6rem;
  }
}

@media only screen and (max-width: 478px) {
  .two-col {
    grid-template-columns: 1fr;
    padding: 0px 30px;
  }
  .project-showcase__image-block {
    height: 220px;
  }
  .project-showcase__solution {
    padding: 106px 0px 46px 0px;
  }
  .project-showcase__image-block-results img {
    width: 100%;
  }
  .project-showcase__results-grid {
    max-width: 100%;
  }
  .project-showcase__results-list .icon {
    padding: 5px 8px;
  }
}

/**
Contact Page Styles
**/

.map-canvas {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.map-canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* Dark overlay by default */
.map-canvas::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Dark overlay - adjust opacity as needed */
  z-index: 2;
  pointer-events: none; /* Allows clicks to pass through to the click handler */
  transition: background 0.3s ease; /* Smooth transition on hover */
}

/* Lighten on hover */
.map-canvas:hover::before {
  background: rgba(0, 0, 0, 0.2); /* Lighter overlay on hover */
}

/* Optional: Add a subtle brightness effect on the iframe itself */
.map-canvas iframe {
  filter: brightness(0.8); /* Slightly darken the map itself */
  transition: filter 0.3s ease;
}

.map-canvas:hover iframe {
  filter: brightness(1); /* Full brightness on hover */
}

.map-canvas::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}

.map-canvas.active iframe {
  pointer-events: auto;
}

.map-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
