/* Igloo-inspired: minimal, 3D feel, two-tone palette */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700;800&display=swap');

@font-face {
  font-family: 'Wavehaus';
  src: url('https://db.onlinewebfonts.com/t/9efc4acc01284ee3654ef9bfd7253d43.woff2') format('woff2'),
       url('https://db.onlinewebfonts.com/t/9efc4acc01284ee3654ef9bfd7253d43.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Wavehaus';
  src: url('https://db.onlinewebfonts.com/t/cd2de7a34e0fbb4bf2772558e3efa576.woff2') format('woff2'),
       url('https://db.onlinewebfonts.com/t/cd2de7a34e0fbb4bf2772558e3efa576.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.72);
  --font: "Wavehaus", "Sohne", "Söhne", "Soehne", "Neue Montreal", "NeueMontreal", sans-serif;
  --font-bold: "Wavehaus", "Sohne", "Söhne", "Soehne", "Neue Montreal", "NeueMontreal", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, b, strong, th {
  font-weight: 600;
}

/* Custom cursor (optional, desktop) */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--fg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s;
}
@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  z-index: 100;
  transition: background 0.4s var(--ease);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--fg);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn-line {
  width: 24px;
  height: 1px;
  background: var(--fg);
}

/* Hero — full viewport split: headline top, terrain bottom */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12rem;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ---- Headline block: centered in the top portion ---- */
/* ---- Cloud-like fog rising from terrain ---- */
.hero-fog {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 90%);
}

.hero-fog-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}

/* Low dense base cloud — wide, hugging the terrain */
.hero-fog-layer:nth-child(1) {
  width: 90vw;
  height: 55vh;
  bottom: 5%;
  left: 5%;
  background: radial-gradient(ellipse at 50% 80%, rgba(200, 200, 200, 0.12) 0%, rgba(170, 170, 170, 0.05) 45%, transparent 75%);
  filter: blur(60px);
  animation: cloud-drift-1 16s ease-in-out infinite alternate;
}

/* Mid-left rising wisp */
.hero-fog-layer:nth-child(2) {
  width: 55vw;
  height: 70vh;
  bottom: 10%;
  left: 0%;
  background: radial-gradient(ellipse at 40% 70%, rgba(180, 180, 180, 0.10) 0%, rgba(150, 150, 150, 0.04) 40%, transparent 70%);
  filter: blur(55px);
  animation: cloud-drift-2 22s ease-in-out infinite alternate;
}

/* Mid-right rising wisp */
.hero-fog-layer:nth-child(3) {
  width: 50vw;
  height: 75vh;
  bottom: 8%;
  right: 0%;
  background: radial-gradient(ellipse at 60% 65%, rgba(190, 190, 190, 0.09) 0%, rgba(160, 160, 160, 0.03) 40%, transparent 70%);
  filter: blur(55px);
  animation: cloud-drift-3 19s ease-in-out infinite alternate;
}

/* Tall center column — reaches near top */
.hero-fog-layer:nth-child(4) {
  width: 60vw;
  height: 90vh;
  bottom: 0%;
  left: 20%;
  background: radial-gradient(ellipse at 50% 75%, rgba(210, 210, 210, 0.08) 0%, rgba(180, 180, 180, 0.03) 35%, transparent 65%);
  filter: blur(65px);
  animation: cloud-drift-4 25s ease-in-out infinite alternate;
}

/* Upper wisp — faint, high, wide */
.hero-fog-layer:nth-child(5) {
  width: 70vw;
  height: 60vh;
  bottom: 30%;
  left: 10%;
  background: radial-gradient(ellipse at 45% 60%, rgba(170, 170, 170, 0.06) 0%, rgba(150, 150, 150, 0.02) 40%, transparent 65%);
  filter: blur(70px);
  animation: cloud-drift-5 28s ease-in-out infinite alternate;
}

/* Upper-right wisp — very faint, near top */
.hero-fog-layer:nth-child(6) {
  width: 45vw;
  height: 50vh;
  bottom: 40%;
  right: 10%;
  background: radial-gradient(ellipse at 55% 55%, rgba(160, 160, 160, 0.05) 0%, rgba(140, 140, 140, 0.015) 40%, transparent 60%);
  filter: blur(75px);
  animation: cloud-drift-6 30s ease-in-out infinite alternate;
}

@keyframes cloud-drift-1 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  30%  { opacity: 1; }
  50%  { transform: translate(2vw, -5vh) scale(1.08); }
  70%  { opacity: 0.85; }
  100% { transform: translate(-1.5vw, -2vh) scale(1.03); opacity: 0.75; }
}

@keyframes cloud-drift-2 {
  0%   { transform: translate(0, 0) scaleY(1) scaleX(1); opacity: 0.5; }
  25%  { opacity: 0.85; }
  50%  { transform: translate(3vw, -12vh) scaleY(1.15) scaleX(1.05); opacity: 0.7; }
  75%  { opacity: 0.8; }
  100% { transform: translate(-1vw, -6vh) scaleY(1.05); opacity: 0.6; }
}

@keyframes cloud-drift-3 {
  0%   { transform: translate(0, 0) scaleY(1.05); opacity: 0.45; }
  30%  { opacity: 0.8; }
  50%  { transform: translate(-2.5vw, -10vh) scaleY(1.2); opacity: 0.65; }
  70%  { opacity: 0.75; }
  100% { transform: translate(1.5vw, -4vh) scaleY(1); opacity: 0.55; }
}

@keyframes cloud-drift-4 {
  0%   { transform: translate(0, 0) scaleY(1); opacity: 0.4; }
  35%  { opacity: 0.7; }
  50%  { transform: translate(1vw, -8vh) scaleY(1.1); opacity: 0.55; }
  65%  { opacity: 0.65; }
  100% { transform: translate(-2vw, -3vh) scaleY(1.05); opacity: 0.45; }
}

@keyframes cloud-drift-5 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
  40%  { opacity: 0.6; }
  50%  { transform: translate(-1.5vw, -6vh) scale(1.1); opacity: 0.5; }
  60%  { opacity: 0.55; }
  100% { transform: translate(2vw, -2vh) scale(1.02); opacity: 0.35; }
}

@keyframes cloud-drift-6 {
  0%   { transform: translate(0, 0) scale(1.05); opacity: 0.25; }
  45%  { opacity: 0.5; }
  50%  { transform: translate(-2vw, -4vh) scale(1.12); opacity: 0.4; }
  55%  { opacity: 0.45; }
  100% { transform: translate(1vw, -1vh) scale(1); opacity: 0.3; }
}

.hero-headline {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-height, 72px) + 6rem) 2.5rem 0;
  flex: 0 0 auto;
}

.hero-label {
  font-size: clamp(1.81rem, 4vw, 2.62rem);
  font-family: var(--font-bold);
  font-weight: 500;
  letter-spacing: 0.126em;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    #7ab8c8 0%, #c4a07e 45%, #7eaa72 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(220, 195, 130, 0.35)) drop-shadow(0 0 18px rgba(200, 180, 120, 0.15));
  margin: 0 0 0.588rem;
  position: relative;
  overflow: hidden;
  display: inline-block;
  opacity: 0;
  animation: heading-intro 1380ms cubic-bezier(0.2, 0.8, 0.2, 1) 345ms forwards;
}

.hero-label span {
  display: inline;
}

.hero-label.is-3d-heading {
  display: none;
}

.hero.hero-3d-heading-mode .hero-capabilities {
  margin-top: 7.8rem;
}

@keyframes heading-intro {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(3px) drop-shadow(0 0 6px rgba(220, 195, 130, 0.35)) drop-shadow(0 0 18px rgba(200, 180, 120, 0.15)); }
  100% { opacity: 1; transform: translateY(0);   filter: blur(0px) drop-shadow(0 0 6px rgba(220, 195, 130, 0.35)) drop-shadow(0 0 18px rgba(200, 180, 120, 0.15)); }
}

.hero-label::after {
  content: 'Real Time 3D Visualizer | Worldbuilder';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 240, 190, 0.18) 45%,
    rgba(255, 245, 210, 0.25) 50%,
    rgba(255, 240, 190, 0.18) 55%,
    transparent 65%,
    transparent 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heading-sheen 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heading-sheen {
  0%   { background-position: 200% center; }
  40%  { background-position: -50% center; }
  100% { background-position: -50% center; }
}

/* Capability reveal: large text, one highlighted at a time via cursor */
.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.87rem;
  margin: 0;
  min-height: 3.5rem;
}

.hero-mobile-note {
  display: none;
}

.capability {
  display: inline-block;
  font-size: clamp(1.10rem, 2.94vw, 1.60rem);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.5s var(--ease);
  pointer-events: auto;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  animation: cap-intro 1035ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.capability:nth-child(1) { animation-delay: 1725ms; }
.capability:nth-child(2) { animation-delay: 2300ms; }

@keyframes cap-intro {
  0%   { opacity: 0; transform: translateY(6px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

.capability.revealed {
}

.capability[data-capability]:nth-child(1).revealed,
.capability[data-capability]:nth-child(1):hover {
  color: #6ec8e0;
}

.capability[data-capability]:nth-child(2).revealed,
.capability[data-capability]:nth-child(2):hover {
  color: #7cb86a;
}

/* ---- Floating project popups near cursor ---- */
.floating-projects {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

/* ---- Terrain canvas: fills the remaining bottom space ---- */
.hero-terrain {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  pointer-events: none;
}

.hero-terrain canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Terrain cursor CTA — concentric ripple rings ---- */
.terrain-cursor-cta {
  position: absolute;
  top: 69.6%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  opacity: 0.62;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.terrain-cursor-cta.hidden {
  opacity: 0;
}

.ripple-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  animation: ripple-expand 3.6s cubic-bezier(0.2, 0, 0.3, 1) infinite;
}

.ripple-ring:nth-child(2) { animation-delay: 1.2s; }
.ripple-ring:nth-child(3) { animation-delay: 2.4s; }

@keyframes ripple-expand {
  0%   { transform: scale(0.4); opacity: 0; }
  10%  { opacity: 0.58; }
  80%  { opacity: 0.07; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---- Click CTA — pointer icon prompting click ---- */
.terrain-click-cta {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.terrain-click-cta.show {
  opacity: 1;
}

.terrain-click-cta.hidden {
  opacity: 0;
}

.click-cta-icon {
  display: block;
  animation: click-cta-tap 2.5s ease-in-out infinite;
}

.click-ring {
  opacity: 0;
}

.click-ring-1 {
  animation: click-ring-expand 2.5s ease-out infinite;
}

.click-ring-2 {
  animation: click-ring-expand 2.5s ease-out 0.3s infinite;
}

@keyframes click-cta-tap {
  0%, 30%, 100% { transform: translateY(0); }
  15% { transform: translateY(2px); }
}

@keyframes click-ring-expand {
  0% { opacity: 0; r: 4; }
  10% { opacity: 0.5; }
  50% { opacity: 0.25; r: 14; }
  100% { opacity: 0; r: 18; }
}

/* ---- Scroll CTA — mouse icon at bottom center ---- */
.hero-scroll-cta {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--fg);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-scroll-cta.show {
  opacity: 0.25;
  pointer-events: auto;
}

.hero-scroll-cta:hover {
  opacity: 0.5;
}

.mouse-icon {
  display: block;
}

.mouse-wheel {
  animation: mouse-scroll 2s ease-in-out infinite;
}

@keyframes mouse-scroll {
  0%   { cy: 9;  opacity: 1; }
  40%  { cy: 18; opacity: 0; }
  60%  { cy: 9;  opacity: 0; }
  100% { cy: 9;  opacity: 1; }
}

/* ---- Clients rolling logo bar ---- */
.clients-bar {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
  background: var(--bg);
}

.clients-bar::before,
.clients-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.clients-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.clients-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: marquee-scroll 39s linear infinite;
}

.clients-track > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.clients-track img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.68;
  flex-shrink: 0;
}

.clients-track img[alt="Decagon"] {
  height: 24px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.clients-track img[alt="Tommy Hilfiger"] {
  height: 56px;
}

.clients-track img[alt="Super Bowl"] {
  height: 34px;
}

.clients-track img[alt="FIFA"],
.clients-track img[alt="F1"] {
  height: 42px;
}

.clients-track img[alt="Bumble"] {
  height: 24px;
}

.client-docusign {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0;
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0.8;
  flex-shrink: 0;
}

.client-docusign img {
  height: 24px;
  width: 24px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  flex-shrink: 0;
}

.client-docusign span {
  display: inline-block;
  color: #ffffff;
  white-space: nowrap;
}

.clients-track img[alt="Chase"] {
  height: 42px;
}

/* Story parallax section below hero */
.story-parallax {
  position: relative;
  height: 198vh;
  background: #000;
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.story-sticky::before {
  display: none;
}

.story-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.story-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.1));
  z-index: 3;
}

.story-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer.footer-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  border-top: none;
}

.story-line {
  margin: 0;
  padding: 0 2rem;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.story-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.story-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 198px;
  padding: 0.68rem 1.21rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.34);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.story-cta-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.story-overlay.show .story-line {
  opacity: 1;
  transform: translateY(0);
}

.story-overlay.show .story-cta-row {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

/* Monochrome treatment for logo and icon assets */
.clients-track img,
.client-docusign img,
.mouse-icon,
.click-cta-icon {
  filter: grayscale(100%);
}


@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .clients-track {
    gap: 2rem;
    animation-duration: 26s;
  }

  .clients-track img {
    height: 18px;
  }
}

/* Projects — mosaic grid with hover overlay */
.projects {
  padding: 0 0 6rem;
}

.projects-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.projects-heading {
  font-family: var(--font-bold);
  font-size: 1.725rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 3.5rem;
  padding: 4rem 1.5rem 0;
  text-align: center;
}

.projects-subheading {
  font-family: var(--font);
  font-size: 1.33rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 2.5rem 0 1.2rem;
  padding: 0 1.5rem;
  text-align: center;
  scroll-margin-top: 5rem;
}

.projects-grid + .projects-subheading {
  margin-top: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 70px;
  column-gap: 70px;
}

.project-block {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease);
  cursor: pointer;
  scroll-margin-top: 5rem;
}

.project-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spanning: make some tiles wider/taller for mosaic feel */
.project-block.wide {
  grid-column: span 2;
}

.project-block.tall {
  grid-row: span 2;
}

.project-media {
  width: 100%;
  height: 252px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border-radius: 12px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.project-block:hover .project-media img {
  transform: scale(1.05);
}

/* Info overlay — hidden by default, revealed on hover */
.project-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  border-radius: 12px;
}

.project-block:hover .project-info,
.project-block.highlight .project-info {
  opacity: 1;
}

.project-block.highlight {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: -1px;
  animation: highlight-pulse 1.8s ease-out forwards;
}

@keyframes highlight-pulse {
  0%   { outline-color: rgba(255, 255, 255, 0.6); }
  100% { outline-color: rgba(255, 255, 255, 0); }
}

.project-cat {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.35rem;
  display: block;
}

.project-info h3 {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}

.project-info p {
  display: none;
}

.project-arrow {
  display: none;
}

/* Contact */
.contact {
  padding: 6rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-heading {
  font-family: var(--font-bold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--fg-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-bold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-success {
  color: var(--fg);
  font-weight: 500;
  margin-top: 1rem;
}

.social {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.social a {
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.social a:hover {
  color: var(--fg);
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.footer a {
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer a:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) and (hover: none) and (pointer: coarse) {
  .hero {
    height: 100svh;
  }

  .hero-fog,
  .hero-terrain,
  .terrain-cursor-cta,
  .hero-scroll-cta {
    display: none !important;
  }

  .hero::after {
    display: none;
  }

  .nav a[href="#story"],
  .story-parallax {
    display: none !important;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-block.wide {
    grid-column: span 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-block.wide {
    grid-column: span 1;
  }

  .project-block.tall {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-headline {
    width: 100%;
    padding: calc(var(--header-height, 72px) + 2.5rem) 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .capability {
    font-size: clamp(0.95rem, 4.34vw, 1.31rem);
  }

  .hero-label {
    font-size: clamp(1.08rem, 7.1vw, 1.45rem);
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    line-height: 1.08;
    letter-spacing: 0.055em;
  }

  .hero-label span {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-label::after {
    display: none;
  }

  .hero.hero-3d-heading-mode .hero-capabilities {
    margin-top: 5.4rem;
  }

  .hero-capabilities {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-mobile-note {
    display: block;
    margin: 0.75rem auto 0;
    width: 100%;
    text-align: center;
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-area,
  .project-media,
  .project-info {
    transition: none;
  }
}
