:root {
  --bg: #0a0a0a;
  --text: #fff;
  --muted: rgba(255,255,255,0.35);
  --soft: rgba(255,255,255,0.62);
  --border: rgba(255,255,255,0.07);
  --yellow: #F5E642;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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


/* ── INTRO SPLASH ── */
#intro {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
#intro.hide { opacity: 0; }
#intro.gone { display: none; }

.intro-logo {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  opacity: 0;
  animation: introFade 0.5s ease 0.2s forwards;
}
.intro-logo em { font-style: normal; color: var(--yellow); }

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

/* ── SCROLL PROGRESS ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--yellow);
  z-index: 9998;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ── LAYOUT ── */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 32px 0;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
}
nav.stuck {
  padding: 20px 0;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.logo em {
  font-style: normal;
  color: var(--yellow);
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.logo:hover em { transform: scale(1.4) rotate(-10deg); }

nav a.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
nav a.nav-cta::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
nav a.nav-cta:hover { color: #fff; }
nav a.nav-cta:hover::after { transform: scaleX(1); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 100px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 36px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Clip-path text reveal */
.line-mask {
  overflow: hidden;
  padding-bottom: 0.08em;
}
h1 {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 0.92;
  margin-bottom: 32px;
}
.line-mask h1,
.line-mask span {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.line-mask:nth-child(2) span { animation-delay: 0.1s; }
h1 .dim { color: var(--muted); }

@keyframes slideUp {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 48px;
  font-weight: 400;
  max-width: 360px;
  opacity: 0;
  animation: fadeIn 0.7s ease 0.5s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Yellow sweep button */
.btn {
  position: relative;
  display: inline-block;
  padding: 15px 40px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.25s, color 0.25s;
  opacity: 0;
  animation: fadeIn 0.7s ease 0.65s forwards;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  border-radius: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(0); }
.btn span { position: relative; z-index: 1; }

/* ── SECTIONS ── */
.section { padding: 110px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 52px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.section-count {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  font-weight: 500;
}


/* ── WORK LIST ── */
.work-list-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.work-list-head {
  padding-bottom: 40px;
}

.work-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
  transition: padding-left 0.35s cubic-bezier(0.4,0,0.2,1);
}
.work-row:last-child { border-bottom: 1px solid var(--border); }

/* Yellow accent line on hover */
.work-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--yellow);
  border-radius: 2px;
  transition: height 0.3s cubic-bezier(0.4,0,0.2,1);
}
.work-row:hover::before { height: 50%; }
.work-row:hover { padding-left: 16px; }

.wr-num {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.wr-name {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
  transition: color 0.3s;
}
.wr-tag {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.3s;
}
.wr-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.wr-arrow svg { width: 16px; height: 16px; transition: transform 0.3s; }

.work-row:hover .wr-name { color: var(--yellow); }
.work-row:hover .wr-tag { border-color: rgba(255,255,255,0.15); }
.work-row:hover .wr-arrow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}
.work-row:hover .wr-arrow svg { transform: translate(1px, -1px); }

/* ── SERVICES ── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.svc {
  padding: 44px 40px;
  background: var(--bg);
  transition: background 0.3s;
  position: relative;
}
.svc::after {
  content: '';
  position: absolute;
  bottom: 0; left: 40px; right: 40px;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.svc:hover { background: #111; }
.svc:hover::after { transform: scaleX(1); }

.svc-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  opacity: 0.7;
}
.svc h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #fff;
}
.svc p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── TESTIMONIALS ── */
.testi-list { display: flex; flex-direction: column; }

.testi {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 60px;
  align-items: center;
  position: relative;
}
.testi:first-child { border-top: 1px solid var(--border); }

.testi-quote {
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--soft);
  line-height: 1.6;
  letter-spacing: -0.2px;
  position: relative;
  padding-left: 24px;
}
/* Yellow quote mark */
.testi-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -4px;
  font-size: 32px;
  font-style: normal;
  color: var(--yellow);
  line-height: 1;
  opacity: 0.7;
}

.testi-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.testi-author span {
  font-size: 12px;
  color: var(--muted);
}

/* ── CONTACT ── */
.contact-section { padding-bottom: 140px; }

.contact-heading {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 0.95;
  margin-bottom: 64px;
  text-align: center;
}
.contact-heading .dim { color: var(--muted); }

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input, textarea, select {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.18); }
input:focus, textarea:focus, select:focus {
  border-color: var(--yellow);
  background: rgba(245,230,66,0.03);
}
/* ── CUSTOM SELECT ── */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: rgba(255,255,255,0.18);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.custom-select-trigger.selected { color: #fff; }
.custom-select-trigger svg {
  color: var(--muted);
  transition: transform 0.25s;
}
.custom-select.open .custom-select-trigger {
  border-color: var(--yellow);
  background: rgba(245,230,66,0.03);
}
.custom-select.open .custom-select-trigger svg { transform: rotate(180deg); }

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #151515;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}
.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.custom-select-option:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
textarea { resize: none; }

/* Magnetic send button */
.form-btn {
  align-self: center;
  margin-top: 8px;
  padding: 15px 48px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, color 0.25s;
}
.form-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.form-btn:hover { transform: translateY(-2px); }
.form-btn:hover::before { transform: translateY(0); }
.form-btn span { position: relative; z-index: 1; }

#ok {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
  margin-top: 4px;
}

/* ── CTA BANNER ── */
.cta-banner {
  padding: 40px 0 60px;
}
.cta-banner-card {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.cta-banner-card-inner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #1a0f00;
}

/* The actual image */
.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Dark gradient so text stays readable */
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  padding: 80px 64px;
}
.cta-banner-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.cta-banner-title {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 40px;
  max-width: 480px;
}
.cta-banner-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.cta-banner-btn:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .cta-banner-card { padding: 0 16px; }
  .cta-banner-inner { padding: 56px 36px; }
  .cta-banner-title { letter-spacing: -1.5px; }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.foot-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  justify-self: center;
}
.foot-right {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  font-style: italic;
  text-align: right;
  justify-self: end;
}

/* ── SCROLL REVEAL ── */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade.in { opacity: 1; transform: none; }
.fade[data-d="1"] { transition-delay: 90ms; }
.fade[data-d="2"] { transition-delay: 180ms; }
.fade[data-d="3"] { transition-delay: 270ms; }

/* ── TABLET ── */
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .hero { padding: 120px 28px 80px; }
  h1 { letter-spacing: -3px; }
  .section { padding: 80px 0; }
  .testi { grid-template-columns: 1fr; gap: 16px; }
  .testi-quote { font-size: 17px; }
  .cta-banner-card-inner { min-height: 400px; }
  .cta-banner-inner { padding: 60px 48px; }
  .foot-inner { padding: 0 28px; }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  nav { padding: 18px 0; }
  nav.stuck { padding: 14px 0; }
  .nav-inner { padding: 0 20px; }
  .wrap { padding: 0 20px; }

  h1 {
    font-size: clamp(32px, 9vw, 52px);
    letter-spacing: -1.5px;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero {
    min-height: auto;
    padding: 100px 20px 60px;
    overflow: hidden;
  }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-sub {
    font-size: 14px;
    margin-bottom: 36px;
  }
  .btn { padding: 13px 32px; font-size: 12px; }

  .section { padding: 60px 0; }
  .work-list-wrap { padding: 0 20px; }
  .work-list-head { padding-bottom: 24px; }
  .work-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 28px 0;
  }
  .work-row:hover { padding-left: 10px; }
  .wr-num { display: none; }
  .wr-tag { display: none; }
  .wr-name { font-size: clamp(22px, 7vw, 32px); letter-spacing: -1px; }
  .wr-arrow { width: 34px; height: 34px; }
  .wr-arrow svg { width: 14px; height: 14px; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 32px 24px; }

  .testi { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .testi-quote { font-size: 15px; padding-left: 20px; }
  .testi-quote::before { font-size: 26px; }
  .section-head { margin-bottom: 32px; }

  .cta-banner { padding: 20px 0 40px; }
  .cta-banner-card { padding: 0 16px; }
  .cta-banner-card-inner { min-height: 360px; border-radius: 20px; }
  .cta-banner-inner { padding: 40px 24px; }
  .cta-banner-title { letter-spacing: -1.5px; margin-bottom: 28px; }
  .cta-banner-label { margin-bottom: 14px; }
  .cta-banner-btn { padding: 13px 32px; font-size: 13px; }

  .contact-heading { letter-spacing: -2px; }
  .field-row { grid-template-columns: 1fr; }

  .foot-inner {
    padding: 0 20px;
    grid-template-columns: 1fr;
    gap: 6px;
    justify-items: center;
  }
  .foot-copy { text-align: center; }
  .foot-right { text-align: center; justify-self: center; }
}
