/* ═══════════════════════════════════════════════════════
   HORIZON WEB STUDIO — about.css
   About page standalone stylesheet
═══════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --bg-base:       #080808;
  --bg-surface:    #0f0f0f;
  --bg-elevated:   #161616;
  --bg-card:       #111111;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.15);

  --text-primary:  #e8e2d5;
  --text-secondary:#a09890;
  --text-muted:    #5a5450;

  --accent:        #c9a84c;
  --accent-dim:    rgba(201,168,76,0.12);
  --accent-glow:   rgba(201,168,76,0.25);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font:          system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg-base); color: var(--text-primary); font-family: var(--font); line-height: 1.65; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Reveal Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }

/* ── Common ─────────────────────────────────────────── */
.text-accent    { color: var(--accent); }
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-body {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}
.section-header { margin-bottom: 48px; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #0a0806;
}
.btn--primary:hover {
  background: #d9b85a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn--large { padding: 18px 36px; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════
   HEADER / NAV (shared styles, same as index)
══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.6); }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link--cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid rgba(201,168,76,0.3);
}
.nav-link--cta:hover {
  background: var(--accent);
  color: #0a0806 !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════
   ABOUT HERO
══════════════════════════════════════════════════════ */
.about-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.about-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(201,168,76,0.06), transparent 70%),
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
}

.about-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.about-hero__body {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════
   TWO-COLUMN PROCESS LAYOUT
══════════════════════════════════════════════════════ */
.process-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.col-header { margin-bottom: 40px; }

/* ── Timeline ───────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-phase {
  display: flex;
  gap: 20px;
}

.timeline-phase__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}
.timeline-phase__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: var(--bg-base);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  z-index: 1;
}
.timeline-phase__dot--final {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.timeline-phase.is-active .timeline-phase__dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline-phase__line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--border);
  margin: 4px 0;
}
.timeline-phase--last .timeline-phase__line { display: none; }

.timeline-phase__card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--transition);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.28s ease;
}
.timeline-phase__card.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-phase.is-active .timeline-phase__card {
  border-color: rgba(201,168,76,0.3);
}

.timeline-phase__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.phase-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.phase-title {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  line-height: 1.3;
}

.phase-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  padding: 4px;
}
.phase-toggle:hover { color: var(--text-primary); }
.timeline-phase.is-active .phase-toggle {
  color: var(--accent);
  transform: rotate(180deg);
}

.phase-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 20px;
}
.timeline-phase.is-active .phase-detail {
  max-height: 300px;
  padding: 0 20px 20px;
}
.phase-detail[aria-hidden="false"] { /* JS-managed */ }
.phase-detail p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.phase-detail p strong { color: var(--text-primary); }

.phase-badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  margin-right: 6px;
  margin-bottom: 6px;
}
.phase-badge--warn {
  color: #fb923c;
  border-color: rgba(251,146,60,0.3);
  background: rgba(251,146,60,0.08);
}
.phase-badge--info {
  color: #60a5fa;
  border-color: rgba(96,165,250,0.3);
  background: rgba(96,165,250,0.08);
}
.phase-badge--success {
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.08);
}

/* ── Rules Grid ─────────────────────────────────────── */
.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.rule-card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateX(4px);
}

.rule-card__icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}

.rule-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.rule-card__body {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.rule-card__body strong { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════
   PORTFOLIO CAROUSEL
══════════════════════════════════════════════════════ */
.showcase {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.carousel__slide {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.carousel__slide:last-child { border-right: none; }
.carousel__slide:hover {
  background: var(--bg-elevated);
}
.carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.carousel__slide:hover::after { opacity: 1; }

.carousel__mockup {
  display: flex;
  justify-content: center;
  padding: 32px 24px 24px;
  background: linear-gradient(180deg, #0a0a0a, var(--bg-card));
}

.mockup-frame {
  position: relative;
  width: 140px;
  border-radius: 20px;
  border: 3px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  background: #000;
}
.mockup-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 0 0 8px 8px;
  z-index: 1;
}
.mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel__info {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.carousel__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.carousel__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.carousel__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.carousel__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* Carousel controls — hidden on desktop (all 3 visible), shown on mobile */
.carousel__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.carousel__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}
.carousel__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════
   CLOSING CTA
══════════════════════════════════════════════════════ */
.closing-cta {
  padding: 100px 0;
}
.closing-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.closing-cta__glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.closing-cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  position: relative;
}
.closing-cta__body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  position: relative;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { margin-bottom: 4px; }
.footer__brand p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
  align-items: flex-start;
}
.footer__nav a { font-size: 0.85rem; color: var(--text-secondary); transition: color var(--transition); }
.footer__nav a:hover { color: var(--accent); }
.footer__legal {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .two-col-layout { grid-template-columns: 1fr; gap: 60px; }

  /* Mobile carousel: one slide at a time */
  .carousel__track {
    grid-template-columns: 100%;
    overflow: hidden;
  }
  .carousel__slide {
    display: none;
    border-right: none;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
  }
  .carousel__slide.is-active {
    display: flex;
  }
  .carousel__mockup { padding: 0; flex-shrink: 0; }
  .mockup-frame { width: 110px; }
  .carousel__controls { display: flex; }
  .closing-cta__inner { padding: 48px 28px; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .nav-burger { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }

  .carousel__slide { flex-direction: column; }
  .mockup-frame { width: 130px; }
}
