/* editorial.css — "Executive editorial" layout for aartimkarande.in (v1, 2026-11-07).
   Loaded after modern.css and motion.css. Remove the <link> to revert to the previous look. */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ak-display: "Playfair Display", "Source Serif 4", Georgia, serif;
  --ak-body: "Inter", "Public Sans", system-ui, sans-serif;
  --ak-navy: #0a1f3c;
  --ak-gold: #b8862b;
  --ak-gold-soft: #f3ead8;
  --ak-ivory: #faf8f4;
  --ak-line: #e7e2d8;
  --ak-tint: #f4f1ea;
}
body { font-family: var(--ak-body); background: #fff; color: #1d2733; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--ak-display); letter-spacing: -.01em; }
::selection { background: var(--ak-gold-soft); color: var(--ak-navy); }

/* ---------- top bar + header ---------- */
.utility-bar { background: #071630; font-size: .78rem; letter-spacing: .02em; padding: .38rem 0; }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ak-line); box-shadow: none; }
.site-header::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--ak-gold) 20%, var(--ak-gold) 80%, transparent); opacity: .55; }
.site-header .navbar { --bs-navbar-padding-y: 1rem; }
@media (min-width: 1200px) {
  .site-header .nav-link { text-transform: uppercase; font-size: .76rem; letter-spacing: .09em; font-weight: 600; color: #34404f; white-space: nowrap; padding: .5rem .7rem !important; }
  .site-header .navbar-nav { gap: .1rem; }
}
.site-header .btn-primary-ak { background: transparent; color: var(--ak-navy); border: 1.5px solid var(--ak-navy); border-radius: 999px; padding: .55rem 1.15rem; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.site-header .btn-primary-ak:hover { background: var(--ak-navy); color: #fff; }
.brand-text strong { font-family: var(--ak-display); font-size: 1.22rem; letter-spacing: -.005em; }
.brand-text small { letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; color: var(--ak-gold); font-weight: 600; }

/* ---------- buttons & links ---------- */
.btn-primary-ak { border-radius: 999px; letter-spacing: .04em; }
.btn-outline-ak, .btn-light { border-radius: 999px; }
.link-arrow, .ed-link { color: var(--ak-navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ak-gold); padding-bottom: 2px; }
.ed-link:hover { color: var(--ak-gold); }

/* ---------- section heads ---------- */
.section { padding: 6rem 0; }
.section-tint { background: var(--ak-ivory); }
.eyebrow { font-family: var(--ak-body); font-size: .74rem !important; letter-spacing: .22em !important; text-transform: uppercase; color: var(--ak-gold) !important; font-weight: 700; }
.section-head h2, .section-title, main h2 { font-size: clamp(1.9rem, 1.2rem + 1.9vw, 2.9rem); font-weight: 600; color: var(--ak-navy); line-height: 1.12; }
.section-head p { font-size: 1.05rem; color: #5b6676; }
.section-title { position: relative; padding-bottom: .65rem; margin-bottom: 1.4rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; background: var(--ak-gold); }

/* ---------- inner page header (editorial masthead) ---------- */
.page-hero { background: var(--ak-ivory) !important; background-image: none !important; border-bottom: 1px solid var(--ak-line); padding: 4.5rem 0 3.5rem !important; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -6rem; top: -6rem; width: 26rem; height: 26rem; border-radius: 50%; border: 1px solid rgba(184,134,43,.25); }
.page-hero::after { content: ""; position: absolute; right: 4rem; top: 3rem; width: 12rem; height: 12rem; border-radius: 50%; background: radial-gradient(circle, rgba(184,134,43,.12), transparent 70%); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem); font-weight: 600; color: var(--ak-navy); line-height: 1.05; margin: .6rem 0 .9rem; }
.page-hero p, .page-hero .lead { font-family: var(--ak-display); font-style: italic; font-size: 1.22rem; color: #4d5868; max-width: 46rem; }
.page-hero .breadcrumb { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.page-hero .breadcrumb a { color: var(--ak-gold); text-decoration: none; }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- cards ---------- */
.area, .prose-card, .contact-card, .award, .side-nav, .glance {
  border-radius: 6px !important; box-shadow: none !important; border: 1px solid var(--ak-line) !important; background: #fff;
}
.area, .prose-card, .award, .contact-card { position: relative; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.area::before, .prose-card::before, .award::before, .contact-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--ak-gold); transition: width .45s ease;
}
.area:hover, .prose-card:hover, .award:hover, .contact-card:hover { transform: translateY(-4px); border-color: #d9cfbd !important; box-shadow: 0 18px 40px -22px rgba(10,31,60,.35) !important; }
.area:hover::before, .prose-card:hover::before, .award:hover::before, .contact-card:hover::before { width: 100%; }
.area .ic { background: var(--ak-gold-soft) !important; color: var(--ak-gold) !important; border-radius: 50% !important; }
.area h3, .prose-card h3, .award h3 { font-size: 1.3rem; color: var(--ak-navy); }
.prose-card { padding: 1.8rem 2rem !important; }

/* ---------- vertical timeline with gold dots ---------- */
.tl-title { letter-spacing: .2em !important; color: var(--ak-gold) !important; margin-bottom: 1.6rem !important; }
#career .col-lg-6 { position: relative; }
.tl-item { position: relative; padding: 0 0 2.1rem 2.4rem !important; margin: 0 !important; border: 0 !important; }
.tl-item::before { content: "" !important; position: absolute !important; left: 7px !important; top: 6px !important; bottom: -6px !important; width: 2px !important; height: auto !important; border: 0 !important; border-radius: 0 !important; background: linear-gradient(var(--ak-line), var(--ak-line)) !important; box-shadow: none !important; }
.tl-item:last-child::before { bottom: auto !important; height: 1.4rem !important; }
.tl-item::after { content: "" !important; position: absolute !important; left: 0 !important; top: 4px !important; width: 16px !important; height: 16px !important; border-radius: 50% !important; background: #fff !important; border: 3px solid var(--ak-gold) !important; box-shadow: 0 0 0 4px #fff !important; transition: transform .3s ease, background .3s ease; }
.tl-item.current::after, .tl-item:hover::after { background: var(--ak-gold) !important; transform: scale(1.15); }
.tl-item .when { font-family: var(--ak-body); font-size: .74rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ak-gold) !important; font-weight: 700; }
.tl-item h4 { font-family: var(--ak-display); font-size: 1.3rem !important; color: var(--ak-navy); margin: .25rem 0 .2rem; }
.tl-item .org { font-weight: 600; color: #3d4757; }
.tl-item p { color: #5b6676; }

/* ---------- figures strip ---------- */
.figures { background: #fff !important; color: var(--ak-navy) !important; border-top: 1px solid var(--ak-line); border-bottom: 1px solid var(--ak-line); }
.figure { padding: 2.6rem 1rem !important; }
.figure .num { color: var(--ak-navy); font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem) !important; font-weight: 600 !important; }
.figure p { color: #5b6676 !important; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem !important; font-weight: 600; }
.figures .col + .col .figure { border-left: 1px solid var(--ak-line) !important; }
@media (max-width: 991.98px) { .figures .col .figure { border-top: 1px solid var(--ak-line) !important; } }

/* ---------- ticker ---------- */
.ticker { background: var(--ak-ivory) !important; border-bottom: 1px solid var(--ak-line); }
.ticker .tick { font-family: var(--ak-display); font-style: italic; color: #3d4757 !important; }

/* ---------- home: editorial masthead ---------- */
.masthead { position: relative; padding: 5.5rem 0 4.5rem; background: var(--ak-ivory); overflow: hidden; }
.masthead::before { content: ""; position: absolute; left: -10rem; bottom: -14rem; width: 34rem; height: 34rem; border-radius: 50%; border: 1px solid rgba(184,134,43,.22); }
.mh-kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--ak-gold); }
.mh-kicker::before { content: ""; width: 40px; height: 2px; background: var(--ak-gold); }
.mh-name { font-family: var(--ak-display); font-weight: 600; color: var(--ak-navy); font-size: clamp(2.8rem, 1.4rem + 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; margin: 1.1rem 0 1.3rem; }
.mh-name em { font-style: italic; color: var(--ak-gold); font-weight: 500; }
.mh-lead { font-size: 1.15rem; line-height: 1.7; color: #4a5565; max-width: 34rem; }
.mh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.mh-cta .btn-primary-ak { padding: .85rem 1.7rem; }
.mh-portrait { position: relative; margin: 0; max-width: 440px; margin-left: auto; }
.mh-portrait::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1.5px solid var(--ak-gold); border-radius: 220px 220px 8px 8px; z-index: 0; }
.mh-portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 220px 220px 8px 8px; box-shadow: 0 30px 60px -30px rgba(10,31,60,.45); }
.mh-portrait figcaption { position: absolute; z-index: 2; left: -1.5rem; bottom: 2rem; background: #fff; border: 1px solid var(--ak-line); border-radius: 6px; padding: .8rem 1.1rem; font-size: .85rem; color: #3d4757; box-shadow: 0 14px 30px -18px rgba(10,31,60,.4); }
.mh-portrait figcaption strong { display: block; font-family: var(--ak-display); font-size: 1.05rem; color: var(--ak-navy); }
@media (max-width: 991.98px) { .masthead { padding: 3.5rem 0 3rem; } .mh-portrait { margin: 2.5rem auto 0; max-width: 340px; } .mh-portrait figcaption { left: .5rem; } }

/* ---------- home: highlights banner framed as a feature panel ---------- */
.hl-head { padding-top: 5rem; padding-bottom: 1.6rem; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.hl-head h2 { margin: .4rem 0 0; }
.masthead ~ .hs { margin: 0 auto 1rem; width: calc(100% - 32px); max-width: 1296px; border-radius: 14px; }
.masthead ~ .hs .hs-slides { height: clamp(440px, 64vh, 620px); }
.hs-card { border-radius: 8px; }
.hs-title { font-family: var(--ak-display) !important; font-weight: 600 !important; }

/* ---------- tables (talks, papers, workshops …) ---------- */
main table { border-collapse: separate !important; border-spacing: 0; border: 1px solid var(--ak-line); border-radius: 8px; overflow: hidden; background: #fff; }
main table thead th { background: var(--ak-ivory) !important; color: var(--ak-navy) !important; font-family: var(--ak-body); font-size: .7rem !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; border-bottom: 2px solid var(--ak-gold) !important; padding: 1rem .9rem !important; }
main table tbody td { border-color: #f0ece4 !important; padding: .95rem .9rem !important; font-size: .93rem; vertical-align: top; }
main table tbody tr { transition: background-color .2s; }
main table tbody tr:hover { background: #fcfaf5 !important; }
main table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--ak-gold); }
main input[type="search"], main .table-filter input, main input.form-control { border-radius: 999px; border: 1px solid var(--ak-line); padding: .6rem 1.1rem; }

/* ---------- side navigation on inner pages ---------- */
.side-nav { overflow: hidden; }
.side-nav .list-group-item, .side-nav a { border: 0 !important; border-left: 3px solid transparent !important; border-radius: 0 !important; font-size: .9rem; transition: border-color .2s, background .2s, padding .2s; }
.side-nav a:hover { border-left-color: var(--ak-gold) !important; background: var(--ak-ivory) !important; padding-left: 1.4rem; }
.side-nav a.active, .side-nav .active { border-left-color: var(--ak-gold) !important; background: var(--ak-gold-soft) !important; color: var(--ak-navy) !important; font-weight: 600; }
.side-nav h2, .side-nav h3, .side-nav .title, .side-nav > :first-child:not(a) { background: var(--ak-navy) !important; letter-spacing: .18em; }

/* ---------- about: quals list ---------- */
.quals li { border-bottom: 1px dashed var(--ak-line); padding: .7rem 0; }
.quals .bi { color: var(--ak-gold) !important; }

/* ---------- gallery tabs: editorial underline tabs ---------- */
.gallery-tabs { border-bottom: 1px solid var(--ak-line); gap: .4rem; padding-bottom: 0; }
.gallery-tabs .nav-link { border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #4a5565 !important; position: relative; padding: .8rem 1rem !important; margin: 0 !important; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.gallery-tabs .nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 3px; background: var(--ak-gold); transform: scaleX(0); transition: transform .3s ease; }
.gallery-tabs .nav-link:hover { color: var(--ak-navy) !important; }
.gallery-tabs .nav-link.active { color: var(--ak-navy) !important; }
.gallery-tabs .nav-link.active::after, .gallery-tabs .nav-link:hover::after { transform: scaleX(1); }
.gallery-tabs .gcount { background: var(--ak-gold-soft) !important; color: var(--ak-gold) !important; }
.gallery-item { border-radius: 6px !important; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--ak-navy) !important; border-radius: 10px !important; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -4rem; top: -4rem; width: 16rem; height: 16rem; border-radius: 50%; border: 1px solid rgba(184,134,43,.45); }
.cta-band h2, .cta-band h3 { color: #fff !important; font-style: italic; }
.site-footer { background: #071630 !important; border-top: 3px solid var(--ak-gold); }
.site-footer h6, .site-footer h5 { color: var(--ak-gold) !important; letter-spacing: .2em; }
.brand-footer .brand-text strong { color: #fff; font-size: 1.35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- motion for the masthead ---------- */
.masthead .mh-kicker, .masthead .mh-name, .masthead .mh-lead, .masthead .mh-cta { animation: edUp .8s cubic-bezier(.2,.8,.2,1) backwards; }
.masthead .mh-name { animation-delay: .12s; }
.masthead .mh-lead { animation-delay: .24s; }
.masthead .mh-cta { animation-delay: .36s; }
.mh-portrait { animation: edPortrait 1.1s cubic-bezier(.2,.8,.2,1) .2s backwards; }
@keyframes edUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes edPortrait { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .masthead *, .mh-portrait { animation: none !important; } }
