 /* styles.css */
:root {
  --text: #2a1114;
  --muted: #6f4a50;
  --line: #e6ccd1;
  --bg: #fff1f3;

  --panel-bg: #fff8f9;
  --panel-border: #f0d9dd;
  --shadow: 0 14px 34px rgba(92, 28, 36, 0.12);

  --hover: rgba(207, 65, 84, 0.12);

  --link: #60a5fa;
  --link-hover: #60a5fa;
}

:root[data-theme="dark"] {
  --text: #f2f2f2;
  --muted: #b7b7b7;
  --line: rgba(255,255,255,0.10);
  --bg: #0b0b0c;

  --panel-bg: #0f0f12;
  --panel-border: #2b2b2f;
  --shadow: 0 12px 35px rgba(0,0,0,0.45);

  --hover: rgba(255,255,255,0.06);

  --link: #c4b5fd;
  --link-hover: #60a5fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background 0.15s ease, color 0.15s ease;
}

/* Global content links */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover {
  color: var(--link-hover) !important;
  border-bottom-color: currentColor;
}

/* =======================
   HEADER
======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--bg);
  border-bottom: 3px double var(--text);
}

.site-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand must NOT look like a link */
.site-brand,
.site-brand:visited,
.site-brand:hover,
.site-brand:active {
  color: var(--text) !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.site-brand:hover { opacity: 0.85; }

/* Top right buttons */
.top-nav {
  position: relative;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 18px;
}


.icon-btn {
    position: relative;
  z-index: 5001;          /* makes the actual buttons clickable even if a panel overlaps */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Panels */
.menu-panel {
  position: absolute;
  top: calc(100% + 12px);   /* always below the header icon row */
  right: 0;
  width: 300px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 3000;
}

.theme-panel {
  position: absolute;
  top: calc(100% + 12px);   /* always below the header icon row */
  right: 40px;
  width: 190px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 3000;
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 80px;
  width: 420px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 3000;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.15s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--link);
}

.search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.search-clear {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.search-clear:hover {
  color: var(--text);
}

.search-clear svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-hint {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.menu-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.tab {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { background: var(--hover); color: var(--text); }
.tab.is-active { background: rgba(0,0,0,0.06); color: var(--text); font-weight: 600; }

.menu-content { padding: 4px 6px 8px; }
.panel { display: none; }
.panel.is-active { display: grid; gap: 6px; }

.menu-item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: 0;
}
.menu-item:hover {
  background: var(--hover);
  color: var(--link-hover);
}

.menu-section-title {
  margin-top: 8px;
  padding: 8px 10px 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.menu-section-title:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 6px;
}

.theme-item {
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  transition: background 0.15s ease;
}
.theme-item:hover { background: var(--hover); }
.theme-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =======================
   MAIN WRAP
======================= */
.wrap {
  width: min(1360px, calc(100vw - 56px));
  margin: 58px auto 0;
  padding: 0 28px;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

/* =======================
   HERO
======================= */

/* =======================
   HERO (Ran-style layout + rhythm)
======================= */
.hero {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(520px, 1fr);
  column-gap: 52px;
  align-items: start;
  width: 100%;
}

/* Photo */
.hero-photo {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  --card-lift: 0px;
  --shine-x: 20%;
  --shine-y: 20%;
  position: relative;
  width: fit-content;
  margin: 0 auto 0;
  perspective: 900px;
  transform-origin: top center;
  touch-action: pan-y;
}

.hero-hanger {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 150px;
  pointer-events: none;
  z-index: 5;
}

.hero-nail {
  display: none;
}

.hero-chain {
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 150px;
  transform: translateX(-50%);
  z-index: 4;
}

.hero-chain::before,
.hero-chain::after {
  content: none;
}

.hero-chain::before {
  left: 20px;
  transform: rotate(12deg);
  transform-origin: top center;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 151px 0 0 rgba(20, 20, 23, 0.95),
    0 159px 0 0 rgba(20, 20, 23, 0.95),
    -2px 161px 0 0 rgba(20, 20, 23, 0.95),
    2px 161px 0 0 rgba(20, 20, 23, 0.95);
}

.hero-chain::after {
  right: 20px;
  transform: rotate(-12deg);
  transform-origin: top center;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 151px 0 0 rgba(20, 20, 23, 0.95),
    0 159px 0 0 rgba(20, 20, 23, 0.95),
    -2px 161px 0 0 rgba(20, 20, 23, 0.95),
    2px 161px 0 0 rgba(20, 20, 23, 0.95);
}

.hero-card-wrap {
  display: none;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset;
  transform:
    perspective(900px)
    rotateX(var(--card-rotate-x))
    rotateY(var(--card-rotate-y))
    translateY(var(--card-lift))
    scale(1.02);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 90ms linear, box-shadow 180ms ease;
  will-change: transform;
}

:root[data-theme="dark"] .hero-card {
  border-color: #fff;
}

.hero-card::before {
  content: none;
}

.hero-card::after {
  content: none;
}

.hero-card-shine {
  display: none;
}

.hero-card-inner {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(10px);
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  margin: 0;
}

.hero-card-badge {
  position: absolute;
  top: 22px;
  right: 16px;
  z-index: 4;
  font-size: 13px;
  font-weight: 700;
  font-family: "Orbitron", "Eurostile", "Bank Gothic", "Rajdhani", "Exo 2", "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  pointer-events: none;
}

:root[data-theme="dark"] .hero-card-badge {
  color: #fff;
}

.hero-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 24px;
  overflow: hidden;
}

.hero-hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(56, 189, 248, 0.75);
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.45));
}

.hero-hud-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hero-hud-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.hero-hud-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.hero-hud-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.hero-hud-scanline {
  position: absolute;
  left: 6%;
  width: 88%;
  height: 2px;
  top: -10%;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.95) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
  animation: hero-hud-scan 3.2s linear infinite;
  opacity: 0.7;
}

.hero-hud-status,
.hero-hud-telemetry {
  position: absolute;
  left: 12px;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(225, 245, 255, 0.9);
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
  background: rgba(7, 20, 28, 0.32);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 4px 6px;
}

.hero-hud-status { top: 12px; }
.hero-hud-telemetry { bottom: 12px; }

@keyframes hero-hud-scan {
  0% { top: -8%; opacity: 0; }
  8% { opacity: 0.75; }
  92% { opacity: 0.75; }
  100% { top: 108%; opacity: 0; }
}

.hero-photo:hover .hero-card {
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

@media (min-width: 900px) {
  .hero-photo {
    margin: 18px 0 0;
  }

  .hero-card {
    width: 380px;
    height: 380px;
  }
}

/* Text column: keep lines short like Ran */
.hero-copy {
  max-width: 860px;
}

/* Headline */
.greeting {
  font-size: 46px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

/* Subheadline feels more “editorial” (not overly muted) */
.tagline {
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.6;
}

/* Divider under subheadline */
.long-divider {
  border: none;
  border-top: 3px double var(--text);
  width: 100%;
  margin: 18px 0 22px;
}

/* Body text rhythm */
.focus,
.intro,
.outside {
  font-size: 18px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.95;          /* this is a major part of the Ran feel */
}

#decode-focus,
#decode-intro,
#decode-outside {
  display: block;
}

/* Alien glyph styling */
.word-glyph {
  opacity: 0.6;
  letter-spacing: 0.06em;
}

/* =======================
   FOOTER
======================= */
/* =======================
   FOOTER (Ran-style full-bleed divider + clean spacing)
======================= */
.footer {
  margin-top: auto;
  padding-top: 22px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-top: 0; /* we draw a full-bleed divider ourselves */
}

/* Divider within the wrap */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 3px double var(--text);
}

/* Icons row */
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-icons a {
  width: 24px;
  height: 24px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  border-bottom: 0;
}

.footer-icons a:hover {
  color: var(--link-hover);
  transform: translateY(-2px);
  opacity: 1;
}

/* Footer icons are filled */
.footer-icons svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  stroke: none;
}

/* Threads icon uses the standard filled style */
.footer-icons svg.threads-icon {
  transform: scale(2.5);
  transform-origin: center;
}

/* Footer meta row */
.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  width: 100%;
}

.footer-item {
  white-space: nowrap;
}

/* Dot is a real element, not clickable */
.footer-sep {
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  margin: 0 6px;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

/* Smaller gap on mobile to keep on same line */
@media (max-width: 480px) {
  .footer-meta {
    gap: 4px;
    font-size: 10px;
  }

  .footer-sep {
    margin: 0 2px;
  }
}

/* =======================
   Ran-style scale override (SAFE)
   (integrated: paste at END)
======================= */

/* Slightly calmer headline */
.greeting {
  font-size: 40px;      /* was 46px */
  margin-bottom: 8px;
}

/* Subheadline a touch smaller */
.tagline {
  font-size: 18px;      /* was 20px */
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Body paragraphs: main change */
.focus,
.intro,
.outside {
  font-size: 15.75px;   /* was 18px */
  line-height: 1.85;    /* Ran-ish rhythm */
  margin-bottom: 16px;
}

/* Divider spacing slightly tighter */
.long-divider {
  margin: 16px 0 20px;
}

/* Mobile: keep it readable, not huge */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-photo {
    margin: 8px auto 0;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero-card {
    animation: none;
    transition: none;
    transform: none;
  }
}

@media (max-width: 600px) {
  :root[data-theme="dark"] {
    --bg: #151518;
  }

  .greeting { font-size: 32px; }
  .tagline { font-size: 16px; }

  .focus,
  .intro,
  .outside {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-photo {
    margin-top: 0;
  }

  .hero-hanger {
    top: -44px;
    width: 96px;
    height: 56px;
  }

  .hero-chain {
    width: 62px;
    height: 40px;
  }

  .hero-chain::before,
  .hero-chain::after {
    height: 40px;
  }

  .hero-card {
    width: 220px;
    height: 220px;
    border-radius: 18px;
  }

  .hero-card-wrap {
    inset: -12px -10px;
    border-radius: 22px;
  }

  .profile-photo {
    border-radius: 18px;
  }

  .hero-hud {
    border-radius: 18px;
  }

  .hero-hud-status,
  .hero-hud-telemetry {
    font-size: 8px;
    letter-spacing: 0.06em;
    padding: 3px 5px;
  }

  .hero-hud-status { top: 9px; left: 9px; }
  .hero-hud-telemetry { bottom: 9px; left: 9px; }

  .hero-hud-corner {
    width: 16px;
    height: 16px;
  }

  .hero-hud-corner.tl { top: 7px; left: 7px; }
  .hero-hud-corner.tr { top: 7px; right: 7px; }
  .hero-hud-corner.bl { bottom: 7px; left: 7px; }
  .hero-hud-corner.br { bottom: 7px; right: 7px; }

  .site-header-inner {
    padding: 10px 12px;
    gap: 10px;
  }

  .site-brand {
    font-size: 16px;
  }

  .top-nav {
    gap: 12px;
  }

  .icon-btn {
    width: 26px;
    height: 26px;
  }

  .wrap {
    width: min(1360px, calc(100vw - 24px));
    margin-top: 36px;
    padding: 0 12px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .menu-panel {
    width: calc(100vw - 24px);
    right: -12px;
    top: calc(100% + 10px);
    max-height: calc(100vh - 110px);
  }

  .theme-panel {
    width: 172px;
    right: -12px;
  }

  .search-panel {
    width: calc(100vw - 24px);
    right: -12px;
  }

  .footer-icons {
    gap: 20px;
  }

  .footer-meta {
    gap: 4px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .hero {
    gap: 20px;
  }

  .hero-card {
    width: min(74vw, 260px);
    height: min(74vw, 260px);
    border-radius: 16px;
  }

  .hero-card-wrap {
    inset: -10px -8px;
    border-radius: 18px;
  }

  .profile-photo,
  .hero-hud {
    border-radius: 16px;
  }

  .hero-card-badge {
    top: 14px;
    right: 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .greeting {
    font-size: 28px;
    line-height: 1.2;
  }

  .tagline {
    font-size: 14px;
    line-height: 1.5;
  }

  .focus,
  .intro,
  .outside {
    font-size: 13px;
    line-height: 1.65;
  }

  .ticker-wrap {
    margin: 0 4px;
    height: 14px;
  }

  .ticker-item {
    font-size: 8.5px;
    padding: 0 8px;
  }
}

/* =======================
   STOCK TICKER
======================= */
.ticker-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  margin: 0 14px;
  height: 20px;
  position: relative;   /* track is absolutely positioned inside */
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 20px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  border-right: 1px solid var(--line);
}

.ticker-sym {
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.03em;
}

.ticker-price {
  color: var(--text);
}

.ticker-change {
  font-weight: 600;
}

.ticker-change.up   { color: #16a34a; }
.ticker-change.down { color: #dc2626; }

@media (max-width: 700px) {
  .ticker-wrap {
    margin: 0 8px;
    height: 16px;
  }
  .ticker-item {
    font-size: 9.5px;
    padding: 0 10px;
    gap: 3px;
  }
  .ticker-pct {
    display: none;
  }
}

/* =======================
   EDUCATION SECTION
======================= */
.edu-degree {
  font-weight: 700;
}

.edu-meta {
  font-style: italic;
}

/* =======================
   GOOGLE LOGO COLORS
======================= */
.google-text .g { color: #4285f4; }  /* Blue */
.google-text .o1 { color: #ea4335; } /* Red */
.google-text .o2 { color: #fbbc04; } /* Yellow */
.google-text .g2 { color: #4285f4; } /* Blue */
.google-text .l { color: #34a853; }  /* Green */
.google-text .e { color: #ea4335; }  /* Red */
