/* ==========================================================================
   KRAZY THEME — style.css  (single common stylesheet for ALL pages)
   Pages: index.html · work.html · detail.html
   Load order in <head>:  assets/vendor/bootstrap.min.css  ->  assets/css/style.css
   ========================================================================== */

/* ---------- Local fonts (assets/fonts) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:300 900;font-display:swap;
  src:url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 900;font-display:swap;
  src:url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Archivo Black';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/archivo-black-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Archivo Black';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/archivo-black-latin-400-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --black: #000000;
  --yellow: #F9FF00;
  --alabaster: #E6E6E6;
  --white: #FFFFFF;
  --parchment: #F1F0EB;
  --off: #F1F0EB;
  --orange: #F9FF00;
  --lime: #F9FF00;
  --line: #000000;
  --bg-current: #F9FF00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Bootstrap overrides to protect custom layout */
h1, h2, h3, h4, h5, h6, p, ul {
  margin-bottom: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--black);
}

body {
  /*background-color: var(--off);*/
  background-color: var(--black);
  color: var(--black);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  transition: background-color 1.8s ease-in-out;
}

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

button { font: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--off);
}

::-webkit-scrollbar-thumb {
  background: #a0a0a0;
  border-radius: 3px;
}

/* Header Nav */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4%;
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-right { display: flex; align-items: center; gap: 28px; }

.pill {
  border: 1px solid rgba(249, 255, 0, 0.5);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.pill:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.menu {
  width: 31px; height: 22px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu span {
  display: block;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* Floating Star Widget */
.float-star {
  position: fixed;
  right: 0; top: 12%;
  width: 48px; height: 50px;
  border-radius: 12px 0 0 12px;
  background: #000000;
  z-index: 50;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: var(--lime);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.float-star:hover {
  transform: translateX(-4px);
}

.float-star::before {
  content: "✳";
  animation: spinStar 8s linear infinite;
}

@keyframes spinStar {
  to { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 4vw 100px;
  overflow: hidden;
  user-select: none;
  transition: background-color 0.8s ease;
}

.hero-title {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(64px, 13vw, 230px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}

.hero-title span {
  display: block;
  transform: translateY(70px);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

.hero-meta {
  position: absolute;
  bottom: 28px;
  left: 4%;
  right: 4%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 16px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}

.hero-meta > div:first-child { justify-self: start; }

.hero-meta > div:last-child { justify-self: end; text-align: right; }

.hero-meta .center { text-align: center; }

/* Hero Trail Image Popups (images live in the HTML; motion is GPU-only: transform + opacity) */
.hero-trail {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.hero-trail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 900px) {
  .hero-trail { display: none; }
}

/* Services Section */
.services {
  position: relative;
  min-height: 855px;
  padding: 80px 0 100px;
  background: var(--black);
  color: #FFFFFF;
  overflow: hidden;
  transition: background-color 1.8s ease-in-out, color 1.8s ease-in-out;
}

.services .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 4%;
  margin-bottom: 50px;
  gap: 30px;
}

.services .section-head h2 {
  margin: 0;
  font-size: clamp(36px, 3.8vw, 62px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.052em;
  max-width: 900px;
}

.services .section-head .underline {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
  white-space: nowrap;
  transition: color 1.8s ease-in-out, border-color 1.8s ease-in-out, background 0.2s ease;
}

.services .section-head .underline:hover {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--black);
}

.services .cards-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  cursor: grab;
  padding: 10px 0 30px;
}

.services .cards-wrap::-webkit-scrollbar {
  display: none;
}

.services .cards-wrap.grabbing {
  cursor: grabbing;
}

.services .cards {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding: 0 4vw;
}

.services .card {
  position: relative;
  flex: 0 0 408px;
  width: 408px;
  height: 597px;
  border-radius: 14px;
  overflow: hidden;
  background: #E6E6E6;
  user-select: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.services .card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.services .card:hover img {
  transform: scale(1.05);
}

.services .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.4) 70%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

.services .card-title {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 24px;
  right: 20px;
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.services .tags {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.services .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* Statement Section */
.statement {
  padding: 140px 4vw 160px;
  text-align: center;
  overflow: hidden;
  background: #F1F0EB;
}

.statement-container {
  max-width: 1350px;
  margin: 0 auto;
}

.statement h2 {
  font-size: clamp(42px, 6.8vw, 125px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-transform: uppercase;
}

.statement .word {
  display: inline-block;
  color: #E6E6E6;
  transition: color 0.3s ease, transform 0.3s ease;
  margin-right: 0.22em;
  will-change: color;
}

.statement .word.active {
  color: var(--black);
}

.inline-face {
  display: inline-block;
  width: 0;
  height: 0.72em;
  border-radius: 12px;
  vertical-align: 0.02em;
  object-fit: cover;
  margin: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transform: scale(0.6) rotate(-4deg) translateZ(0);
  opacity: 0;
  transition: width 0.5s ease, margin 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  will-change: width, margin, transform, opacity;
}

.inline-face.visible {
  width: 1.25em;
  margin: 0 0.12em;
  transform: scale(1) rotate(0deg) translateZ(0);
  opacity: 1;
}

/* Industry Expertise Section */
.industry {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 36px 3% 56px;
  background: var(--black);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ind-bg { position: absolute; inset: -3%; z-index: -3; background: var(--black); will-change: transform; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transform: translateZ(0); }

.ind-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02) translateZ(0);
  will-change: opacity, transform, clip-path;
}

.ind-bg { position: absolute; inset: -3%; z-index: -3; background: var(--black); will-change: transform; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }

.ind-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
}

.ind-layer.on { opacity: 1; }

.ind-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.38) 48%, rgba(0,0,0,0.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%);
}

.ind-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.ind-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding-bottom: 18px; position: relative;
  /*border-bottom: 1px solid rgba(255,255,255,0.18);*/
}

/*.ind-top::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--lime);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}*/
.industry.in-view .ind-top::after { width: 100%; }

.ind-label { display: flex; align-items: center; gap: 10px; }

/*.ind-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(249,255,0,0.6); animation: indPulse 2s infinite; }*/
@keyframes indPulse { 70% { box-shadow: 0 0 0 10px rgba(249,255,0,0); } 100% { box-shadow: 0 0 0 0 rgba(249,255,0,0); } }

.ind-counter { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }

.ind-bottom { 
  /*display: flex; align-items: flex-end; */
  justify-content: space-between; gap: 40px; padding-top: 80px; }

.ind-list { list-style: none; }

.ind-item {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; max-width: 100%;
  cursor: pointer;
  font-size: clamp(40px, 2.8vw, 104px);
  font-weight: 600; letter-spacing: -0.055em; line-height: 1.1em;
  color: #fff;
  overflow: hidden;
  padding: 0.02em 0 0.04em;
  opacity: 0; transform: translateY(60px) translateZ(0);
  transition: color 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: color, transform, opacity;
}

.industry.in-view .ind-item { opacity: 1; transform: translateY(0) translateZ(0); }

.industry.in-view .ind-item:nth-child(2) { transition-delay: 0s, 0.12s, 0.12s; }

.industry.in-view .ind-item:nth-child(3) { transition-delay: 0s, 0.19s, 0.19s; }

.industry.in-view .ind-item:nth-child(4) { transition-delay: 0s, 0.26s, 0.26s; }

.industry.in-view .ind-item:nth-child(5) { transition-delay: 0s, 0.33s, 0.33s; }

.industry.in-view .ind-item:nth-child(6) { transition-delay: 0s, 0.40s, 0.40s; }

.ind-item.ready { transition-delay: 0s !important; }

.ind-list.hovering .ind-item { color: rgba(255,255,255,0.28); }

.ind-list.hovering .ind-item.active { color: #fff; }

.ind-text { display: inline-block; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

.ind-item.active .ind-text { transform: translateX(18px); }

.ind-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(11px, 0.95vw, 15px); font-weight: 600; letter-spacing: 0.02em;
  margin-top: 0.35em; color: rgba(255,255,255,0.55);
  transition: color 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-item.active .ind-tag { color: var(--lime); transform: translateX(18px); }

.ind-arrow { font-size: 0.4em; margin-top: 0.3em; color: var(--lime); opacity: 0; transform: translate(-20px, 10px); transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

.ind-item.active .ind-arrow { opacity: 1; transform: translate(18px, 0); }

.ind-side { text-align: right; max-width: 280px; padding-bottom: 12px; }

.ind-side-title { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }

.ind-side-desc { font-size: 15px; line-height: 1.45; font-weight: 500; color: rgba(255,255,255,0.85); transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

.ind-side-desc.swap { opacity: 0; transform: translateY(10px); }

.ind-bar { margin-top: 20px; height: 2px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }

.ind-bar i { position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(0.1667); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }

@media (max-width: 900px) {
  .industry { min-height: 90vh; padding: 28px 5% 40px; }
  .ind-bottom { flex-direction: column; align-items: flex-start; padding-top: 60px; }
  .ind-side { text-align: left; max-width: 100%; width: 100%; }
  .ind-item.active .ind-text, .ind-item.active .ind-tag, .ind-item.active .ind-arrow { transform: translateX(8px); }
}

/* Work List Section */
.work {
  padding: 100px 4% 150px;
  background: #F1F0EB;
  position: relative;
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #666;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  position: relative;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.055em;
  cursor: pointer;
  transition: padding 0.35s ease, background-color 0.35s ease, color 0.35s ease;
  z-index: 2;
}

.work-row:hover {
  padding: 0 28px;
  background: var(--black);
  color: var(--lime);
}

.work-row .num {
  font-size: 18px;
  font-weight: 600;
  margin-right: 20px;
  opacity: 0.6;
}

.work-row .arrow {
  font-size: 32px;
  font-weight: 300;
  transition: transform 0.35s ease;
}

.work-row:hover .arrow {
  transform: rotate(45deg);
}

/* Work Hover Cursor Image Card */
.work-hover-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  scale: 0.8;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  transition: opacity 0.3s ease, scale 0.3s ease;
}

.work-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clients Section */
.clients {
  padding: 0 4% 120px;
  background: #F1F0EB;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 8vw;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.55;
}

.client-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(20px, 3.5vw, 36px);
  letter-spacing: -0.04em;
  color: var(--black);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

/* Testimonial Section */
.testimonial {
  position: relative;
  min-height: 520px;
  padding: 90px 8% 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #F1F0EB;
  margin: 0 0 100px;
}

.t-viewport {
  position: relative;
  width: 100%;
  max-width: 860px;
  display: grid;
}

.t-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px) scale(0.96) translateZ(0);
  filter: blur(8px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease, visibility 0s linear 0.7s;
  will-change: opacity, transform, filter;
}

.t-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1) translateZ(0);
  filter: blur(0);
  transition-delay: 0s;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2b2b2b;
  color: #F1F0EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.quote {
  max-width: 820px;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  font-weight: 500;
  white-space: pre-line;
}

.quote-name {
  font-size: 16px;
  font-weight: 600;
  margin-top: 36px;
}

.quote-role {
  color: #8a8a86;
  font-size: 12px;
  margin-top: 4px;
}

.t-count {
  margin-top: 28px;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.04em;
}

.t-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #111;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.t-arrow:hover { opacity: 1; }

.t-prev { left: 3%; }

.t-next { right: 3%; }

.t-prev:hover { transform: translateY(-50%) translateX(-3px); }

.t-next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 900px) {
  .testimonial { padding: 70px 14% 60px; min-height: 480px; }
  .t-prev { left: 1%; }
  .t-next { right: 1%; }
}

/* Video Section */
.video-section {
  padding: 0 4% 120px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2.4 / 1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  cursor: pointer;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-frame:hover img {
  transform: scale(1.05);
}

.play-badge {
  position: absolute;
  left: 28px;
  top: 28px;
  border: 0;
  color: white;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Contact Section specific utility classes (Replacing Tailwind) */
.contact-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: #000;
}

@media (min-width: 640px) {
  .contact-title { font-size: 1.875rem; }
}

/* Contact Section */
.contact {
  background: #F9FF00;
  height: 100svh;
  min-height: 650px;
  padding: 50px 4% 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10%;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 30px;
}

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

input[type="text"], input[type="email"] {
  width: 100%;
  height: 38px;
  border: 1.5px solid #151515;
  background: transparent;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  border-radius: 6px;
  transition: border-color 1.2s cubic-bezier(0.16, 1, 0.3, 1), background 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input[type="text"]:focus, input[type="email"]:focus {
  background: rgba(255,255,255,0.15);
  border-color: #000;
}

/* .checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  margin: 24px 0 20px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
} */

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px;
  background: var(--black);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover {
  background: #111;
  transform: translateY(-2px);
}

.submit-btn.sending {
  background: #333;
  transform: scale(0.98);
  pointer-events: none;
}

.submit-btn.success {
  background: #10B981;
  transform: scale(1);
  pointer-events: none;
}

.btn-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.submit-btn.sending .btn-text {
  opacity: 0;
  transform: translateY(15px);
}

.btn-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinBtn 0.8s linear infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.submit-btn.sending .btn-spinner {
  opacity: 1;
  visibility: visible;
}

@keyframes spinBtn { 100% { transform: rotate(360deg); } }

.contact-info {
  margin-top: 3rem;
  color: #000;
}

@media (min-width: 1024px) {
  .contact-info { margin-top: 0; }
}

.contact-info .small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.email {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 10px 0;
  display: inline-block;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.email:hover {
  opacity: 0.8;
}

.socials {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 600;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.socials a:hover {
  text-decoration: underline;
}

/* Stretchy brand wordmark (Wolff Olins-style footer) */
.signal-wrap {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.signal-svg {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top;
  display: block;
  overflow: visible;         
  will-change: transform;
  animation: krazyRubberBand 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes krazyRubberBand {
  0%, 12%   { transform: translateY(0%) scaleY(1); }
  22%       { transform: translateY(0%) scaleY(var(--stretch, 2.5)); }
  32%, 57%  { transform: translateY(var(--move, 150%)) scaleY(1); }
  67%       { transform: translateY(0%) scaleY(var(--stretch, 2.5)); }
  77%, 100% { transform: translateY(0%) scaleY(1); }
}

.signal-svg text {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  fill: var(--black);
}

/* Team Section */
.team {
  padding: 100px 4% 130px;
  background: #fff;
  position: relative;
}

.team-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.team-head h2 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.team-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--black);
}

.team-row {
  /* sizes scale with the screen so nothing is ever clipped (exactly 200 / 340 / 32 / 28px on wide screens) */
  --c: min(200px, 15.4vw);
  --a: min(340px, 26.2vw);
  --pad: min(32px, 2.5vw);
  display: flex;
  align-items: flex-end;
  gap: min(28px, 2.2vw);
  min-height: calc(var(--a) * 1.65);
}

.member {
  display: flex;
  align-items: flex-end;
  gap: 0;
  cursor: pointer;
}

.member-photo {
  width: var(--c);
  height: calc(var(--c) * 1.4);
  overflow: hidden;
  background: #ddd;
  flex: none;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.08);
  transition: filter 0.6s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-info {
  width: 0;
  overflow: hidden;
  opacity: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, padding 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-info-inner {
  width: var(--a);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.member-idx {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.member-name {
  font-size: 14px;
  font-weight: 800;
  margin-top: 36px;
}

.member-role {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.member-bio {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 28px;
  letter-spacing: -0.01em;
}

.member-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.member.active .member-photo {
  width: var(--a);
  height: calc(var(--a) * 1.588);
}

.member.active .member-photo img {
  filter: grayscale(0);
  transform: scale(1);
}

.member.active .member-info {
  width: var(--a);
  opacity: 1;
  padding-left: var(--pad);
  box-sizing: content-box;
}

/* Team: below 1200px the hover-expand row is replaced by a clean stacked layout */
@media (max-width: 1199px) {
  .team-row { flex-direction: column; align-items: stretch; gap: clamp(40px, 7vw, 64px); min-height: 0; }
  .team .member, .team .member.active { flex-direction: column; align-items: flex-start; }
  .team .member .member-photo, .team .member.active .member-photo {
    position: relative; width: 100%; max-width: 420px; height: auto; aspect-ratio: 6 / 7;
  }
  .team .member-photo img { position: absolute; inset: 0; filter: none; transform: none; }
  .team .member .member-info, .team .member.active .member-info {
    width: 100%; opacity: 1; padding: 20px 0 0; box-sizing: border-box;
  }
  .team .member-info-inner { width: 100%; height: auto; }
  .team .member-dot { display: none; }
}

/* Tablets / small laptops: portrait on the left, text beside it */
@media (min-width: 700px) and (max-width: 1199px) {
  .team .member, .team .member.active { flex-direction: row; align-items: flex-start; gap: clamp(24px, 4vw, 48px); }
  .team .member .member-photo, .team .member.active .member-photo {
    flex: 0 0 clamp(240px, 38%, 400px); width: clamp(240px, 38%, 400px); max-width: none; aspect-ratio: 4 / 5;
  }
  .team .member .member-info, .team .member.active .member-info { flex: 1 1 0; width: auto; min-width: 0; padding: 0; }
  .team .member-name { margin-top: 28px; }
  .team .member-bio { font-size: clamp(17px, 1.9vw, 21px); }
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .hero { min-height: 85vh; min-height: 85svh; padding-top: 120px; }
  .contact { height: 100svh; min-height: 700px; padding-top: 40px; }
  .contact-top { grid-template-columns: 1fr; gap: 30px; margin-bottom: 20px; }
  .video-frame { aspect-ratio: 1.6 / 1; }
  .services .card { flex: 0 0 85vw; width: 85vw; height: 500px; }
  
  /* Disable cursor trail on mobile for performance */
  .work-hover-preview { display: none !important; }

  /* Hero 3 lines: stacked, perfectly centred, never overlapping the title */
  .hero { padding-bottom: 110px; }
  .hero-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; bottom: 20px; text-align: center; }
  .hero-meta > div, .hero-meta > div:last-child { justify-self: auto; text-align: center; }

  /* Blur on 36 tags inside a moving carousel is heavy on phones: same look, solid tint */
  .services .tag { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.26); }
}

@media (max-width: 768px) {
  /* Prevent iOS auto-zoom on inputs */
  input[type="text"], input[type="email"] { font-size: 16px; height: 44px; }
  
  /* Prevent nav overlap on very narrow screens */
  .nav { padding: 16px 4%; }
  .nav-right { gap: 14px; }
  .pill { padding: 7px 14px; font-size: 13px; }
  
  /* Scale down work rows slightly to fit long names */
  .work-row { font-size: clamp(22px, 6vw, 32px); min-height: 80px; padding: 0 5px; }
  .work-row .num { font-size: 14px; margin-right: 12px; }
  
  /* Stack checkboxes cleanly */
  .checks { grid-template-columns: 1fr; gap: 14px; }
  
  /* Testimonial text fitting */
  .quote { font-size: 16px; padding: 0 10px; }
  .testimonial { padding: 50px 8% 40px; min-height: 400px; }
  .quote-avatar { margin-bottom: 20px; }
  
  /* Ensure Statement faces fit */
  .inline-face.visible { width: 1.1em; }

  /* Section heading + link: stack instead of squeezing the heading */
  .services .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Testimonial: keep text clear of the arrows */
  .testimonial { padding-left: 12%; padding-right: 12%; }
  .quote { padding: 0 4px; }
}

/* Very narrow phones: keep the header on one line */
@media (max-width: 380px) {
  .brand-logo { height: 46px; }
  .nav-right { gap: 10px; }
  .pill { padding: 6px 12px; font-size: 12px; }
  .menu { width: 27px; }
}

/* ============================================================
   SLIDE-OUT MENU  (page slides left + shrinks, menu appears on the right)
   ============================================================ */
:root {
  --menu-dur: 0.9s;
  --menu-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --shell-scale: 0.82;
  --shell-w: 100vw;
  --push: 34vw;
}

.menu:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; border-radius: 2px; }

.menu { -webkit-tap-highlight-color: transparent; }

.menu-panel {
  touch-action: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #111; z-index: 1; overflow: hidden;
  visibility: hidden; pointer-events: none;
}

.menu-links {
  position: absolute; top: 50%;
  left: calc(var(--shell-w) - var(--push) + clamp(18px, 4.6vw, 96px));
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.06em;
  font-size: clamp(20px, 2.4vw, 46px);
}

.menu-links a {
  position: relative; display: block; width: fit-content;
  color: #fff; font-weight: 500; letter-spacing: -0.025em; line-height: 1.3;
  padding-bottom: 0.06em; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translate3d(28px, 0, 0);
  transition: opacity 0.35s ease, transform 0.5s var(--menu-ease);
}

.menu-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--menu-ease);
}

.menu-links a:hover::after, .menu-links a:focus-visible::after { transform: scaleX(1); }

.menu-links a:focus-visible { outline: none; }

.menu-close {
  position: fixed; z-index: 3; top: 50%;
  left: calc(var(--shell-w) - var(--push));
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 0; border-radius: 50%; background: #f1f1f1; color: #111;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: scale(0); visibility: hidden; pointer-events: none;
  transition: transform 0.45s var(--menu-ease), opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-close:hover { background: #fff; }

.menu-close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

html.menu-lock, html.menu-lock body {
  overflow: hidden !important; 
  height: 100%; 
  overscroll-behavior: none;
}

html.menu-lock .menu-panel { visibility: visible; }

html.menu-lock .menu-close { visibility: visible; }

html.menu-lock .site-shell {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100%; z-index: 2;
  overflow: hidden; overscroll-behavior: none;
  scrollbar-width: none; -ms-overflow-style: none;
  transform-origin: 100% 50%; border-radius: 0; will-change: transform;
  transition: transform var(--menu-dur) var(--menu-ease), border-radius var(--menu-dur) var(--menu-ease), box-shadow var(--menu-dur) var(--menu-ease);
}

html.menu-lock .site-shell::-webkit-scrollbar { display: none; width: 0; height: 0; }

html.menu-open .site-shell {
  transform: translate3d(calc(var(--push) * -1), 0, 0) scale(var(--shell-scale));
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px rgba(0, 0, 0, 0.5);
}

html.menu-open .site-shell { cursor: pointer; }

html.menu-open .menu-panel { pointer-events: auto; }

html.menu-open .menu-close { opacity: 1; transform: scale(1); pointer-events: auto; transition-delay: 0.4s, 0.4s; }

/* Invisible overlay to block scrolling/interacting with the shrunk page entirely */
html.menu-open .site-shell::after {
  content: ""; position: absolute; inset: 0; z-index: 99999; display: block; touch-action: none;
}

html.menu-open .menu-links a { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.8s var(--menu-ease); }

html.menu-open .menu-links a:nth-child(1) { transition-delay: 0.30s; }

html.menu-open .menu-links a:nth-child(2) { transition-delay: 0.36s; }

html.menu-open .menu-links a:nth-child(3) { transition-delay: 0.42s; }

html.menu-open .menu-links a:nth-child(4) { transition-delay: 0.48s; }

html.menu-open .menu-links a:nth-child(5) { transition-delay: 0.54s; }

html.menu-open .menu-links a:nth-child(6) { transition-delay: 0.60s; }

html.menu-open .menu-links a:hover::after { transition-delay: 0s; }

@media (max-width: 900px) {
  /* Full-screen menu on phones: the page does not shrink, the menu covers everything */
  html.menu-open .site-shell { transform: none !important; border-radius: 0; box-shadow: none; }
  html.menu-open .site-shell::after { display: none; }
  .menu-panel {
    z-index: 100;
    clip-path: inset(0 0 100% 0);
    -webkit-clip-path: inset(0 0 100% 0);
    transition: clip-path var(--menu-dur) var(--menu-ease), -webkit-clip-path var(--menu-dur) var(--menu-ease);
  }
  html.menu-open .menu-panel { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
  .menu-links { left: 8vw; font-size: clamp(30px, 9.5vw, 46px); gap: 0.1em; }
  .menu-links a { transform: translate3d(0, 24px, 0); }
  html.menu-open .menu-links a { transform: none; }
  /* Close button sits exactly where the hamburger is */
  .menu-close {
    z-index: 101; width: 40px; height: 40px; margin: 0;
    top: 26px; left: auto; right: calc(4vw - 4px);
  }
}

@media (max-width: 380px) {
  .menu-close { top: 19px; right: calc(4vw - 6px); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --menu-dur: 0.01s; }
  .menu-links a, .menu-close { transition: none !important; }
}

/* Client Logo Showcase — static, deliberately animation-free */
.client-showcase {
  padding: 70px 4%;
  background: #F1F0EB;
  color: #000;
}

.client-showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.client-showcase-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.client-showcase-title {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 700;
  max-width: 760px;
}

.client-showcase-note {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.5;
  color: #62625d;
  text-align: right;
}

.client-showcase-grid {
  display: flex;
  flex-wrap: wrap;
  /*justify-content: center;*/
  align-items: center;
  /*gap: 40px 8vw;*/
}

.client-showcase-logo {
  display: inline-block;
  text-align: center;
  font-size: clamp(14px, 1.55vw, 22px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #111;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .client-showcase { padding: 56px 5% 64px; }
  .client-showcase-head { align-items: flex-start; flex-direction: column; margin-bottom: 0px; }
  .client-showcase-note { text-align: left; max-width: 300px; }
}

/* ============================================================
   WORK PAGE  (uses the global tokens above: --black, --yellow, Inter)
   ============================================================ */
.work-page {
  background: var(--black);
  color: #fff;
  padding: clamp(150px, 15vw, 230px) 4% clamp(110px, 12vw, 190px);
}

/* Intro statement */
.showcase-intro { margin-bottom: clamp(90px, 13vw, 230px); }

.showcase-intro h1 {
  max-width: 1040px;
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.055em;
  color: #fff;
  animation: riseIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Rows: 12-col grid, projects alternate wide / narrow, full-width features between */
.showcase-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.2vw, 36px);
  align-items: start;
  margin-bottom: clamp(70px, 9vw, 160px);
}

.showcase-row.wide-left  .project-card:nth-child(1) { grid-column: 1 / span 6; }

.showcase-row.wide-left  .project-card:nth-child(2) { grid-column: 8 / span 5; margin-top: clamp(0px, 1.2vw, 20px); }

.showcase-row.wide-right .project-card:nth-child(1) { grid-column: 1 / span 5; }

.showcase-row.wide-right .project-card:nth-child(2) { grid-column: 7 / span 6; }

.showcase-row.full .project-card { grid-column: 1 / -1; }

/* Project card */
.project-card { display: block; color: #fff; cursor: pointer; }

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  background: #111;
}

.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media img,
.project-card:focus-visible .project-media img { transform: scale(1.045); }

.project-title {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.project-sub {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #8d8d8d;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.project-tag {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.project-tag:first-child { border-radius: 3px; }

/* service sector = squared chip, like the reference */
.project-card:hover .project-title { color: var(--yellow); }

.project-card:hover .project-tag { border-color: rgba(249, 255, 0, 0.55); color: var(--yellow); }

.project-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }

/* Yellow arrow cursor over projects (desktop with a mouse only) */
.arrow-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  z-index: 60;
  pointer-events: none;
  color: var(--yellow);
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(0.4);
  transition: opacity 0.25s ease;
  will-change: transform, opacity;
}

.arrow-cursor.on { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .project-card { cursor: none; }
}

@media (hover: none), (pointer: coarse) { .arrow-cursor { display: none; } }

/* Tablet / mobile: one column, same order */
@media (max-width: 900px) {
  .showcase-row { grid-template-columns: 1fr; row-gap: 56px; margin-bottom: 56px; }
  .showcase-row.showcase-row.showcase-row .project-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .project-title, .project-sub { font-size: 16px; }
  .showcase-intro { margin-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-intro h1 { animation: none; }
  .project-media img { transition: none; }
  .project-card:hover .project-media img { transform: none; }
}

/* ============================================================
   ARCHIVE  (closing strip: hairline, intro, drifting client wordmarks)
   ============================================================ */
.archive {
  background: var(--black);
  color: #fff;
  padding: 0 4% clamp(90px, 10vw, 160px);
}

.archive-inner { border-top: 1px solid rgba(255, 255, 255, 0.9); padding-top: 40px; }

.archive-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.archive-head h2 {
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.archive-head p {
  max-width: 58ch;
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: #fff;
}

.archive-marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(70px, 9vw, 140px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.archive-track {
  display: flex;
  width: max-content;
  animation: archiveDrift 38s linear infinite;
}

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

.archive-set { display: flex; align-items: center; flex: none; }

.archive-logo {
  flex: none;
  padding: 0 clamp(40px, 6vw, 110px);
  color: #fff;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.archive-logo.l-rangayan { font-weight: 900; letter-spacing: -0.08em; }

.archive-logo.l-aronec   { letter-spacing: 0.04em; font-weight: 700; }

.archive-logo.l-bridges  { text-transform: none; font-weight: 600; letter-spacing: -0.045em; }

.archive-logo.l-mantra   { font-family: 'Archivo Black', sans-serif; font-weight: 400; letter-spacing: -0.04em; }

.archive-logo.l-medhavi  { font-family: Georgia, 'Times New Roman', serif; text-transform: none; font-weight: 700; letter-spacing: -0.04em; }

.archive-logo.l-tikz     { font-family: 'Archivo Black', sans-serif; font-weight: 400; letter-spacing: -0.03em; }

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

@media (max-width: 900px) {
  .archive-head { grid-template-columns: 1fr; row-gap: 22px; }
  .archive-track { animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
  .archive-track { animation: none; }
  .archive-marquee { overflow-x: auto; }
}

/* ---------- all-screen polish + rendering speed ---------- */
.project-card { min-width: 0; -webkit-tap-highlight-color: transparent; }

.project-media img { backface-visibility: hidden; }

.archive { content-visibility: auto; contain-intrinsic-size: auto 560px; }

.archive-track { will-change: transform; }

.archive-marquee:not(.in-view) .archive-track { animation-play-state: paused; }

@media (min-width: 1900px) {
  .showcase-intro h1 { max-width: 1300px; }
}

@media (max-width: 600px) {
  .work-page { padding-top: 130px; }
  .project-tag { font-size: 11px; padding: 6px 9px; }
  .archive-inner { padding-top: 28px; }
  .archive-head p { font-size: 17px; }
  .archive-logo { padding: 0 34px; font-size: 20px; }
}

@media (max-width: 380px) {
  .showcase-intro h1 { font-size: 30px; }
  .project-title, .project-sub { font-size: 15px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .work-page { padding-top: 120px; }
}

/* ---------- Detail page: dark body (page-specific, scoped by body class) ---------- */
body.page-detail{background:var(--black);color:#fff}


#proposalForm .checks .wpcf7-list-item-label {
    color: #000;
}

/* Contact Form 7 - Thank You Message */
.wpcf7 form .wpcf7-response-output {
    color: #ffffff !important;
    background-color: #198754 !important;
    border: 1px solid #198754 !important;
    padding: 15px 20px !important;
    margin: 15px 0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Successful submission message */
.wpcf7 form.sent .wpcf7-response-output {
    color: #ffffff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}


input.wpcf7-form-control.wpcf7-submit.has-spinner.btn.text-white.fw-semibold.px-4 {
    background: #27AAE2;
}

 /* Floating Star Badge */
        
        h1.thanks-heading span {
            color: var(--yellow);
        }
        /* Main Content */
        .thanks-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 120px 4vw 60px;
            text-align: center;
            position: relative;
            z-index: 10;
        }

        .thanks-heading {
            font-family: 'Archivo Black', sans-serif;
            font-size: clamp(60px, 11vw, 200px);
            line-height: 0.9;
            letter-spacing: -0.06em;
            font-weight: 900;
            text-transform: uppercase;
            margin-bottom: 24px;
            overflow: hidden;
        }

        .thanks-heading .thanks-word {
            display: block;
            transform: translateY(100%);
            opacity: 0;
            animation: thanksRiseUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        .thanks-heading .thanks-word:nth-child(2) { animation-delay: 0.15s; }

        @keyframes thanksRiseUp {
            to { transform: translateY(0); opacity: 1; }
        }

        .thanks-message {
            font-size: clamp(16px, 2vw, 24px);
            font-weight: 500;
            color: var(--parchment);
            max-width: 600px;
            margin: 0 auto 40px;
            opacity: 0;
            animation: thanksFadeIn 1s ease 0.6s forwards;
        }

        .thanks-actions {
            opacity: 0;
            animation: thanksFadeIn 1s ease 0.8s forwards;
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .thanks-home-btn {
            background: var(--yellow);
            color: var(--black);
            border: none;
            border-radius: 999px;
            padding: 14px 32px;
            font-weight: 700;
            font-size: 15px;
            transition: transform 0.3s ease, background 0.3s ease;
        }
        .thanks-home-btn:hover {
            transform: translateY(-3px);
            background: #fff;
        }

        @keyframes thanksFadeIn {
            to { opacity: 1; }
        }



        /*404 page*/

         /* Floating side widget */
       
        @keyframes nfSpin { to { transform: rotate(360deg); } }

        /* Full-screen centered stage */
        .nf-stage {
            height: 100vh;
            height: 100svh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 0 5vw;
            text-align: center;
        }

        .nf-code {
            font-family: 'Archivo Black', sans-serif;
            font-size: clamp(90px, min(26vw, 38vh), 340px);
            line-height: 0.85;
            letter-spacing: -0.06em;
            font-weight: 900;
            overflow: hidden;
            padding-bottom: 0.04em;
            margin-bottom: clamp(8px, 2vh, 20px);
            color: var(--yellow);
        }
        .nf-code > span {
            display: block;
            transform: translateY(100%);
            opacity: 0;
            animation: nfRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* Rotating star sits in the "0" slot as its own inline box, so it never overlaps the 4s */
        .nf-orb {
            display: inline-block;
            width: 0.72em;
            height: 0.72em;
            margin: 0 0.07em 0 0.1em;
            vertical-align: baseline;
            color: var(--nf-yellow);
            animation: nfSpin 8s linear infinite;
        }

        .nf-label {
            font-family: 'Archivo Black', sans-serif;
            font-size: clamp(28px, min(6vw, 8vh), 80px);
            line-height: 0.95;
            letter-spacing: -0.04em;
            text-transform: uppercase;
            overflow: hidden;
            margin-bottom: clamp(12px, 2.5vh, 24px);
        }
        .nf-label > span {
            display: block;
            transform: translateY(100%);
            opacity: 0;
            animation: nfRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
            color: var(--yellow);
            font-weight: 600;
        }

        @keyframes nfRise { to { transform: translateY(0); opacity: 1; } }
        @keyframes nfFade { to { opacity: 1; } }

        .nf-text {
            font-size: clamp(14px, min(2vw, 3vh), 22px);
            font-weight: 500;
            color: #fff;
            max-width: 560px;
            margin: 0 auto clamp(20px, 4vh, 40px);
            opacity: 0;
            animation: nfFade 1s ease 0.6s forwards;
        }

        .nf-actions {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            opacity: 0;
            animation: nfFade 1s ease 0.8s forwards;
        }

        .nf-btn-fill {
            background: var(--yellow);
            color: var(--nf-black);
            border: 1.5px solid var(--yellow);
            border-radius: 999px;
            padding: 14px 32px;
            font-weight: 700;
            font-size: 15px;
            transition: transform 0.3s ease, background 0.3s ease;
        }
        .nf-btn-fill:hover { transform: translateY(-3px); background: #fff; border-color: #fff; color: var(--nf-black); }

        .nf-btn-line {
            background: transparent;
            color: var(--yellow);
            border: 1.5px solid var(--yellow);
            border-radius: 999px;
            padding: 14px 32px;
            font-weight: 700;
            font-size: 15px;
            transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
        }
        .nf-btn-line:hover { transform: translateY(-3px); background: var(--yellow); color: var(--nf-black); }

        @media (max-width: 575.98px) {
            .nf-actions { flex-direction: column; width: 100%; max-width: 300px; gap: 12px; }
            .nf-btn-fill, .nf-btn-line { width: 100%; text-align: center; padding: 13px 24px; }
        }

        @media (max-height: 480px) and (orientation: landscape) {
            .nf-actions { flex-direction: row; }
        }


/* Case study (detail page) — non-gallery parts.
   Gallery / image / video CSS lives ONLY in the GALLERY block at the very bottom of this file. */
.cs-wrap{padding-left:4%;padding-right:4%;max-width:1920px;margin:0 auto}
.cs-hero{padding:150px 4% 60px;background:var(--black);color:var(--yellow);max-width:1920px;margin:0 auto}
.cs-title{font-size:clamp(44px,9vw,170px);line-height:.9;letter-spacing:-.065em;font-weight:900;text-transform:uppercase;overflow-wrap:anywhere}
.cs-title span{display:block;transform:translateY(60px);opacity:0;animation:rise .9s cubic-bezier(.16,1,.3,1) forwards}
.cs-title span:nth-child(2){animation-delay:.12s}
.cs-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(28px,6vw,120px);margin-top:clamp(36px,6vw,90px);color:#fff}
.cs-meta dl{display:grid;grid-template-columns:auto 1fr;gap:6px 24px;font-size:14px;margin-bottom:36px}
.cs-meta dt{color:rgba(255,255,255,.55)}
.cs-meta dd{margin:0;font-weight:600}
.cs-stat{padding:16px 0;border-top:1px solid rgba(255,255,255,.18)}
.cs-stat strong{display:block;font-size:clamp(34px,4.2vw,64px);line-height:1;letter-spacing:-.05em;font-weight:700;color:var(--yellow)}
.cs-stat span{display:block;margin-top:8px;font-size:14px;color:rgba(255,255,255,.65)}
.cs-copy h2{font-size:clamp(24px,2.6vw,40px);line-height:1.1;letter-spacing:-.04em;font-weight:600;margin-bottom:20px}
.cs-copy h3{font-size:clamp(20px,2vw,30px);letter-spacing:-.03em;font-weight:600;margin:34px 0 14px}
.cs-copy p{font-size:clamp(15px,1.15vw,18px);line-height:1.6;color:rgba(255,255,255,.78);max-width:62ch;margin-bottom:14px}
.cs-quote{padding:clamp(70px,10vw,160px) 4% 0;max-width:1920px;margin:0 auto}
.cs-quote blockquote{font-size:clamp(26px,3.6vw,60px);line-height:1.12;letter-spacing:-.04em;font-weight:500;max-width:22em}
.cs-quote cite{display:block;margin-top:22px;font-style:normal;font-size:14px;color:var(--yellow)}
.cs-related{padding:clamp(60px,8vw,130px) 4% clamp(70px,9vw,140px);max-width:1920px;margin:0 auto}
.cs-related h2{font-size:clamp(24px,2.2vw,36px);letter-spacing:-.04em;font-weight:500;margin-bottom:28px}
.cs-related{width:100%;max-width:1920px;margin:0 auto;padding:60px 4%;overflow:hidden;box-sizing:border-box}
.cs-related h2{margin-bottom:30px}
.cs-related .cs-cards{width:100%;margin:0;--bs-gutter-x:24px;--bs-gutter-y:30px}
.cs-related .cs-card-col{min-width:0}
.cs-related .cs-card{display:flex;flex-direction:column;width:100%;min-width:0;height:100%;margin:0;text-decoration:none;box-sizing:border-box}
.cs-related .cs-box{position:relative;width:100%;aspect-ratio:16/9;height:auto;min-width:0;margin:0 0 20px;padding:0;overflow:hidden;border-radius:8px}
.cs-related .cs-box img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;display:block;object-fit:cover}
.cs-related .cs-card h3{margin:0 0 12px;overflow-wrap:anywhere}
.cs-related .cs-card p{margin:0 0 15px;overflow-wrap:anywhere}
.cs-related .cs-tags{display:flex;flex-wrap:wrap;gap:8px;width:100%;min-width:0;margin:auto 0 0;padding:0;list-style:none}
.cs-related .cs-tags li{max-width:100%;overflow-wrap:anywhere}
@media(max-width:991px){.cs-related{padding:45px 4%}.cs-related .cs-cards{--bs-gutter-x:20px;--bs-gutter-y:25px}}
@media(max-width:767px){.cs-related{padding:35px 20px}.cs-related h2{margin-bottom:20px}.cs-related .cs-cards{--bs-gutter-x:0px;--bs-gutter-y:25px}.cs-related .cs-card-col{width:100%;max-width:100%}.cs-related .cs-box{margin-bottom:15px}}
@media(max-width:480px){.cs-related{padding:30px 15px}.cs-related .cs-cards{--bs-gutter-y:20px}}
.cs-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;list-style:none}
.cs-tags li{border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:3px 10px;font-size:11px;color:rgba(255,255,255,.7)}
.cs-tags li:first-child{border-radius:2px}
.cs-card .cs-box img{transition:transform .8s cubic-bezier(.16,1,.3,1)}
.cs-card:hover .cs-box img{transform:scale(1.04)}
.cs-card:focus-visible{outline:2px solid var(--yellow);outline-offset:4px}
@media(max-width:900px){.cs-hero{padding-top:120px}.cs-intro{grid-template-columns:1fr}.cs-cards{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.cs-hero{padding:110px 5% 40px}.cs-quote,.cs-related{padding-left:5%;padding-right:5%}.cs-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.cs-title span{animation:none;transform:none;opacity:1}.cs-card .cs-box img{transition:none}}


/* ==========================================================================
   GALLERY  (detail / project pages: image + video sections)
   Every gallery block fills EXACTLY one screen (100svh) on every device.
   The layout is chosen automatically by how many images/videos are inside a
   block, so NO extra classes are needed in the HTML (cs-pair / cs-trio /
   cs-fold are still accepted but optional).
   Keep this block LAST in the file so nothing above can override it.
   ========================================================================== */

/* WordPress (wpautop) sometimes injects <br> / empty <p> into the block: ignore them */
.cs-gallery > br, .cs-gallery > p:empty { display: none; }

/* ---- 1 item (default): one full-screen image / video ---- */
.cs-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  height: 100vh;
  height: 100svh;
  max-width: 1920px;
  margin: 0 auto;
  padding: 16px 4%;
  box-sizing: border-box;
}

.cs-gallery > * {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  box-shadow: none;
}

.cs-gallery > * img,
.cs-gallery > * video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* ---- class based fallback (browsers without :has) ---- */
.cs-gallery.cs-pair     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-gallery.cs-trio     { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-gallery.cs-trio-vid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- automatic layout by number of items (desktop / tablet) ---- */
.cs-gallery:has(> :nth-of-type(2):not(br):not(p)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-gallery:has(> :nth-of-type(3):not(br):not(p)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-gallery:has(> :nth-of-type(4):not(br):not(p)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-gallery:has(> :nth-of-type(5):not(br):not(p)) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.cs-gallery:has(> :nth-of-type(7):not(br):not(p)) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }

@media (max-width: 991px) {
  .cs-gallery { padding: 12px 4%; gap: 12px; }
}

/* ---- mobile ---- */
@media (max-width: 767px) {
  .cs-gallery { padding: 10px 4%; gap: 10px; }
  .cs-gallery > * { border-radius: 10px; }

  /* 1 item: natural 16:9 box (a full-height single video would be too tall on a phone) */
  .cs-gallery:not(:has(> :nth-of-type(2):not(br):not(p))) { height: auto; }
  .cs-gallery:not(:has(> :nth-of-type(2):not(br):not(p))) > * { height: auto; aspect-ratio: 16 / 9; }

  /* 2 items: stacked, each takes half the screen */
  .cs-gallery:has(> :nth-of-type(2):not(br):not(p)) { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  /* 3 items: three columns, full screen */
  .cs-gallery:has(> :nth-of-type(3):not(br):not(p)) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  /* 4 items: 2 x 2 */
  .cs-gallery:has(> :nth-of-type(4):not(br):not(p)) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  /* 5-6 items: 2 x 3 */
  .cs-gallery:has(> :nth-of-type(5):not(br):not(p)) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  /* 7-8 items: 2 x 4 */
  .cs-gallery:has(> :nth-of-type(7):not(br):not(p)) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
}

/* ---- lazy wrapper (gallery group, quote, related) ---- */
.cs-lazy { content-visibility: auto; contain-intrinsic-size: auto 400svh; }