/* =========================================================
   Olu Abikoye — Corporate & Commercial Lawyer
   ========================================================= */

:root {
  --ink: #121920;
  --ink-2: #1b242e;
  --ink-3: #2a3440;
  --ivory: #f7f3ec;
  --paper: #ffffff;
  --gold: #c9954a;
  --gold-deep: #a97a36;
  --gold-soft: #e5c79a;
  --clay: #b8664a;
  --text: #2b2f35;
  --muted: #6a717b;
  --line: #e7dfd2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p { color: var(--muted); }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--gold-soft); color: var(--ink); }

.section { padding: 120px 0; }
.section-ivory { background: var(--ivory); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink p { color: rgba(255, 255, 255, .66); }

/* ---------- Type ---------- */
.display-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 24px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: lowercase;
  margin-right: -6px;
}
.eyebrow-light { color: var(--gold-soft); }
.body-lg { font-size: 1.12rem; color: var(--text); line-height: 1.75; }
.roles {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-deep);
  line-height: 1.6;
  margin-bottom: 24px;
}
.roles i { font-style: normal; color: var(--line); padding: 0 4px; }

/* ---------- Buttons & links ---------- */
.btn-gold, .btn-ghost, .btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); padding: 17px 30px; border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.section-ink .btn-gold:hover, .hero .btn-gold:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-gold i { transition: transform .3s var(--ease); }
.btn-gold:hover i { transform: translateX(4px); }
.btn-ghost { color: #fff; padding: 17px 30px; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-line { color: var(--ink); padding: 11px 20px; border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
}
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--gold-deep); }
.link-arrow:hover i { transform: translateX(4px); }
.link-light { color: #fff; }

/* ---------- Navigation ---------- */
.site-nav {
  min-height: var(--nav-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, min-height .3s;
}
.site-nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 30px rgba(18, 25, 32, .06); }
.brand img { height: 46px; width: auto; display: block; }
.site-nav .nav-link {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 16px !important;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--gold-deep); }
.navbar-toggler { border: 0; padding: 10px 4px; display: flex; flex-direction: column; gap: 7px; box-shadow: none !important; }
.toggler-bar { display: block; width: 26px; height: 1.5px; background: var(--ink); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: 12px 0 24px; }
  .site-nav .nav-link { padding: 12px 0 !important; border-bottom: 1px solid var(--line); }
  .site-nav .nav-link::after { display: none; }
  .site-nav .btn-line { margin-top: 18px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  background: #000;
  color: #fff;
  padding: calc(var(--nav-h) + 60px) 0 100px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: #0a0e13 url("images/hero-reflection.jpg") right center / cover no-repeat;
  transform: scale(1.06);
  transform-origin: 70% 50%;
  animation: heroIn 2.4s var(--ease) forwards, heroDrift 26s ease-in-out 2.4s infinite alternate;
}
/* slow drift once the intro zoom has settled */
@keyframes heroDrift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  50%  { transform: scale(1.05) translate3d(-1.2%, .6%, 0); }
  100% { transform: scale(1.09) translate3d(-2.2%, -.4%, 0); }
}
/* water ripple: an offset copy of the reflection seen through moving bands */
.hero-ripple {
  position: absolute;
  inset: -2% 0;
  background: url("images/hero-reflection.jpg") right center / cover no-repeat;
  transform: translate3d(0, 7px, 0) scaleY(1.012);
  opacity: .6;
  -webkit-mask-image: repeating-linear-gradient(180deg, transparent 0 9px, #000 13px 17px, transparent 21px 30px);
          mask-image: repeating-linear-gradient(180deg, transparent 0 9px, #000 13px 17px, transparent 21px 30px);
  -webkit-mask-size: 100% 30px;
          mask-size: 100% 30px;
  animation: rippleFlow 3.2s linear infinite, rippleSway 7s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes rippleFlow { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 0 30px; mask-position: 0 30px; } }
@keyframes rippleSway { from { transform: translate3d(-7px, 7px, 0) scaleY(1.012); } to { transform: translate3d(7px, 5px, 0) scaleY(1.012); } }
/* a soft gold glint sweeping across the water */
.hero-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(244, 220, 176, .16) 47%, rgba(255, 246, 225, .24) 50%, rgba(244, 220, 176, .16) 53%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  animation: glint 11s ease-in-out 1.5s infinite;
  z-index: 1;
}
@keyframes glint { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }
/* floating gold motes */
.hero-motes { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.hero-motes span {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #f4dcb0;
  box-shadow: 0 0 10px 2px rgba(229, 199, 154, .55);
  opacity: 0;
  animation: moteRise var(--d) linear var(--delay) infinite;
}
@keyframes moteRise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: .9; }
  50%  { transform: translate3d(18px, -45vh, 0); opacity: .55; }
  70%  { opacity: .85; }
  100% { transform: translate3d(-10px, -95vh, 0); opacity: 0; }
}
.hero .container { z-index: 4; }
/* staggered entrance for the banner text */
.hero-copy > * { animation: heroText 1s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .35s; }
.hero-copy > :nth-child(2) { animation-delay: .55s; }
.hero-copy > :nth-child(3) { animation-delay: .8s; }
.hero-copy > :nth-child(4) { animation-delay: 1.05s; }
@keyframes heroText { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
/* pause everything while the banner is scrolled out of view */
.hero.is-paused .hero-media, .hero.is-paused .hero-media *, .hero.is-paused .hero-media::before,
.hero.is-paused .hero-motes span { animation-play-state: paused; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 19, .95) 0%, rgba(10, 14, 19, .75) 36%, rgba(10, 14, 19, .12) 68%, rgba(10, 14, 19, .35) 100%),
    linear-gradient(0deg, rgba(10, 14, 19, .7), transparent 40%);
}
@keyframes heroIn { to { transform: scale(1); } }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  background: repeating-linear-gradient(180deg, rgba(244, 220, 176, 0) 0 14px, rgba(244, 220, 176, .045) 14px 16px);
  animation: shimmer 9s ease-in-out infinite alternate;
  z-index: 1;
}
.hero-media::after { z-index: 2; }
@keyframes shimmer { from { transform: translateY(0); } to { transform: translateY(18px); } }
.hero-copy { max-width: 640px; }
.hero-lede { color: rgba(255, 255, 255, .74); font-size: 1.08rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}
.hero-scroll span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

@media (max-width: 767.98px) {
  .hero-media, .hero-ripple { background-position: 72% center; }
  .hero-motes span:nth-child(n+6) { display: none; }
  .hero-media::after { background: linear-gradient(0deg, rgba(10, 14, 19, .95) 15%, rgba(10, 14, 19, .7) 60%, rgba(10, 14, 19, .5)); }
  .hero { align-items: flex-end; }
  .hero-scroll { display: none; }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--nav-h) + 110px) 0 90px;
  background: #0a0e13 url("images/hero-reflection.jpg") right center / cover no-repeat;
  color: #fff;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 19, .95) 0%, rgba(10, 14, 19, .72) 40%, rgba(10, 14, 19, .15) 75%, rgba(10, 14, 19, .35) 100%);
}
.page-banner .container { position: relative; }
.page-banner .display-title { margin: 0; }
.crumbs { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 10px; color: rgba(255, 255, 255, .35); }
@media (max-width: 767.98px) {
  .page-banner { background-position: 72% center; padding: calc(var(--nav-h) + 80px) 0 60px; }
  .page-banner::before { background: linear-gradient(0deg, rgba(10, 14, 19, .92), rgba(10, 14, 19, .45)); }
}

/* ---------- Abstract art frame ---------- */
.art-figure { margin: 0; }
.art-frame { position: relative; padding: 0 22px 22px 0; }
.art-frame::before {
  content: "";
  position: absolute;
  inset: 22px 0 0 22px;
  border: 1px solid var(--gold);
  z-index: 0;
}
.art-frame img { position: relative; z-index: 1; display: block; width: 100%; box-shadow: 0 30px 60px rgba(18, 25, 32, .18); }
.art-figure figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

/* ---------- Blog cards ---------- */
.post-card { background: var(--paper); height: 100%; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease); }
.post-card:hover { box-shadow: 0 24px 50px rgba(18, 25, 32, .08); }
.post-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-thumb img, .post-row:hover .post-thumb img { transform: scale(1.05); }
.post-date {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 10px 16px;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.post-date strong { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); letter-spacing: 0; }
.post-body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.post-body h3, .post-body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.25; margin-bottom: 14px; }
.post-body h3 a, .post-body h2 a { color: var(--ink); text-decoration: none; transition: color .3s; }
.post-body h3 a:hover, .post-body h2 a:hover { color: var(--gold-deep); }
.post-excerpt {
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  margin-bottom: 22px;
}
.post-body .link-arrow { align-self: flex-start; }

/* Blog list page */
.post-row { display: grid; grid-template-columns: 42% 1fr; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: 40px; margin-bottom: 40px; }
.post-row .post-thumb { aspect-ratio: 4 / 3; }
.post-row .post-body { padding: 4px 0 0 36px; }
.post-row .post-body h2 { font-size: 1.8rem; }
@media (max-width: 767.98px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row .post-body { padding: 24px 0 0; }
}

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--nav-h) + 30px); }
.side-block { background: var(--ivory); padding: 32px 30px; margin-bottom: 24px; }
.side-block h5 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.search-wrap { display: flex; border: 1px solid var(--line); background: var(--paper); }
.search-wrap input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font-size: .9rem; background: transparent; outline: none; }
.search-wrap button { border: 0; background: var(--ink); color: #fff; width: 52px; transition: background .3s; }
.search-wrap button:hover { background: var(--gold); color: var(--ink); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: color .3s, padding .3s;
}
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a:hover { color: var(--gold-deep); padding-left: 6px; }
.recent-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.recent-item img { width: 72px; height: 58px; object-fit: cover; flex-shrink: 0; }
.recent-item strong { display: block; font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; color: var(--ink); font-weight: 600; }
.recent-item small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.recent-item:hover strong { color: var(--gold-deep); }
.side-cta { background: var(--ink); }
.side-cta h5 { color: #fff; border-color: var(--ink-3); }
.side-cta p { color: rgba(255, 255, 255, .66); font-size: .92rem; }
@media (max-width: 991.98px) { .sidebar { position: static; } }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list i { font-size: 1.2rem; color: var(--gold); margin-top: 4px; }
.contact-list small { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-list span { color: var(--ink); font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-deep); }
.contact-form { background: var(--ivory); padding: 48px 44px; }
.contact-form h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.text-muted-soft { color: var(--muted); margin-bottom: 28px; }
.contact-form .form-label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.contact-form .form-control {
  border: 0;
  border-bottom: 1px solid #cfc6b8;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .3s;
}
.contact-form .form-control:focus { box-shadow: none; border-color: var(--gold); background: transparent; }
.contact-form .btn-gold { margin-top: 14px; }
@media (max-width: 575.98px) { .contact-form { padding: 34px 22px; } }

/* ---------- About: facets ---------- */
.facet { height: 100%; background: var(--paper); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.facet:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(18, 25, 32, .08); }
.facet-art svg, .facet-art img { display: block; width: 100%; height: auto; }
.facet h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); margin: 26px 30px 8px; }
.facet p { margin: 0 30px; padding-bottom: 32px; font-size: .93rem; }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0 0;
}

.cta-band { background: var(--ivory); padding: 80px 0; border-top: 1px solid var(--line); }
.cta-band .section-title { max-width: 680px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding: 100px 0 0; }
.footer-brand img { height: 52px; filter: invert(1) brightness(1.1); margin-bottom: 22px; }
.footer-lede { color: rgba(255, 255, 255, .6); max-width: 380px; font-size: .93rem; }
.footer-social { display: flex; gap: 10px; margin-top: 26px; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.site-footer h6 { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; }
.site-footer .col-6 a, .site-footer .col-lg-3 a { display: block; color: rgba(255, 255, 255, .7); text-decoration: none; padding: 5px 0; font-size: .92rem; transition: color .3s; }
.site-footer .col-6 a:hover, .site-footer .col-lg-3 a:hover { color: #fff; }
.site-footer .footer-cta { color: var(--gold-soft) !important; margin-top: 10px; font-weight: 600; }
.footer-bottom {
  margin-top: 80px;
  padding: 28px 0;
  border-top: 1px solid var(--ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---------- Category slider ---------- */
.cat-tabs { display: flex; gap: 28px; }
.cat-tab {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  min-width: 170px;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.cat-tab-num { display: block; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold-deep); }
.cat-tab-name { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 4px 0 12px; }
.cat-tab-bar { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.cat-tab-bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.cat-tab.active { color: var(--ink); }
.cat-tab.active .cat-tab-bar i { animation: tabProgress 7s linear forwards; }
.cat-carousel:hover ~ * .cat-tab-bar i, .cat-slider-section:hover .cat-tab.active .cat-tab-bar i { animation-play-state: paused; }
@keyframes tabProgress { to { transform: scaleX(1); } }

.cat-carousel { position: relative; }
.cat-slide { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--ivory); min-height: 560px; }
.cat-art { position: relative; display: block; overflow: hidden; background: var(--ink); }
.cat-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-art:hover img { transform: scale(1.04); }
.cat-count {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 14px 22px;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cat-count strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft); letter-spacing: 0; margin-right: 6px; }
.cat-copy { padding: 56px 56px 64px; display: flex; flex-direction: column; justify-content: center; }
.cat-copy .eyebrow { margin-bottom: 10px; }
.cat-name { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; color: var(--ink); margin-bottom: 14px; }
.cat-title { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--gold-deep); margin-bottom: 14px; }
.cat-copy .btn-gold { align-self: flex-start; }
.cat-latest { list-style: none; padding: 0; margin: 10px 0 30px; border-top: 1px solid var(--line); }
.cat-latest a {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding .3s var(--ease);
}
.cat-latest time { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat-latest span { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cat-latest i { color: var(--gold); font-size: .85rem; }
.cat-latest a:hover { padding-left: 8px; }
.cat-latest a:hover span { color: var(--gold-deep); }
.cat-arrows { position: absolute; right: 0; bottom: 0; display: flex; z-index: 3; }
.cat-arrows button {
  width: 58px; height: 58px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.05rem;
  transition: background .3s, color .3s;
}
.cat-arrows button + button { border-left: 1px solid var(--ink-3); }
.cat-arrows button:hover { background: var(--gold); color: var(--ink); }
.carousel-fade .carousel-item { transition-duration: .8s; }

@media (max-width: 991.98px) {
  .cat-slide { grid-template-columns: 1fr; min-height: 0; }
  .cat-art { aspect-ratio: 4 / 3; }
  .cat-copy { padding: 40px 28px 92px; }
  .cat-tabs { gap: 18px; }
  .cat-tab { min-width: 0; flex: 1; }
}
@media (max-width: 575.98px) {
  .cat-latest a { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .cat-latest time { grid-column: 1 / -1; }
}

/* ---------- About: notebooks ---------- */
.notebook { display: block; text-decoration: none; background: var(--ivory); height: 100%; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.notebook:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(18, 25, 32, .1); }
.notebook img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.notebook-body { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 34px 38px; }
.notebook-body .eyebrow { margin-bottom: 6px; }
.notebook strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.notebook-text { color: var(--muted); margin: 8px 0 22px; }

/* ---------- Story (single post) ---------- */
.story-header { padding-bottom: 80px; }
.story-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  max-width: 900px;
  margin: 0 0 22px;
}
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.story-meta i { color: var(--gold-soft); margin-right: 6px; }

.story { padding-top: 90px; }
.story-feature { margin: 0 0 56px; background: var(--ink); box-shadow: 0 30px 60px rgba(18, 25, 32, .14); }
.story-feature img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; margin: 0 auto; }
.story-feature.is-default img { aspect-ratio: 16 / 7; max-height: none; object-fit: cover; }
.prose { font-size: 1.06rem; line-height: 1.95; color: var(--text); overflow-wrap: break-word; }
.prose p { color: var(--text); margin: 0 0 1.4em; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4.6em;
  line-height: .82;
  padding: .08em .1em 0 0;
  color: var(--gold-deep);
}
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 2rem; } .prose h3 { font-size: 1.6rem; } .prose h4 { font-size: 1.3rem; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 26px;
  margin: 2em 0;
}
.prose blockquote p { color: var(--ink); margin-bottom: .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose img { max-width: 100%; height: auto !important; display: block; margin: 2em auto; }
.prose figure { margin: 2em 0; }
.prose figcaption, .prose .wp-element-caption { font-family: var(--serif); font-style: italic; color: var(--muted); text-align: center; margin-top: -1.2em; }
.prose hr, .prose .wp-block-separator { border: 0; height: 1px; background: var(--line); margin: 3em auto; width: 120px; opacity: 1; }
.prose iframe, .prose video { max-width: 100%; }
.prose .wp-block-image, .prose .aligncenter { text-align: center; }
.prose strong { color: var(--ink); }

.story-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.story-tags a { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; transition: border-color .3s, color .3s; }
.story-tags a:hover { border-color: var(--gold); color: var(--gold-deep); }
.story-share { display: flex; align-items: center; gap: 8px; }
.story-share span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.story-share a, .story-share button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s;
}
.story-share a:hover, .story-share button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.story-share .copied { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.author-card { display: flex; gap: 24px; align-items: flex-start; background: var(--ivory); padding: 34px; margin-top: 48px; }
.author-card img { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.author-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--ink); margin-bottom: 8px; }
.author-card p { font-size: .93rem; }

.story-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.story-nav-link { display: block; text-decoration: none; padding: 22px 0; border-top: 2px solid var(--ink); transition: border-color .3s; }
.story-nav-link:hover { border-color: var(--gold); }
.story-nav-link small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.story-nav-link span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
@media (max-width: 575.98px) {
  .story-nav { grid-template-columns: 1fr; }
  .story-nav .text-end { text-align: left !important; }
  .author-card { flex-direction: column; padding: 26px; }
  .prose { font-size: 1rem; }
}

/* ---------- Comments ---------- */
.story-meta a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.story-meta a:hover { color: #fff; }
.comments { margin-top: 64px; }
.comments-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.2; color: var(--ink); margin-bottom: 32px; }
.comments-title em { color: var(--gold-deep); }
.comment-list, .comment-children { list-style: none; margin: 0; padding: 0; }
.comment-children { margin-left: 34px; padding-left: 26px; border-left: 1px solid var(--line); }
.comment-body { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.comment-children .comment-body { border-top: 0; padding-top: 10px; }
.comment-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--ivory);
  border: 1px solid var(--line);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.is-author > .comment-body .comment-avatar { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.comment-author { font-size: .95rem; color: var(--ink); }
.comment-author a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.comment-badge { font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 3px 8px; }
.comment-date { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.comment-date:hover { color: var(--gold-deep); }
.comment-content { overflow-wrap: anywhere; }
.comment-content p { color: var(--text); font-size: .96rem; line-height: 1.8; margin-bottom: .8em; }
.comment-content a { color: var(--gold-deep); }
.comment-reply { background: none; border: 0; padding: 0; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.comment-reply:hover { color: var(--gold-deep); }
.comment:target > .comment-body { background: linear-gradient(90deg, rgba(229, 199, 154, .25), transparent); }

.comment-respond { background: var(--ivory); padding: 40px 38px; margin-top: 36px; }
.comment li .comment-respond { margin: 10px 0 24px; }
.respond-title { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--ink); margin-bottom: 6px; }
.respond-replying { font-size: .85rem; margin-bottom: 4px; }
.respond-replying strong { color: var(--ink); }
.respond-replying button { background: none; border: 0; padding: 0; color: var(--gold-deep); text-decoration: underline; font-size: .85rem; }
.comment-note { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.req { color: var(--clay); }
.comment-form .form-label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.comment-form .form-control { border: 0; border-bottom: 1px solid #cfc6b8; border-radius: 0; background: transparent; padding: 10px 0; font-size: .95rem; color: var(--ink); }
.comment-form textarea.form-control { border: 1px solid #cfc6b8; padding: 14px 16px; background: var(--paper); }
.comment-form .form-control:focus { box-shadow: none; border-color: var(--gold); }
.comment-remember { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.comment-remember input { margin-top: 5px; accent-color: var(--gold-deep); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin: 14px 0 6px; font-size: .9rem; border-left: 3px solid; background: var(--paper); }
.comment-alert.is-ok { border-color: #4f8a5b; color: #2f5d39; }
.comment-alert.is-pending { border-color: var(--gold); color: #6d4c1d; }
.comment-alert.is-error { border-color: var(--clay); color: #8a3b26; }
.comments-closed { font-style: italic; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 575.98px) {
  .comment-children { margin-left: 10px; padding-left: 14px; }
  .comment-avatar { width: 38px; height: 38px; font-size: .95rem; }
  .comment-respond { padding: 28px 20px; }
}

/* ---------- Contact on dark ---------- */
.contact-list-dark li { border-color: var(--ink-3); }
.contact-list-dark span, .contact-list-dark a { color: #fff; }
.contact-list-dark small { color: rgba(255, 255, 255, .5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media, .hero-media::before, .hero-scroll span, .cat-tab-bar i,
  .hero-ripple, .hero-glint, .hero-copy > * { animation: none !important; }
  .hero-motes, .hero-glint { display: none; }
  .hero-media { transform: none; }
}

/* ---------- Responsive spacing ---------- */
@media (max-width: 991.98px) {
  .section { padding: 84px 0; }
  .site-footer { padding-top: 72px; }
}
@media (max-width: 575.98px) {
  .section { padding: 68px 0; }
  .art-frame { padding: 0 14px 14px 0; }
  .art-frame::before { inset: 14px 0 0 14px; }
}
