/* Emily Manz: palette, type and motion follow the Subhan theme (warm stone background, black, white cards, yellow disc). */
:root {
  --bg: #d9d3c8;
  --line: #000;
  --ink: #000;
  --muted: #62605c;
  --card: #fff;
  --accent: #f4c040;
  --wrap: 1320px;
  --radius: 6px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Roboto", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  interpolate-size: allow-keywords;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; text-transform: uppercase; line-height: 1.15; margin: 0 0 .5em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; padding-inline: 15px; }
.narrow { max-width: 760px; }
.center, .center-head .kicker, .center-head .h2 { text-align: center; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.i { flex: none; }

.staging-bar { background: #000; color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }
.todo { background: #fff3b0; color: #000; outline: 1px dashed #b88a00; padding: 0 3px; border-radius: 2px; }

/* scroll reveal: elements fade and rise as they enter the screen */
.js :is(.hero-text, .about-circles, .about-text, .kicker, .h2, .card, .chips, .faq-photo, .faq-item, .book-embed, .quote, .page-title, .post-body, .sidebar):not(.in) { opacity: 0; transform: translateY(26px); }
:is(.hero-text, .about-circles, .about-text, .kicker, .h2, .card, .chips, .faq-photo, .faq-item, .book-embed, .quote, .page-title, .post-body, .sidebar) {
  transition: opacity .9s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}

/* hero photo: the disc grows in, then the headshot slides in from the right */
main { overflow-x: clip; }
.js .hero-photo:not(.in) .disc { opacity: 0; transform: scale(.7); }
.js .hero-photo:not(.in) .photo-slot { opacity: 0; transform: translateX(clamp(120px, 18vw, 320px)); }
.disc { transition: opacity .8s ease, transform 1s var(--ease); }
.hero-photo .photo-slot { transition: opacity .9s ease .2s, transform 1.3s var(--ease) .2s; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; border-radius: 999px; padding: 15px 30px; font: 400 16px/1 var(--head);
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-outline { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* header */
.site-top { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow .3s; }
.site-top.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
.site-header { position: relative; display: flex; align-items: center; gap: 24px; padding-block: 22px; transition: padding .3s; }
.site-header::after { content: ""; position: absolute; inset: auto 0 0; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.is-stuck .site-header { padding-block: 10px; }
.is-stuck .site-header::after { opacity: 0; }
.brand { font: 300 34px/1 var(--head); text-transform: uppercase; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
#nav { margin-inline: auto; }
#nav ul { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
#nav a { position: relative; text-decoration: none; font: 400 16px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding-block: 6px; }
#nav a::after { content: ""; position: absolute; inset: auto 0 0; border-bottom: 1px solid var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
#nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; margin-left: auto; cursor: pointer; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; min-height: min(740px, calc(100vh - 110px)); padding-block: 40px; }
.hero::after, .section::after { content: ""; display: block; border-bottom: 1px solid var(--line); }
.hero::after { position: absolute; inset: auto 0 0; }
.hero h1 { font-size: clamp(46px, 5.8vw, 112px); line-height: 1.16; margin: 0; }
.hero-role { display: block; margin-top: .35em; font-size: clamp(22px, 2.3vw, 40px); line-height: 1.25; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions { align-items: center; }
.btn-cv { font: 400 16px/1 var(--body); text-transform: none; letter-spacing: 0; }
.btn-play { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.btn-play:hover { transform: scale(1.08); background: #333; }
.btn-play .i { fill: currentColor; }
.hero-photo { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 420px; }
.disc { position: absolute; width: min(560px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.photo-slot { position: relative; max-width: 260px; text-align: center; }
.hero-photo .photo-slot:has(img) { max-width: none; align-self: end; margin-bottom: -40px; }
.hero-photo img { max-height: 660px; width: auto; height: auto; }

/* sections */
.section { padding-top: 96px; }
.section::after { width: min(var(--wrap), 100% - 40px); margin: 96px auto 0; }
.section.last::after { display: none; }
.section.last { padding-bottom: 96px; }
.kicker { font: 300 15px/1.3 var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.h2 { font-size: clamp(34px, 3.4vw, 58px); margin-bottom: 40px; }
.lead { max-width: 660px; margin: 0 0 1em; }
.grid-3, .grid-4 { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; }
.card h3 { font-size: 26px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text .h2 { margin-bottom: 26px; }
.about-text .btn { margin-top: 14px; }
.about-circles { position: relative; aspect-ratio: 1.27; container-type: inline-size; }
.stat { position: absolute; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; }
.stat-1 { width: 44%; left: 0; top: 0; z-index: 2; }
.stat-2 { width: 58%; left: 30%; top: 25%; background: #000; color: #fff; z-index: 1; }
.stat-3 { width: 33%; left: 67%; top: 0; z-index: 3; }
.stat .i { width: 7cqw; height: 7cqw; max-width: 28px; max-height: 28px; opacity: .6; }
.stat-label { font: 300 clamp(11px, 2.9cqw, 16px)/1.3 var(--head); text-transform: uppercase; margin-top: 4px; }
.stat-num { font: 300 12cqw/1.15 var(--head); }
.stat-3 .stat-num { font-size: 8cqw; }
.stat-1 .stat-num { font-size: 10cqw; }

/* services */
.service { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: center; }
.service-body { padding: 54px 30px 40px; flex: 1; }
.service-icon { position: relative; display: inline-grid; place-items: center; width: 100px; height: 100px; margin-bottom: 22px; }
.service-icon::before { content: ""; position: absolute; inset: 6px 12px; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; background: var(--bg); transform: rotate(-16deg); transition: transform .5s var(--ease); }
.service:hover .service-icon::before { transform: rotate(14deg) scale(1.08); }
.service-icon .i { position: relative; }
.service-body p { margin: 0; }
.service-link { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 15px 30px; border-top: 1px solid #eee; font: 400 16px/1 var(--head); text-transform: uppercase; text-decoration: none; color: #b5b2ac; isolation: isolate; transition: color .35s; }
.service-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.service:hover .service-link, .service-link:focus-visible { color: #fff; }
.service:hover .service-link::before, .service-link:focus-visible::before { transform: scaleY(1); }

/* portfolio */
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.work-head .h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 0; background: #fff; border-radius: 999px; padding: 14px 26px; font: 300 16px/1 var(--head); text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.chip:hover, .chip.is-on { background: var(--ink); color: #fff; }
.work-grid { transition: opacity .22s ease; }
.work-grid.is-fading { opacity: 0; }
.work { padding: 36px; }
.work-cat { font: 300 14px/1.3 var(--head); text-transform: uppercase; margin: 0 0 8px; }
.work h3 { font-size: 26px; min-height: 2.3em; }
.work[hidden] { display: none; }
.work h3 a { text-decoration: none; }
.work h3 a:hover { text-decoration: underline; }
.work-pub { margin: 0 0 18px; color: var(--muted); }
.work { display: flex; flex-direction: column; }
.read-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font: 400 16px/1 var(--head); text-transform: uppercase; text-decoration: none; }
.read-link .i { transition: transform .3s var(--ease); }
.work:hover .read-link .i { transform: translateX(4px); }

/* experience */
.job h3 { font-size: 24px; margin-bottom: 10px; }
.job-org { margin: 0 0 12px; font-weight: 700; }
.job p:last-child { margin: 0; }
.education { max-width: 900px; margin: 34px 0 0; }

/* video popup */
.video-box { width: min(1100px, 92vw); max-width: none; border: 0; padding: 0; background: #000; overflow: visible; opacity: 0; transform: scale(.96); transition: opacity .3s ease, transform .3s var(--ease); }
.video-box.is-open { opacity: 1; transform: none; }
.video-box::backdrop { background: rgba(0, 0, 0, .85); }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-close { position: fixed; top: 12px; right: 12px; background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; padding: 10px 14px; cursor: pointer; }

/* resume popup */
.cv-box { width: min(1040px, 92vw); height: min(900px, 92dvh); max-width: none; max-height: none; border: 0; border-radius: 14px; padding: 0; background: #fff; overflow: hidden; opacity: 0; transform: scale(.96); transition: opacity .3s ease, transform .3s var(--ease); }
.cv-box[open] { display: flex; flex-direction: column; }
.cv-box.is-open { opacity: 1; transform: none; }
.cv-box::backdrop { background: rgba(0, 0, 0, .6); }
.cv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.cv-head h2 { font-size: 24px; margin: 0 0 2px; }
.cv-head p { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.cv-close { background: none; border: 0; font-size: 30px; line-height: 1; padding: 2px 8px; cursor: pointer; }
.cv-frame { flex: 1; min-height: 0; margin: 0 24px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #eee9e0; }
.cv-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.cv-note { display: grid; place-items: center; height: 100%; margin: 0; padding: 24px; text-align: center; }
.cv-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px 24px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }

.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row .h2 { margin: 0; }

.quote { max-width: 860px; margin: 0 auto; text-align: center; font: 300 22px/1.5 var(--head); text-transform: uppercase; }
.quote cite { display: block; margin-top: 14px; font: 400 14px var(--body); text-transform: none; }

/* booking */
.book-embed iframe { width: 100%; min-height: 700px; border: 0; background: #fff; border-radius: var(--radius); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font: 400 16px/1.4 var(--head); text-transform: uppercase; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { margin: 0 0 18px; }
.faq-photo { position: sticky; top: 110px; justify-self: center; width: min(460px, 100%); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: clamp(24px, 3.4vw, 46px) solid var(--accent); border-radius: 50%; background: #fff; }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }
.faq-photo .photo-slot { padding: 12px; }

/* speaking */
.talk { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; }
.talk h3 { font-size: 20px; line-height: 1.3; margin: 0 0 4px; }
.talk p { margin: 0; color: var(--muted); font-size: 15px; }
.talk-year { font: 300 20px/1.3 var(--head); }

/* videos */
.post-media.video-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #000; transition: transform .3s var(--ease); }
.play .i { fill: currentColor; }
.post-card:hover .play { transform: scale(1.1); }

/* blog */
.post-card { padding: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); transition: opacity .9s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s), box-shadow .3s; }
.post-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }
.post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee9e0; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-copy { padding: 22px 26px 26px; }
.post-copy p { margin: 0; }
.post-meta { margin-bottom: 8px !important; }
.post-card h3 { font-size: 24px; margin-bottom: 12px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.page-title { text-align: center; padding-block: 44px; }
.page-title h1 { font-size: clamp(32px, 3vw, 50px); margin-bottom: 10px; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0; font-size: 14px; }
.crumbs a { font-weight: 700; text-decoration: none; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.post-body { padding: 30px; }
.post-cover { width: 100%; margin-bottom: 26px; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.sidebar h3 { font-size: 22px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid #eee; }
.sidebar li a { text-decoration: none; }
.sidebar li a:hover { text-decoration: underline; }

/* contact */
.contact-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; }
.contact-card h3 { margin: 12px 0 0; font-size: 22px; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; list-style: none; padding: 0; margin: 0; }

.site-footer { display: flex; justify-content: space-between; gap: 16px; background: #fff; border-radius: 26px 26px 0 0; padding: 24px 30px; font: 400 14px/1.4 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.site-footer p { margin: 0; }
.to-top { text-decoration: none; }
.to-top:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 1180px) {
  #nav ul { gap: 22px; }
  .head-cta { display: none; }
  #nav { margin-right: 0; }
}
@media (max-width: 960px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .post-grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 860px) {
  .wrap { padding-inline: 0; }
  .nav-toggle { display: block; }
  #nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-block: 1px solid var(--line); display: none; }
  #nav.is-open { display: block; }
  #nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  #nav a { display: inline-block; padding: 12px 0; }
  .brand { font-size: 28px; }
  .hero, .faq-grid { grid-template-columns: 1fr; }
  .faq-photo { position: relative; top: auto; }
  .hero { min-height: 0; padding-block: 36px; }
  .hero { gap: 28px; }
  .hero-photo { min-height: 0; }
  .disc { width: min(460px, 78%); top: auto; bottom: 10%; }
  .hero-photo .photo-slot:has(img) { margin-bottom: -36px; }
  .hero-photo img { max-height: min(560px, 62vh); }
  .site-footer { padding: 22px 24px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .section { padding-top: 60px; }
  .section::after { margin-top: 60px; }
  .section.last { padding-bottom: 60px; }
  .work-head { align-items: flex-start; flex-direction: column; }
  .chip { padding: 11px 18px; font-size: 14px; }
  .work { padding: 26px; }
  .work h3 { min-height: 0; }
  .btn { padding: 14px 24px; }
  .post-body { padding: 22px; }
  .disc { width: 88%; }
  .hero-photo img { max-height: 460px; }
  .site-footer { flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 20px 26px; }
}

/* contact form (WordPress) */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 30px; margin-bottom: 30px; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-form { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; padding: 36px; }
.contact-form h3 { font-size: 26px; margin: 0; }
.contact-form label { display: grid; gap: 6px; font: 400 15px/1.3 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.contact-form input, .contact-form textarea { font: 400 16px/1.5 var(--body); padding: 12px 14px; border: 1px solid #cfc9be; border-radius: var(--radius); background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { margin: 0; padding: 12px 16px; border-radius: var(--radius); }
.form-note.is-ok { background: #e7f3e3; }
.form-note.is-bad { background: #fbe4e1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nav-links { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.nav-links a, .nav-links span { padding: 8px 14px; background: #fff; border-radius: 999px; text-decoration: none; }
.prose img { height: auto; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
/* keep the sticky header and ring below the WordPress toolbar when logged in */
.admin-bar .site-top { top: 32px; }
.admin-bar .faq-photo { top: 142px; }
@media (max-width: 782px) { .admin-bar .site-top { top: 0; } }
.about-grid.no-circles { grid-template-columns: 1fr; }
