/* AHM Jamal — personal site.
   Layout and motion follow the reference (dhruvrathee.com) recording; palette is black, blue, yellow, white and green. */
:root {
  --bg: #07080C;
  --bg2: #0B0D13;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #F3F5F8;
  --body: #C3CAD6;
  --muted: #8F99A9;
  --blue: #3B82F6;
  --yellow: #FFC83D;
  --green: #34D399;
  --ink: #0A0B0E;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(18px, 5vw, 48px);
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* soft ambient light behind everything, like the reference's glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(59, 130, 246, .17), transparent 62%),
    radial-gradient(700px 480px at -4% 102%, rgba(255, 200, 61, .06), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Type */
h1, h2, h3 { color: var(--text); font-family: var(--sans); }
h1, h2 { font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--yellow); font-size: 1.1em; }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-weight: 700; font-size: 17.5px; line-height: 1.3; letter-spacing: -0.01em; }
.serif, .serif-h { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.serif-h { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; color: var(--text); }
h3.serif { font-size: 28px; line-height: 1.1; }
.sub { margin-top: 14px; max-width: 58ch; }
.lede { font-size: clamp(16.5px, 1.5vw, 18.5px); max-width: 54ch; }
.sec { padding-block: clamp(64px, 8vw, 112px); }
.sec-s { padding-bottom: clamp(48px, 6vw, 80px); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); vertical-align: middle; }

/* Buttons and chips */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 11px; border: 1px solid transparent; font: 700 14.5px var(--sans); letter-spacing: -0.005em; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 24px -8px rgba(255, 200, 61, .55); }
.btn-yellow:hover { box-shadow: 0 12px 30px -8px rgba(255, 200, 61, .75); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(59, 130, 246, .6); }
.btn-blue:hover { box-shadow: 0 12px 30px -8px rgba(59, 130, 246, .8); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); }
.btn-sm { min-height: 40px; padding: 0 16px; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btns-c { justify-content: center; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 9px; font: 600 12.5px var(--sans); color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.chip-line { color: var(--yellow); border-color: rgba(255, 200, 61, .4); transition: background .2s, color .2s; }
.chip-line:hover { background: var(--yellow); color: var(--ink); }

/* Progress line, cursor, ripple */
.prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--yellow)); }
.cur { position: fixed; left: 0; top: 0; z-index: 250; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s; will-change: transform; }
.cur.on { opacity: 1; }
.cur.hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(255, 255, 255, .26); border-color: transparent; }
.rip { position: fixed; z-index: 240; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; background: rgba(var(--rc, 255, 200, 61), .85); animation: rip .7s var(--ease) forwards; }
@keyframes rip { to { transform: scale(11); opacity: 0; } }
@media (hover: none), (pointer: coarse) { .cur, .rip { display: none; } }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 78px; display: flex; align-items: center; transition: height .35s var(--ease), background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.top.scrolled { height: 64px; background: rgba(7, 8, 12, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 1px solid var(--line-2); }
.brand-t { font: 800 15px/1 var(--sans); letter-spacing: -0.02em; }
.brand-t span { font-weight: 500; color: #9aa3b2; }
.nav { margin-left: auto; display: flex; gap: 30px; }
.nav a { position: relative; font-size: 13.5px; font-weight: 600; color: #D8DEE8; padding: 8px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 10px; background: var(--yellow); color: var(--ink); font: 800 13.5px var(--sans); box-shadow: 0 6px 20px -6px rgba(255, 200, 61, .6); transition: transform .25s var(--ease), box-shadow .25s; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -6px rgba(255, 200, 61, .8); }
.burger { position: relative; width: 42px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 12px; } .burger span:nth-child(2) { top: 18px; } .burger span:nth-child(3) { top: 24px; }
.burger:hover span:nth-child(2) { transform: scaleX(.6); transform-origin: 100% 50%; }

/* Slide-out menu */
.menu { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s .5s; }
.menu.open { visibility: visible; transition-delay: 0s; }
.scrim { position: absolute; inset: 0; background: rgba(3, 4, 7, .66); backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s; }
.menu.open .scrim { opacity: 1; }
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); padding: 28px 32px 40px; overflow-y: auto; background: #0A0C12; border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0, 0, 0, .5); transform: translateX(100%); transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
.menu.open .panel { transform: none; }
.panel-x { display: block; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: none; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.panel-h { margin: 30px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel a:not(.btn) { display: block; padding: 8px 0; font: 800 28px/1.15 var(--sans); letter-spacing: -0.035em; color: var(--text); opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; }
.panel a:not(.btn):hover { color: var(--yellow); }
.panel a.panel-mail { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--body); }
.menu.open .panel a:not(.btn) { opacity: 1; transform: none; }
.menu.open .panel a:nth-of-type(1) { transition-delay: .18s; } .menu.open .panel a:nth-of-type(2) { transition-delay: .22s; }
.menu.open .panel a:nth-of-type(3) { transition-delay: .26s; } .menu.open .panel a:nth-of-type(4) { transition-delay: .30s; }
.menu.open .panel a:nth-of-type(5) { transition-delay: .34s; } .menu.open .panel a:nth-of-type(6) { transition-delay: .38s; }
.menu.open .panel a:nth-of-type(n+7) { transition-delay: .44s; }
.panel-cta { margin-top: 30px; width: 100%; }

/* Flash */
.flash { position: fixed; left: 50%; top: 88px; transform: translateX(-50%); z-index: 150; width: min(92vw, 520px); }
.flash p { padding: 14px 18px; border-radius: 12px; background: #11151D; border: 1px solid var(--line-2); margin-bottom: 8px; color: var(--text); }
.flash-success { border-color: var(--green) !important; } .flash-error { border-color: #F87171 !important; }

/* Hero */
.hero, .page-hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero { padding-top: 132px; padding-bottom: 72px; }
.hero-glow { position: absolute; z-index: -1; width: 760px; height: 760px; right: -8%; top: 8%; background: radial-gradient(closest-side, rgba(59, 130, 246, .26), rgba(59, 130, 246, .07) 55%, transparent 72%); pointer-events: none; transform: translate(var(--gx, 0), var(--gy, 0)); transition: transform .6s var(--ease); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-role { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #D5DBE5; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); margin-bottom: 26px; }
.hero-role .dot { margin-right: 9px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 94px); }
.h1-a { display: block; color: var(--text); }
.h1-b { display: block; margin-top: .04em; }
.page-hero .h1-a, .hero .h1-a + .h1-b { }
.hl { position: relative; display: inline-block; z-index: 0; padding: 0 .16em .04em; margin-left: .02em; color: var(--ink); }
.hl::before { content: ""; position: absolute; inset: .04em 0 0; z-index: -1; border-radius: .13em; background: var(--yellow); transform-origin: 0 50%; box-shadow: 0 10px 40px -10px rgba(255, 200, 61, .5); }
.hero .lede { margin-top: 26px; }
.hero-card { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.portrait-card { position: relative; aspect-ratio: 1 / 1.04; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0d1017; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -20px rgba(59, 130, 246, .35); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); will-change: transform; }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: 73% 22%; transform: scale(1.12); transform-origin: 70% 30%; }
.corner { position: absolute; width: 26px; height: 26px; border: 0 solid var(--yellow); pointer-events: none; }
.corner.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 8px; }
.corner.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; }
.quote { position: absolute; left: -26px; bottom: 26px; max-width: 220px; padding: 14px 18px; border-radius: 14px; background: rgba(12, 14, 20, .86); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); }
.quote p { font: italic 400 21px/1.15 var(--serif); color: var(--text); }

/* Load sequence (the hero's single orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero-role, .hero h1 .h1-a, .hero h1 .h1-b, .hero .lede, .hero .btns, .page-hero > * { opacity: 0; animation: up .9s var(--ease) forwards; }
  .hero-role { animation-delay: .05s; } .hero h1 .h1-a { animation-delay: .15s; } .hero h1 .h1-b { animation-delay: .27s; }
  .hero .lede { animation-delay: .4s; } .hero .btns { animation-delay: .52s; }
  .hero-card { opacity: 0; animation: card 1.1s .25s var(--ease) forwards; }
  .hl::before { animation: wipe .9s .65s cubic-bezier(.7, 0, .2, 1) both; }
  .hl { animation: hlc .4s 1.05s both; color: var(--text); }
  @keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes card { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes hlc { to { color: var(--ink); } }
}

/* Credentials marquee */
.logos { padding: 30px 0 34px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.logos-h { text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logos-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos-track { display: flex; width: max-content; animation: slide 48s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos-list { display: flex; flex-shrink: 0; }
.logos-list li { display: flex; align-items: baseline; gap: 10px; padding: 0 34px; white-space: nowrap; }
.logos-list strong { font: 400 28px/1 var(--serif); color: #E9EDF3; }
.logos-list li:nth-child(3n+1) strong { color: var(--yellow); } .logos-list li:nth-child(3n+2) strong { color: var(--blue); }
.logos-list span { font-size: 12.5px; color: var(--muted); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; overflow-x: auto; width: auto; } .logos-list[aria-hidden] { display: none; } }

/* Scroll reveal */
.js .rv { opacity: 0; transform: translateY(30px); filter: blur(4px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; filter: none; transition: none; } }

/* Cards: lift and a glow that follows the pointer, tinted per card */
.card { --c: 255, 255, 255; position: relative; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)); overflow: hidden; transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease), opacity .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.card[data-color="blue"] { --c: 59, 130, 246; } .card[data-color="yellow"] { --c: 255, 200, 61; }
.card[data-color="green"] { --c: 52, 211, 153; } .card[data-color="white"] { --c: 226, 232, 240; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--c), .2), transparent 62%); }
.card:hover { border-color: rgba(var(--c), .38); box-shadow: 0 24px 60px -28px rgba(var(--c), .45); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.js .card.rv { transition: transform .9s var(--ease) var(--d, 0s), opacity .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s), border-color .35s, box-shadow .45s var(--ease); }
.js .card.rv.in:hover, .card:not(.rv):hover { transform: translateY(-4px); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.icon-box { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; color: rgb(var(--c)); background: rgba(var(--c), .13); border: 1px solid rgba(var(--c), .25); }
.icon-box .ic { width: 20px; height: 20px; }

/* Who am I */
.about-intro { max-width: 64ch; margin-top: 18px; }
.about-intro p { margin-top: 12px; }
.about-intro .lead { font: 700 clamp(19px, 2vw, 23px)/1.35 var(--sans); letter-spacing: -0.02em; color: var(--text); margin-top: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); margin-top: 44px; align-items: start; }
.big-photo { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); }
.big-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 30%; }
.big-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(7, 8, 12, .92)); }
.big-photo figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font-size: 13px; line-height: 1.45; font-weight: 600; color: #E7EBF1; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 20px 18px 18px; border-radius: 14px; }
.stat-n { font: 800 clamp(26px, 2.6vw, 34px)/1.05 var(--sans); letter-spacing: -0.04em; color: var(--green); font-variant-numeric: tabular-nums; }
.stat-l { margin-top: 8px; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.recs { display: grid; gap: 10px; margin-top: 14px; }
.rec { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 14px; }
.rec-y { font: 700 12px var(--sans); color: var(--yellow); padding-top: 3px; font-variant-numeric: tabular-nums; }
.rec h3 { font-size: 14.5px; } .rec p { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.note-s { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* Insights */
.post { padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.post h3 { font-size: 17px; margin-top: 6px; } .post h3 a:hover { color: var(--yellow); }
.post p.muted { font-size: 14px; line-height: 1.55; }
.cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover span { font: italic 400 30px/1 var(--serif); color: rgba(255, 255, 255, .85); padding: 0 16px; text-align: center; }
.cover-1 { background: radial-gradient(120% 120% at 20% 10%, rgba(59, 130, 246, .55), #0c1226 70%); }
.cover-2 { background: radial-gradient(120% 120% at 80% 10%, rgba(255, 200, 61, .5), #1a1507 70%); }
.cover-3 { background: radial-gradient(120% 120% at 50% 0%, rgba(52, 211, 153, .45), #07181a 70%); }
.badge { position: absolute; top: 10px; right: 10px; font: 800 11px var(--sans); padding: 4px 9px; border-radius: 7px; background: var(--yellow); color: var(--ink); }
.badge-in { position: static; display: inline-block; margin-bottom: 8px; }
.post-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 20px; border: 1px solid rgba(255, 200, 61, .28); border-left: 3px solid var(--yellow); border-radius: 12px; background: rgba(255, 200, 61, .05); font-size: 13.5px; line-height: 1.55; }
.callout b { color: var(--text); } .callout a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.callout-i { flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--yellow); color: var(--ink); font: 800 13px var(--sans); }

/* What I believe in */
.belief { padding: 26px 24px 24px; min-height: 230px; }
.belief-n { position: absolute; top: 18px; right: 22px; z-index: 1; font: 400 28px/1 var(--serif); color: rgba(255, 255, 255, .13); transition: color .3s; }
.belief:hover .belief-n { color: rgba(var(--c), .7); }
.belief h3 { margin-bottom: 8px; }
.belief p.muted, .how p.muted, .path p.muted { font-size: 14.5px; line-height: 1.6; }

/* Lists in a card (results, journey, speaking) */
.list { margin-top: 40px; border-radius: 20px; }
.li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 28px; border-top: 1px solid var(--line); transition: background .25s; }
.li:first-child { border-top: 0; }
.li:hover { background: rgba(255, 255, 255, .03); }
.li-tall { align-items: start; padding-block: 26px; }
.li-logo { font: 400 22px/1.1 var(--serif); color: var(--text); }
.li h3 { font-size: 15.5px; } .li p.muted { font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.li-when { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .2s; }
.li:hover .li-when { color: var(--yellow); }
.li .ticks { margin-top: 12px; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .66em; width: 9px; height: 2px; background: var(--blue); }
.li-res { grid-template-columns: minmax(0, 1fr) auto; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form input { width: 220px; min-height: 40px; }

/* AI feature banner */
.ai-band { position: relative; margin-top: clamp(40px, 6vw, 80px); border-block: 1px solid var(--line); background: var(--bg); --ih: 340px; }
.ai-band-top { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; display: flex; align-items: center; }
.ai-band-img { position: absolute; z-index: -2; top: 0; right: 0; height: 100%; width: 60%; max-width: none; object-fit: cover; object-position: 68% 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
.ai-band-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 46%, rgba(7, 8, 12, .5) 56%, rgba(7, 8, 12, 0) 74%); }
.ai-band-in { padding-block: clamp(56px, 6vw, 88px); }
.ai-band-in > * { width: min(560px, 100%); margin-left: 0; }
.ai-band h2 { font-size: clamp(34px, 4.6vw, 62px); margin-top: 14px; margin-bottom: 18px; }
.ai-pillars { padding-block: 36px 56px; border-top: 1px solid var(--line); }
.ai-pillars .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; }
.ai-cta { margin-top: 36px; }
.proj-sec { padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 1020px) {
  .ai-band { --ih: clamp(280px, 54vw, 420px); }
  .ai-band-top { display: block; min-height: 0; }
  .ai-band-img { width: 100%; height: var(--ih); right: auto; left: 0; object-position: 66% 18%; -webkit-mask-image: none; mask-image: none; }
  .ai-band-top::after { background: linear-gradient(180deg, rgba(7, 8, 12, 0) 0, rgba(7, 8, 12, .15) calc(var(--ih) * .55), var(--bg) var(--ih)); }
  .ai-band-in { padding-top: calc(var(--ih) - 8px); padding-bottom: 36px; }
  .ai-band-in > * { width: auto; max-width: 640px; margin-left: 0; }
  .ai-pillars .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ai-band-img { object-position: 64% 15%; }
  .ai-pillars { padding-block: 28px 44px; }
  .ai-cta .btn { width: 100%; }
}
.feature-logo { font: 800 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.feature-logo em { font-family: var(--serif); font-size: 1.3em; text-transform: none; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 22px 0 26px; }
.pillars li { padding-left: 14px; border-left: 2px solid var(--blue); }
.pillars b { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.pillars span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.proj-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.proj-list li { padding: 22px; }
.proj-list .badge { position: static; display: inline-block; }
.proj-list h3 { font: 400 28px var(--serif); margin: 12px 0 6px; }
.badge-live { background: var(--green); } .badge-building { background: var(--yellow); } .badge-soon { background: var(--blue); color: #fff; }

/* Ways to work */
.path { padding: 24px; min-height: 250px; display: flex; flex-direction: column; gap: 10px; }
.tag { align-self: flex-start; font: 800 10.5px var(--sans); letter-spacing: .12em; padding: 5px 9px; border-radius: 7px; color: rgb(var(--c)); background: rgba(var(--c), .12); border: 1px solid rgba(var(--c), .3); }
.more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--muted); transition: color .2s, transform .25s var(--ease); }
.path:hover .more { color: rgb(var(--c)); transform: translateX(4px); }
.how { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.how .icon-box { margin-bottom: 4px; }
.how .chip { align-self: flex-start; margin-top: auto; }
.quote-card { padding: 28px; }
.quote-card blockquote { font: italic 400 clamp(22px, 2.2vw, 27px)/1.3 var(--serif); color: var(--text); }
.quote-card figcaption { margin-top: 16px; display: flex; flex-direction: column; font-size: 14px; color: var(--text); }

/* Newsletter + closing */
.sub-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: 24px; border-color: rgba(255, 200, 61, .26); background: radial-gradient(700px 300px at 0% 0%, rgba(255, 200, 61, .13), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); }
.sub-card p.muted { margin-top: 10px; max-width: 46ch; }
.sub-form { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.sub-form input[type=email] { flex: 1 1 220px; }
.form-status { flex-basis: 100%; min-height: 22px; font-size: 14px; }
.form-status.ok { color: var(--green); } .form-status.err { color: #F87171; }
.closing { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(420px, 44vw, 560px); display: flex; align-items: center; border-block: 1px solid var(--line); }
.closing-img { position: absolute; z-index: -2; top: 0; right: 0; height: 100%; width: auto; max-width: none; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(7, 8, 12, .55) 55%, rgba(7, 8, 12, .05) 100%); }
.closing-in { padding-block: 64px; }
.closing h2 { max-width: 14ch; font-size: clamp(38px, 5.2vw, 70px); }
.closing p { margin-top: 18px; max-width: 44ch; }
@media (max-width: 760px) {
  .closing { align-items: flex-end; min-height: 560px; }
  .closing-img { width: 100%; height: 62%; object-position: 50% 30%; }
  .closing::after { background: linear-gradient(180deg, rgba(7, 8, 12, .1) 0%, var(--bg) 52%); }
  .closing-in { padding-block: 36px 56px; }
}

/* Forms */
input, select, textarea { width: 100%; min-height: 46px; padding: 12px 15px; background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line-2); border-radius: 11px; font: 500 15px var(--sans); transition: border-color .2s, box-shadow .2s, background .2s; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa3b2 50%), linear-gradient(135deg, #9aa3b2 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
select option { background: #11151D; color: var(--text); }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #667085; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 200, 61, .18); background: rgba(255, 255, 255, .06); }
label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 7px; }
.stack { display: grid; gap: 4px; margin-top: 22px; }
.stack label { margin-top: 12px; }
.stack .btn-block { margin-top: 22px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Work With Me page */
.page-hero { padding-top: clamp(130px, 14vw, 180px); padding-bottom: 44px; }
.page-hero h1 { font-size: clamp(46px, 7vw, 96px); }
.page-hero h1 .h1-a { display: inline; }
.page-hero .h1-md, h1.h1-md { font-size: clamp(38px, 5.4vw, 72px); }
.page-hero .lede { margin-top: 24px; }
.page-hero .hero-glow { top: -10%; right: 0; }
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 28px; scroll-margin-top: 90px; }
.form-card { padding: clamp(22px, 3vw, 34px); border-radius: 22px; }
.form-card .serif-h { margin-bottom: 8px; }
.criteria { padding: clamp(22px, 3vw, 34px); border-radius: 22px; }
.checks { display: grid; gap: 12px; margin-top: 18px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.checks .mark { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.checks .ok .mark { background: var(--green); color: var(--ink); }
.checks .no .mark { background: rgba(255, 255, 255, .1); color: var(--muted); }
.checks .no { color: var(--muted); }

/* Articles */
.article { max-width: 780px; padding-top: clamp(130px, 14vw, 170px); padding-bottom: 20px; }
.article h1 { margin: 10px 0 14px; }
.post-cat { font-size: 13px; font-weight: 700; color: var(--yellow); }
.article-cover { width: 100%; border-radius: 16px; margin-top: 30px; border: 1px solid var(--line); }
.prose { margin-top: 38px; }
.prose p { margin-bottom: 22px; font-size: 18px; line-height: 1.75; color: #D2D8E2; }
.prose h2 { font-size: 34px; margin: 42px 0 16px; max-width: none; }
.prose a { color: var(--yellow); }
.h-sm { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.empty { padding-block: 40px; color: var(--muted); }

/* Footer */
.foot { margin-top: 0; border-top: 1px solid var(--line); padding-top: 64px; background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.foot-grid a:not(.brand), .foot-grid > div > span { display: block; padding: 5px 0; font-size: 14.5px; }
.foot-grid a:not(.brand):hover { color: var(--yellow); }
.foot-h { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-brand .muted { margin: 14px 0 18px; max-width: 34ch; font-size: 14px; line-height: 1.55; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); transition: color .2s, border-color .2s, transform .25s var(--ease); }
.social a:hover { color: var(--yellow); border-color: rgba(255, 200, 61, .5); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.foot-base { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; font-size: 13px; }
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.foot-base a { margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1020px) {
  .nav, .pill-cta { display: none; }
  .burger { margin-left: auto; }
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; justify-self: start; margin-top: 8px; }
  .quote { left: 14px; }
  .about-grid, .feature, .sub-card, .forms { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 660px) {
  body { font-size: 16px; }
  .grid3, .grid2 { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .li { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .li-when { white-space: normal; }
  .pillars, .ai-pillars .pillars { grid-template-columns: 1fr; }
  .li-res, .inline-form { grid-template-columns: 1fr; flex-wrap: wrap; }
  .inline-form input { width: 100%; flex: 1 1 100%; }
  .btns .btn { flex: 1 1 100%; }
  .sub-form .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-glow { width: 520px; height: 520px; right: -40%; }
  .quote { max-width: 190px; bottom: 16px; } .quote p { font-size: 18px; }
}
