/* shekhsolayman.com — editorial personal site */
/* Self-hosted fonts (Fontsource: Inter, Newsreader — SIL Open Font License) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations"), url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); }

:root {
  --bg: #faf8f3;
  --bg-alt: #f2efe6;
  --surface: #ffffff;
  --ink: #22252a;
  --ink-soft: #4a4f57;
  --muted: #6b7078;
  --line: #e2ddd0;
  --accent: #2f4a3a;
  --accent-soft: #e6ece5;
  --accent-ink: #ffffff;
  --focus: #b5651d;
  --radius: 14px;
  --max: 1120px;
  --prose: 680px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.nav-toggle-bars { width: 16px; height: 10px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 759px) {
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
}
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: 28px; }
}

/* Draft banner */
.draft-banner {
  background: var(--accent); color: var(--accent-ink);
  font-size: .82rem; text-align: center; padding: 6px 16px; letter-spacing: .01em;
}

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
.eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid var(--accent); transition: background .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #243a2d; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; }

/* Hero */
.hero { padding-top: 48px; }
@media (min-width: 900px) { .hero { padding-top: 88px; } }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; } }
.hero h1 { margin-bottom: 20px; }
.hero .supporting { color: var(--muted); max-width: 560px; margin-top: 18px; }

.portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 420px; justify-self: center;
  border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #e9e5d9 0%, #dcd6c6 100%);
  border: 1px solid var(--line);
}
@media (max-width: 899px) { .portrait { max-width: 300px; justify-self: start; } }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 24px;
}
.portrait-placeholder .initials { font-family: var(--serif); font-size: 4.5rem; color: var(--accent); opacity: .55; line-height: 1; }
.portrait-placeholder small { font-size: .8rem; letter-spacing: .04em; }

/* About */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.6fr; gap: 72px; } }
.about-body p { margin: 0 0 1.1em; font-size: 1.08rem; color: var(--ink-soft); }
.about-body p:first-child { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--ink); }

/* Companies */
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card-meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.card h3 { font-size: 1.45rem; }
.card .brandline { font-size: .95rem; color: var(--accent); font-weight: 600; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.card .card-link { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .95rem; }
.card .card-note { margin-top: auto; padding-top: 12px; font-size: .9rem; color: var(--muted); }
.card-emerging { background: transparent; border-style: dashed; }
.emerging-wrap { margin-top: 20px; }
@media (min-width: 1040px) { .emerging-wrap .card { flex-direction: row; align-items: center; gap: 32px; } .emerging-wrap .card > div { flex: 1; } .emerging-wrap .card-link { margin: 0; padding: 0; white-space: nowrap; } }

/* Expertise */
.expertise { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .expertise { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1040px) { .expertise { grid-template-columns: repeat(3, 1fr); } }
.expertise li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.expertise strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-bottom: 4px; }
.expertise span { color: var(--muted); font-size: .95rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.timeline .year { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.timeline p { margin: 4px 0 0; color: var(--ink-soft); max-width: 560px; }
@media (min-width: 900px) {
  .timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .timeline::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .timeline li { padding: 36px 0 0; }
  .timeline li::before { top: 0; }
  .timeline p { font-size: .95rem; }
}

/* Values */
.values { text-align: center; }
.values blockquote { margin: 0 auto; max-width: 760px; }
.values blockquote p { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.4; color: var(--ink); margin: 0; }
.values .sig { margin-top: 22px; color: var(--muted); font-size: .95rem; }

/* Connect */
.connect-box {
  background: var(--accent); color: var(--accent-ink); border-radius: 22px;
  padding: 44px 24px; display: grid; gap: 28px;
}
@media (min-width: 900px) { .connect-box { padding: 64px; grid-template-columns: 1.4fr 1fr; align-items: center; } }
.connect-box h2 { color: #fff; }
.connect-box p { color: rgba(255,255,255,.82); margin: 14px 0 0; }
.connect-links { display: flex; flex-direction: column; gap: 12px; }
.connect-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #fff; text-decoration: none; padding: 16px 20px; border-radius: 12px; font-weight: 600;
}
.connect-links a:hover { background: rgba(255,255,255,.16); }
.connect-links a span { font-weight: 400; color: rgba(255,255,255,.7); font-size: .9rem; }
.connect-box :focus-visible { outline-color: #f3c58f; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 760px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Journey page */
.page-hero { padding: 56px 0 40px; }
@media (min-width: 900px) { .page-hero { padding: 96px 0 56px; } }
.page-hero .lead { max-width: 640px; margin-top: 20px; }
.journey-layout { display: grid; gap: 40px; padding-bottom: 72px; }
@media (min-width: 1040px) { .journey-layout { grid-template-columns: 220px 1fr; gap: 64px; } }
.toc { display: none; }
@media (min-width: 1040px) {
  .toc { display: block; position: sticky; top: 96px; align-self: start; font-size: .88rem; }
  .toc p { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
  .toc a:hover { color: var(--ink); }
  .toc a.active { color: var(--accent); border-left-color: var(--accent); }
}
.prose { max-width: var(--prose); }
.era { padding: 0; margin: 0 0 56px; scroll-margin-top: 88px; }
.era-label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.era h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 20px; }
.prose p { font-size: 1.08rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 1.2em; }
@media (min-width: 720px) { .prose p { font-size: 1.14rem; } }
.prose p.opening { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.55rem); line-height: 1.55; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.pullquote { border-left: 3px solid var(--accent); margin: 32px 0; padding: 4px 0 4px 22px; }
.pullquote p { font-family: var(--serif); font-size: 1.35rem !important; line-height: 1.45 !important; color: var(--ink) !important; margin: 0 !important; }

.archive-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink);
}
.archive-card:hover { border-color: var(--accent); }
.archive-card .meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.archive-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.archive-card span:last-child { font-size: .92rem; color: var(--accent); font-weight: 600; }

.journey-next { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 16px; }

/* Journey figures */
.journey-figure { margin: 8px 0 40px; }
.journey-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt); }
.journey-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }

.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; }

/* =========================================================
   Premium refinement layer (Oct 2026)
   ========================================================= */
:root {
  --forest-deep: #1e3328;
  --gold: #8a6a3b;          /* small text on light backgrounds (AA contrast) */
  --gold-light: #d6b98a;    /* accents on dark backgrounds */
  --line: #e7e2d6;
}

/* Typography & labels */
.eyebrow, .card-meta, .era-label { color: var(--gold); letter-spacing: .16em; }
h1 { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.02em; }
section { padding: 84px 0; }
@media (min-width: 900px) { section { padding: 128px 0; } }

/* Hero */
.hero { padding-top: 56px; }
@media (min-width: 900px) { .hero { padding-top: 104px; padding-bottom: 120px; } }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.2rem); line-height: 1; margin-bottom: 26px; font-weight: 500; }
.hero .lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 560px; }
.hero-grid { gap: 56px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 88px; } }
.portrait {
  overflow: visible; border: 0; background: none; max-width: 460px;
}
.portrait picture, .portrait img { border-radius: 22px; overflow: hidden; display: block; }
.portrait img { box-shadow: 0 30px 60px -30px rgba(30, 51, 40, .45); position: relative; z-index: 1; }
.portrait::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-light); border-radius: 22px; z-index: 0;
}
@media (max-width: 899px) { .portrait::before { inset: 12px -12px -12px 12px; } }

/* Buttons */
.btn { min-height: 50px; padding: 0 26px; letter-spacing: .01em; }
.btn-primary { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn-primary:hover { background: #15241c; }

/* About */
.about-body p:first-child { font-size: clamp(1.35rem, 2.4vw, 1.65rem); }

/* Company cards */
.card {
  padding: 34px 30px; border-color: var(--line); position: relative;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card::before {
  content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(30, 51, 40, .35); border-color: #ddd5c3; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.7rem; }
.card .brandline { color: var(--forest-deep); letter-spacing: .02em; }
.card-emerging:hover { transform: none; box-shadow: none; }
.card-emerging::before { display: none; }

/* Expertise */
.expertise strong { font-size: 1.3rem; }

/* Milestones */
.timeline::before { background: var(--gold-light); opacity: .6; }
.timeline li::before { border-color: var(--gold); width: 13px; height: 13px; }
.timeline .year { font-size: 2.1rem; color: var(--forest-deep); font-weight: 400; letter-spacing: -0.01em; }
@media (min-width: 900px) { .timeline li { padding-top: 40px; } }

/* Values band — deep forest */
.values.section-alt { background: var(--forest-deep); color: #f3efe6; }
.values blockquote { position: relative; padding-top: 48px; }
.values blockquote::before {
  content: "\201C"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--gold-light);
}
.values blockquote p { color: #fbf8f1; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.35; }
.values .sig { color: var(--gold-light); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

/* Connect */
.connect-box { background: var(--forest-deep); border: 1px solid rgba(214, 185, 138, .35); }
.connect-links a { border-color: rgba(214, 185, 138, .3); }
.connect-links a:hover { background: rgba(214, 185, 138, .12); }

/* Journey hero band */
.page-hero-band { background: var(--forest-deep); color: #f3efe6; margin-bottom: 64px; }
.page-hero-band .page-hero { padding: 72px 16px 64px; }
@media (min-width: 720px) { .page-hero-band .page-hero { padding: 120px 32px 96px; } }
.page-hero-band h1 { color: #fbf8f1; font-size: clamp(2.8rem, 7.5vw, 5.4rem); line-height: 1.02; }
.page-hero-band .eyebrow { color: var(--gold-light); }
.page-hero-band .lead { color: rgba(243, 239, 230, .82); }

/* Journey chapter numbers */
.prose { counter-reset: chapter; }
.prose .era:not([hidden]) { counter-increment: chapter; }
.prose .era:not([hidden]) .era-label::before {
  content: counter(chapter, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 2.6rem; letter-spacing: 0;
  color: var(--gold-light); line-height: 1; margin-bottom: 10px; font-weight: 400;
}
.era h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
.era { margin-bottom: 72px; }
.pullquote { border-left-color: var(--gold-light); }
.toc a.active { color: var(--forest-deep); border-left-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .card, .card::before { transition: none !important; }
  .card:hover { transform: none; }
}
@media (max-width: 899px) { .portrait { max-width: 300px; justify-self: start; margin-right: 14px; } }
.prose .era:not([hidden]) .era-label::before { color: var(--gold); opacity: .75; }

.journey-figure--portrait { max-width: 460px; }
