:root {
  color-scheme: dark;
  --ground: #10110f;
  --ink: #e8e3d8;
  --muted: #b9b4a9;
  --accent: #dfc397;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--muted) var(--ground); -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, p, figure { margin: 0; }
h1 { font: 500 42px/1.05 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
button { border: 0; background: none; padding: 10px 0; color: inherit; font: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
button:active { transform: scale(.97); }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--ground); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
/* taste-skill-ignore: accessible offscreen status and skip navigation. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 16px; background: var(--ink); color: var(--ground); }
.skip-link:focus { transform: none; }
.landing-shell { width: min(100%, 1440px); min-height: 320px; height: 100svh; height: 100dvh; margin-inline: auto; padding: 24px 40px 20px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 24px; }
.landing-header { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; }
.landing-header h1 { font-size: 26px; letter-spacing: -.02em; }
.landing-header nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.landing-header a { display: inline-block; padding-block: 10px; text-decoration: none; }
.landing-art { min-height: 0; display: grid; place-items: center; }
.eyes-scene { width: 100%; display: flex; align-items: center; justify-content: center; }
.eyes-scene canvas, .eyes-scene .eye-poster { width: min(100%, calc((100svh - 210px) * 2.5), 1080px); height: auto; aspect-ratio: 5 / 2; }
.eyes-scene .eye-poster img { width: 100%; height: auto; }
.landing-footer { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.scene-tools { display: flex; align-items: center; gap: 24px; }
.scene-tools button { min-height: 44px; }
.about-shell { min-height: 100svh; min-height: 100dvh; width: min(100% - 80px, 940px); margin-inline: auto; display: grid; grid-template-rows: auto 1fr auto; padding-block: 24px; gap: 24px; }
.about-nav, .about-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 14px; }
.about-nav a, .about-footer a { padding-block: 8px; }
.about-nav nav { display: flex; gap: 26px; }
.about-content { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: center; align-self: center; }
.about-portrait { display: block; width: 250px; height: 330px; object-fit: cover; background: #1a1b18; }
.about-copy h1 { font-size: 46px; margin-bottom: 26px; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { max-width: 48ch; font-size: 16px; }
.about-socials { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 14px; }
.about-footer { color: var(--muted); font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  a:not(.skip-link):hover, button:hover { color: var(--accent); }
}
@media (max-width: 700px) {
  .landing-shell { padding: 20px 20px max(12px, env(safe-area-inset-bottom)); gap: 20px; }
  .landing-header { align-items: flex-start; }
  .landing-header h1 { font-size: 23px; padding-block: 8px; }
  .landing-header nav { gap: 4px 20px; font-size: 13px; }
  .landing-footer { flex-direction: column; gap: 4px; font-size: 12px; }
  .about-shell { width: calc(100% - 40px); padding-block: 16px; gap: 22px; }
  .about-content { grid-template-columns: 1fr; gap: 24px; }
  .about-portrait { width: 96px; height: 112px; }
  .about-copy h1 { font-size: 36px; margin-bottom: 20px; }
  .about-copy p { font-size: 14px; line-height: 1.6; }
  .about-copy p + p { margin-top: 14px; }
  .about-socials { margin-top: 22px; gap: 10px 22px; font-size: 13px; }
  .about-nav, .about-footer { font-size: 13px; }
}
@media (max-height: 560px) and (min-width: 701px) {
  .landing-shell { padding-block: 16px 8px; gap: 12px; }
  .about-content { gap: 40px; grid-template-columns: 160px 1fr; }
  .about-portrait { width: 160px; height: 215px; }
  .about-copy h1 { font-size: 34px; margin-bottom: 16px; }
  .about-copy p { font-size: 14px; }
}
@media (max-height: 740px) and (max-width: 700px) {
  .about-content { gap: 16px; }
  .about-portrait { width: 64px; height: 72px; }
  .about-copy h1 { font-size: 32px; margin-bottom: 16px; }
  .about-copy p { font-size: 13px; }
  .about-socials { margin-top: 16px; }
}
@media (max-width: 480px) {
  .landing-header { flex-direction: column; gap: 0; }
  .landing-header nav { gap: 24px; }
  .eyes-scene canvas, .eyes-scene .eye-poster { width: min(100%, calc((100svh - 260px) * 2.5)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* About: the places I’ve lived. Without script or with reduced motion the sentence reads plainly. */
.place-cycle { display: none; }
.places.is-cycling .places__static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.places.is-cycling .place-cycle { display: inline-grid; vertical-align: bottom; }
.place { grid-area: 1 / 1; display: inline-flex; align-items: flex-end; gap: .45em; white-space: nowrap; opacity: 0; transform: translateY(.35em); transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1); }
.place.is-on { opacity: 1; transform: none; }
.place__name { font: 500 1.5em/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.place__mark { width: 2.1em; height: 2.1em; margin-bottom: -.15em; overflow: visible; }
.place__mark path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.place.is-on .place__mark path { animation: place-draw 1.6s cubic-bezier(.5,0,.2,1) forwards; }
.place.is-off .place__mark path { stroke-dashoffset: 0; }
.place__native { font: 400 .8em/1.4 'Noto Serif Tamil', var(--serif); color: var(--muted); padding-bottom: .1em; }
@keyframes place-draw { to { stroke-dashoffset: 0; } }
.places.is-cycling .lead-cycle { display: inline-grid; vertical-align: bottom; margin-right: .35em; }
.lead-cycle { display: none; }
.lead { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transition: opacity .45s cubic-bezier(.22,1,.36,1); }
.lead.is-on { opacity: 1; }
