/* ============================================================
AAYUSHI AGRATHA — PORTFOLIO
White ground · Instrument Serif + Inter · Conscious space
============================================================ */

/* ----------------------------------------------------------
TOKENS
---------------------------------------------------------- */
:root {
     --white: #ffffff;
     --off-white: #fafaf9;
     --stone-50: #f7f6f4;
     --stone-100: #eeecea;
     --stone-200: #d8d5d0;
     --stone-400: #a09890;
     --ink: #1a1816;
     --ink-soft: #3d3a37;
     --ink-muted: #6b6460;
     --accent: #c4601a;
     --accent-subtle: #e8d5c4;

  --font-serif: 'Instrument Serif', Georgia, serif;
     --font-sans: 'Inter', -apple-system, sans-serif;

  --space-xs: 4px;
     --space-s: 8px;
     --space-m: 16px;
     --space-l: 24px;
     --space-xl: 40px;
     --space-2xl: 64px;
     --space-3xl: 96px;
     --space-4xl: 128px;

  --radius: 4px;
     --radius-m: 8px;

  --max-w: 1100px;
     --col-w: 720px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------
RESET
---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
     scroll-behavior: smooth;
     -webkit-text-size-adjust: 100%;
}

body {
     font-family: var(--font-sans);
     font-size: 16px;
     line-height: 1.6;
     color: var(--ink);
     background: var(--white);
     -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ----------------------------------------------------------
NAV
---------------------------------------------------------- */
.nav {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 100;
     background: rgba(255,255,255,0.94);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border-bottom: 1px solid var(--stone-100);
}

.nav-inner {
     max-width: var(--max-w);
     margin: 0 auto;
     padding: 0 var(--space-xl);
     height: 64px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: var(--space-xl);
}

.nav-name {
     font-family: var(--font-serif);
     font-size: 20px;
     color: var(--ink);
     flex-shrink: 0;
     letter-spacing: -0.01em;
     font-weight: 400;
}

.nav-links {
     display: flex;
     align-items: center;
     gap: var(--space-xl);
}

.nav-link {
     font-size: 14px;
     font-weight: 400;
     color: var(--ink-muted);
     letter-spacing: 0.01em;
     transition: color 0.2s var(--ease);
}

.nav-link:hover { color: var(--ink); }

.nav-link--cta {
     color: var(--ink);
     font-weight: 500;
     padding: 7px 18px;
     border: 1px solid var(--stone-200);
     border-radius: 100px;
     transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link--cta:hover {
     background: var(--ink);
     border-color: var(--ink);
     color: var(--white);
}

.nav-menu-btn {
     display: none;
     flex-direction: column;
     gap: 5px;
     padding: 4px;
}

.nav-menu-btn span {
     display: block;
     width: 22px;
     height: 1.5px;
     background: var(--ink);
     transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ----------------------------------------------------------
MOBILE NAV
---------------------------------------------------------- */
.mobile-nav {
     position: fixed;
     top: 64px;
     left: 0;
     right: 0;
     background: var(--white);
     border-bottom: 1px solid var(--stone-100);
     padding: var(--space-m) var(--space-xl);
     display: none;
     flex-direction: column;
     gap: var(--space-m);
     z-index: 99;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
     font-size: 15px;
     color: var(--ink-soft);
     padding: var(--space-s) 0;
     border-bottom: 1px solid var(--stone-100);
}

/* ----------------------------------------------------------
HERO
---------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: var(--space-2xl);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.hero-inner {
     max-width: var(--max-w);
     margin: 0 auto;
     display: grid;
     grid-template-columns: 1fr 300px;
     align-items: center;
     gap: var(--space-4xl);
}

.hero-eyebrow {
     font-size: 11px;
     font-weight: 500;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--ink-muted);
     margin-bottom: var(--space-l);
}

.hero-headline {
     font-family: var(--font-serif);
     font-size: clamp(44px, 6vw, 72px);
     font-weight: 400;
     line-height: 1.08;
     letter-spacing: -0.025em;
     color: var(--ink);
     margin-bottom: var(--space-l);
}

.hero-headline em {
     font-style: italic;
     color: var(--ink-soft);
}

.hero-subline {
     font-size: 16px;
     color: var(--ink-muted);
     max-width: 440px;
     margin-bottom: var(--space-xl);
     font-weight: 300;
     line-height: 1.6;
}

.hero-actions {
     display: flex;
     gap: var(--space-m);
     flex-wrap: wrap;
}

.hero-photo {
     display: flex;
     justify-content: flex-end;
}

.hero-img {
     width: 260px;
     height: 320px;
     object-fit: cover;
     object-position: center 10%;
     border-radius: 6px;
}

/* ----------------------------------------------------------
BUTTONS
---------------------------------------------------------- */
.btn-primary {
     display: inline-flex;
     align-items: center;
     padding: 12px 26px;
     background: var(--ink);
     color: var(--white);
     font-size: 14px;
     font-weight: 500;
     border-radius: 100px;
     transition: opacity 0.2s var(--ease);
     letter-spacing: 0.01em;
}

.btn-primary:hover { opacity: 0.75; }

/* FIX: btn-secondary border changed from stone-200 (#d8d5d0) to stone-400 (#a09890)
   so the outlined pill is clearly visible against the white background */
.btn-secondary {
     display: inline-flex;
     align-items: center;
     padding: 12px 26px;
     background: transparent;
     color: var(--ink);
     font-size: 14px;
     font-weight: 400;
     border: 1.5px solid var(--stone-400);
     border-radius: 100px;
     transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-secondary:hover {
     border-color: var(--ink);
     background: var(--stone-50);
}

/* ----------------------------------------------------------
SECTIONS
---------------------------------------------------------- */
.section {
     padding: var(--space-3xl) var(--space-xl);
}

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

.section-header {
     margin-bottom: var(--space-2xl);
}

.section-label {
     display: block;
     font-size: 11px;
     font-weight: 500;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--accent);
     margin-bottom: var(--space-s);
}

.section-title {
     font-family: var(--font-serif);
     font-size: clamp(28px, 3.5vw, 40px);
     font-weight: 400;
     line-height: 1.2;
     letter-spacing: -0.02em;
     color: var(--ink);
}


/* ----------------------------------------------------------
WORK LIST
---------------------------------------------------------- */
.work-list {
     display: flex;
     flex-direction: column;
}

.work-item {
     border-top: 1px solid var(--stone-100);
}

.work-item:last-child {
     border-bottom: 1px solid var(--stone-100);
}

.work-row {
     display: grid;
     grid-template-columns: 180px 1fr 32px;
     align-items: start;
     gap: var(--space-xl);
     padding: var(--space-l) 0;
     cursor: pointer;
     transition: opacity 0.15s var(--ease);
}

.work-row:hover { opacity: 0.65; }

.work-meta {
     display: flex;
     flex-direction: column;
     gap: 3px;
     padding-top: 4px;
}

.work-year {
     font-size: 12px;
     font-weight: 400;
     color: var(--ink-muted);
}

.work-type {
     font-size: 10px;
     font-weight: 500;
     letter-spacing: 0.07em;
     text-transform: uppercase;
     color: var(--stone-400);
}

.work-title-group {
     display: flex;
     flex-direction: column;
     gap: 2px;
     align-items: flex-start;
}

.work-title {
     font-family: var(--font-serif);
     font-size: 24px;
     font-weight: 400;
     color: var(--ink);
     letter-spacing: -0.01em;
     line-height: 1.2;
}

.work-subtitle {
     font-size: 13px;
     color: var(--ink-muted);
     font-weight: 300;
     line-height: 1.4;
}

.work-toggle {
     font-size: 22px;
     color: var(--ink);
     font-weight: 300;
     line-height: 1;
     padding-top: 4px;
     transition: transform 0.3s var(--ease), color 0.15s var(--ease);
     user-select: none;
}

.work-item.open .work-toggle {
     transform: rotate(45deg);
     color: var(--ink);
}

/* ----------------------------------------------------------
WORK DETAIL (expandable accordion)
FIX: improved transition — smoother, unhurried fold/unfold.
The detail-inner uses padding-top (not just padding-bottom) so
content slides in from the top edge cleanly.
overflow:hidden on detail itself clips the child as grid row shrinks.
---------------------------------------------------------- */
.work-detail {
     display: grid;
     grid-template-rows: 0fr;
     transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
     overflow: hidden;
}

.work-item.open .work-detail {
     grid-template-rows: 1fr;
}

.work-detail-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-left: 220px;
}

.work-detail-inner::after {
  content: '';
  display: block;
  height: var(--space-2xl);
  flex-shrink: 0;
}

.detail-block {
     display: flex;
     flex-direction: column;
     gap: var(--space-m);
}

.detail-lead {
     font-family: var(--font-serif);
     font-size: 18px;
     line-height: 1.6;
     color: var(--ink-soft);
     font-style: italic;
     max-width: var(--col-w);
}

.detail-cols {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: var(--space-xl);
}

.detail-col {
     display: flex;
     flex-direction: column;
     gap: var(--space-s);
}

.detail-label {
     font-size: 10px;
     font-weight: 600;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     color: var(--ink-muted);
     margin-bottom: var(--space-xs);
}

.detail-col p,
.detail-col ul {
     font-size: 14px;
     color: var(--ink-soft);
     line-height: 1.65;
}

.detail-list {
     display: flex;
     flex-direction: column;
     gap: var(--space-s);
     padding-left: var(--space-m);
}

.detail-list li {
     font-size: 14px;
     color: var(--ink-soft);
     line-height: 1.6;
     list-style: disc;
}

.detail-list li strong { color: var(--ink); }

.detail-note {
     font-size: 13px;
     color: var(--ink-muted);
     padding: var(--space-m) var(--space-l);
     background: var(--stone-50);
     border-radius: var(--radius-m);
     border-left: 2px solid var(--stone-200);
}

.detail-note a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

.detail-note-inline {
     font-size: 13px;
     color: var(--ink-muted);
     font-style: italic;
}

/* ----------------------------------------------------------
TAGS
---------------------------------------------------------- */
.tag-row {
     display: flex;
     flex-wrap: wrap;
     gap: var(--space-s);
     margin-top: var(--space-s);
}

.tag {
     font-size: 12px;
     font-weight: 400;
     color: var(--ink-soft);
     padding: 3px 10px;
     border: 1px solid var(--stone-200);
     border-radius: 100px;
     background: var(--white);
}

/* ----------------------------------------------------------
AGENT LAYERS
---------------------------------------------------------- */
.agent-layers {
     display: flex;
     flex-direction: column;
     gap: var(--space-m);
}

.agent-layer {
     display: grid;
     grid-template-columns: 140px 1fr;
     gap: var(--space-m);
     align-items: start;
     padding: var(--space-m) var(--space-l);
     background: var(--stone-50);
     border-radius: var(--radius-m);
}

.layer-tag {
     font-size: 10px;
     font-weight: 600;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     color: var(--ink-muted);
     padding-top: 2px;
}

.agent-layer p {
     font-size: 13px;
     color: var(--ink-soft);
     line-height: 1.55;
}

/* ----------------------------------------------------------
METRICS
---------------------------------------------------------- */
.metrics-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: var(--space-l);
     margin-bottom: var(--space-m);
}

.metric {
     display: flex;
     flex-direction: column;
     gap: 4px;
}

.metric-num {
     font-family: var(--font-serif);
     font-size: 36px;
     font-weight: 400;
     color: var(--ink);
     letter-spacing: -0.02em;
     line-height: 1;
}

.metric-label {
     font-size: 12px;
     color: var(--ink-muted);
     line-height: 1.4;
}

/* ----------------------------------------------------------
WRITING LINKS (inside Palik)
---------------------------------------------------------- */
.writing-links {
     display: flex;
     flex-wrap: wrap;
     gap: var(--space-s);
}

.writing-link {
     font-size: 13px;
     color: var(--ink-soft);
     border: 1px solid var(--stone-200);
     border-radius: var(--radius);
     padding: 6px 14px;
     transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.writing-link:hover {
     border-color: var(--ink);
     background: var(--stone-50);
}

/* ----------------------------------------------------------
WRITING LIST (redesigned compact writing section)
---------------------------------------------------------- */
.writing-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--stone-100);
}

.writing-list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-l);
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--stone-100);
}

.writing-list-item--plain {
  /* no link column — spans full width */
}

.writing-list-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.writing-list-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.writing-list-note {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  font-weight: 300;
}

.writing-list-link {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s var(--ease);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.writing-list-link:hover { color: var(--ink); }

/* ----------------------------------------------------------
VISUAL GALLERY (Palik social & visual work placeholder)
---------------------------------------------------------- */
.visual-gallery-block {
     display: flex;
     flex-direction: column;
     gap: var(--space-m);
     padding-top: var(--space-s);
}

.visual-gallery-label {
     font-size: 10px;
     font-weight: 600;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     color: var(--ink-muted);
}

.visual-gallery {
     display: flex;
     gap: var(--space-m);
     overflow-x: auto;
     padding-bottom: var(--space-s);
     -webkit-overflow-scrolling: touch;
     scrollbar-width: thin;
     scrollbar-color: var(--stone-200) transparent;
}

.visual-gallery::-webkit-scrollbar {
     height: 4px;
}

.visual-gallery::-webkit-scrollbar-track {
     background: transparent;
}

.visual-gallery::-webkit-scrollbar-thumb {
     background: var(--stone-200);
     border-radius: 2px;
}

.gallery-tile {
     flex: 0 0 200px;
     height: 250px;
     background: var(--stone-50);
     border: 1px solid var(--stone-100);
     border-radius: var(--radius-m);
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     padding: var(--space-l);
}

.gallery-tile-text {
     font-size: 12px;
     color: var(--stone-400);
     line-height: 1.5;
}

/* ----------------------------------------------------------
CONTINUUM
---------------------------------------------------------- */
.continuum {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: var(--space-m);
}

.continuum-item {
     padding: var(--space-l);
     border-radius: var(--radius-m);
     display: flex;
     flex-direction: column;
     gap: var(--space-s);
}

.continuum-item--strategic { background: #eef4ee; }
.continuum-item--hybrid { background: #f4f1ee; }
.continuum-item--symbolic { background: #fdf3ed; }

.continuum-label {
     font-size: 10px;
     font-weight: 600;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     color: var(--ink);
}

.continuum-item p {
     font-size: 13px;
     color: var(--ink-soft);
     line-height: 1.55;
}

/* ----------------------------------------------------------
WRITING SECTION
---------------------------------------------------------- */
.writing-section {
     display: flex;
     flex-direction: column;
     gap: var(--space-2xl);
}

.writing-category {
     display: flex;
     flex-direction: column;
     gap: var(--space-l);
}

.writing-category-title {
     font-family: var(--font-serif);
     font-size: 22px;
     font-weight: 400;
     color: var(--ink);
     letter-spacing: -0.01em;
}

.writing-category-desc {
     font-size: 14px;
     color: var(--ink-muted);
     max-width: 560px;
     line-height: 1.6;
}

.writing-samples {
     display: flex;
     flex-direction: column;
}

.writing-sample {
     padding: var(--space-l) 0;
     border-top: 1px solid var(--stone-100);
     display: flex;
     flex-direction: column;
     gap: var(--space-m);
}

.writing-sample:last-child { border-bottom: 1px solid var(--stone-100); }

.writing-sample-header {
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     gap: var(--space-m);
     flex-wrap: wrap;
}

.writing-sample-label {
     font-size: 15px;
     font-weight: 500;
     color: var(--ink);
}

.writing-sample-link {
     font-size: 13px;
     color: var(--ink-muted);
     text-decoration: underline;
     text-underline-offset: 3px;
     transition: color 0.15s var(--ease);
}

.writing-sample-link:hover { color: var(--ink); }

.writing-sample-note {
     font-size: 12px;
     color: var(--ink-muted);
}

.writing-quote {
     font-family: var(--font-serif);
     font-size: 17px;
     font-style: italic;
     color: var(--ink-soft);
     line-height: 1.6;
     padding-left: var(--space-l);
     border-left: 2px solid var(--stone-200);
     max-width: 600px;
}

.writing-context {
     font-size: 13px;
     color: var(--ink-muted);
     line-height: 1.6;
     max-width: 560px;
}

.writing-divider {
     height: 1px;
     background: var(--stone-100);
}

/* ----------------------------------------------------------
ABOUT
---------------------------------------------------------- */
.about-grid {
     max-width: var(--col-w);
}

.about-para {
     font-size: 16px;
     line-height: 1.75;
     color: var(--ink-soft);
     margin-bottom: var(--space-l);
}

.about-para:first-child {
     font-family: var(--font-serif);
     font-size: 22px;
     font-style: italic;
     color: var(--ink);
     line-height: 1.5;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-l) 0 0 0;
  border-top: 1px solid var(--stone-100);
  margin-top: var(--space-l);
}

.about-detail-row {
     display: grid;
     grid-template-columns: 100px 1fr;
     gap: var(--space-l);
     align-items: start;
}

.about-detail-label {
     font-size: 10px;
     font-weight: 600;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     color: var(--ink-muted);
     padding-top: 2px;
}

.about-detail-value {
     font-size: 14px;
     color: var(--ink-soft);
     line-height: 1.5;
}

/* ----------------------------------------------------------
CERTIFICATIONS TOGGLE
---------------------------------------------------------- */
.certifications {
     margin-top: 0;
     border-top: none;
     padding-top: 0;
}

.certs-toggle {
     font-size: 13px;
     font-weight: 400;
     color: var(--ink-muted);
     display: flex;
     align-items: center;
     gap: var(--space-s);
     transition: color 0.15s var(--ease);
     padding: var(--space-xs) 0;
}

.certs-toggle:hover { color: var(--ink); }

.certs-arrow {
     display: inline-block;
     transition: transform 0.25s var(--ease);
     font-size: 12px;
}

.certs-toggle[aria-expanded="true"] .certs-arrow {
     transform: rotate(180deg);
}

.certs-list {
     display: none;
     flex-direction: column;
     gap: var(--space-s);
     margin-top: var(--space-m);
     padding: var(--space-l);
     background: var(--stone-50);
     border-radius: var(--radius-m);
}

.certs-list.open { display: flex; }

.cert-row {
     display: grid;
     grid-template-columns: 80px 1fr;
     gap: var(--space-m);
     font-size: 13px;
}

.cert-issuer { font-weight: 500; color: var(--ink); }
.cert-name { color: var(--ink-soft); }

/* ----------------------------------------------------------
CONTACT
---------------------------------------------------------- */
.contact-block {
     display: flex;
     flex-direction: column;
     gap: var(--space-l);
     max-width: 600px;
}

.contact-headline {
     font-family: var(--font-serif);
     font-size: clamp(32px, 4vw, 48px);
     font-weight: 400;
     line-height: 1.2;
     letter-spacing: -0.02em;
     color: var(--ink);
}

.contact-links {
     display: flex;
     flex-direction: column;
     gap: var(--space-s);
}

.contact-link {
     font-size: 15px;
     color: var(--ink-muted);
     transition: color 0.15s var(--ease);
}

.contact-link:hover { color: var(--ink); }

/* ----------------------------------------------------------
FOOTER
---------------------------------------------------------- */
.footer {
     padding: var(--space-xl);
     border-top: 1px solid var(--stone-100);
     margin-top: var(--space-3xl);
}

.footer-inner {
     max-width: var(--max-w);
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 13px;
     color: var(--ink-muted);
}

/* ----------------------------------------------------------
RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 900px) {
     .nav-links { display: none; }
     .nav-menu-btn { display: flex; }
     .nav-inner { padding: 0 var(--space-l); }

  .hero {
         padding-top: 96px;
         padding-bottom: var(--space-3xl);
         padding-left: var(--space-l);
         padding-right: var(--space-l);
  }

  .hero-inner {
         grid-template-columns: 1fr;
         gap: var(--space-2xl);
  }

  .hero-photo { order: -1; justify-content: flex-start; }
     .hero-img { width: 160px; height: 200px; }

  .work-row {
         grid-template-columns: 1fr 28px;
         gap: var(--space-m);
  }

  .work-meta { display: none; }
     .work-detail-inner { padding-left: 0; max-width: 100%; overflow-x: hidden; }
     .detail-cols { grid-template-columns: 1fr; }
     .metrics-grid { grid-template-columns: 1fr 1fr; }
     .continuum { grid-template-columns: 1fr; }
     .agent-layer { grid-template-columns: 1fr; }
     .about-detail-row { grid-template-columns: 1fr; gap: var(--space-xs); }

  .section { padding: var(--space-2xl) var(--space-l); }
     .footer { padding: var(--space-l); }

  .gallery-tile { flex: 0 0 160px; height: 200px; }
  .writing-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
  }
  .writing-list-link { align-self: flex-start; }
}

@media (max-width: 600px) {
     .hero-headline { font-size: 38px; }
     .contact-headline { font-size: 28px; }
     .section-title { font-size: 26px; }
     .metrics-grid { grid-template-columns: 1fr 1fr; }
     .hero-actions { flex-direction: column; }
     .hero-actions a { text-align: center; justify-content: center; }
     .metric-num { font-size: 30px; }
     .gallery-tile { flex: 0 0 140px; height: 180px; }
}

/* ----------------------------------------------------------
REDUCED MOTION
---------------------------------------------------------- */

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

/* Architecture Diagram */
.architecture-diagram {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.architecture-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ââ Position Pilot Featured Section âââââââââââââââââââââââââââ */
.pp-featured {
  border-top: 1px solid var(--stone-100);
}

.pp-hero {
  margin-bottom: var(--space-xl);
}

.pp-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-m);
}

.pp-tagline {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: var(--space-xl);
}

.pp-links {
  display: flex;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.pp-expand-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-l) 0;
  border-top: 1px solid var(--stone-100);
  border-bottom: 1px solid var(--stone-100);
  cursor: pointer;
  transition: opacity 0.15s ease;
  margin-top: var(--space-xl);
}

.pp-expand-toggle:hover { opacity: 0.6; }

.pp-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.pp-toggle-icon {
  font-size: 22px;
  color: var(--ink);
  font-weight: 300;
  transition: transform 0.25s ease;
}

.pp-expand-toggle[aria-expanded="true"] .pp-toggle-icon {
  transform: rotate(45deg);
  color: var(--ink);
}

.pp-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.pp-detail.open {
  grid-template-rows: 1fr;
}

.pp-detail-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
}

.pp-detail-inner::after {
  content: '';
  display: block;
  height: var(--space-2xl);
}


/* ----------------------------------------------------------
   PALIK CAROUSEL
   ---------------------------------------------------------- */
.palik-carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.carousel-track {
  display: block;
  position: relative;
  width: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-m);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--stone-100);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: cover;
  object-position: top;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-l);
}

.carousel-btn {
  font-size: 18px;
  color: var(--ink-muted);
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--stone-200);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.carousel-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.carousel-dots {
  display: flex;
  gap: var(--space-s);
  align-items: center;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stone-200);
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-dot.active {
  background: var(--ink);
}

/* ----------------------------------------------------------
   LIGHTBOX
   ---------------------------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 560px;
  max-height: 85vh;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-m);
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: white;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.lightbox-prev { left: var(--space-xl); }
.lightbox-next { right: var(--space-xl); }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 600px) {
  .lightbox-img { max-width: 100%; }
  .lightbox-prev { left: var(--space-m); }
  .lightbox-next { right: var(--space-m); }
}
