/* Home page styles */

/* ===== Hero ===== */
.rd-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 120px;
  overflow: hidden;
}
.rd-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.rd-hero__glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(192,132,87,0.18), rgba(192,132,87,0.06) 40%, transparent 70%);
  filter: blur(20px);
}

.rd-hero__inner { position: relative; z-index: 1; }
.rd-hero__meta { margin-bottom: 32px; }
.rd-hero__title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  margin-bottom: 32px;
  max-width: 16ch;
}
.rd-hero__italic { font-style: italic; font-family: var(--rd-display); font-weight: 500; }

.rd-hero__sub {
  max-width: 58ch;
  margin-bottom: 40px;
}
.rd-hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 80px;
}

.rd-hero__specs {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--rd-line);
  max-width: 720px;
}
.rd-hero__spec {
  display: flex; flex-direction: column; gap: 4px;
}
.rd-hero__spec-num {
  font-family: var(--rd-display);
  font-size: var(--rd-step-4);
  font-weight: 700;
  color: var(--rd-copper-hi);
  letter-spacing: -0.02em;
}
.rd-hero__spec-label {
  font-size: var(--rd-step-0);
  color: var(--rd-cream-dim);
  line-height: 1.3;
}
.rd-hero__spec-divider {
  width: 1px; height: 36px;
  background: var(--rd-line);
}

.rd-hero__mark {
  position: absolute;
  top: 120px;
  right: clamp(20px, 6vw, 60px);
  opacity: 0.85;
}

/* ===== Logo showcase ===== */
.rd-logoshow {
  position: relative;
  /* Tall scroll runway — sticky child fades as we move through it */
  height: 180vh;
  background: var(--rd-ink);
}
.rd-logoshow__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(192,132,87,0.18), transparent 70%),
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.6), transparent 60%),
    var(--rd-ink);
}
.rd-logoshow__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  text-align: center;
  /* Drives the scroll-driven fade — JS sets --p (0..1) */
  --p: 0;
  opacity: calc(1 - var(--p));
  transform: translateY(calc(var(--p) * -40px)) scale(calc(1 - var(--p) * 0.06));
  transition: opacity 60ms linear, transform 60ms linear;
  will-change: opacity, transform;
}
.rd-logoshow__eye {
  letter-spacing: 0.28em;
}
.rd-logoshow__img {
  width: min(78vw, 920px);
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 30px 80px -30px rgba(192,132,87,0.45),
    0 8px 20px -8px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(228,176,135,0.18);
  animation: rd-logo-float 7s ease-in-out infinite;
}
.rd-logoshow__tag {
  font-family: var(--rd-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: var(--rd-cream-dim);
  margin: 0;
  letter-spacing: 0.01em;
}
@keyframes rd-logo-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-logoshow__img { animation: none; }
  .rd-logoshow__inner { transition: none; }
}
@media (max-width: 700px) {
  .rd-logoshow { height: 150vh; }
  .rd-logoshow__img { width: 88vw; border-radius: 12px; }
}

/* ===== Snapshot ===== */
.rd-snapshot__head { margin-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }

.rd-snapshot__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rd-service-card {
  background: linear-gradient(180deg, #141418 0%, #0F0F12 100%);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-l);
  padding: 36px;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: border-color .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}
.rd-service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rd-copper) 50%, transparent);
  opacity: 0; transition: opacity .3s ease;
}
.rd-service-card:hover { border-color: var(--rd-line-2); transform: translateY(-2px); }
.rd-service-card:hover::before { opacity: 0.7; }

.rd-service-card__icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(192,132,87,0.10), rgba(192,132,87,0.02));
  border: 1px solid rgba(192,132,87,0.25);
  display: grid; place-items: center;
  margin-bottom: 28px;
}
.rd-service-card h3 { margin-bottom: 8px; }
.rd-service-card p { color: var(--rd-cream-dim); margin-bottom: 28px; flex: 1; }
.rd-service-card__link {
  font-size: var(--rd-step-1);
  color: var(--rd-copper-hi);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s ease;
}
.rd-service-card__link:hover { gap: 12px; }

/* ===== Why ===== */
.rd-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.rd-why__left { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.rd-why__right { display: flex; flex-direction: column; gap: 0; }
.rd-value {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--rd-line);
  align-items: start;
}
.rd-value:last-child { border-bottom: 1px solid var(--rd-line); }
.rd-value__num {
  font-family: var(--rd-display);
  font-size: var(--rd-step-4);
  color: var(--rd-copper);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.rd-value h4 { margin-bottom: 8px; }
.rd-value p { color: var(--rd-cream-dim); margin: 0; }

/* ===== Portfolio preview ===== */
.rd-preview__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; margin-bottom: 48px; flex-wrap: wrap;
}
.rd-preview__head > div { display: flex; flex-direction: column; gap: 18px; }

.rd-preview__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rd-work { display: block; }
.rd-work__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--rd-radius-l);
  border: 1px solid var(--rd-line);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
  transition: border-color .3s ease, transform .3s ease;
}
.rd-work:hover .rd-work__visual {
  border-color: var(--rd-copper);
  transform: translateY(-2px);
}

.rd-work__visual--web {
  background: linear-gradient(135deg, #16151A 0%, #0D0D10 100%);
  padding: 28px;
}
.rd-work__visual--logo {
  background:
    radial-gradient(circle at 50% 50%, #1C1A1F 0%, #0A0A0B 75%);
}
.rd-work__visual--sports {
  background: linear-gradient(145deg, #141317 0%, #0A0A0B 100%);
}

/* Browser mockup */
.rd-browser {
  width: 100%; max-width: 340px;
  background: #0B0B0E;
  border-radius: 8px;
  border: 1px solid var(--rd-line);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.rd-browser__bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 10px;
  background: #141418;
  border-bottom: 1px solid var(--rd-line);
}
.rd-browser__bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2A2A31;
}
.rd-browser__url {
  flex: 1; margin-left: 8px;
  font-size: 9px; color: var(--rd-mute);
  font-family: var(--rd-mono);
  text-align: center;
}
.rd-browser__page { padding: 16px; }
.rd-browser__hero { margin-bottom: 16px; }
.rd-browser__h1 {
  height: 10px; width: 70%;
  background: linear-gradient(90deg, #E4B087, #8E5D3A);
  border-radius: 2px; margin-bottom: 6px;
}
.rd-browser__h2 {
  height: 5px; width: 55%;
  background: var(--rd-line-2); border-radius: 2px; margin-bottom: 12px;
}
.rd-browser__btn {
  height: 16px; width: 70px;
  background: linear-gradient(180deg, #E4B087, #C08457);
  border-radius: 999px;
}
.rd-browser__row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.rd-browser__tile {
  aspect-ratio: 1;
  background: #16161A;
  border: 1px solid var(--rd-line);
  border-radius: 4px;
}

.rd-logomark svg { filter: drop-shadow(0 10px 30px rgba(192,132,87,0.3)); }
.rd-crest svg    { filter: drop-shadow(0 10px 30px rgba(192,132,87,0.15)); }

.rd-work__meta { padding: 24px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.rd-work__tag {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rd-copper); font-weight: 500;
}
.rd-work__meta h4 { margin: 0; }
.rd-work__meta p { margin: 0; font-size: var(--rd-step-1); color: var(--rd-cream-dim); }

/* ===== Testimonials ===== */
.rd-testis { background: #07070A; border-block: 1px solid var(--rd-line); }
.rd-testis__head { margin-bottom: 48px; }
.rd-testis__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rd-testi {
  margin: 0;
  padding: 32px;
  background: var(--rd-panel);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-l);
  display: flex; flex-direction: column; gap: 16px;
}
.rd-stars {
  color: var(--rd-copper-hi);
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.rd-testi blockquote {
  margin: 0;
  font-family: var(--rd-display);
  font-size: var(--rd-step-3);
  line-height: 1.35;
  color: var(--rd-cream);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.rd-testi figcaption {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rd-line);
}
.rd-testi figcaption strong { color: var(--rd-cream); font-weight: 600; font-size: var(--rd-step-1); }
.rd-testi figcaption span { color: var(--rd-cream-dim); font-size: var(--rd-step-0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .rd-snapshot__grid,
  .rd-preview__grid,
  .rd-testis__grid { grid-template-columns: 1fr 1fr; }
  .rd-why__inner { grid-template-columns: 1fr; gap: 40px; }
  .rd-why__left { position: static; }
}
@media (max-width: 680px) {
  .rd-snapshot__grid,
  .rd-preview__grid,
  .rd-testis__grid { grid-template-columns: 1fr; }
  .rd-hero__mark { display: none; }
  .rd-hero { min-height: auto; padding: 120px 0 80px; }
  .rd-value { grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; }
  .rd-value__num { font-size: var(--rd-step-3); }
}
