@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f4ebdd;
  --paper-deep: #ece0cd;
  --ink: #252b26;
  --muted: #71766d;
  --green: #557a62;
  --green-dark: #365440;
  --green-wash: #dce5d8;
  --clay: #b26a3c;
  --rule: rgba(37, 43, 38, .18);
  --serif: 'DM Serif Display', 'Noto Serif Tamil', Georgia, serif;
  --sans: 'Catamaran', 'Noto Sans Tamil', sans-serif;
  --page-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
::selection { color: var(--paper); background: var(--green); }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 max(5vw, calc((100vw - var(--page-width)) / 2)); border-bottom: 1px solid rgba(37,43,38,.1); background: rgba(244,235,221,.93); backdrop-filter: blur(14px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.wordmark-mark { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--green); border-radius: 50%; color: var(--green-dark); font-family: var(--serif); font-size: 19px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-nav a, .print-button { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .print-button:hover, .back-to-top:hover { color: var(--green-dark); }
.print-button { border: 0; padding: 8px 0 8px 12px; background: transparent; cursor: pointer; }
.print-button span { margin-left: 5px; color: var(--clay); }
.section-shell { width: min(var(--page-width), 90%); margin-inline: auto; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: center; min-height: min(760px, calc(100vh - 76px)); padding-top: 90px; padding-bottom: 118px; column-gap: 10%; }
.hero-copy { max-width: 760px; }
.eyebrow, .hero-kicker, .section-index, .contact-topline, .note-label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .09em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.hero-kicker { margin-top: 62px; color: var(--green-dark); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin: 9px 0 4px; font-family: var(--serif); font-size: clamp(58px, 8.2vw, 108px); font-weight: 400; letter-spacing: -.055em; line-height: .99; }
.hero-name { color: var(--green); font-style: italic; }
.hero-period { color: var(--clay); }
.hero-role { margin: 21px 0 14px; font-size: clamp(18px, 2.3vw, 25px); font-weight: 600; }
.hero-summary { max-width: 570px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 0 20px; border-radius: 2px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fffdf7; }
.button-primary:hover { background: var(--green-dark); }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; }
.hero-note { position: relative; align-self: center; margin-top: 70px; padding: 24px 4px 25px 27px; border-left: 1px solid var(--green); }
.orbit-mark { position: relative; width: 128px; height: 128px; margin: 0 0 37px 5px; border: 1px solid rgba(85,122,98,.45); border-radius: 50%; }
.orbit-mark::before, .orbit-mark::after { position: absolute; inset: 14px; border: 1px solid rgba(85,122,98,.28); border-radius: 50%; content: ''; }
.orbit-mark::after { inset: 29px; border-color: rgba(178,106,60,.48); }
.orbit-center { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--green); transform: translate(-50%,-50%); }
.orbit-star { position: absolute; top: 8px; right: 12px; color: var(--clay); font-size: 24px; }
.note-label { font-size: 10px; letter-spacing: .16em; }
.note-copy { margin: 10px 0 17px; font-family: var(--serif); font-size: 22px; line-height: 1.27; }
.note-link { color: var(--green-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.note-link span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.note-link:hover span { transform: translateY(3px); }
.hero-bottom-line { position: absolute; right: 0; bottom: 36px; left: 0; display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.line-fill { height: 1px; flex: 1; background: var(--rule); }
.content-section { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.55fr); gap: 8%; padding-top: 99px; padding-bottom: 103px; border-top: 1px solid var(--rule); }
.section-index { color: var(--green); font-size: 11px; letter-spacing: .13em; }
.section-heading h2, .edit-guide h2 { margin: 15px 0 0; font-family: var(--serif); font-size: clamp(39px, 5vw, 60px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.section-heading h2 em, .contact-main h2 em, .edit-guide h2 em { color: var(--green); font-weight: 400; }
.section-body { min-width: 0; padding-top: 4px; }
.about-body { display: grid; grid-template-columns: minmax(150px, .78fr) minmax(0, 1.6fr); align-items: start; gap: clamp(22px, 4vw, 48px); }
.about-portrait { width: min(100%, 270px); margin: 0; }
.portrait-frame { overflow: hidden; padding: 8px; border: 1px solid rgba(85,122,98,.42); background: rgba(255,252,245,.34); }
.about-portrait img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #08090b; }
.about-portrait figcaption { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.portrait-caption-mark { width: 18px; height: 1px; background: var(--clay); }
.about-copy > p { max-width: 740px; margin-bottom: 31px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.55; }
.edit-callout { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 12px 16px; background: rgba(220,229,216,.58); color: var(--green-dark); font-size: 14px; }
.callout-icon { color: var(--clay); font-size: 18px; }
code { padding: 1px 5px; border-radius: 2px; background: rgba(85,122,98,.1); color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.section-intro { margin-bottom: 25px; color: var(--muted); }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill-list li { padding: 9px 15px; border: 1px solid rgba(85,122,98,.38); border-radius: 999px; color: var(--green-dark); font-size: 14px; font-weight: 600; }
.timeline { border-top: 1px solid var(--rule); }
.timeline-entry { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(0, 1.5fr); gap: 7%; padding: 25px 0 27px; border-bottom: 1px solid var(--rule); }
.entry-date { margin: 5px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.entry-title { margin: 0 0 2px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.25; }
.entry-organization { margin: 0 0 10px; color: var(--green-dark); font-size: 15px; font-weight: 700; }
.entry-description { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.education-section { padding-top: 91px; padding-bottom: 95px; }
.projects-section { padding-bottom: 117px; }
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.project-card { position: relative; display: flex; min-height: 255px; flex-direction: column; align-items: flex-start; padding: 25px 25px 22px; border: 1px solid var(--rule); background: rgba(255,252,245,.34); transition: background .25s ease, transform .25s ease; }
.project-card:hover { background: rgba(220,229,216,.52); transform: translateY(-3px); }
.project-number { color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.project-card h3 { margin: 26px 0 7px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.2; }
.project-card p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.project-tags span { padding: 3px 8px; background: var(--green-wash); color: var(--green-dark); font-size: 11px; font-weight: 700; }
.project-link { position: absolute; top: 20px; right: 22px; color: var(--green-dark); font-size: 19px; text-decoration: none; }
.contact-section { width: 100%; padding: 34px max(5vw, calc((100vw - var(--page-width)) / 2)) 0; background: var(--green-dark); color: #f7f0e4; }
.contact-topline { display: flex; justify-content: space-between; color: rgba(247,240,228,.72); font-size: 11px; }
.contact-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 72px 0 62px; }
.contact-main h2 { margin: 0; font-family: var(--serif); font-size: clamp(51px, 8vw, 99px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.contact-main h2 em { color: #d6e0d0; }
.contact-cta { display: inline-flex; align-items: center; gap: 23px; margin-bottom: 6px; padding: 15px 20px; border: 1px solid rgba(247,240,228,.55); color: #fffdf7; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s ease; }
.contact-cta:hover { background: rgba(255,255,255,.1); }
.contact-details { display: flex; flex-wrap: wrap; gap: 12px 44px; padding: 24px 0 30px; border-top: 1px solid rgba(247,240,228,.25); }
.contact-item { display: grid; gap: 2px; min-width: 150px; }
.contact-label { color: rgba(247,240,228,.64); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-value, .contact-placeholder { color: #fffdf7; font-size: 15px; text-decoration: none; }
.contact-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-placeholder { color: rgba(247,240,228,.65); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.social-links a { color: #fffdf7; font-size: 15px; text-decoration: none; }
.social-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; border-top: 1px solid rgba(247,240,228,.25); color: rgba(247,240,228,.7); font-size: 12px; }
.footer-wordmark { color: #fffdf7; font-size: 14px; }
.footer-wordmark .wordmark-mark { border-color: rgba(247,240,228,.65); color: #fffdf7; }
.back-to-top { color: #fffdf7; text-decoration: none; }
.edit-guide { background: var(--paper-deep); }
.edit-guide-inner { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 40px; padding-top: 47px; padding-bottom: 49px; }
.edit-guide h2 { font-size: clamp(30px, 4vw, 44px); }
.edit-guide-inner > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; }
.guide-top-link { color: var(--green-dark); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }

@media (max-width: 800px) {
  .site-header { min-height: 68px; padding-inline: 5%; }
  .site-nav { gap: 17px; }
  .site-nav a { font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr) 180px; gap: 6%; min-height: 670px; }
  .hero-note { padding-left: 19px; }
  .orbit-mark { width: 105px; height: 105px; }
  .content-section { grid-template-columns: minmax(190px,.72fr) minmax(0,1.5fr); gap: 5%; }
  .edit-guide-inner { grid-template-columns: 1fr 1fr; }
  .guide-top-link { grid-column: 2; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 16px; }
  .site-header { position: relative; flex-wrap: wrap; gap: 0; min-height: 72px; padding: 12px 5%; }
  .wordmark { font-size: 15px; }
  .print-button { padding-left: 0; font-size: 12px; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; padding: 10px 0 1px; }
  .site-nav a { font-size: 12px; }
  .section-shell { width: 90%; }
  .hero { display: block; min-height: auto; padding-top: 68px; padding-bottom: 96px; }
  .hero-kicker { margin-top: 47px; }
  h1 { font-size: clamp(56px, 16vw, 82px); }
  .hero-summary { font-size: 16px; }
  .hero-note { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; margin-top: 47px; padding: 0 0 0 18px; border-left: 1px solid var(--green); }
  .orbit-mark { grid-row: span 3; width: 66px; height: 66px; margin: 0; }
  .orbit-mark::before { inset: 8px; }
  .orbit-mark::after { inset: 17px; }
  .orbit-star { top: 1px; right: 6px; font-size: 17px; }
  .note-copy { margin: 4px 0 5px; font-size: 18px; }
  .hero-bottom-line { bottom: 29px; gap: 9px; font-size: 9px; }
  .hero-bottom-line > span:first-child { display: none; }
  .content-section { display: block; padding-top: 69px; padding-bottom: 73px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { margin-top: 9px; font-size: 46px; }
  .about-body { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .about-portrait { width: min(72%, 240px); }
  .about-copy > p { font-size: 21px; }
  .edit-callout { font-size: 12px; }
  .timeline-entry { grid-template-columns: 1fr; gap: 5px; padding: 20px 0 22px; }
  .entry-date { order: 2; margin: 2px 0 0; }
  .entry-main { order: 1; }
  .entry-title { font-size: 24px; }
  .entry-organization { margin-bottom: 8px; }
  .project-list { grid-template-columns: 1fr; }
  .project-card { min-height: 220px; }
  .contact-section { padding-inline: 5%; }
  .contact-topline { font-size: 9px; }
  .contact-main { display: block; padding: 54px 0 40px; }
  .contact-main h2 { font-size: clamp(48px, 14vw, 76px); }
  .contact-cta { margin-top: 24px; }
  .contact-details { gap: 19px 24px; }
  .contact-item { min-width: 125px; }
  .site-footer { flex-wrap: wrap; padding: 18px 0; font-size: 11px; }
  .footer-wordmark { width: 100%; }
  .edit-guide-inner { display: block; padding-top: 36px; padding-bottom: 38px; }
  .edit-guide h2 { margin-bottom: 17px; }
  .guide-top-link { display: inline-block; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  :root { --paper: #fff; --ink: #161616; --green: #365440; --green-dark: #365440; --muted: #444; --rule: rgba(0,0,0,.22); }
  @page { margin: 15mm; }
  body { background: #fff; color: #161616; font-size: 10.5pt; }
  .site-header, .hero-note, .hero-bottom-line, .hero-actions, .edit-guide, .contact-cta, .back-to-top, .skip-link { display: none !important; }
  .section-shell { width: 100%; }
  .hero { display: block; min-height: 0; padding: 0 0 24px; }
  .hero-kicker { margin-top: 0; }
  h1 { font-size: 46pt; }
  .hero-role { margin: 10px 0 6px; }
  .hero-summary { max-width: none; font-size: 11pt; }
  .content-section { grid-template-columns: 30% 1fr; gap: 5%; padding: 22px 0; break-inside: avoid; }
  .about-body { grid-template-columns: 150px 1fr; gap: 18px; }
  .about-portrait { width: 150px; }
  .about-copy > p { font-size: 14pt; }
  .section-heading h2 { font-size: 25pt; }
  .about-body > p { font-size: 14pt; }
  .project-card { min-height: 0; padding: 14px; break-inside: avoid; }
  .project-card h3 { margin-top: 10px; font-size: 18pt; }
  .contact-section { padding: 18px 0 0; background: #fff; color: #161616; }
  .contact-main { padding: 20px 0; }
  .contact-main h2 { font-size: 35pt; }
  .contact-main h2 em { color: var(--green); }
  .contact-details { padding: 12px 0; border-color: var(--rule); }
  .contact-label, .contact-placeholder, .contact-value { color: #333; }
  .site-footer { min-height: 38px; color: #444; }
  .footer-wordmark, .footer-wordmark .wordmark-mark { color: #333; border-color: #555; }
}
