/* =========================================================
   Masuduzzaman Kamrul — editorial portfolio (site-v2)
   Ivory · black · grey · serif headlines · generous space
   ========================================================= */

:root {
  --ivory: #F7F4EF;
  --ivory-deep: #EFEBE3;
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #2A2A2A;
  --muted: #6E6A64;
  --rule: #DED9D0;
  --blob: #E2DDD4;
  --blob-deep: #D5CFC4;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ivory);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo {
  display: inline-flex; align-items: center; line-height: 0;
}
.logo img {
  display: block; height: 34px; width: auto;
}

.primary-nav {
  display: flex; align-items: center; gap: clamp(0.85rem, 1.8vw, 1.55rem);
}
.primary-nav a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.015em;
  color: var(--ink-soft); transition: color 0.2s;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav .nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--ivory) !important;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.primary-nav .nav-cta:hover { background: #222; transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 2.25rem; height: 2.25rem;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 8vw, 6rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center; min-height: calc(100vh - 5rem);
}
.hero-kicker {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 500;
  letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 1.35rem;
  display: flex; flex-direction: column; gap: 0.08em;
}
.hero-hello { display: block; }
.hero-name {
  display: block;
  font-size: 0.92em;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.4;
  color: var(--ink-soft); max-width: 28ch; margin-bottom: 2rem;
  display: flex; flex-direction: column; gap: 0.15em;
}
.hero-tagline span { display: block; white-space: nowrap; }
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem;
  margin-bottom: 2.25rem;
}
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink); color: var(--ivory);
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.btn-pill:hover { background: #1c1c1c; transform: translateY(-1px); }
.btn-pill span { font-size: 1rem; line-height: 1; }

.hero-location {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted); margin: 0;
}
.loc-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
  opacity: 0.55;
}

.hero-socials {
  display: flex; gap: 0.85rem; align-items: center;
}
.hero-socials a, .contact-socials a {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--rule); display: grid; place-items: center;
  color: var(--ink); transition: background 0.2s, border-color 0.2s;
}
.hero-socials a:hover, .contact-socials a:hover {
  background: var(--ink); color: var(--ivory); border-color: var(--ink);
}
.hero-socials svg, .contact-socials svg { width: 14px; height: 14px; fill: currentColor; }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: clamp(360px, 62vh, 640px);
}
.blob {
  position: absolute; inset: 8% 6% 0 10%;
  background: var(--blob);
  border-radius: 48% 52% 42% 58% / 55% 40% 60% 45%;
  z-index: 0;
  animation: blob-breathe 12s ease-in-out infinite alternate;
}
@keyframes blob-breathe {
  from { border-radius: 48% 52% 42% 58% / 55% 40% 60% 45%; transform: scale(1); }
  to   { border-radius: 55% 45% 55% 45% / 48% 55% 45% 52%; transform: scale(1.02); }
}
.hero-portrait {
  position: relative; z-index: 1;
  width: min(100%, 420px); height: auto;
  filter: drop-shadow(0 18px 40px rgba(10,10,10,0.12));
  object-fit: contain; object-position: bottom center;
  max-height: min(72vh, 620px);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-inner.narrow { max-width: 1080px; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 40rem; }
.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.85rem;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem); font-weight: 500;
}
.section-lede {
  margin-top: 1rem; color: var(--muted); font-size: 1.02rem; max-width: 38rem;
}

/* ---------- About ---------- */
.about { background: var(--ivory); }
.about-grid {
  display: grid; grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.about-body {
  font-size: 1.05rem; color: var(--ink-soft); max-width: 40rem;
}
.about-body p { margin-bottom: 1.25em; }
.pull-quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.35;
  color: var(--ink); border: 0; margin: 2.25rem 0; padding: 0;
  max-width: 22ch;
}
.pull-quote::before {
  content: ""; display: block; width: 2.5rem; height: 1px;
  background: var(--ink); margin-bottom: 1.1rem;
}
.welcome {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  color: var(--ink); margin-top: 1.75rem !important;
}
.about-photo {
  margin: 0 0 1.5rem; overflow: hidden; border-radius: 2px;
  aspect-ratio: 4 / 5; background: var(--blob);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; filter: none; }
.about-meta { display: grid; gap: 1rem; }
.about-meta div {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}
.about-meta dt { color: var(--muted); font-weight: 500; }
.about-meta dd { margin: 0; color: var(--ink); }

/* ---------- Ventures ---------- */
.ventures { background: var(--ivory-deep); }
.venture-card {
  display: grid; grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  background: var(--ivory); border: 1px solid var(--rule);
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: 4px;
}
.venture-role {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.65rem;
}
.venture-card h3 {
  font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 0.35rem;
}
.venture-place { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.venture-card p { color: var(--ink-soft); max-width: 38rem; }
.text-link {
  display: inline-block; margin-top: 1rem;
  font-size: 0.9rem; font-weight: 500;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--muted); border-color: var(--muted); }
.venture-tags {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-content: start;
}
.venture-tags li {
  font-size: 0.78rem; padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: 2px;
  background: var(--blob); cursor: zoom-in;
  grid-column: span 4; aspect-ratio: 4 / 5;
  margin: 0; width: 100%; min-width: 0;
}
.gallery-item picture { display: block; width: 100%; height: 100%; }
.gallery-item:nth-child(7n+1) { grid-column: span 5; aspect-ratio: 5 / 4; }
.gallery-item:nth-child(7n+3) { grid-column: span 3; }
.gallery-item:nth-child(7n+5) { grid-column: span 4; aspect-ratio: 1; }
.gallery-item:nth-child(7n+6) { grid-column: span 5; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: saturate(0.92);
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(10,10,10,0.55));
  color: #fff; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.02em; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .cap { opacity: 1; }

/* ---------- Resume ---------- */
.resume-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.col-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule);
}
.timeline { display: flex; flex-direction: column; gap: 1.75rem; }
.timeline li { padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-when {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem;
}
.tl-title {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  margin-bottom: 0.2rem;
}
.tl-org { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.45rem; }
.tl-org a { border-bottom: 1px solid var(--rule); }
.tl-org a:hover { border-color: var(--ink); }
.tl-sum { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Projects ---------- */
.projects { background: var(--ivory-deep); }
.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.project-card {
  background: var(--ivory); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 0.65rem; min-height: 14rem;
}
.project-meta {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.project-card h3 { font-size: 1.55rem; }
.project-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; margin: 0; }

/* ---------- Insights ---------- */
.insight-list { display: flex; flex-direction: column; }
.insight-card {
  display: grid; grid-template-columns: 9rem 1fr auto;
  gap: 1.25rem; align-items: baseline;
  padding: 1.5rem 0; border-top: 1px solid var(--rule);
  transition: padding-left 0.3s var(--ease);
}
.insight-card:last-child { border-bottom: 1px solid var(--rule); }
.insight-card:hover { padding-left: 0.5rem; }
.insight-tag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.insight-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; max-width: 36rem;
}
.insight-status {
  font-size: 0.75rem; color: var(--muted); font-style: italic;
  font-family: var(--serif); margin: 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--ivory); }
.contact .eyebrow { color: #9A9590; }
.contact .section-lede { color: #B8B3AB; }
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.contact-email {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500; display: inline-block; margin-bottom: 0.75rem;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.contact-email:hover { border-bottom-color: var(--ivory); }
.contact-loc { color: #9A9590; font-size: 0.9rem; margin-bottom: 1.5rem; }
.contact-socials { display: flex; gap: 0.75rem; margin-bottom: 2rem; }
.contact-socials a {
  border-color: #3A3A3A; color: var(--ivory);
}
.contact-socials a:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.contact .btn-pill {
  background: var(--ivory); color: var(--ink);
}
.contact .btn-pill:hover { background: #fff; }
.booking-wrap {
  background: #141414; border: 1px solid #2A2A2A; border-radius: 8px;
  overflow: hidden; min-height: 420px; margin-top: 0.25rem;
}
.booking-wrap iframe {
  width: 100%; height: 540px; border: 0; display: block; background: #fff;
}
.booking-fallback-note {
  padding: 2rem; color: #9A9590; font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #9A9590;
  border-top: 1px solid #222; padding: 1.75rem 0 2.25rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-mark {
  margin: 0; line-height: 0;
}
.footer-mark img {
  display: block; height: 30px; width: auto; opacity: 0.95;
}

.footer-note { margin: 0; font-size: 0.8rem; }
.footer-top { font-size: 0.8rem; color: #B8B3AB; }
.footer-top:hover { color: var(--ivory); }
.footer-socials {
  display: flex; gap: 0.65rem; list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; justify-content: center;
}
.footer-socials a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid #333; color: #B8B3AB;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-socials a:hover { color: var(--ivory); border-color: #555; background: #161616; }
.footer-socials svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- About page ---------- */
.about-page-hero {
  position: relative; min-height: clamp(58vh, 68vh, 780px);
  display: flex; align-items: flex-end; color: var(--ivory);
  overflow: hidden; background: #1a1a1a;
}
.about-page-hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.about-page-hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 22% 62%;
  display: block; filter: none; /* full color */
}
.about-page-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.82) 100%);
}
.about-page-hero__inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(2.5rem, 6vw, 4rem);
}
.about-page-hero__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247,244,239,0.72); margin-bottom: 0.75rem;
}
.about-page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem); line-height: 1.1; margin: 0;
  max-width: 16ch;
}
.about-page-body { background: var(--ivory); }
.about-page-body .about-prose {
  max-width: 40rem; font-size: 1.08rem; color: var(--ink-soft); line-height: 1.75;
}
.about-page-body .about-prose p { margin-bottom: 1.25em; }
.about-page-body .about-prose .welcome {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink);
  margin-top: 2rem;
}
.about-page-meta {
  margin-top: 2.5rem; display: grid; gap: 0.85rem;
  border-top: 1px solid var(--rule); padding-top: 1.75rem;
}
.about-page-meta div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem; }
.about-page-meta dt { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.about-page-meta dd { margin: 0; color: var(--ink); font-weight: 500; }
.about-teaser-cta { margin-top: 1.5rem; }




/* ---------- Updates hubs ---------- */
.updates-hub { background: var(--ivory); }
.updates-hub--alt { background: var(--ivory-deep); }
.hub-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.85rem 1.5rem; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.hub-note {
  margin: 0; font-size: 0.82rem; color: var(--muted); max-width: 28rem;
}
.post-list {
  display: grid; gap: 0.85rem;
}
.post-card {
  display: grid; grid-template-columns: 7.5rem 1fr;
  gap: 1rem 1.35rem; align-items: start;
  padding: 1.35rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.updates-hub--alt .post-card { background: var(--ivory); }
.post-card:hover { border-color: #cfc8bc; }
.post-date {
  margin: 0; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding-top: 0.35rem;
}
.post-body { min-width: 0; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}
.post-badge {
  display: inline-flex; align-items: center;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--muted); background: var(--ivory);
}
.post-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 0 0 0.45rem; max-width: 36rem;
}
.post-card h3 a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.post-card h3 a:hover { border-bottom-color: var(--ink); }
.post-excerpt {
  margin: 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 40rem;
}
.post-empty {
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  border: 1px dashed var(--rule); border-radius: 3px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  text-align: left;
}
.post-empty h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem); margin-bottom: 0.65rem;
}
.post-empty p { color: var(--muted); max-width: 34rem; margin-bottom: 1.25rem; }
.inline-link {
  color: inherit; border-bottom: 1px solid currentColor;
  text-underline-offset: 2px;
}
.inline-link:hover { color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ivory); }
.newsletter-card {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.newsletter-lede { margin-top: 0.85rem; max-width: 34rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 1.25rem; }
.nf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem;
}
.nf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.nf-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.nf-label em { font-style: normal; letter-spacing: 0.04em; text-transform: none; font-weight: 400; opacity: 0.85; }
.nf-field input[type="text"],
.nf-field input[type="email"] {
  width: 100%;
  font: inherit; font-size: 0.95rem;
  color: var(--ink); background: var(--ivory);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.85rem 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.nf-field input:focus {
  outline: none; border-color: var(--ink); background: #fff;
}
.nf-interests {
  margin: 0; padding: 0; border: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.nf-checks {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.nf-check {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--ivory); cursor: pointer;
  font-size: 0.84rem; color: var(--ink-soft);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}
.nf-check:hover { border-color: #bbb; color: var(--ink); }
.nf-check:has(input:checked) {
  border-color: var(--ink); background: var(--ink); color: var(--ivory);
}
.nf-check input {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.nf-hint {
  margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; max-width: 40rem;
}
.nf-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.25rem;
}
.nf-note { margin: 0; font-size: 0.78rem; color: var(--muted); max-width: 28rem; }
.nf-error {
  margin: 0; font-size: 0.85rem; color: #8B1E1E;
}
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  opacity: 0 !important;
}

/* ---------- Thanks ---------- */
.thanks-page {
  min-height: calc(100vh - 11rem);
  display: flex; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
}
.thanks-inner { max-width: 36rem; margin: 0 auto; }
.thanks-inner h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem); margin-bottom: 1rem;
}
.thanks-lede {
  font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.7;
}
.thanks-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }
.thanks-actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  display: grid; place-items: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 82vh;
  object-fit: contain; border-radius: 2px;
}
.lightbox #lb-caption {
  color: #ccc; font-size: 0.85rem; margin-top: 0.75rem; text-align: center;
}
.lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-size: 2rem; color: #fff; line-height: 1;
}

/* ---------- Reveal ---------- */
/* Always visible: never blank the page if JS is stale/missing.
   Optional fade-up only when JS marks readiness. */
.reveal {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-ready .reveal:not(.is-in):not(.in) {
  opacity: 0; transform: translateY(18px);
}
html.js-ready .reveal.is-in,
html.js-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav { gap: 0.85rem; }
  .primary-nav a { font-size: 0.76rem; }
  .primary-nav .nav-cta { padding: 0.5rem 1rem; }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
    gap: 1.75rem;
  }
  .hero-visual {
    order: -1;
    min-height: 0;
    width: 100%;
    justify-content: center;
  }
  .hero-portrait {
    width: min(72%, 360px);
    max-height: min(52vh, 480px);
  }
  .blob { inset: 6% 12% 0 12%; }
  .hero-name { white-space: normal; }
  .hero-tagline span { white-space: normal; }
  .about-grid, .venture-card, .resume-grid, .contact-grid { grid-template-columns: 1fr; }
  .newsletter-card { grid-template-columns: 1fr; }
  .nf-row { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; gap: 0.35rem 0; }
  .post-date { padding-top: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .insight-card { grid-template-columns: 1fr; gap: 0.35rem; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .gallery-item,
  .gallery-item:nth-child(7n+1),
  .gallery-item:nth-child(7n+3),
  .gallery-item:nth-child(7n+5),
  .gallery-item:nth-child(7n+6) {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
  .about-page-hero {
    min-height: clamp(48vh, 56vh, 620px);
  }
  .about-page-hero__media img {
    object-position: 30% 36%;
  }
  .footer-socials { flex: 1 1 100%; justify-content: flex-start; order: 3; }
  .footer-note { flex: 1 1 100%; order: 4; }
  .footer-top { order: 2; margin-left: auto; }
}

/* Hamburger earlier so tablet nav never cramps */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 auto 0; top: 3.5rem;
    background: color-mix(in srgb, var(--ivory) 96%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.35rem var(--pad) 1.15rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
    z-index: 40;
  }
  .primary-nav.is-open {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .primary-nav a {
    padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem;
  }
  .primary-nav .nav-cta {
    margin-top: 0.85rem; justify-content: center; border: 0;
  }
  .logo img { height: 30px; }
  .footer-mark img { height: 28px; }
}

@media (max-width: 720px) {
  :root { --pad: clamp(1.15rem, 5.2vw, 1.5rem); }
  .header-inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .section { padding: clamp(3.25rem, 12vw, 5rem) 0; }
  .hero {
    padding-top: 1.15rem;
    gap: 1.35rem;
  }
  .hero-visual { margin: 0 auto; max-width: 20rem; }
  .hero-portrait {
    width: min(82%, 280px);
    max-height: min(44vh, 390px);
  }
  .hero-kicker { margin-bottom: 1rem; }
  .hero-title {
    font-size: clamp(1.95rem, 8.2vw, 2.55rem);
    margin-bottom: 0.95rem;
  }
  .hero-name {
    font-size: 0.9em;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }
  .hero-tagline {
    font-size: clamp(1.02rem, 4.1vw, 1.15rem);
    max-width: none;
    margin-bottom: 1.35rem;
  }
  .hero-tagline span { white-space: normal; }
  .hero-actions {
    margin-bottom: 1.35rem;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery { gap: 0.55rem; }
  .gallery-item .cap { opacity: 1; padding: 0.85rem 0.7rem 0.7rem; font-size: 0.7rem; }
  .about-page-hero {
    min-height: min(56vh, 500px);
  }
  .about-page-hero__media img {
    object-position: 34% 32%;
  }
  .about-page-hero__inner {
    padding-bottom: 1.6rem;
  }
  .about-page-hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.55rem);
    max-width: 11ch;
  }
  .booking-wrap { min-height: 480px; }
  .booking-wrap iframe { height: 620px; }
  .contact-grid { gap: 1.75rem; }
  .contact .section-inner { padding-left: var(--pad); padding-right: var(--pad); }
  .newsletter-card { padding: 1.5rem 1.2rem; }
  .nf-checks { gap: 0.45rem; }
  .nf-check { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
  .contact .section-head { margin-bottom: 1.75rem; }
  .contact-socials { margin-bottom: 1.35rem; gap: 0.65rem; }
  .contact-socials a, .hero-socials a {
    width: 2.45rem; height: 2.45rem;
  }
  .contact-socials svg, .hero-socials svg { width: 15px; height: 15px; }
  .contact .btn-pill { margin-bottom: 0.35rem; }
  .site-footer { padding: 1.5rem 0 2rem; }
  .footer-inner { gap: 0.85rem 1rem; }
  .insight-card:hover { padding-left: 0; }
}

@media (max-width: 400px) {
  .hero-portrait { width: min(88%, 260px); }
  .hero-title { font-size: clamp(1.85rem, 8.4vw, 2.2rem); }
  .hero-name { font-size: 0.88em; }
  .logo img { height: 28px; }
  .footer-mark img { height: 26px; }
}



/* ===== multi-page additions ===== */
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1.5px 0 var(--ink);
}
.primary-nav .nav-cta[aria-current="page"] {
  box-shadow: none;
  background: #222;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad) clamp(1.5rem, 4vw, 2.5rem);
}
.page-hero-inner { max-width: 40rem; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin: 0.35rem 0 0.85rem;
}
.page-hero .section-lede { margin-bottom: 0; max-width: 36rem; }

.page-next {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}

.explore { background: var(--ivory); border-top: 1px solid var(--rule); }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.45rem 1.35rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease);
  min-height: 11.5rem;
}
.explore-card:hover {
  transform: translateY(-3px);
  border-color: #cfc8bc;
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.06);
}
.explore-meta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.explore-card h3 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0;
}
.explore-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.explore-go {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

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

.project-card h2,
.insight-card h2,
.venture-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}

@media (max-width: 720px) {
  .explore-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 1.75rem; padding-bottom: 1rem; }
}

@media (min-width: 960px) {
  .explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Book page / compact booking ---------- */
.contact-grid--single { grid-template-columns: 1fr; max-width: 640px; }
.page-book .page-hero--compact { padding-bottom: 1rem; }
.book-inner { max-width: 760px; margin: 0 auto; }
.booking-wrap--compact { min-height: 0; }
.booking-wrap--compact iframe { height: 380px; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.book .book-back { color: #9A9590; font-size: 0.9rem; }
@media (max-width: 720px) {
  .booking-wrap--compact iframe { height: 420px; }
}
