/* =========================================================
   Mothe Kishan Reddy — Profile Site
   Design concept: "The Dossier" — a formal profile charter.
   Chapters marked in Roman numerals, portrait set as an
   institutional medallion, palette drawn from ink, parchment
   and brass — the materials of seals, ledgers and boardrooms.
   ========================================================= */

:root {
  --ink: #14181f;
  --ink-soft: #1d2330;
  --ink-line: #2b3140;
  --paper: #f6f2e9;
  --paper-deep: #efe8d6;
  --slate: #4a5164;
  --slate-soft: #6b7280;
  --brass: #a9832e;
  --brass-deep: #8a6a22;
  --brass-light: #d8bd7d;
  --line: #ded6c3;
  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 14px;
}

.chapter {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--brass);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.chapter-light { color: var(--brass-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-line);
  border-color: rgba(20, 24, 31, 0.25);
}
.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brass-deep);
}
.brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a em {
  font-style: italic;
  color: var(--brass);
  margin-right: 4px;
  font-family: var(--font-display);
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--brass);
  transition: right 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink) !important;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 86px 0 100px;
  overflow: hidden;
  background: var(--paper);
}
.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(20, 24, 31, 0.035) 1px, transparent 1px);
  background-size: 100% 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 22px 0 18px;
}
h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 500;
}
.hero-lead {
  max-width: 46ch;
  font-size: 17px;
  color: var(--slate);
  margin-top: 18px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 13px;
  color: var(--slate-soft);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

/* Medallion — signature element */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.medallion {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1;
}
.medallion-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 90s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.medallion-ring circle {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
  opacity: 0.55;
}
.medallion-ring-inner {
  stroke-dasharray: 1 7;
  stroke-width: 2;
  opacity: 0.8;
}
.medallion-frame {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--brass-light);
  box-shadow:
    0 0 0 8px var(--paper),
    0 0 0 9px var(--line),
    0 24px 48px -18px rgba(20, 24, 31, 0.35);
  background: var(--paper-deep);
}
.medallion-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.94) contrast(1.02);
}
.portrait-caption {
  text-align: center;
  font-size: 13.5px;
}
.portrait-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.portrait-caption span {
  color: var(--slate-soft);
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section.muted { background: var(--paper-deep); }

.two-col {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 64px;
}
.section-label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--slate-soft);
  position: sticky;
  top: 110px;
  align-self: start;
}
.section-label span:last-child {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.section-content h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  margin-bottom: 26px;
  max-width: 20ch;
}
.section-content p {
  max-width: 62ch;
  font-size: 16px;
  color: var(--slate);
}
.section-content p + p { margin-top: 18px; }

/* ---------- Quote band ---------- */
.quote-band {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  overflow: hidden;
}
.quote-texture {
  background-image: linear-gradient(rgba(246, 242, 233, 0.04) 1px, transparent 1px);
  opacity: 1;
  mask-image: none;
}
.quote-wrap {
  position: relative;
  max-width: 780px;
  text-align: center;
}
.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 90px;
  line-height: 0.6;
  color: var(--brass);
  margin-bottom: 8px;
}
blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.38;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.quote-attrib {
  margin-top: 28px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: rgba(246, 242, 233, 0.55);
  text-transform: uppercase;
}

/* ---------- Service cards ---------- */
.section-heading {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.2;
  margin: 12px 0 18px;
}
.section-heading p:not(.eyebrow) { font-size: 16px; }

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.four-cards { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper-deep);
  padding: 36px 28px;
  transition: background 0.3s ease;
}
.card:hover { background: var(--paper); }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--brass-deep);
  margin-bottom: 22px;
}
.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.card p {
  font-size: 14.5px;
  color: var(--slate);
}

/* ---------- Leadership ---------- */
.leadership-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.leadership-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 12px 0 24px;
  max-width: 18ch;
}
.leadership-copy p { max-width: 60ch; font-size: 16px; }
.leadership-copy p + p { margin-top: 18px; }

.principles-card {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 36px;
  border-radius: var(--radius);
  position: relative;
}
.principles-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(216, 189, 125, 0.28);
  pointer-events: none;
}
.small-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 22px;
}
.principles-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.principles-card li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246, 242, 233, 0.12);
  font-family: var(--font-display);
  font-size: 16.5px;
  color: var(--paper);
}
.principles-card li:last-child { border-bottom: none; }
.principles-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

/* ---------- Identity strip ---------- */
.identity-strip {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.identity-grid > div {
  padding: 40px 32px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.identity-grid > div:first-child { border-left: none; }
.identity-grid span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.identity-grid strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
}

/* ---------- Connect ---------- */
.connect-card {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 56px;
  background: var(--ink);
  color: var(--paper);
  padding: 64px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.connect-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(216, 189, 125, 0.18);
  border-radius: 50%;
}
.connect-card h2 {
  color: var(--paper);
  font-size: clamp(26px, 3vw, 34px);
  margin: 10px 0 18px;
  max-width: 16ch;
}
.connect-card > div:first-child p {
  color: rgba(246, 242, 233, 0.7);
  max-width: 44ch;
}
.contact-placeholder {
  position: relative;
  background: rgba(246, 242, 233, 0.04);
  border: 1px solid rgba(246, 242, 233, 0.14);
  padding: 32px;
  border-radius: var(--radius);
}
.contact-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(246, 242, 233, 0.12);
  font-size: 14.5px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list li span {
  color: rgba(246, 242, 233, 0.5);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.contact-list li a { color: var(--paper); font-weight: 500; }
.contact-list li a:hover { color: var(--brass-light); }
.connect-card .btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  width: 100%;
  justify-content: center;
}
.connect-card .btn-primary:hover { background: var(--brass-light); }

/* ---------- Footer ---------- */
footer {
  background: var(--paper-deep);
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}
.footer-grid strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}
.footer-grid p { font-size: 13.5px; margin-top: 6px; color: var(--slate-soft); }
.footer-note {
  max-width: 42ch;
  font-size: 12.5px;
  color: var(--slate-soft);
  line-height: 1.6;
}
.copyright {
  border-top: 1px solid var(--line);
  padding: 20px 32px;
  font-size: 12.5px;
  color: var(--slate-soft);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1.is-visible { transition-delay: 0.1s; }
.delay-2.is-visible { transition-delay: 0.2s; }
.delay-3.is-visible { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .section-label { position: static; flex-direction: row; align-items: center; gap: 8px; }
  .leadership-grid { grid-template-columns: 1fr; }
  .four-cards { grid-template-columns: repeat(2, 1fr); }
  .identity-grid { grid-template-columns: repeat(2, 1fr); }
  .identity-grid > div:nth-child(3) { border-left: none; }
  .connect-card { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--paper);
    opacity: 1;
    z-index: 100;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { width: 100%; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-cta { border: 1px solid var(--ink); margin-top: 10px; text-align: center; }
  .menu-toggle { display: flex; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { padding: 48px 0 64px; }
  .section { padding: 72px 0; }
  .four-cards { grid-template-columns: 1fr; }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-grid > div { border-left: none; border-top: 1px solid var(--line); }
  .identity-grid > div:first-child { border-top: none; }
  .quote-band { padding: 80px 0; }
  .quote-mark { font-size: 64px; }
}
