/* Nauraiz Rana website: shared styles
   Colours: cream #F6F2E9, navy #10243E, gold #B8842A, light gold #D9A94A,
   accent #8A5A0B, grey #4E5B6C, rule #CFC7B4. Fonts: Fraunces (headings), Public Sans (body). */

:root {
  --cream: #F6F2E9;
  --navy: #10243E;
  --gold: #B8842A;
  --gold-light: #D9A94A;
  --gold-bright: #E1B661;
  --accent: #8A5A0B;
  --grey: #4E5B6C;
  --grey-light: #C9D2DC;
  --rule: #CFC7B4;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-weight: 400; }
.serif { font-family: var(--serif); }
.it { font-style: italic; color: var(--accent); }
.muted { color: var(--grey); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* Top strip and sticky header */
.topstrip { background: var(--navy); color: var(--cream); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 9px 32px; }
.sticky { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 233, 0.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); box-shadow: 0 6px 18px -14px rgba(16, 36, 62, 0.45); }
.site-head { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; padding: 18px 32px; }
.site-name { font-family: var(--serif); font-size: 22px; font-weight: 600; text-decoration: none; }
.site-name span { font-style: italic; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.m-menu { display: none; }
.m-menu > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; }
.m-menu > summary::-webkit-details-marker { display: none; }
.m-menu > summary span { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.m-menu[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-menu[open] > summary span:nth-child(2) { opacity: 0; }
.m-menu[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.m-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-top: 1px solid var(--rule); border-bottom: 2px solid var(--navy); padding: 6px 20px 18px; display: flex; flex-direction: column; box-shadow: 0 18px 30px -20px rgba(16, 36, 62, .5); }
.m-panel a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 20px; text-decoration: none; }
.m-panel a:last-child { border-bottom: none; }
.m-panel a[aria-current="page"] { color: var(--accent); }

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.label-lg { font-size: 20px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); padding-bottom: 28px; }
.label-sm { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -0.01em; line-height: 1.15; }
.h2-sm { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; }
.num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.page-head { display: flex; flex-direction: column; gap: 18px; padding: 64px 0 40px; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: baseline; padding-bottom: 32px; }
.side-head { display: flex; flex-wrap: wrap; gap: 32px; padding: 56px 0; border-top: 1px solid var(--rule); }
.side-head > h2 { flex: 1 1 220px; }
.side-head > .side-body { flex: 999 1 600px; min-width: 0; }
.link-strong { font-size: 14px; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; background: var(--navy); color: var(--cream); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { color: var(--gold-light); }
.btn-outline { display: inline-block; padding: 13px 24px; border: 1px solid var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }

/* Grids and rows */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 28px; }
.row { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.rows > .row:last-child { border-bottom: 1px solid var(--rule); }
.row .when { width: 130px; font-size: 13px; letter-spacing: 0.06em; color: var(--grey); }
.row .what { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .what strong { font-weight: 600; }
.row .more { font-size: 13px; font-weight: 600; text-decoration: underline; }
.row .row-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.row .links { display: flex; gap: 16px; font-size: 13px; font-weight: 600; }

/* Areas of expertise */
.area { border-top: 2px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.area-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.area ul { margin: 0; padding-left: 18px; color: var(--grey); display: flex; flex-direction: column; gap: 4px; }
.band { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; margin-top: 32px; padding: 20px 24px; background: var(--navy); color: var(--cream); }
.band .label-sm { color: var(--gold-light); letter-spacing: 0.2em; }

/* Home hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 80px 0 72px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.hero .lede { margin: 0; max-width: 600px; font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.portrait { flex: 0 1 290px; max-width: 290px; min-width: 0; }
.portrait img { display: block; width: 100%; height: auto; }

/* Experience band (home) */
.xp { background: var(--navy); color: var(--cream); padding: 64px 0; }
.xp .h2 em { color: var(--gold-light); }
.xp-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.xp-card { flex: 0 0 260px; border-top: 2px solid var(--gold-light); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.xp-card .when { font-size: 12px; letter-spacing: 0.14em; color: var(--grey-light); text-transform: uppercase; }
.xp-card .title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.xp-card .org { margin-top: 6px; font-size: 18px; font-weight: 500; color: var(--gold-bright); }

/* Publication rows */
.pub { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.pubs > .pub:last-child { border-bottom: 1px solid var(--rule); }
.pub .type { width: 130px; }
.pub .title { flex: 999 1 420px; min-width: 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.pub .src { flex: 1 1 180px; font-size: 14px; color: var(--grey); }
.pub-list .pub .n { width: 44px; font-family: var(--serif); font-size: 22px; color: var(--gold); }
.pub-list .pub .type { width: 110px; }
.pub-list .pub .body { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pub-list .pub .title { font-size: 23px; flex: none; }
.pub-list .pub .cta { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-top: 2px solid var(--navy); }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid var(--navy); background: transparent; color: var(--navy); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); }

/* Video and article cards */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 36, 62, .35), rgba(16, 36, 62, 0) 55%); }
.thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: rgba(16, 36, 62, .82); display: flex; align-items: center; justify-content: center; }
a:hover .thumb img { transform: scale(1.03); }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card .title { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.outlet-card { aspect-ratio: 16 / 9; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-light); position: relative; overflow: hidden; }
.outlet-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; background: var(--navy); transition: transform .3s; }
a:hover .outlet-card img { transform: scale(1.03); }

/* Gallery */
.gallery { columns: 3 300px; column-gap: 28px; }
.gallery figure { margin: 0 0 28px; break-inside: avoid; display: flex; flex-direction: column; gap: 10px; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { font-size: 14px; line-height: 1.5; color: var(--grey); }

/* Contact */
.contact-wrap { display: flex; flex-wrap: wrap; gap: 64px; padding: 64px 0 72px; }
.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.contact-rows > .contact-row:last-child { border-bottom: 1px solid var(--rule); }
.contact-row .label-sm { width: 120px; }
.form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 36px; background: #fff; border: 1px solid var(--rule); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: 0 14px; height: 48px; border: 1px solid var(--navy); background: #fff; font: inherit; color: var(--navy); border-radius: 0; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: #1F5A4A; }
.form-status.err { color: #7A2E1F; }
.hp { position: absolute; left: -9999px; }

/* Role page */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.tab { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.tab[aria-current="true"] { background: var(--navy); color: var(--cream); }
.role { display: none; }
.role.is-active { display: block; }
.no-js .role { display: block; border-bottom: 1px solid var(--rule); }
.role-head { display: flex; flex-direction: column; gap: 16px; padding: 56px 0 48px; }
.role-head h1 { margin: 0; max-width: 900px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.role-org { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); }
.role-body { display: flex; flex-wrap: wrap; gap: 56px; padding: 48px 0; border-top: 2px solid var(--navy); }
.role-points { flex: 999 1 560px; min-width: 0; }
.point { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule); }
.points > .point:last-child { border-bottom: 1px solid var(--rule); }
.point .n { width: 44px; flex-shrink: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--gold); }
.point .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.55; }
.point .sub { padding-left: 14px; border-left: 2px solid var(--gold-light); font-size: 15px; line-height: 1.5; color: var(--grey); }
.role-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding: 28px; background: var(--navy); color: var(--cream); align-self: flex-start; }
.role-aside .label-sm { color: var(--gold-light); letter-spacing: 0.2em; padding-bottom: 6px; display: block; }
.role-aside a { color: var(--cream); font-size: 14px; font-weight: 600; }

/* Restricted notice */
.notice { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; padding: 36px 36px 40px; background: var(--navy); color: var(--cream); }
.notice .label-sm { color: var(--gold-light); letter-spacing: 0.2em; }
.notice p { margin: 0; color: var(--grey-light); max-width: 640px; }
.notice .lead { font-family: var(--serif); font-size: 24px; line-height: 1.35; color: var(--cream); }
.notice a { color: var(--gold-light); }

/* Footer */
.site-foot { background: var(--navy); color: var(--cream); }
.site-foot .wrap { padding-top: 32px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; }
.site-foot a { color: var(--gold-light); }
.site-foot a:hover { color: var(--cream); }
.site-foot .place { color: var(--grey-light); }

/* Phone */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .topstrip { padding: 9px 20px; }
  .site-head { flex-wrap: nowrap; align-items: center; padding: 10px 20px; }
  .site-name { white-space: nowrap; font-size: 20px; }
  .site-nav { display: none; }
  .m-menu { display: block; }
  .hero { padding-top: 28px; gap: 20px; }
  .hero-text { display: contents; }
  .hero-label { order: 1; flex: 1 1 100%; }
  .hero .portrait { order: 2; margin-top: 6px; }
  .hero-text > h1 { order: 3; flex: 1 1 100%; }
  .hero-text > .lede { order: 4; flex: 1 1 100%; }
  .hero-cta { order: 5; flex: 1 1 100%; }
  .form { padding: 24px; }
  .notice { padding: 28px 24px 32px; }
}
@media (min-width: 721px) {
  .profile-portrait { margin-top: 58px; }
}
