/* ============================================================
   Vijay Jacob · Entity Home
   Light-first editorial system. One accent. Hairlines, no shadows.
   ============================================================ */

/* ---------- Fonts (self-hosted, display: swap) ---------- */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #FBFAF7;
  --ink: #141414;
  --ink-80: rgba(20, 20, 20, 0.8);
  --ink-60: rgba(20, 20, 20, 0.6);
  --hairline: #E7E4DD;
  --accent: #0E7A4E;
  --accent-hover: #0B6540;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --section-pad: 72px;
  --wrap-pad: 24px;
}

@media (min-width: 768px) {
  :root {
    --section-pad: 120px;
    --wrap-pad: 40px;
  }
}

/* ---------- Base ---------- */

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  transition: top 120ms ease-out;
}
.skip-link:focus { top: 12px; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}

.prose { max-width: 680px; }
.prose p + p { margin-top: 24px; }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
}

/* ---------- Links & buttons ---------- */

a {
  color: var(--ink);
  text-decoration-color: rgba(20, 20, 20, 0.35);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }

a:focus-visible,
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  color: var(--ink);
}
.ghost-link:hover { border-bottom-color: var(--accent); text-decoration: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 8px;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }

/* ---------- Entity-record annotations (signature device) ---------- */

.annotation {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.section-annotation { margin-bottom: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-80);
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.ghost-link { margin-left: 8px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  padding-top: 64px;
  padding-bottom: var(--section-pad);
}

@media (min-width: 768px) {
  .hero { padding-top: 112px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
  }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 24px;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.designation {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-80);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hero-portrait { max-width: 320px; }

@media (min-width: 768px) {
  .hero-portrait { justify-self: end; max-width: none; width: 100%; }
}

.portrait-ring {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px;
  background: var(--bg);
}

.portrait-ring img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.hero-portrait .annotation {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.hero-portrait .verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-portrait .verified svg { color: var(--accent); flex: none; }

/* ---------- Sections ---------- */

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--hairline);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

/* Pull quote */

.pull-quote {
  margin-top: 40px;
  margin-bottom: 40px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

.pull-quote p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Expertise chips */

.chip-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
}

.chip {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
}

/* Recognition */

.recognition-block {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 32px 24px;
  max-width: 680px;
}

@media (min-width: 768px) {
  .recognition-block { padding: 48px; }
}

.recognition-block .annotation { margin-bottom: 20px; }

.recognition-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.8vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.recognition-source { margin-top: 28px; }

/* Writing */

.writing-list {
  list-style: none;
  border-bottom: 1px solid var(--hairline);
  max-width: 880px;
}

.writing-list li { border-top: 1px solid var(--hairline); }

.writing-list a {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  text-decoration: none;
  color: var(--ink);
}

.writing-index {
  color: var(--ink-60);
  font-size: 12px;
}

.writing-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
}

.writing-arrow {
  color: var(--ink-60);
  justify-self: end;
}

.writing-list a:hover .writing-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 20, 20, 0.35); }
.writing-list a:hover .writing-arrow { color: var(--accent); }

.writing-more { margin-top: 32px; }

/* Contact */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.contact-microcopy { margin-top: 24px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.footer-role {
  font-size: 14px;
  color: var(--ink-60);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-80);
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-smallprint {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-60);
}

@media (min-width: 768px) {
  .footer-smallprint { grid-column: 1 / -1; }
}

/* ---------- Reveal motion (200ms fade, ease-out) ---------- */

.js .reveal {
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.js .reveal.is-visible,
.js.no-motion .reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transition: none;
  }
}
