/* ═══════════════════════════════════════════════════════════════════
   Xavier Deguzman — page.css
   Clean, minimal, premium dark personal brand page
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --black:      #0a0a0a;
  --off-black:  #111111;
  --surface:    #181818;
  --border:     rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);

  --white:      #ffffff;
  --off-white:  #e8e4de;
  --muted:      rgba(255,255,255,0.45);
  --muted2:     rgba(255,255,255,0.25);

  --gold:       #c9a84c;
  --gold-dim:   rgba(201,168,76,0.15);
  --gold-hover: rgba(201,168,76,0.25);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max:        640px;   /* center column width */
  --radius:     12px;
  --trans:      0.22s ease;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Page wrap ───────────────────────────────────────────────────── */
.page-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Selection ───────────────────────────────────────────────────── */
::selection { background: var(--gold); color: var(--black); }

/* ═══════════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: transform var(--trans);
}
.topbar span { display: inline; }
.topbar a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans);
}
.topbar a:hover { border-bottom-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero__roles {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.hero__body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 360px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════
   LINK BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.links-section {
  padding: 0.5rem 0 2.5rem;
}
.links-section .page-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.link-btn:hover {
  background: #1f1f1f;
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.link-btn:active { transform: translateY(0); }

.link-btn--featured {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.05);
}
.link-btn--featured:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.5);
}

.link-btn--email {
  border-color: rgba(255,255,255,0.1);
}

.link-btn__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 1rem;
  color: var(--off-white);
  flex-shrink: 0;
}
.link-btn--featured .link-btn__icon { color: var(--gold); }

/* ── Platform icon colors ──────────────────────────────────────── */
.link-btn__icon--yt {
  background: rgba(255, 0, 0, 0.12);
  color: #ff3b30;
}
.link-btn__icon--ig {
  background: rgba(193, 53, 132, 0.12);
  color: #e1306c;
}
.link-btn__icon--tt {
  background: rgba(105, 201, 208, 0.1);
  color: #69c9d0;
}
.link-btn__icon--x {
  background: rgba(255, 255, 255, 0.09);
  color: #f0f0f0;
}
.link-btn__icon--sc {
  background: rgba(255, 252, 0, 0.1);
  color: #fffc00;
}
.link-btn__icon--re {
  background: var(--gold-dim);
  color: var(--gold);
}

.link-btn__label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--off-white);
  letter-spacing: 0.01em;
}

.link-btn__arrow {
  font-size: 0.7rem;
  color: var(--muted2);
  transition: color var(--trans), transform var(--trans);
}
.link-btn:hover .link-btn__arrow {
  color: var(--muted);
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Divider between sections */
.collabs-section,
.re-section,
.contact-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   RECENT COLLABS
   ═══════════════════════════════════════════════════════════════════ */
.collabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.collab-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--trans), transform var(--trans);
  -webkit-tap-highlight-color: transparent;
}
.collab-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.collab-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0d0d0d;
}
.collab-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.collab-card:hover .collab-card__thumb img { transform: scale(1.03); }

/* Gradient placeholder thumbs — Instagram & TikTok */
.collab-card__gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collab-card__thumb--ig .collab-card__gradient {
  background: linear-gradient(135deg, #1a0a0a 0%, #2a0f1a 40%, #1a0a2a 100%);
}
.collab-card__thumb--tt .collab-card__gradient {
  background: linear-gradient(135deg, #0a0a0f 0%, #0d0f1a 40%, #0a1010 100%);
}
.collab-card__bg-icon {
  font-size: 2.5rem;
  opacity: 0.12;
  color: var(--white);
  transition: opacity var(--trans), transform var(--trans);
}
.collab-card:hover .collab-card__bg-icon {
  opacity: 0.22;
  transform: scale(1.08);
}

/* Always show play button on gradient cards */
.collab-card__thumb--ig .collab-card__play,
.collab-card__thumb--tt .collab-card__play {
  opacity: 1;
  background: transparent;
}
.collab-card__thumb--ig .collab-card__play i,
.collab-card__thumb--tt .collab-card__play i {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.35);
  filter: none;
  transition: color var(--trans), transform var(--trans);
}
.collab-card:hover .collab-card__thumb--ig .collab-card__play i,
.collab-card:hover .collab-card__thumb--tt .collab-card__play i {
  color: rgba(255,255,255,0.75);
  transform: scale(1.15);
}

.collab-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity var(--trans);
}
.collab-card__play i {
  font-size: 1.4rem;
  color: var(--white);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.collab-card:hover .collab-card__play { opacity: 1; }

.collab-card__body {
  padding: 0.75rem;
}
.collab-card__platform {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.collab-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.collab-card__role {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════
   REAL ESTATE
   ═══════════════════════════════════════════════════════════════════ */
.re-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.re-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.re-card__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: 9px;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.re-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.re-card__text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.re-card__list {
  margin-bottom: 1.25rem;
}
.re-card__list li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.2rem 0;
  padding-left: 0.85rem;
  position: relative;
}
.re-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

.re-card__contact {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.re-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--off-white);
}
.re-card__lic {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.re-card__email,
.re-card__site {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans);
  width: fit-content;
}
.re-card__email:hover,
.re-card__site:hover { border-bottom-color: var(--gold); }

.re-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  transition: background var(--trans), border-color var(--trans);
  margin-top: 0.5rem;
}
.re-btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold);
}

/* RE Photo */
.re-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.re-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* KW Compliance */
.re-compliance {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.re-compliance p {
  font-size: 0.65rem;
  color: var(--muted2);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-lane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}
.contact-lane__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.contact-lane__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.contact-lane__text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.contact-lane__link {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  width: fit-content;
  margin-bottom: 0.2rem;
  transition: border-color var(--trans);
}
.contact-lane__link:hover { border-bottom-color: var(--gold); }
.contact-lane__link--secondary {
  font-size: 0.78rem;
  color: var(--muted);
}
.contact-lane__link--secondary:hover {
  color: var(--off-white);
  border-bottom-color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer__compliance {
  font-size: 0.62rem;
  color: var(--muted2);
  letter-spacing: 0.04em;
  max-width: 500px;
  line-height: 1.7;
}
.footer__support {
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__support-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  width: 100%;
  text-align: center;
  margin-bottom: 0.1rem;
}
.footer__support strong { color: var(--off-white); }
.footer__support-sep { color: var(--muted2); }
.footer__copy {
  font-size: 0.62rem;
  color: var(--muted2);
  margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL FADE-IN
   ═══════════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .re-grid {
    grid-template-columns: 1fr;
  }
  .collabs-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 2.5rem 1.25rem 2rem;
  }
  .hero__portrait {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 340px) {
  .link-btn__label { font-size: 0.85rem; }
}
