/* Art direction: Entrepreneur's personal site — cinematic dark mode storytelling scroll
   Palette: Dark, warm off-white text, gold accent (earthy ambition)
   Typography: Clash Display (bold, commanding) + Satoshi (clean, modern body)
   Density: Spacious — editorial, generous whitespace, full-viewport sections */

/* ============================================
   FONTS
   ============================================ */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@300,400,500,700&display=swap');

:root {
  --font-display: 'Clash Display', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', 'Arial', sans-serif;
}

/* ============================================
   TYPE SCALE
   ============================================ */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);
}

/* ============================================
   SPACING (4px system)
   ============================================ */
:root {
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============================================
   CUSTOM DARK PALETTE — Dark mode only
   ============================================ */
:root {
  /* Surfaces */
  --color-bg:             #0a0a0a;
  --color-surface:        #141414;
  --color-surface-2:      #1c1c1c;
  --color-surface-offset: #111111;
  --color-divider:        #2a2a2a;
  --color-border:         #333333;

  /* Text */
  --color-text:           #e8e6e3;
  --color-text-muted:     #8a8785;
  --color-text-faint:     #555350;
  --color-text-inverse:   #0a0a0a;

  /* Accent — warm gold */
  --color-primary:        #c9a84c;
  --color-primary-hover:  #ddb94f;
  --color-primary-active: #b8972f;
  --color-primary-highlight: color-mix(in oklch, #c9a84c 10%, #141414);

  /* Secondary accent — warm copper/terra */
  --color-secondary:      #c27849;
  --color-secondary-hover: #d48b5a;

  /* Tertiary accent — muted teal */
  --color-tertiary:       #4a9b8e;
  --color-tertiary-hover: #5db3a5;

  /* Semantic colors */
  --color-success:        #6daa45;
  --color-warning:        #bb653b;
  --color-error:          #d16363;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows (dark mode - subtle) */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   SCROLL ANIMATIONS (CSS-only)
   ============================================ */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-up {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-clip {
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Staggered reveals */
.stagger-1 { animation-delay: 0ms; }
.stagger-2 { animation-delay: 50ms; }
.stagger-3 { animation-delay: 100ms; }
.stagger-4 { animation-delay: 150ms; }
.stagger-5 { animation-delay: 200ms; }

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

a:hover {
  color: var(--color-primary-hover);
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.nav-logo svg {
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  min-height: 80vh;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-6);
  position: relative;
}

.section-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  line-height: 1.1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: var(--space-20) var(--space-6);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-statement {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero-statement .accent {
  color: var(--color-primary);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--color-primary);
  opacity: 0.12;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(15%);
}

.about-text p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-photo {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ============================================
   PILLARS SECTION (Build / Buy / Invest)
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-interactive);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card:hover {
  border-color: var(--color-border);
}

.pillar-card:nth-child(1) .pillar-icon { color: var(--color-primary); }
.pillar-card:nth-child(2) .pillar-icon { color: var(--color-secondary); }
.pillar-card:nth-child(3) .pillar-icon { color: var(--color-tertiary); }

.pillar-card:nth-child(1)::before { background: var(--color-primary); }
.pillar-card:nth-child(2)::before { background: var(--color-secondary); }
.pillar-card:nth-child(3)::before { background: var(--color-tertiary); }

.pillar-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.pillar-card:nth-child(1) .pillar-title { color: var(--color-primary); }
.pillar-card:nth-child(2) .pillar-title { color: var(--color-secondary); }
.pillar-card:nth-child(3) .pillar-title { color: var(--color-tertiary); }

.pillar-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ============================================
   VENTURES SECTION
   ============================================ */
.ventures-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.venture-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: border-color var(--transition-interactive),
              transform var(--transition-interactive);
  text-decoration: none;
  color: inherit;
}

.venture-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  color: inherit;
}

.venture-card-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.venture-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.venture-card-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex-grow: 1;
}

.venture-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-top: var(--space-4);
}

.venture-card-link svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  transition: transform var(--transition-interactive);
}

.venture-card:hover .venture-card-link svg {
  transform: translateX(4px);
}

/* Sub-ventures row */
.sub-ventures {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.sub-venture {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  padding: var(--space-5);
  transition: border-color var(--transition-interactive);
  text-decoration: none;
  color: inherit;
  display: block;
}

.sub-venture:hover {
  border-color: var(--color-primary);
  color: inherit;
}

.sub-venture-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.sub-venture-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Investments list */
.investments-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.investments-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1) var(--space-8);
}

.investments-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
}

.investment-name {
  font-weight: 500;
  color: var(--color-text);
  font-size: var(--text-base);
}

.investment-desc {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ventures-editorial {
    grid-template-columns: 1fr;
  }

  .sub-ventures {
    grid-template-columns: 1fr;
  }

  .investments-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PODCAST SECTION
   ============================================ */
.podcast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}

.podcast-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.waveform-container {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.wave-bar {
  width: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  opacity: 0.6;
  animation: wave-pulse 1.5s ease-in-out infinite;
}

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.7; }
}

.podcast-info .section-label {
  margin-bottom: var(--space-3);
}

.podcast-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.podcast-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.podcast-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.podcast-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.podcast-cta:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.podcast-cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .podcast-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .podcast-visual {
    order: -1;
    min-height: 160px;
  }

  .podcast-cta {
    margin-inline: auto;
  }
}

/* ============================================
   CONNECT / FOOTER SECTION
   ============================================ */
.connect-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.connect-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.connect-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  padding-bottom: var(--space-1);
  border-bottom: 2px solid transparent;
  transition: color var(--transition-interactive),
              border-color var(--transition-interactive);
}

.connect-email:hover {
  color: var(--color-primary-hover);
  border-bottom-color: var(--color-primary-hover);
}

.social-links {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-8);
  justify-content: center;
}

.social-link {
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              transform var(--transition-interactive);
}

.social-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.site-footer {
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-divider);
  text-align: center;
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-right a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-right a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ============================================
   DOT GRID BACKGROUND
   ============================================ */
.dot-grid-bg {
  background-image: radial-gradient(circle, var(--color-divider) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============================================
   HERO GEOMETRIC BACKGROUND (CSS only)
   ============================================ */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.15;
}

.hero-grid-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(var(--color-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
}

.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, var(--color-bg) 70%);
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Hero network SVG */
.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.6;
}

.network-svg {
  width: 100%;
  height: 100%;
}

/* Subtle gold glow in hero */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(from var(--color-primary) l c h / 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   COLOR ACCENTS — Venture cards
   ============================================ */
.venture-card:first-child {
  border-left: 3px solid var(--color-secondary);
}

.venture-card:first-child .venture-card-label {
  color: var(--color-secondary);
}

.venture-card:last-child {
  border-left: 3px solid var(--color-tertiary);
}

.venture-card:last-child .venture-card-label {
  color: var(--color-tertiary);
}

/* ============================================
   INVESTMENT LINKS
   ============================================ */
.investment-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  width: 100%;
  transition: color var(--transition-interactive);
}

.investment-link:hover {
  color: inherit;
}

.investment-link:hover .investment-name {
  color: var(--color-primary);
}

.view-others-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.view-others-link:hover {
  color: var(--color-primary);
}

.view-others-link svg {
  transition: transform var(--transition-interactive);
}

.view-others-link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   PODCAST COLOR ACCENTS
   ============================================ */
.podcast-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
}

.podcast-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-tertiary));
}

/* ============================================
   COLORED SECTION DIVIDER
   ============================================ */
.section-divider-color {
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-tertiary) 100%);
  opacity: 0.6;
}

/* ============================================
   AI PLAYGROUND SECTION
   ============================================ */
.ai-playground-section {
  background: var(--color-bg);
  min-height: 70vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
}

.ai-playground-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-tertiary), var(--color-primary), var(--color-secondary));
}

.ai-playground-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}

.ai-text .section-label {
  color: var(--color-tertiary);
}

.ai-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.ai-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.c3po-link {
  position: relative;
  display: block;
  max-width: 400px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.c3po-link:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.25),
              0 0 120px rgba(201, 168, 76, 0.1);
}

.c3po-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  z-index: 0;
  animation: c3po-pulse 3s ease-in-out infinite;
}

/* Persistent glow on touch devices */
@media (hover: none) {
  .c3po-link {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.2),
                0 0 80px rgba(201, 168, 76, 0.08);
  }
}

@keyframes c3po-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.c3po-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

@media (max-width: 768px) {
  .ai-playground-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .c3po-link {
    max-width: 280px;
  }
}

/* ============================================
   ABOUT SECTION COLOR ACCENT
   ============================================ */
.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--color-primary);
  opacity: 0.3;
}

.about-text p:first-of-type {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
  background: linear-gradient(90deg, var(--color-text), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CONNECT SECTION COLOR ACCENT
   ============================================ */
.connect-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-text) 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
