:root{
  --bg:#ffffff;
  --bg-soft:#f5f5f5;
  --text:#000000;
  --muted:#999999;
  --accent:#0099ff;
  --accent-2:#0099ff;
  --border:#e5e5e5;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background:var(--bg);
  color:var(--text);
  line-height:1.75;
  letter-spacing:.01em;
}

/* Headings use a display font similar to the reference */
h1,h2,h3,h4,h5,h6{
  font-family:"Space Grotesk", Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight:700;
  letter-spacing:-.015em;
}

.container{max-width:960px;margin:0 auto;padding:0 16px}
.site-header{
  position:sticky;top:0;z-index:10;
  backdrop-filter:saturate(140%) blur(6px);
  background:rgba(255,255,255,.7);
  border-bottom:1px solid var(--border);
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding:14px 16px}
.brand{margin:0;font-size:20px;letter-spacing:.5px}
.nav a{color:var(--muted);text-decoration:none;margin-left:14px}
.nav a:hover,.nav a.cv{color:var(--text)}
.nav a.cv{padding:8px 10px;border:1px solid var(--border);border-radius:8px}

.hero{display:grid;grid-template-columns:1fr;align-items:center;padding:80px 16px 40px}
.hero h1{font-size:76px;font-weight:600;letter-spacing:-.06em;margin:0 0 8px}
.hero h2{font-size:56px;font-weight:700;letter-spacing:-.04em;margin:0 0 12px}
.hero .emoji{filter:grayscale(.2)}
.hero p{margin:0 0 20px;color:var(--muted);font-size:20px}
.hero-earth{display:none}
.cta{display:flex;gap:12px}
.button{display:inline-block;padding:10px 14px;border-radius:10px;border:1px solid var(--border);background:var(--bg-soft);color:var(--text);cursor:pointer}
.button.primary{background:#000000;color:#ffffff;border:1px solid #000000}
.button.small{padding:8px 10px;font-size:14px}

.section{padding:48px 0}
.section h3{margin:0 0 14px;font-size:28px;letter-spacing:-.01em;display:inline-block;transition:transform .16s ease}
.section h3:hover{transform:scale(1.06)}
.section p{font-size:20px}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0}
.chips li{
  padding:6px 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:rgb(36,173,173);
  transition: transform 0.12s ease, background-color 0.12s ease;
  cursor: pointer;
}

/* Minimal CSS fallback: slight enlarge on hover, even if JS fails */
.chips li:hover{ transform: scale(1.05); background: rgb(36,173,173); color: #ffffff; }

.timeline{display:grid;gap:16px}
.item{padding:16px 18px;border:0;border-radius:14px;background:#fff}
.item h4{font-size:20px;font-weight:600;margin:0 0 8px}
.item .meta{display:block;color:var(--muted);font-size:14px;margin:4px 0 8px}

.cards{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.card{padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff}
/* Experience List Styles */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

/* Moon canvas aligned to the right edge of the Experience section */
#experience{position:relative}
.moon-container{position:absolute;top:0;right:0;width:0;height:0;z-index:4}
#moon-canvas{position:absolute;right:-180px;top:-6px;width:150px;height:150px;display:block;pointer-events:none;opacity:.95}
@media (max-width:767px){#moon-canvas{display:none}}

.experience-item {
  position: relative;
  cursor: pointer;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateX(8px);
}

.experience-title {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin: 0;
  letter-spacing: -0.02em;
}

.experience-meta {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  font-weight: 400;
}

/* Dropdown description for experiences */
.experience-desc{
  display:block;
  color:#000;
  background:transparent;
  border:0;
  border-radius:12px;
  margin-top:10px;
  padding:14px;
  max-width: 100%;
  transform-origin: top;
  transform: translateY(-6px) scaleY(0.92);
  opacity:0;
  max-height:0; /* use max-height instead of height:auto for smooth transition */
  overflow:hidden;
  transition: opacity 1.8s cubic-bezier(.2,.8,.2,1), transform 1.8s cubic-bezier(.2,.8,.2,1), max-height 1.8s cubic-bezier(.2,.8,.2,1);
}
.experience-item:hover .experience-desc{
  opacity:1;
  max-height: 1000px;
  transform: translateY(0) scaleY(1);
}

.site-footer{border-top:0;padding:16px 0;margin-top:40px;color:var(--muted)}
.site-footer .container{display:flex;justify-content:center;align-items:center;text-align:center}

/* removed sleep routine dialog styles */

@media (min-width:768px){
  .hero{grid-template-columns:1fr 1fr;gap:32px;padding:120px 16px 80px}
.hero h1{font-size:116px}
.hero h2{font-size:72px}
/* Larger, bold hero name with fade-in on load */
.headline{opacity:0;transform:translateY(12px);transition:opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1)}
.hero .headline-1{font-size:18vw;line-height:.9}
.hero .headline-2{font-size:12vw;line-height:1}
body.loaded .headline{opacity:1;transform:none}
  .hero-earth{display:block;align-self:center;justify-self:end;width:420px;height:420px;aspect-ratio:1/1;position:relative;z-index:2}
  #earth-canvas{width:100%;height:100%;display:block;position:relative;z-index:3;touch-action:none;cursor:default;pointer-events:auto}
}

/* Mobile overrides */
@media (max-width:767px){
  /* Remove any subtle borders/edges on education items */
  .timeline .item{border:0 !important;background:transparent;box-shadow:none}
}

/* Enhanced contact */
.contact-enhanced h3{font-size:32px}
.contact-enhanced{ text-align:center }
.contact-enhanced .lead{font-size:20px;color:var(--muted);margin:6px auto 18px}
.contact-card{padding:22px;border:0;border-radius:16px;background:transparent;display:flex;justify-content:center}
.contact-card .primary{font-size:22px}
.contact-card a{font-weight:600}
.contact-actions{margin-top:12px}
.contact-actions .button{font-size:16px;padding:12px 16px}

/* Contact icons */
.contact-icons{display:flex;gap:28px;align-items:center;justify-content:center;margin:0 auto}
.contact-icons .icon{display:inline-flex;align-items:center;justify-content:center;width:168px;height:168px;border:0;border-radius:0;background:transparent;transition:transform .16s ease}
.contact-icons .icon svg{width:144px;height:144px}
.contact-icons .icon:hover{transform:scale(1.12)}
/* Remove automatic link icon decoration for these */
.contact-icons .icon::after{content:none}

/* Float-up animation */
[data-float]{
  transform:translateY(24px);
  opacity:0;
  will-change:transform,opacity;
  transition:transform 1.8s cubic-bezier(.42,.21,0,1),opacity 1.8s cubic-bezier(.42,.21,0,1);
}
[data-float].visible{transform:translateY(0);opacity:1}

/* (removed old standalone experience page styles) */

/* Links */
/* Link style: ALL CAPS black with link icon */
a{color:#000;text-transform:uppercase;text-decoration:none;letter-spacing:.02em;font-weight:700}
a::after{content:"\1F517"; /* link symbol */ margin-left:6px; font-size:.9em; line-height:1;}
a:hover{text-decoration:underline}

/* Cursor shape similar to reference */
html.has-custom-cursor, body.has-custom-cursor, a.has-custom-cursor, button.has-custom-cursor, [role="button"].has-custom-cursor, .button.has-custom-cursor{cursor:none !important}
body.has-custom-cursor *{cursor:none !important}

/* (Removed grab cursor on Earth canvas to fully disable grabbing interaction) */

/* Custom cursor - black dot that shrinks on links */
#cursor{position:fixed;left:50%;top:50%;width:16px;height:16px;border-radius:9999px;background:rgba(0,0,0,.4);pointer-events:none;transform:translate3d(-50%,-50%,0);transition:width .22s cubic-bezier(.42,.21,0,1),height .22s cubic-bezier(.42,.21,0,1),border-radius .22s cubic-bezier(.42,.21,0,1),opacity .2s ease,transform .12s ease;z-index:9999;opacity:1;box-shadow:0 0 0 1px rgba(0,0,0,.06);backface-visibility:hidden;will-change:width,height,transform;border:1px solid rgba(0,0,0,.04);display:flex;align-items:center;justify-content:center}
#cursor.link-hover{transform:translate3d(-50%,-50%,0)}
#cursor.hidden{opacity:0}

/* Bubble expansion with label */
#cursor.bubble{width:150px;height:70px;border-radius:9999px}
#cursor.exp-bubble{width:auto;min-height:auto;max-width:720px;max-width:calc(100vw - 32px);padding:12px 16px;align-items:center;justify-content:center}
#cursor .label{display:block;color:#fff;font-size:30px;line-height:1;font-weight:800;letter-spacing:-.01em;opacity:0;transition:opacity .14s ease .12s;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;white-space:normal;max-width:680px;max-width:calc(100vw - 64px);padding:6px 8px;text-align:center;word-break:break-word;overflow-wrap:anywhere}
#cursor.exp-bubble .label{font-size:14px;line-height:1.5;font-weight:600}
#cursor.bubble .label{opacity:1}
#cursor .label .meta{font-size:.72em;color:rgba(255,255,255,.8);font-weight:600}

/* Stretch animation from dot -> oval -> bubble */
@keyframes cursor-stretch {
  0% { transform: translate3d(-50%,-50%,0) scale(1); }
  60% { transform: translate3d(-50%,-50%,0) scaleX(1.25) scaleY(0.9); }
  100% { transform: translate3d(-50%,-50%,0) scale(1); }
}
#cursor.stretching { animation: cursor-stretch .16s cubic-bezier(.42,.21,0,1); }

@media (prefers-reduced-motion: reduce){
  #cursor{transition: none}
  #cursor .label{transition: none}
}

.mobile-only{display:none}
@media (max-width:767px){.mobile-only{display:block}}

#mobile-notice{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(.98);display:flex;align-items:center;gap:12px;padding:12px 14px;background:#111;color:#fff;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.25);z-index:10060;max-width:90vw;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease, transform .25s ease, visibility .25s ease}
#mobile-notice.show{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
#mobile-notice.fade-out{opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,-50%) scale(.98)}
#mobile-notice button{background:transparent;border:none;color:#fff;font-size:18px;cursor:pointer;margin-left:auto}

.exp-body{padding:40px 0}
.exp-section{padding:24px 0}
.exp-section p{color:var(--text);font-size:20px}

