/* aayanaboobakar.com */

:root {
  --paper: #fbfbf8;
  --ink: #111111;
  --soft: #5c5c58;
  --rule: #e6e6e0;
  --cobalt: #3240ff;
  --cobalt-tint: #eceeff;
  --lime: #d9ff4a;
  --accent: var(--cobalt);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --width: 68rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 1.5rem; }

.hl {
  background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
  padding: 0 0.1em;
}

.label {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--soft);
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 248, 0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.mark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--display); font-weight: 700; }
.mark img { width: 1.6rem; height: 1.6rem; }

.site-nav { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9375rem; font-weight: 500; }
.site-nav a { padding: 0.4rem 0.75rem; border-radius: 99px; text-decoration: none; }
.site-nav a:hover { background: var(--cobalt-tint); color: var(--cobalt); }
.site-nav .cta { background: var(--ink); color: var(--paper); }
.site-nav .cta:hover { background: var(--cobalt); color: #fff; }

@media (max-width: 40rem) {
  .site-nav .opt, .mark span { display: none; }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.hero h1 span { display: block; }
.hero h1 span + span { color: var(--cobalt); }

.hero .lede {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  line-height: 1.45;
}

.now {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.now i {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: #16c060;
  box-shadow: 0 0 0 0 rgba(22, 192, 96, 0.5);
  animation: ping 2s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(22, 192, 96, 0.55); }
  70%, 100% { box-shadow: 0 0 0 0.5rem rgba(22, 192, 96, 0); }
}

.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn:hover { transform: translateY(-2px); color: var(--ink); background: var(--lime); }
.btn.solid { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.polaroid {
  width: 15rem;
  padding: 0.7rem 0.7rem 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.1);
  transform: rotate(3deg);
  transition: transform 0.3s;
}

.polaroid:hover { transform: rotate(-1deg) scale(1.02); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption {
  padding: 0.6rem 0 0.75rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .polaroid { width: 11rem; order: -1; transform: rotate(-3deg); }
}

/* ---------- sections ---------- */

.block { padding-top: 4.5rem; padding-bottom: 4.5rem; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.block-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.block-head p { color: var(--soft); }

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0.55rem;
  height: 2px;
  background: var(--ink);
}

.timeline li { position: relative; padding-top: 2rem; }

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.timeline li.current::before { background: var(--lime); }

.timeline time { font-family: var(--display); font-size: 0.875rem; font-weight: 600; color: var(--cobalt); }
.timeline h3 { margin-top: 0.35rem; font-family: var(--display); font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.timeline .org { margin-top: 0.15rem; font-weight: 500; }
.timeline .what { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--soft); line-height: 1.5; }

@media (max-width: 60rem) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 2rem; }
  .timeline::before { left: 0.5rem; right: auto; top: 0.5rem; bottom: 0.5rem; width: 2px; height: auto; }
  .timeline li { padding: 0 0 2rem; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { left: -2rem; top: 0.15rem; }
}

/* ---------- project tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.tile {
  --bg: var(--cobalt-tint);
  --fg: var(--ink);
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}

a.tile:hover { color: var(--fg); transform: translateY(-4px) rotate(-0.4deg); }

.tile .txt { padding: 1.6rem 1.75rem 0; }
.tile .top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tile h3 { font-family: var(--display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.tile p { margin-top: 0.4rem; max-width: 30rem; opacity: 0.8; }

.tile .arrow {
  flex: none;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 1.1rem;
  transition: transform 0.25s;
}

a.tile:hover .arrow { transform: rotate(-45deg); }

.tile .pills { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.tile .pills span { font-size: 0.8125rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 99px; border: 1.5px solid currentColor; opacity: 0.75; }

.tile .pic { margin-top: auto; padding: 1.5rem 1.25rem 0; }
.tile .pic img { width: 100%; mix-blend-mode: multiply; }

.tile.wide { grid-column: span 6; }
.tile.small { grid-column: span 3; padding-bottom: 1.75rem; }

.tile.quiz { --bg: #ffe1d2; }
.tile.fisca { --bg: #dfe8ff; }
.tile.workgate { --bg: #15180f; --fg: #d9ff4a; }
.tile.workgate .pic img { mix-blend-mode: normal; border-radius: 0.6rem 0.6rem 0 0; }
.tile.fpl { --bg: #37003c; --fg: #fff; }
.tile.fpl .pills span { border-color: #00ff87; color: #00ff87; opacity: 1; }
.tile.bot { --bg: #fff; border: 1.5px solid var(--ink); }


@media (min-width: 60rem) {
  .tile.workgate { flex-direction: row; align-items: stretch; }
  .tile.workgate .txt { flex: 0 0 38%; padding-bottom: 1.75rem; }
  .tile.workgate .pic { flex: 1; padding: 1.75rem 0 0 0; }
  .tile.workgate .pic img { border-radius: 0.75rem 0 0 0; }
}

@media (max-width: 48rem) {
  .tile, .tile.small { grid-column: span 6; }
}

/* ---------- facts grid (education / extras) ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }

.card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1.5px solid var(--rule);
}

.card .big {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cobalt);
}

.card h3 { margin-top: 0.75rem; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.card p { margin-top: 0.25rem; color: var(--soft); font-size: 0.9375rem; }

.skills { margin-top: 2.5rem; display: grid; gap: 0.6rem; }
.skills div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1.5px solid var(--rule); }
.skills div:last-child { border-bottom: 0; }
@media (max-width: 36rem) { .skills div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 3rem;
  background: var(--cobalt);
  color: #fff;
  border-radius: 2rem 2rem 0 0;
  padding: 4.5rem 0 2rem;
}

.site-foot a:hover { color: var(--lime); }

.site-foot .say { font-family: var(--display); font-weight: 600; font-size: 1.25rem; opacity: 0.85; }

.site-foot .mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 6.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-foot .mail:hover { color: var(--lime); }

.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2.5rem; font-weight: 600; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ---------- app pages ---------- */

.app-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.app-id { display: flex; align-items: center; gap: 0.9rem; }
.app-id img, .app-id .glyph { width: 4.25rem; height: 4.25rem; border-radius: 22%; }
.app-id .glyph { display: grid; place-items: center; background: var(--accent); color: #fff; }
.app-id strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; display: block; line-height: 1.2; }

.app-hero h1 {
  margin-top: 1.75rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.app-hero .lede { margin-top: 1.25rem; max-width: 32rem; font-size: 1.15rem; color: var(--soft); }

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.store img { height: 3rem; width: auto; }

.app-hero .stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  border-radius: 2rem;
  background: var(--tint);
}

.app-hero .stage img {
  width: 44%;
  border-radius: 1.6rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.app-hero .stage img:first-child { transform: rotate(-5deg) translateX(12%); }
.app-hero .stage img:last-child { transform: rotate(5deg) translateX(-12%) translateY(1.5rem); }

@media (max-width: 52rem) {
  .app-hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.facts span {
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  background: var(--tint);
  font-size: 0.875rem;
  font-weight: 600;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }

.feature {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1.5px solid var(--rule);
}

.feature b {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 0.9375rem;
}

.feature h3 { margin-top: 1rem; font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin-top: 0.3rem; color: var(--soft); font-size: 0.9375rem; }

.strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1.5rem, calc((100vw - var(--width)) / 2 + 1.5rem)) 1.5rem;
  scrollbar-width: thin;
}

.strip figure { flex: 0 0 auto; width: clamp(11rem, 40vw, 15rem); scroll-snap-align: center; }
.strip img { width: 100%; border-radius: 1.5rem; }
.strip figcaption { margin-top: 0.6rem; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; }

.note {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--tint);
  max-width: 44rem;
}

.note h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.note p { margin-top: 0.6rem; }
.app-id .label { display: block; }
