/* Aparna Sunil · portfolio. One family (General Sans), dark reference layout, transform/opacity motion only. */

@font-face { font-family: "General Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/general-sans-600.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/general-sans-700.woff2") format("woff2"); }
@font-face { font-family: "GS Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 100%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --bg: #0b0b0d; --bg-2: #121215; --bg-3: #1a1a1f;
  --line: #222227; --line-2: #2c2c33;
  --ink: #f4f4f5; --ink-2: #b4b4bd; --ink-3: #7c7c88;
  --accent: #b9f2d6;
  --font: "General Sans", "GS Fallback", "Helvetica Neue", Arial, sans-serif;
  --page: 68rem; --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r: 14px; --r-sm: 10px; --pill: 999px;
  --nav-h: 68px; --tab-h: 62px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 140ms; --mid: 240ms; --slow: 460ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: #0b0b0d; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; top: -80px; left: 12px; z-index: 999; padding: 8px 12px; background: var(--accent); color: #0b0b0d; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--pill); font-weight: 500; font-size: .9375rem; line-height: 1; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.btn:hover { transform: translateY(-1px); border-color: #3a3a42; }
.btn:active { transform: translateY(0); }
.btn--white { background: var(--ink); color: #0b0b0d; border-color: var(--ink); }
.btn--white:hover { background: #fff; border-color: #fff; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); transition: transform var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.icon-btn:hover { transform: translateY(-1px); color: var(--ink); border-color: #3a3a42; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 300; height: var(--nav-h); background: rgba(11, 11, 13, .78); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #0b0b0d; font-weight: 700; font-size: .8125rem; letter-spacing: 0; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 8px 12px; font-size: .9375rem; color: var(--ink-2); border-radius: var(--pill); transition: color var(--fast) var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.nav .btn { min-height: 40px; padding-inline: 18px; font-size: .875rem; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 300; transform: translateX(-50%); width: min(100% - 1.5rem, 24rem); height: var(--tab-h); border-radius: 18px; background: rgba(20, 20, 24, .88); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 40px -14px rgba(0,0,0,.8); }
.tabbar ul { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); height: 100%; padding: 5px; }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; border-radius: 13px; color: var(--ink-3); font-size: .6875rem; font-weight: 500; -webkit-tap-highlight-color: transparent; transition: color var(--mid) var(--ease); }
.tabbar a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.is-active { color: var(--ink); }
.tabbar__pill { position: absolute; top: 5px; left: 5px; height: calc(100% - 10px); width: calc((100% - 10px) / 5); border-radius: 13px; background: var(--bg-3); transition: transform var(--slow) var(--ease); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.hero .reveal { opacity: 0; transform: translateY(12px); animation: up var(--slow) var(--ease) forwards; animation-delay: calc(var(--i, 0) * 80ms + 40ms); transition: none; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vh, 5.5rem) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(1.5rem, 4vw, 4rem); }
.hero__text { padding-bottom: clamp(2.5rem, 7vh, 5.5rem); }
.hero__hi { font-size: 1rem; color: var(--ink-2); margin-bottom: 14px; }
.hero__title { font-size: clamp(2.5rem, 5.2vw + .5rem, 4.25rem); line-height: 1.05; }
.hero__title span { display: block; }
.hero__lede { margin-top: 20px; max-width: 46ch; font-size: 1.0625rem; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero__actions .icons { display: inline-flex; gap: 10px; margin-left: 6px; }
.hero__photo { position: relative; justify-self: center; width: min(100%, 27rem); align-self: end; }
.hero__photo::before { content: ""; position: absolute; inset: 10% 0 0 0; border-radius: 50%; background: radial-gradient(50% 50% at 50% 55%, #1a1a20 0%, transparent 100%); }
.hero__photo img { position: relative; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, #000 58%, transparent 100%); opacity: 0; transform: translateY(10px); animation: up 700ms var(--ease) forwards; animation-delay: 120ms; }
.hero__status { display: inline-flex; margin-bottom: 18px; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: var(--pill); background: rgba(18, 18, 21, .92); border: 1px solid var(--line-2); font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.hero__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(185, 242, 214, .12); }
.hero__rule { border-top: 1px solid var(--line); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vh, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2rem, 5vh, 3rem); }
.section__title { font-size: clamp(1.75rem, 2.4vw + .6rem, 2.5rem); }
.section__sub { margin-top: 10px; color: var(--ink-2); }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; padding: 24px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); transition: transform var(--mid) var(--ease), border-color var(--mid) var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-3); color: var(--ink); margin-bottom: 18px; }
.card__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 6px 11px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }

/* ---------- Work ---------- */
.work { display: grid; gap: 16px; }
.work__item { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 20px; padding: 28px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--mid) var(--ease); }
.work__item:hover { border-color: var(--line-2); }
.work__n { font-size: .8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; padding-top: 4px; }
.work__item h3 { font-size: 1.25rem; }
.work__item .what { margin-top: 6px; color: var(--ink-2); }
.work__points { margin-top: 16px; display: grid; gap: 8px; }
.work__points li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: .9375rem; }
.work__points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }
.work__points b { font-weight: 500; color: var(--ink); }
.work__item .chips { margin-top: 18px; }

/* ---------- Project block (Selected work) ---------- */
.pb { padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.pb__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pb__head .eyebrow { margin-bottom: 8px; }
.pb__title { font-size: clamp(1.6rem, 2vw + .6rem, 2.25rem); }
.pb__meta { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
.pb__facts { margin-top: 0; }
.pb__summary { padding: 24px 0; border-bottom: 1px solid var(--line); }
.pb__summary p { max-width: 55rem; color: var(--ink-2); font-size: .9375rem; }
.pb__intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pb__intro p { color: var(--ink-2); font-size: .9375rem; }
.pb__label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3) !important; margin-bottom: 8px; }
.pb__label--features { margin: 24px 0 16px; }
.pb__points { max-width: 55rem; margin-top: 0; }
.pb__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 22px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); transition: border-color var(--mid) var(--ease); }
.feature:hover { border-color: var(--line-2); }
.feature--wide { grid-column: 1 / -1; }
.feature__n { font-size: .75rem; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; margin-bottom: 10px; }
.feature h4 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.feature .what { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
.feature .chips { margin-top: 16px; }
.work__points--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.pb__foot { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.pb__foot .chips { margin-top: 0; }

/* ---------- About ---------- */
.about { text-align: center; max-width: 46rem; margin-inline: auto; }
.about p { color: var(--ink-2); font-size: 1.0625rem; }
.about p + p { margin-top: 14px; }
.approach { margin-top: clamp(2rem, 5vh, 3rem); }
.approach__title { text-align: center; font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: .9375rem; }
.step b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-3); font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(2rem, 5vh, 3rem); text-align: center; }
.stat b { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .875rem; color: var(--ink-3); }

/* ---------- Projects ---------- */
.project h3 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.project h3 small { font-size: .75rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.project .stack { margin-top: 12px; font-size: .8125rem; color: var(--ink-3); }
.project__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .875rem; font-weight: 500; color: var(--ink); }
.project__link svg { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.project__link:hover svg { transform: translate(2px, -2px); }

/* ---------- Facts (about) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(2rem, 5vh, 3rem); }
.facts .card h3 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.fact { padding: 10px 0; border-top: 1px solid var(--line); }
.fact b { display: block; font-weight: 500; font-size: .9375rem; }
.fact span { display: block; font-size: .8125rem; color: var(--ink-3); margin-top: 2px; }
.facts .card p { font-size: .875rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-block: clamp(4rem, 10vh, 7rem); }
.contact h2 { font-size: clamp(2rem, 3.5vw + .5rem, 3.25rem); }
.contact p { margin: 14px auto 0; max-width: 34rem; color: var(--ink-2); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.contact__email { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 1.0625rem; color: var(--ink-2); }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 .75rem var(--font); cursor: pointer; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.copy:hover { color: var(--ink); border-color: #3a3a42; }
.copy.is-done { color: var(--accent); border-color: var(--accent); }
.copy svg { width: 13px; height: 13px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: clamp(3rem, 8vh, 5rem); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  :root { --nav-h: 60px; }
  .nav__links, .nav .btn { display: none; }
  .tabbar { display: block; }
  body { padding-bottom: calc(var(--tab-h) + 28px); }
  .hero { padding-top: 1.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__photo { order: -1; width: min(100%, 17rem); justify-self: start; margin-bottom: 8px; }
  .hero__text { padding-bottom: 3rem; }
  .work__item { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .pb__intro, .pb__grid, .work__points--cols { grid-template-columns: 1fr; }
  .feature { padding: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat b { font-size: 1.6rem; }
  .section { padding-block: 3.5rem; }
}
@media (max-width: 36rem) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .icons { width: 100%; margin-left: 0; }
  .hero__actions .icon-btn { flex: 1; border-radius: var(--pill); }
}
@media (hover: none) { .card:hover, .btn:hover, .icon-btn:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 120ms !important; transition-duration: 120ms !important; }
  .reveal, .hero .reveal, .hero__photo img { transform: none; }
}
