/* ==========================================================================
   Amanda Jayachandran — design skeleton
   Design tokens
   ========================================================================== */

:root {
  --void: #0E1210;
  --void-soft: #171C19;
  --paper: #F1F3EF;
  --paper-dim: #E7EAE3;
  --ink: #14170F;
  --ink-soft: #4A4F4B;
  --line: #D8DCD5;
  --line-on-void: #2B322D;

  --font-display: "Fraunces", Georgia, serif;
  --font-display-bold: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-wordmark: var(--font-body);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --max-width: 74rem;
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--void);
  color: var(--paper);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Section kickers
   ========================================================================== */

.section-kicker.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
  color: #90BD54;
}

.section-kicker--void.section-kicker--void {
  color: #90BD54;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-2) var(--space-3);
  transition: background-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(241, 243, 239, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mark-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
}

.mark-logo {
  height: clamp(1.28rem, 2.4vw, 1.68rem);
  width: auto;
}

.mark-text {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-wordmark);
  font-size: clamp(0.8rem, 1.44vw, 1.04rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
}

.nav a {
  position: relative;
  padding: 0.2rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.about-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.nav-resume {
  display: inline-block;
  border: 1px solid #90BD54;
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  background: #90BD54;
  color: var(--paper);
  font-size: 0.9rem;
  transition: background-color 0.2s var(--ease);
}

.nav-resume:hover,
.nav-resume:focus-visible {
  background: var(--void);
}

.resume-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
}

.resume-modal.is-open {
  display: flex;
}

.resume-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 16, 0.75);
}

.resume-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1200px, 96vw);
  height: min(1200px, 94vh);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}

.resume-modal-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.resume-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
}

.nav-cta {
  font-weight: 600;
}

.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--space-3) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.hero-stat-number {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-full-bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 var(--space-3) var(--space-5);
  box-sizing: border-box;
}

.hero-massive {
  position: relative;
  z-index: 2;
  font-family: var(--font-display-bold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 13.5vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35em;
}

.hero-massive span {
  display: inline-block;
  overflow: hidden;
}

.hero-massive span > * { display: inline-block; }

.hero-massive[data-reveal] .hero-word {
  transform: translateY(0);
}

.hero-massive[data-reveal].is-ready .hero-word {
  animation: line-up 0.9s var(--ease) both;
}

.hero-massive[data-reveal].is-ready .hero-word:nth-child(1) { animation-delay: 0.05s; }
.hero-massive[data-reveal].is-ready .hero-word:nth-child(2) { animation-delay: 0.16s; }

@keyframes line-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-massive[data-reveal].is-ready .hero-word { animation: none; }
}

/* ---- Letter sweep: once the entrance settles, a green highlight
   travels across the headline one letter at a time, starting at the
   "C" of Creative -- then bounces back the other way, and keeps
   alternating direction indefinitely. Each letter is a separate span
   (added by script.js) so its color can animate independently,
   staggered by --i, which script.js reassigns (reversed) before each
   pass to flip the direction. ---- */

.hero-letter {
  display: inline-block;
  color: inherit;
  transition: color 0.3s var(--ease);
}

.hero-massive.is-sweeping .hero-letter {
  animation: hero-letter-sweep 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes hero-letter-sweep {
  0%, 100% { color: inherit; }
  40% { color: #90BD54; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-massive.is-sweeping .hero-letter { animation: none; }
}

/* ---- Backdrop: a faint rectangle behind the headshot and specialty
   list, visible only where neither one covers it. Position/size set
   entirely by script.js, computed as the bounding box of those two
   elements with some breathing room added. ---- */

.hero-backdrop {
  position: absolute;
  z-index: 0;
  background: var(--paper-dim);
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.hero-photo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  width: clamp(11.7rem, 20.8vw, 16.9rem);
  aspect-ratio: 4 / 5;
  background: var(--paper-dim);
  overflow: hidden;
  transition: opacity 0.25s var(--ease);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tagline {
  position: absolute;
  z-index: 1;
  top: 100%;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: justify;
  color: var(--ink-soft);
  margin: 0;
  white-space: normal;
  transition: opacity 0.25s var(--ease);
}

.hero-specialties {
  position: relative;
  z-index: 1;
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: max-content;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: opacity 0.25s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop,
  .hero-photo,
  .hero-tagline,
  .hero-specialties {
    transition: none;
  }
}

/* ==========================================================================
   Advisory focus
   ========================================================================== */

.focus {
  position: relative;
  z-index: 1;
  padding: var(--space-5) var(--space-3);
  background: var(--void);
  color: var(--paper);
}

.focus-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  max-width: 34ch;
  margin-bottom: var(--space-3);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 450;
}

.section-head p {
  margin-top: var(--space-1);
  color: rgba(241, 243, 239, 0.7);
}

.focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-on-void);
  margin: 0;
}

.focus-item {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: 1px solid var(--line-on-void);
}

.focus-item:nth-child(odd) {
  border-right: 1px solid var(--line-on-void);
  padding-right: var(--space-4);
}

.focus-item:nth-child(even) {
  padding-left: var(--space-4);
}

.focus-item dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 450;
  margin-bottom: 0.4rem;
}

.focus-item dd {
  margin: 0;
  color: rgba(241, 243, 239, 0.7);
  max-width: 34ch;
}

.mywork-note {
  margin-top: var(--space-3);
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.mywork-note-alt {
  font-size: 0.8rem;
  color: rgba(241, 243, 239, 0.7);
}

.mywork-note-cta {
  cursor: pointer;
}

.mywork-cta-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
}

.mywork-cta-modal.is-open {
  display: flex;
}

.mywork-cta-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 16, 0.75);
}

.mywork-cta-modal-panel {
  position: relative;
  z-index: 1;
  width: min(320px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 2.5rem 0.75rem 0.75rem;
  background: var(--void);
  border: 1px solid var(--line-on-void);
  border-radius: var(--radius);
}

.mywork-cta-modal-title {
  position: absolute;
  top: 0.75rem;
  left: 0.9rem;
  font-size: 0.8rem;
  color: rgba(241, 243, 239, 0.6);
}

.mywork-cta-modal-panel a,
.mywork-cta-modal-disabled {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.mywork-cta-modal-panel a {
  color: var(--paper);
  transition: background-color 0.2s var(--ease);
}

.mywork-cta-modal-panel a:hover,
.mywork-cta-modal-panel a:focus-visible {
  background: #90BD54;
}

.mywork-cta-modal-disabled {
  color: rgba(241, 243, 239, 0.35);
  cursor: not-allowed;
}

.mywork-cta-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  z-index: 2;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--paper);
}

.mywork-note-alt a {
  color: inherit;
  text-decoration: underline;
}

.mywork-note p {
  max-width: 46ch;
  color: rgba(241, 243, 239, 0.7);
}

/* ==========================================================================
   Statement
   ========================================================================== */

.statement {
  position: relative;
  z-index: 1;
  background: var(--void);
  color: var(--paper);
  padding: var(--space-6) var(--space-3);
  overflow: hidden;
}

.statement-text {
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.statement-text.is-visible {
  opacity: 1;
}

.statement-visual {
  display: block;
}

.statement-line {
  display: block;
  font-family: var(--font-display-bold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}

/* Each word is wrapped in its own nowrap span (added by script.js)
   before being split into per-letter spans -- this keeps a word from
   breaking across lines when it doesn't fit, since the letters alone
   have no inherent "stay together" behavior once split. Normal
   wrapping still happens at the actual space between words. */
.statement-word {
  display: inline-block;
  white-space: nowrap;
}

.statement-line .letter {
  display: inline-block;
  color: var(--paper);
  transform: translate(0, 0) rotate(0deg);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .statement-text {
    opacity: 1;
    transition: none;
  }
  .statement-line .letter {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .statement-line .letter {
    transition: none;
  }
  .statement[data-scattered] .letter {
    transform: none;
    opacity: 1;
  }
}

/* ==========================================================================
   Recognition
   ========================================================================== */

.recognition {
  position: relative;
  z-index: 1;
  background: var(--void);
  color: var(--paper);
  padding: 4rem var(--space-3);
  text-align: center;
}

.recognition blockquote {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.recognition p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35;
}

.recognition cite {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(241, 243, 239, 0.6);
}

.award-list {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: var(--space-5);
  background: var(--paper);
  color: var(--ink);
  padding: var(--space-4) max(var(--space-3), calc(50% - 20rem));
  text-align: left;
}

.award-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.award-list li:last-child {
  border-bottom: 0;
}

.award-name {
  font-weight: 500;
  color: var(--ink);
}

.award-detail {
  color: var(--ink-soft);
}

.award-summary {
  max-width: 40rem;
  margin: var(--space-3) auto 0;
  font-size: 0.85rem;
  color: rgba(241, 243, 239, 0.55);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  position: relative;
  z-index: 1;
  padding: 4rem var(--space-3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-5);
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 450;
  margin-bottom: var(--space-3);
}

.about-copy p {
  max-width: 52ch;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.dash-accent {
  color: #90BD54;
}

.about-education {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  display: inline-block;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 117px;
}

.timeline li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}

.timeline-role {
  display: block;
  font-weight: 600;
}

.timeline-org {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.4rem var(--space-3) var(--space-5);
  text-align: left;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 450;
  max-width: 16ch;
}

.contact p {
  margin-top: var(--space-2);
  max-width: 40ch;
  color: var(--ink-soft);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15em;
  transition: opacity 0.2s var(--ease);
}

.contact-email:hover,
.contact-email:focus-visible {
  opacity: 0.6;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact-email-wrap {
  position: relative;
  display: inline-block;
}

.contact-logo {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: clamp(2.25rem, 4vw, 3.5rem);
  height: auto;
}

.social-button {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.social-button:hover,
.social-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: var(--space-3);
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    grid-column: 1 / -1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--paper);
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open {
    display: flex;
  }
  .focus-list {
    grid-template-columns: 1fr;
  }
  .focus-item:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }
  .focus-item:nth-child(even) {
    padding-left: 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .hero-photo {
    position: static;
    transform: none;
    margin: var(--space-3) auto 0;
    width: 9rem;
  }
  .hero-tagline {
    position: static;
    text-align: left;
    text-align-last: auto;
    width: auto;
    margin-top: var(--space-2);
  }
  .hero-full-bleed {
    /* Desktop reserves generous bottom padding for the photo, which
       hangs below the baseline via absolute positioning. On mobile
       the photo is back in normal flow above the tagline, so that
       padding is just dead space here. */
    padding-bottom: var(--space-2);
  }
  .hero-specialties {
    margin-top: var(--space-2);
  }
}

@media (max-width: 560px) {
  .site-header { padding: var(--space-2); }
  .nav { gap: var(--space-2); font-size: 0.82rem; }
  .hero, .focus, .about, .contact, .recognition { padding-left: var(--space-2); padding-right: var(--space-2); }
}
