/* zubairsohail.com — Superhuman inspired system
   Parchment canvas, ink charcoal text, midnight wine primary action,
   violet reserved for links, weight 460 headlines, hairline borders, no shadows. */
:root {
  --ink: #17153a;           /* Ink Charcoal — primary text, never pure black */
  --ink-soft: #55527a;      /* Stone Gray — secondary text */
  --ink-faint: #9391b0;     /* muted metadata */
  --bg: #faf5ec;            /* Warm Parchment — page canvas */
  --card: #ffffff;          /* Paper White — elevated cards only */
  --line: #ece3d3;          /* Soft Mist — hairline borders */
  --wine: #17153a;          /* Midnight Wine — the single primary action fill */
  --violet: #2f7de1;        /* Royal Violet — links only */
  --lilac: #ffd66b;
  --accent: #ffc83d;           /* sunny yellow, the energy note */         /* Lilac Mist — secondary surfaces and badges */
  --lagoon: #0c4243;        /* Deep Lagoon — reserved for one dark band if needed */
  --radius: 16px;
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 17px; font-weight: 460; }
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; transition: text-decoration-color .2s ease; text-decoration: underline; text-decoration-color: transparent; }
a:hover { text-decoration-color: currentColor; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; }

/* Nav — transparent with backdrop blur, hairline border */
header { position: sticky; top: 0; background: rgba(242,240,235,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .logo { font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.nav .logo span { color: var(--wine); }
.nav ul { display: flex; gap: 32px; list-style: none; }
.nav ul a { color: var(--ink); font-size: .95rem; font-weight: 460; text-decoration: none; }
.nav ul a:hover, .nav ul a.active { color: var(--wine); }
.nav .cta { background: var(--lilac); color: var(--ink); border: 1px solid var(--ink); padding: 7px 16px; border-radius: 8px; font-weight: 500; font-size: .9rem; text-decoration: none; }
.nav .cta:hover { background: #c9baff; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.kicker { display: inline-block; background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; letter-spacing: .02em; }
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.015em; font-weight: 500; }
h1 .accent { color: var(--ink); background: linear-gradient(transparent 68%, var(--accent) 68%, var(--accent) 94%, transparent 94%); padding: 0 .08em; }
.hero p.lede { margin-top: 24px; font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; font-weight: 460; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 16px; font-weight: 500; font-size: .95rem; text-decoration: none; transition: opacity .2s ease, background .2s ease; }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.portrait { position: relative; aspect-ratio: 1/1; max-width: 420px; margin: 0 auto; }
.portrait::before { content: ""; position: absolute; inset: 6% -5% -6% 5%; background: var(--accent); border-radius: 50%; }
.portrait img, .portrait .fallback { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait .fallback { display: flex; align-items: center; justify-content: center; font-size: 5rem; font-weight: 500; font-family: var(--font-display); color: var(--ink); background: var(--card); border: 2px solid var(--ink); }

/* Stats — hairline band on parchment */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 0; }
.stat b { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; color: var(--violet); }
.stat span { color: var(--ink-soft); font-size: .92rem; }

/* Sections */
section.block { padding: 88px 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.012em; font-weight: 500; }
.section-head p { color: var(--ink-soft); margin-top: 10px; max-width: 40em; }

/* Cards — white on parchment, hairline border, no shadow */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); text-decoration: none; color: inherit; }
.card:hover { border-color: #cfccc6; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.01em; font-weight: 540; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 16px; }

/* Videos — editorial cards: thumbnail top, date, large title, View link */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-card { background: var(--bg); border-radius: 16px; overflow: hidden; transition: transform .2s ease; }
.video-card:hover { transform: translateY(-3px); }
.video-card a { color: inherit; display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.video-thumb { aspect-ratio: 16/9; background: var(--line); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-meta { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.video-date { color: var(--ink-soft); font-size: .88rem; margin-bottom: 14px; }
.video-meta h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.22; font-weight: 500; letter-spacing: -0.012em; }
.video-view { margin-top: auto; padding-top: 32px; font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.video-view .arrow { text-decoration: none; display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.video-card:hover .video-view .arrow { transform: translateX(4px); }

/* Timeline (about) */
.timeline { border-left: 1px solid var(--line); margin-left: 8px; padding-left: 32px; display: flex; flex-direction: column; gap: 44px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -39px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); }
.tl-item .when { color: var(--ink-faint); font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.tl-item h3 { font-size: 1.15rem; margin: 4px 0 2px; letter-spacing: -0.01em; font-weight: 540; }
.tl-item .where { color: var(--violet); font-weight: 500; font-size: .95rem; margin-bottom: 10px; }
.tl-item p, .tl-item li { color: var(--ink-soft); font-size: .97rem; }
.tl-item ul { margin: 10px 0 0 20px; display: flex; flex-direction: column; gap: 6px; }

/* Two column about intro */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about-grid .portrait { position: sticky; top: 96px; aspect-ratio: 4/5; }
.about-grid .portrait::before { display: none; }
.about-grid .portrait img { border-radius: 24px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .88rem; color: var(--ink-soft); font-weight: 460; }

/* Socials */
.social-card { display: flex; align-items: center; gap: 20px; }
.social-card .icon { margin-bottom: 0; flex-shrink: 0; }
.social-card .arrow { margin-left: auto; color: var(--ink-faint); font-size: 1.2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
form .field { margin-bottom: 20px; }
form label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 8px; }
form input, form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-family: var(--font); font-size: .97rem; background: var(--card); color: var(--ink); }
form input:focus, form textarea:focus { outline: none; border-color: var(--wine); }
form textarea { min-height: 140px; resize: vertical; }
form button { border: none; cursor: pointer; width: 100%; }
.form-note { font-size: .85rem; color: var(--ink-faint); margin-top: 14px; }

/* CTA band — the wine ground */
.cta-band { background: var(--wine); border-radius: 20px; color: #fff; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.012em; font-weight: 500; }
.cta-band p { opacity: .75; margin-top: 8px; }
.cta-band .btn { background: #fff; color: var(--wine); }

/* Footer — wine ground per the reference */
footer { background: var(--wine); padding: 44px 0; margin-top: 48px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-row .links { display: flex; gap: 24px; }
.footer-row a { color: #ffffff; text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid, .video-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 32px 0; }
  .stat b { font-size: 1.6rem; }
  .hero { padding: 56px 0; }
  section.block { padding: 56px 0; }
  .hero p.lede { font-size: 1.05rem; }
  .portrait { max-width: 300px; }
  .nav { justify-content: flex-start; gap: 14px; }
  .nav .logo { margin-right: auto; }
  .nav .cta { padding: 6px 12px; font-size: .85rem; white-space: nowrap; }
  .timeline { margin-left: 4px; padding-left: 22px; gap: 36px; }
  .tl-item::before { left: -29px; width: 12px; height: 12px; }
  .tl-item ul { margin-left: 16px; }
  footer { margin-top: 24px; }
  .nav ul { display: none; }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
  .nav.open ul { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .about-grid .portrait { position: static; }
  .cta-band { padding: 36px 28px; }
}

/* Logo strip — monochrome, hairline cells per the trust bar pattern */
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--card); }
.logo-cell { display: flex; align-items: center; justify-content: center; padding: 26px 16px; border-right: 1px solid var(--line); min-height: 84px; }
.logo-cell:last-child { border-right: none; }
.logo-cell img { max-height: 30px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.logo-cell:hover img { filter: none; opacity: 1; }
.wordmark { font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); letter-spacing: -0.01em; }
.wordmark b { color: var(--wine); }
@media (max-width: 860px) {
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { border-bottom: 1px solid var(--line); }
}

@media (max-width: 400px) {
  .kicker { font-size: .7rem; padding: 5px 11px; }
  h1 { font-size: 2.1rem; }
  .cta-band { padding: 28px 20px; }
}
