/* maihuamar.com: night-blue, Geist, one 3D globe on the home page.
   Layout: a floating glass nav pill, wide left-aligned type, sections separated by hairlines. */
:root {
  --bg: #070A12;          /* night */
  --bg-2: #0C1120;        /* raised surface */
  --text: #EEF1F8;
  --soft: #C9CEDC;        /* body copy */
  --muted: #8C93A8;
  --line: rgba(238, 241, 248, 0.09);
  --glass: rgba(18, 24, 42, 0.55);
  --warm: #FFB27A;        /* Bengaluru, and the start of every arc */
  --cool: #7FA6FF;        /* the far end */
  --ok: #5BE49B;
  --gutter: clamp(20px, 5vw, 72px);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--cool); color: var(--bg); }
img { max-width: 100%; }
.wrap { padding: 0 var(--gutter); }

/* ---------- floating nav ---------- */
.nav {
  position: fixed; z-index: 30; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 18px;
  background: rgba(12, 17, 32, 0.62); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}
.mark { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; margin-right: 14px; white-space: nowrap; }
.mark span { color: var(--warm); }
.links { display: flex; gap: 2px; }
.links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.menu-btn { margin-left: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: 500 14.5px var(--sans); cursor: pointer; }
.menu-btn i { display: grid; gap: 3px; }
.menu-btn i b { display: block; width: 12px; height: 1.6px; background: currentColor; border-radius: 2px; }

/* ---------- numbered full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; padding: 22px var(--gutter) 28px; background: rgba(7, 10, 18, 0.88); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; transition: opacity 0.3s; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu.on { opacity: 1; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.close { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 999px; padding: 9px 16px; font: 500 14.5px var(--sans); cursor: pointer; }
.close:hover { border-color: rgba(238, 241, 248, 0.35); }
.menu ol { list-style: none; margin: auto 0; padding: 28px 0; }
.menu li { opacity: 0; transform: translateY(18px); transition: opacity 0.45s, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(0.05s * var(--i) + 0.05s); }
.menu.on li { opacity: 1; transform: none; }
.menu li a { display: flex; align-items: baseline; gap: 22px; padding: 2px 0; color: rgba(238, 241, 248, 0.9); transition: color 0.2s; }
.menu .n { font-family: var(--mono); font-size: 15px; color: var(--muted); width: 2.4ch; }
.menu .t { font-weight: 600; font-size: clamp(56px, 11vh, 128px); line-height: 1.02; letter-spacing: -0.05em; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu ol:hover a { color: rgba(238, 241, 248, 0.3); }
.menu li a:hover { color: var(--text); }
.menu li a:hover .t { transform: translateX(14px); }
.menu li a[aria-current="page"] .n { color: var(--warm); }
.menu-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.menu-foot a { color: var(--text); margin-right: 18px; }

/* ---------- home hero with the globe ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.hero canvas:active { cursor: grabbing; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.glow { position: absolute; width: 70vmin; height: 70vmin; right: 4vw; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(127, 166, 255, 0.16), transparent 62%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; padding: 120px var(--gutter) 80px; max-width: 660px; pointer-events: none; }
.hero-text > * { pointer-events: auto; }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(60px, 8.4vw, 124px); line-height: 0.95; letter-spacing: -0.05em; }
.hero .lede { margin: 26px 0 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--soft); max-width: 30ch; text-wrap: pretty; }
.now {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 15px; color: var(--muted);
}
.now b { color: var(--text); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(91, 228, 155, 0.15); flex: none; }
.hint { position: absolute; z-index: 2; right: var(--gutter); bottom: 34px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hint svg { width: 18px; height: 18px; }
.pin { position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; transform: translate(-9999px, 0); transition: opacity 0.3s; white-space: nowrap; }
.pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px rgba(255, 178, 122, 0.2), 0 0 22px rgba(255, 178, 122, 0.8); }
.pin span { padding: 6px 10px; border-radius: 10px; background: rgba(7, 10, 18, 0.72); border: 1px solid var(--line); font-size: 13.5px; backdrop-filter: blur(8px); }
.pin span b { font-weight: 500; }
.pin span em { font-style: normal; font-family: var(--mono); color: var(--warm); margin-left: 6px; }

/* ---------- inner page header ---------- */
.page-head { position: relative; padding: 168px var(--gutter) 56px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -360px; border-radius: 50%; background: radial-gradient(circle, rgba(127, 166, 255, 0.18), transparent 64%); pointer-events: none; }
.page-head::after { content: ""; position: absolute; width: 420px; height: 420px; right: 18%; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 178, 122, 0.10), transparent 64%); pointer-events: none; }
.page-head h1 { position: relative; margin: 0; font-weight: 600; font-size: clamp(60px, 9vw, 136px); line-height: 0.95; letter-spacing: -0.055em; text-wrap: balance; }
.page-head .lede { position: relative; margin: 28px 0 0; max-width: 34ch; font-size: clamp(20px, 2vw, 26px); line-height: 1.42; color: var(--soft); text-wrap: pretty; }
.crumb { position: relative; display: inline-block; margin-bottom: 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--text); }
.section-label { margin: 0 0 18px; font-size: 15px; font-weight: 500; color: var(--muted); }

/* ---------- rows (home index, notes list) ---------- */
.index { padding: 40px 0 72px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 40px; align-items: center; gap: 24px;
  padding: 26px 20px; margin: 0 -20px; border-radius: 20px;
  border-top: 1px solid var(--line);
  transition: background 0.25s, border-color 0.25s;
}
.row:last-child { border-bottom: 1px solid var(--line); }
a.row:hover { background: rgba(127, 166, 255, 0.06); border-color: transparent; }
a.row:hover + .row { border-top-color: transparent; }
.row b { font-weight: 600; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -0.045em; }
.row p { margin: 0; font-size: 16.5px; color: var(--muted); max-width: 44ch; }
.row svg { width: 28px; height: 28px; color: var(--muted); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s; }
a.row:hover svg { transform: translateX(6px); color: var(--text); }
.pill { justify-self: end; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.row.quiet b { font-size: clamp(28px, 3.4vw, 44px); color: var(--soft); }

/* ---------- apps ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.fact { padding: 28px 28px 30px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.fact h2 { margin: 0; font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.04em; }
.fact p { margin: 0; color: var(--muted); font-size: 16px; }
.shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 40px 0 96px; }
.term { padding: 18px 22px; border-radius: 18px; background: #050810; border: 1px solid var(--line); font-family: var(--mono); font-size: 14.5px; line-height: 1.9; color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.term .p { color: var(--warm); }
.term .dim { color: var(--muted); }
.caption { margin: 0; color: var(--muted); font-size: 16px; max-width: 34ch; }

/* ---------- work ---------- */
.roles { padding-bottom: 96px; }
.role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role .when { display: flex; flex-direction: column; gap: 6px; }
.role .when b { font-weight: 500; font-size: 17px; }
.role .when span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.role .when .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.role h2 { margin: 0 0 12px; font-weight: 600; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -0.045em; }
.role p { margin: 0; max-width: 62ch; color: var(--soft); font-size: 17px; line-height: 1.65; }

/* ---------- about ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 72px; }
.timeline div { padding: 20px 22px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.timeline span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.timeline b { font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.timeline div:first-child { border-color: rgba(91, 228, 155, 0.35); }
.prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-bottom: 72px; }
.prose h2 { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--muted); }
.prose p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.7; max-width: 60ch; }
.big-links { padding-bottom: 96px; }
.big-links .row b { font-size: clamp(34px, 4.4vw, 60px); }
.big-links .row p { font-family: var(--mono); font-size: 14px; }

/* ---------- next page tiles ---------- */
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 0 var(--gutter) 96px; }
.tile { min-height: 260px; padding: 26px 28px 28px; border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tile:hover { transform: translateY(-4px); }
.tile.ask { background: var(--bg-2); border: 1px solid var(--line); }
.tile.go { background: linear-gradient(135deg, #FFC79B 0%, #FFB27A 38%, #9DB7FF 100%); color: #0A0E1A; }
.tile small { font-size: 15px; opacity: 0.75; }
.tile strong { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-weight: 600; font-size: clamp(44px, 6vw, 92px); line-height: 0.95; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.tile strong svg { width: 0.55em; height: 0.55em; flex: none; margin-bottom: 0.08em; }

/* ---------- footer: the Bengaluru clock ---------- */
.foot { border-top: 1px solid var(--line); padding: 44px var(--gutter) 30px; background: radial-gradient(120% 80% at 50% 120%, rgba(127, 166, 255, 0.12), transparent 60%); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-links a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; color: var(--soft); transition: border-color 0.2s, color 0.2s; }
.foot-links a:hover { border-color: rgba(238, 241, 248, 0.3); color: var(--text); }
.clock { margin: 40px 0 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 2vw; font-weight: 600; font-size: clamp(76px, 18vw, 300px); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.clock .c { color: rgba(238, 241, 248, 0.22); transition: opacity 0.2s; }
.clock .c.dim { opacity: 0.3; }
.clock .s { font-size: 0.32em; letter-spacing: -0.02em; align-self: flex-start; margin-top: 0.25em; background: linear-gradient(135deg, var(--warm), var(--cool)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-bot { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.foot-bot a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.miss { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 120px var(--gutter) 80px; }
.miss h1 { margin: 0; font-weight: 600; font-size: clamp(56px, 9vw, 136px); line-height: 0.95; letter-spacing: -0.055em; max-width: 12ch; }
.miss p { margin: 0; color: var(--soft); font-size: 20px; max-width: 36ch; }
.btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 500; }

@media (max-width: 860px) {
  .links { display: none; }
  .nav { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero canvas { position: relative; height: 96vw; inset: auto; order: 2; margin-top: 8px; }
  .glow { display: none; }
  .hero-text { order: 1; padding: 104px var(--gutter) 0; }
  .hint { order: 3; position: relative; right: auto; bottom: auto; margin: -8px auto 24px; }
  .page-head { padding: 124px var(--gutter) 40px; }
  .row { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 14px; padding: 20px 12px; margin: 0 -12px; }
  .row p { grid-column: 1; font-size: 15px; }
  .row svg, .row .pill { grid-row: 1; grid-column: 2; }
  .row .pill { justify-self: end; }
  .row.quiet { grid-template-columns: minmax(0, 1fr) auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; }
  .role { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .timeline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prose { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .next { grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; }
  .tile { min-height: 180px; border-radius: 22px; }
  .tile strong { font-size: 40px; }
  .clock { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu, .menu li, .tile, .row svg { transition: none; }
}
