:root {
  color-scheme: dark;
  --ground: #231d18;
  --surface: #30271f;
  --ink: #f2ebdc;
  --muted: #c6bba8;
  --accent: #e6bd77;
  --paper: #e9e6db;
  --paper-ink: #2c3027;
  --paper-muted: #5d6054;
  --paper-deep: #dfdfd1;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --tamil: 'Noto Serif Tamil', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(22px, 4.5vw, 72px);
  --section-space: clamp(80px, 9vw, 144px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; -webkit-tap-highlight-color: transparent; scrollbar-color: #8f795c var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: var(--ground); background: var(--accent); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; user-select: none; }
button:disabled { cursor: wait; opacity: .6; }
button, .button, .control { transition: transform 160ms var(--ease), background-color 180ms ease, color 180ms ease; }
button:active, .button:active, .control:active { transform: scale(.97); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.light-section :focus-visible { outline-color: var(--paper-ink); }
img, video { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(56px, 7.6vw, 112px); }
h2 { font-size: clamp(42px, 4.8vw, 72px); }
h3 { font-size: 38px; }
p { text-wrap: pretty; }
[lang="ta"] { font-family: var(--tamil); font-weight: 400; letter-spacing: 0; line-height: 1.55; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
/* taste-skill-ignore: standard screen-reader-only text, not a decorative rule. */
.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; top: 12px; left: 12px; padding: 12px 20px; background: var(--ink); color: var(--ground); transform: translateY(-150%); z-index: 50; }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hello { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.hello [lang="ta"] { color: var(--accent); font-size: 20px; }
.hello > span:last-child { color: var(--muted); font-size: 14px; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.site-header nav a { font-size: 15px; text-decoration: none; padding-block: 12px; }
.site-header nav a:last-child { color: var(--accent); }
.hero-intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 22px 0 42px; }
.hero-intro p { color: var(--muted); font-size: 18px; line-height: 1.6; padding-bottom: 5px; flex: 0 0 280px; }
.painting-stage { position: relative; margin-inline: var(--gutter); height: clamp(420px, 39vw, 650px); background: #63664b; overflow: clip; }
.painting-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity 400ms ease; }
.painting-stage.is-ready iframe { opacity: 1; }
.painting-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.painting-stage.is-ready .painting-poster { opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
.painting-actions { position: absolute; bottom: 30px; right: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.control { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 16px; background: var(--ground); color: var(--ink); font-size: 14px; text-decoration: none; }
.control:last-child { background: var(--ink); color: var(--ground); }
.painting-caption { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 24px; align-items: center; padding-block: 28px 22px; }
.place-name { display: flex; align-items: center; gap: 14px; }
.place-name [lang="ta"] { color: var(--accent); font-size: 23px; }
.place-name > span:last-child { font-size: 14px; max-width: 140px; line-height: 1.5; }
.painting-caption > p { font-size: 14px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 14px; width: fit-content; padding-block: 10px; text-decoration: none; font-weight: 500; }
.text-link svg { transition: transform 180ms var(--ease); }
.painting-caption .text-link { font-size: 14px; }
.landscape-nav { display: flex; align-items: center; gap: 24px; padding-block: 16px 48px; font-size: 14px; }
.landscape-nav > p { color: var(--muted); white-space: nowrap; }
.landscape-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.landscape-choices a { padding: 10px 15px; text-decoration: none; color: var(--muted); }
.landscape-choices a[aria-current="true"] { background: var(--accent); color: var(--ground); }
.new-world { display: flex; align-items: center; gap: 10px; margin-left: auto; background: transparent; padding: 10px 0 10px 12px; font-size: 14px; white-space: nowrap; }
.journey-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 6px 8px; color: var(--muted); font-size: 13px; }
.journey-tools label { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.journey-tools input { width: 120px; height: 36px; margin: 0; accent-color: var(--accent); cursor: pointer; }
#journey-pace { width: 54px; color: var(--accent); }
.kolam-section { padding-block: var(--section-space); background: #422c25; color: var(--ink); }
.kolam-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 24px clamp(40px, 7vw, 112px); }
.kolam-copy { max-width: 490px; grid-column: 1; grid-row: 1; align-self: end; }
.kolam-controls { grid-column: 1; grid-row: 2; align-self: start; }
.kolam-copy h2 { font-size: clamp(44px, 4.7vw, 70px); }
.kolam-copy h2 em { font-weight: 400; color: var(--accent); }
.kolam-copy .statement { margin-top: 30px; }
.kolam-copy > p:not(.statement) { color: #d7c7b8; margin-top: 22px; font-size: 16px; max-width: 39ch; }
.kolam-palette { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.colour-choice { display: inline-flex; align-items: center; gap: 8px; background: transparent; padding: 10px 0; font-size: 13px; color: #d7c7b8; }
.colour-choice[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.colour-sample { width: 18px; height: 18px; border-radius: 50%; outline: 1px solid #b49a82; outline-offset: 2px; }
.sample-terracotta { background: #a15c48; }
.sample-indigo { background: #4f6f8b; }
.sample-leaf { background: #738769; }
.symmetry-control { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 14px; padding-block: 14px; cursor: pointer; }
.symmetry-control input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.kolam-actions { display: flex; align-items: center; gap: 26px; margin-top: 16px; }
.kolam-actions .button { gap: 20px; }
.kolam-undo { padding: 12px 4px; background: transparent; font-size: 14px; }
.kolam-undo:disabled { cursor: default; opacity: .5; }
.kolam-save { color: var(--accent); font-size: 15px; margin-top: 14px; }
.kolam-work { min-width: 0; grid-column: 2; grid-row: 1 / 3; }
.kolam-board { position: relative; aspect-ratio: 1; width: 100%; background: #713e32; }
.kolam-board[data-palette="indigo"] { background: #293e51; }
.kolam-board[data-palette="leaf"] { background: #384c3c; }
.kolam-drawing { width: 100%; height: 100%; display: block; }
.kolam-grid { position: absolute; inset: 9.3220339%; display: grid; grid-template-rows: repeat(6, 1fr); }
.kolam-row { display: grid; grid-template-columns: repeat(6, 1fr); min-height: 0; }
.kolam-tile { display: block; width: 100%; height: 100%; background: transparent; padding: 0; border-radius: 12%; transition: background-color 160ms ease; }
.kolam-tile:active { transform: none; background: #f5e8ce18; }
.kolam-tile:focus-visible { outline: 2px solid #f5e8ce; outline-offset: -5px; background: #f5e8ce14; }
.kolam-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; color: #d7c7b8; font-size: 13px; }
.kolam-caption [lang="ta"] { font-size: 20px; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .kolam-tile:hover { background: #f5e8ce12; }
  .colour-choice:hover, .kolam-undo:not(:disabled):hover { color: var(--accent); }
}
@media (max-width: 900px) {
  .kolam-layout { grid-template-columns: 1fr; gap: 18px; }
  .kolam-copy { grid-column: 1; grid-row: 1; }
  .kolam-controls { grid-column: 1; grid-row: 3; }
  .kolam-copy .statement { display: none; }
  .kolam-copy > p:not(.statement) { max-width: 55ch; margin-top: 24px; }
  .kolam-work { grid-column: 1; grid-row: 2; margin-block: 12px; width: 100%; max-width: 620px; }
  .kolam-actions { margin-top: 14px; }
  .symmetry-control { padding-block: 0; min-height: 36px; }
}
@media (max-width: 740px) {
  .journey-tools { display: block; padding-block: 0 8px; }
  .journey-tools label { margin-top: 10px; }
  .journey-tools input { flex: 1; max-width: 180px; }
  .kolam-layout { gap: 18px; }
  .kolam-copy { max-width: none; }
  .kolam-copy h2 { font-size: 50px; }
  .kolam-copy > p:not(.statement) { max-width: none; }
  .kolam-caption { align-items: start; gap: 12px; }
  .kolam-caption p { max-width: 25ch; }
}
.light-section { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.art-story { padding-block: var(--section-space) 0; }
.story-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 144px); align-items: start; }
.story-intro h2 { font-size: clamp(64px, 7vw, 108px); }
.story-intro h2 [lang="ta"] { display: block; font-size: .53em; margin-bottom: 18px; }
.story-intro h2 > span:last-child { display: block; }
.story-copy { max-width: 600px; }
.statement { font-family: var(--serif); font-size: clamp(28px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.015em; }
.story-copy p + p { margin-top: 24px; }
.story-copy .text-link { margin-top: 20px; }
.landscape-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding-block: 70px 64px; align-items: start; }
.landscape-piece { display: block; text-decoration: none; min-width: 0; }
.landscape-piece:nth-child(even) { padding-top: 54px; }
.landscape-piece img { aspect-ratio: 3 / 4.1; width: 100%; height: auto; object-fit: cover; transition: transform 500ms var(--ease); }
.landscape-piece > div { padding-block: 20px 0; }
.landscape-piece [lang="ta"] { font-size: 16px; }
.landscape-piece h3 { font-size: clamp(28px, 2.4vw, 38px); margin-top: 6px; }
.landscape-piece p { font-size: 14px; margin-top: 7px; color: var(--paper-muted); }
.making { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 144px); padding-bottom: var(--section-space); }
.making > p { font: 500 clamp(30px, 3.7vw, 54px)/1.12 var(--serif); letter-spacing: -.025em; }
.inline-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.inline-links a { padding-block: 8px; font-size: 15px; }
.about-section { padding-block: var(--section-space); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 144px); align-items: start; }
.portrait { max-width: 440px; }
.portrait video { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--surface); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 15px; }
.portrait figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-button { background: none; font-size: 14px; padding: 10px 0 10px 8px; color: var(--accent); }
.about-copy h2 { margin-bottom: 32px; }
.about-copy p { margin-top: 22px; }
.about-copy p:not(.statement) { color: var(--muted); }
.about-copy p a { color: var(--ink); }
.affiliations { margin-top: 32px; display: flex; align-items: center; gap: 24px; }
.affiliations img { height: 40px; width: auto; object-fit: contain; }
.research-section { padding-block: var(--section-space); }
.section-intro { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 64px; }
.section-intro p { color: var(--paper-muted); }
.publication { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 42px; background: var(--paper-deep); }
.publication + .publication { margin-top: 20px; }
.publication:nth-of-type(2) { background: #d2d8ca; }
.publication-name h3 { font-size: clamp(42px, 4vw, 62px); }
.publication-name p { font-size: 14px; max-width: 210px; margin-top: 18px; }
.publication-title { font: 500 clamp(25px, 2.6vw, 34px)/1.15 var(--serif); letter-spacing: -.015em; }
.authors { font-size: 14px; line-height: 1.8; margin-top: 20px; color: #444b3d; }
.authors sup { font-size: .7em; }
.authors em { font-style: normal; }
details { margin-top: 20px; }
summary { cursor: pointer; width: fit-content; display: flex; align-items: center; gap: 20px; padding-block: 10px; font-size: 15px; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 14px; font-size: 16px; }
.plus { width: 18px; height: 18px; }
details[open] .plus .vertical { opacity: 0; }
.publication-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; margin-top: 12px; }
.publication-links a { padding-block: 8px; }
.publication-note { color: var(--paper-muted); }
.research-scholar { margin-top: 28px; }
.accidents-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(40px, 8vw, 128px); padding-block: var(--section-space); }
.accidents-copy h2 { margin-bottom: 32px; }
.accidents-copy p + p { margin-top: 24px; }
.accidents-copy > p:not(.statement) { color: var(--muted); }
.small-copy { font-size: 14px; }
.accidents-art img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.gallery-controls { display: flex; gap: 24px; align-items: center; margin-top: 32px; }
.gallery-controls > span { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; }
.icon-button { width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface); border-radius: 50%; }
#previous-art svg { transform: rotate(180deg); }
.writing-strip { background: #d8ddcf; padding-block: 54px; }
.writing-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.writing-strip h2 { font-size: clamp(30px, 3vw, 44px); }
.writing-strip p { font-size: 15px; }
.writing-strip a { white-space: nowrap; font-size: 15px; }
.site-footer { background: #30261e; padding-block: 88px 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-top h2 { font-size: clamp(44px, 5vw, 76px); }
.footer-top > div { max-width: 300px; }
.footer-top p { color: var(--muted); margin-bottom: 24px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 32px; padding: 12px 22px; text-decoration: none; font-size: 16px; }
.button-light { background: var(--ink); color: var(--ground); }
.footer-bottom { margin-top: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.signature { font: 500 clamp(36px, 4vw, 60px)/1.1 var(--serif); letter-spacing: -.03em; text-decoration: none; }
.social-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.social-links a { padding-block: 8px; text-decoration: none; }
.colophon { margin-top: 44px; display: flex; justify-content: space-between; gap: 32px; color: var(--muted); font-size: 13px; }
.colophon p:last-child { max-width: 460px; text-align: right; }
.writing-page { padding-block: 60px var(--section-space); }
.writing-page h1 { margin-bottom: 80px; }
.writing-body { max-width: 620px; margin-left: auto; margin-top: 64px; }
.writing-body p { margin-block: 24px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover, .social-links a:hover, .text-button:hover, .new-world:hover { color: var(--accent); }
  .text-link:hover svg { transform: translateX(5px); }
  .landscape-choices a:hover { background: var(--surface); color: var(--ink); }
  .landscape-choices a[aria-current="true"]:hover { background: var(--accent); color: var(--ground); }
  .control:hover, .button:hover { background: var(--accent); color: var(--ground); }
  .landscape-piece:hover img { transform: translateY(-6px); }
  .icon-button:hover { background: var(--accent); color: var(--ground); }
  .inline-links a:hover, .publication-links a:hover { text-decoration-thickness: 2px; }
}
@media (max-width: 1050px) {
  .hello > span:last-child { display: none; }
  .hero-intro p { flex-basis: 240px; font-size: 16px; }
  .painting-caption { grid-template-columns: 1fr 1.2fr; }
  .painting-caption .text-link { display: none; }
  .landscape-nav { flex-wrap: wrap; gap: 12px 24px; }
  .landscape-nav > p { flex-basis: 100%; }
  .landscape-choices a { padding: 10px 12px; }
  .landscape-gallery { gap: 12px; }
  .landscape-piece p { font-size: 13px; }
  .section-intro { align-items: start; }
  .publication { padding: 32px; gap: 28px; grid-template-columns: 1fr 2fr; }
  .writing-strip .wrap { flex-wrap: wrap; }
  .writing-strip h2 { flex-basis: 100%; }
}
@media (max-width: 740px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }
  .site-header { flex-wrap: wrap; padding-block: 24px 14px; min-height: auto; gap: 14px; }
  .hello { justify-content: space-between; width: 100%; }
  .hello > span:last-child { display: block; font-size: 13px; }
  .hello [lang="ta"] { font-size: 18px; }
  .site-header nav { gap: 0; width: 100%; justify-content: space-between; }
  .site-header nav a { font-size: 14px; padding-block: 10px; }
  .hero-intro { display: block; padding-block: 26px 32px; }
  .hero-intro h1 { font-size: clamp(52px, 10.2vw, 74px); }
  .hero-intro p { font-size: 16px; margin-top: 20px; padding: 0; }
  .painting-stage { margin-inline: 0; height: 390px; }
  .painting-actions { left: 24px; right: 24px; bottom: 32px; justify-content: space-between; }
  .control { font-size: 13px; gap: 8px; padding: 10px 13px; }
  .control svg { width: 18px; }
  .painting-caption { grid-template-columns: 1fr; gap: 12px; padding-block: 26px 16px; }
  .place-name > span:last-child { max-width: none; }
  .place-name [lang="ta"] { font-size: 23px; }
  .painting-caption > p { font-size: 14px; }
  .landscape-nav { padding-block: 14px 36px; }
  .landscape-choices { gap: 5px; width: 100%; }
  .landscape-choices a { font-size: 14px; padding: 10px 12px; flex: 1 0 29%; text-align: center; background: var(--surface); }
  .new-world { padding-left: 0; margin-left: 0; }
  .story-intro { grid-template-columns: 1fr; gap: 36px; }
  .story-intro h2 { font-size: 76px; }
  .story-intro h2 [lang="ta"] { font-size: 35px; margin-bottom: 8px; }
  .statement { font-size: 28px; }
  .landscape-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; padding-block: 50px 56px; }
  .landscape-piece:nth-child(even) { padding-top: 32px; }
  .landscape-piece:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
  .landscape-piece:last-child img { aspect-ratio: 4 / 3; }
  .landscape-piece img { aspect-ratio: 3 / 4; }
  .landscape-piece h3 { font-size: 31px; }
  .landscape-piece [lang="ta"] { font-size: 15px; }
  .landscape-piece p { font-size: 13px; }
  .making { grid-template-columns: 1fr; gap: 24px; }
  .making > p { font-size: 38px; }
  .about-section { grid-template-columns: 1fr; gap: 40px; }
  .portrait { width: 80%; max-width: 340px; }
  .about-copy h2 { margin-bottom: 26px; }
  .section-intro { display: block; margin-bottom: 40px; }
  .section-intro p { margin-top: 24px; }
  .publication { display: block; padding: 28px 24px; margin-inline: -8px; }
  .publication-name p { max-width: none; margin-top: 12px; }
  .publication-body { margin-top: 28px; }
  .publication-title { font-size: 27px; }
  .authors { font-size: 14px; }
  .accidents-section { grid-template-columns: 1fr; gap: 36px; }
  .accidents-art { grid-row: 2; }
  .gallery-controls { margin-top: 24px; }
  .writing-strip .wrap { gap: 18px; }
  .writing-strip h2 { font-size: 38px; }
  .footer-top, .footer-bottom, .colophon { display: block; }
  .footer-top h2 { font-size: 48px; }
  .footer-top > div { margin-top: 32px; }
  .footer-bottom { margin-top: 64px; }
  .social-links { margin-top: 28px; gap: 24px; }
  .colophon { margin-top: 32px; }
  .colophon p:last-child { text-align: left; margin-top: 18px; }
  .writing-page { padding-top: 32px; }
  .writing-page h1 { margin-bottom: 64px; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .hero-intro h1 { font-size: 47px; }
  .control { font-size: 12px; padding-inline: 10px; }
  .painting-actions { left: 16px; right: 16px; }
  .landscape-piece h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}
