/* ==========================================================
   tasheenkhan.com — Tasheen Uzzaman Khan
   Static, dependency-free stylesheet (see SITE_SPEC.md §3)
   ========================================================== */

:root {
  /* Surfaces */
  --bg: #F8F9F7;
  --surface: #FFFFFF;
  --mint: #E9F0ED;
  --mint-card: #EFF5F2;
  --line: #DFE8E4;

  /* Ink */
  --ink: #132630;
  --text: #4C5E66;
  --muted: #5F7178;  /* spec #64767E, darkened slightly for WCAG AA on mint */

  /* Teal */
  --teal-btn: #185C66;
  --teal-btn-hover: #134B54;
  --teal: #197E8C;
  --teal-accent: #27B7C4;
  --teal-dark: #17616B;

  /* Dark sections */
  --navy-approach: #122C34;
  --navy-contact: #132C34;
  --navy-footer: #0B1C24;
  --navy-card: #173740;
  --navy-line: #2C4A53;
  --navy-text: #B8C9CD;

  /* Type */
  --font-sans: "Inter", "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;

  /* Layout */
  --container: 1130px;
  --gutter: 36px;
  --section-y: clamp(64px, 9vw, 96px);
  --header-h: 76px;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--teal-accent); }
main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 26px;
  height: 1.5px;
  background: var(--teal-accent);
}
.eyebrow-on-dark { color: var(--teal-accent); }
.eyebrow-center { justify-content: center; }

.section-title {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 22px;
  text-wrap: balance;
}

.prose {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.prose + .prose { margin-top: 16px; }

.arrow { display: inline-block; font-weight: 500; transition: transform .2s; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:hover .arrow-down { transform: translateY(2px); }

.btn-primary { background: var(--teal-btn); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-btn-hover); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { border-color: #BFD0CA; }

.btn-light { background: #EAF3F1; color: var(--ink); }
.btn-light:hover { background: #FFFFFF; }

.btn-outline-light {
  border-color: rgba(220, 236, 232, .5);
  color: #FFFFFF;
}
.btn-outline-light:hover { border-color: rgba(220, 236, 232, .9); background: rgba(255, 255, 255, .05); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #CCD9D4;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.btn-pill:hover { background: var(--surface); border-color: #AFC3BC; }
.btn-pill:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 247, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-bottom: 2px;
}
.brand-mark span { color: var(--teal-accent); }
.brand-name { color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 34px;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--teal-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, background-color .2s;
}
.menu-toggle-bars { top: 50%; margin-top: -1px; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(40px, 7vw, 84px) var(--section-y); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-title {
  margin-bottom: 28px;
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.hero-title-sans {
  display: block;
  color: var(--ink);
  font-weight: 750;
}
.hero-title-serif {
  display: block;
  color: var(--teal);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 540px;
  text-wrap: pretty;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.hero-body {
  max-width: 500px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Portrait artwork */
.portrait {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px 150px 8px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .34) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .34) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, #DCECE8 0%, #B5D3CA 55%, #80ADA7 100%);
}
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(19, 38, 48, .55);
  font-family: var(--font-serif);
  font-size: clamp(80px, 10vw, 128px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.portrait-photo {
  position: absolute;
  inset: 9% 9% 0 9%;
  z-index: 1;
  width: 82%;
  height: 91%;
  object-fit: cover;
  object-position: 48% 40%;
  border-radius: 6px 118px 0 0;
}
.portrait-badge {
  position: absolute;
  right: -18px;
  bottom: 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(11, 28, 36, .6);
}
.portrait-badge-label {
  color: var(--teal-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.portrait-badge-value { color: #FFFFFF; font-size: 15px; font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-white { background: var(--surface); }
.section-dark { background: var(--navy-approach); }
.section-dark .section-title { color: #FFFFFF; }
.section-dark .prose { color: var(--navy-text); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.split-main { max-width: 500px; }

/* ---------- 01 Current work ---------- */

.section-work { padding-top: calc(var(--section-y) * .5); }
.section-work .section-title { margin-bottom: 40px; }

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.feature-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 28px 32px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(39, 183, 196, .10), transparent 60%),
    var(--navy-approach);
}
.feature-bars {
  position: absolute;
  inset: 0 0 56px 0;
  width: 100%;
  height: calc(100% - 56px);
}
.feature-flow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #DCE7E4;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .01em;
}
.flow-arrow { color: var(--teal-accent); }

.feature-body { padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); }
.feature-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.feature-lead {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.feature-text { margin-bottom: 24px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.feature-subhead {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pills li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F3F7F5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-btn);
  font-size: 15px;
  font-weight: 650;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.text-link:hover { border-bottom-color: currentColor; }
.text-link:hover .arrow { transform: translate(2px, -2px); }

.secondary-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 22px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.secondary-note strong { color: var(--ink); font-weight: 650; }

/* ---------- 02 Approach ---------- */

.section-approach .split-main { padding-top: 4px; }
.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  background: rgba(23, 55, 64, .55);
  transition: border-color .25s;
}
.step:hover { border-color: #3F6670; }
.step-num {
  color: var(--teal-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.step-title {
  margin-bottom: 4px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.step-text { color: var(--navy-text); font-size: 14px; line-height: 1.7; }

/* ---------- 03 Communication & education ---------- */

.split-education { align-items: center; }
.stats-card {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px);
  border: 1px solid #D6E5DF;
  border-radius: 16px;
  background: var(--mint-card);
}
.stats-title {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  text-transform: uppercase;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
}
.stats > .stat { border-bottom: 1px solid #D3E2DC; }
.stat-num {
  color: var(--teal-dark);
  font-size: clamp(38px, 4.4vw, 50px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 14px; line-height: 1.45; }
.stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.stats-row .stat { padding-bottom: 4px; }

/* ---------- 04 Background ---------- */

.section-background { background: var(--bg); }
.split-background .section-title { max-width: 440px; }
.split-background .prose { padding-top: 32px; }
.facts { margin-top: 30px; border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt { color: var(--teal); font-size: 14px; font-weight: 650; }
.fact dd { color: var(--ink); font-size: 15px; line-height: 1.6; }

/* ---------- Principle ---------- */

.principle { background: var(--mint); padding-block: clamp(56px, 8vw, 84px); }
.split-principle { align-items: center; }
.principle-statement {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.principle .prose { color: #586B72; max-width: 470px; }

/* ---------- 05 Connect ---------- */

.section-connect { background: var(--navy-contact); padding-block: clamp(72px, 10vw, 104px); }
.connect { text-align: center; }
.connect .section-title { max-width: 760px; margin-inline: auto; margin-bottom: 18px; }
.connect-text {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--navy-text);
  font-size: 16px;
  line-height: 1.8;
}
.connect-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-footer); padding-block: 34px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.footer-name { color: #FFFFFF; font-size: 15px; font-weight: 700; }
.footer-copy { margin-top: 2px; color: #FFFFFF; font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { color: #C3D0D4; font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: #FFFFFF; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav-links { gap: 24px; }
}

@media (max-width: 880px) {
  :root { --gutter: 24px; --header-h: 68px; }

  /* Without JS the nav simply wraps below the brand. */
  .header-inner { flex-wrap: wrap; row-gap: 4px; padding-block: 10px; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 12px 20px; }
  .nav-links { margin-inline: 0; gap: 20px; flex-wrap: wrap; }

  /* With JS: collapsible panel. */
  .js .header-inner { flex-wrap: nowrap; padding-block: 0; }
  .js .menu-toggle { display: block; }
  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(19, 38, 48, .4);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-links { flex-direction: column; gap: 0; }
  .js .nav-links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .js .nav-links a::after { display: none; }
  .js .site-nav .btn-pill { align-self: flex-start; margin-top: 16px; }

  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: center; max-width: 400px; }
  .portrait-badge { right: -10px; }

  .split { grid-template-columns: 1fr; }
  .split-main { max-width: 640px; }
  .split-background .prose { padding-top: 0; }

  .feature-card { grid-template-columns: 1fr; }
  .feature-art { min-height: 260px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 15px; }
  .hero-lead { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .portrait-badge { right: 12px; bottom: 16px; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .stats-row { gap: 16px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .connect-actions .btn { flex: 1 1 100%; white-space: normal; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(80px, 14vw, 160px); min-height: 60vh; }
.notfound-inner > * { max-width: 640px; }
.notfound-actions { margin-top: 28px; }
