/* ==========================================================================
   UNIVERSITY OF LAGOS LIBRARY  ·  digital identity
   Palette derived from library.unilag.edu.ng  (oxblood #6C0000 / navy / cream)
   ========================================================================== */

:root {
  --cream: #F6F2E9;
  --bone: #EDE5D6;
  --sand: #E2D8C4;
  --ink: #0D0B0A;
  --ink-70: rgba(13, 11, 10, .7);
  --ink-50: rgba(13, 11, 10, .5);
  --oxblood: #6C0000;
  --wine: #400000;
  --gold: #B08A46;
  --navy: #16324B;
  --line: rgba(13, 11, 10, .16);
  --line-light: rgba(246, 242, 233, .22);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(18px, 4.6vw, 74px);
  --max: 1560px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
figure,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0
}

ul,
ol {
  padding: 0;
  list-style: none
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

input,
select,
textarea {
  font: inherit;
  color: inherit
}

html.lenis,
html.lenis body {
  height: auto
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100vh
}

::selection {
  background: var(--oxblood);
  color: var(--cream)
}

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.028em;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(3.1rem, 9.2vw, 9.6rem)
}

h2.display {
  font-size: clamp(2.2rem, 5.4vw, 5.2rem)
}

h3.display {
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
  line-height: .98
}

.ital {
  font-style: italic
}

.ox {
  color: var(--oxblood)
}

.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.4;
}

.lede {
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  line-height: 1.68;
  color: var(--ink-70);
  max-width: 62ch
}

.prose p {
  max-width: 68ch;
  color: var(--ink-70);
  margin-bottom: 1.05em
}

.prose p:last-child {
  margin-bottom: 0
}

.prose strong {
  color: var(--ink);
  font-weight: 600
}

.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.4em;
  line-height: .72;
  padding: .06em .12em .02em 0;
  color: var(--oxblood);
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter)
}

.section {
  padding: clamp(64px, 8.2vw, 140px) 0;
  position: relative
}

.section--tight {
  padding: clamp(44px, 5vw, 74px) 0
}

.rule {
  height: 1px;
  background: var(--line);
  width: 100%
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 3.6vw, 56px)
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--oxblood);
  margin-bottom: 14px;
  font-weight: 600;
}

.sec-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--oxblood);
  margin-bottom: 16px
}

.sec-head .eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--oxblood)
}

/* ---------- grain + vignette ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor ---------- */
.cur,
.cur-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0)
}

.cur {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(13, 11, 10, .55);
  transition: width .32s var(--ease), height .32s var(--ease), background .32s, border-color .32s, opacity .3s
}

.cur-dot {
  width: 4px;
  height: 4px;
  background: var(--oxblood)
}

.cur.is-hot {
  width: 62px;
  height: 62px;
  background: rgba(108, 0, 0, .09);
  border-color: var(--oxblood)
}

body.no-cur .cur,
body.no-cur .cur-dot {
  display: none
}

@media (hover:none),
(max-width:900px) {

  .cur,
  .cur-dot {
    display: none
  }
}

/* ---------- preloader ---------- */
#pre {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1)
}

#pre.done {
  transform: translateY(-101%)
}

#pre .pre-in {
  width: min(560px, 84vw);
  text-align: left
}

#pre .pre-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  color: rgba(246, 242, 233, .6)
}

#pre .pre-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.02;
  margin-bottom: 26px
}

#pre .pre-bar {
  height: 1px;
  background: rgba(246, 242, 233, .2);
  position: relative;
  overflow: hidden
}

#pre .pre-bar span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s linear
}

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: rgba(246, 242, 233, .76);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 36px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  z-index: 120;
}

.topbar .tb-l {
  display: flex;
  gap: 18px;
  align-items: center
}

.topbar a {
  transition: color .25s
}

.topbar a:hover {
  color: var(--gold)
}

.topbar .tb-r {
  display: flex;
  gap: 18px;
  align-items: center
}

.topbar .dot {
  width: 3px;
  height: 3px;
  background: rgba(246, 242, 233, .38);
  border-radius: 50%
}

.topbar [data-status] {
  font-size: 0.7rem;
  letter-spacing: .14em;
  border: 0;
  padding: 0;
  color: rgba(246, 242, 233, .82);
}

.topbar [data-status].open {
  color: #9BE3B8;
}

.topbar [data-status].closed {
  color: #F0A9A3;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 130;
  background: rgba(246, 242, 233, .9);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), background .35s;
}

.site-head.raised {
  background: rgba(246, 242, 233, .97);
  box-shadow: 0 14px 40px -28px rgba(13, 11, 10, .48)
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px var(--gutter)
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain
}

.brand .bw {
  display: flex;
  flex-direction: column;
  line-height: 1.05
}

.brand .bw b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: -.01em;
  white-space: nowrap
}

.brand .bw span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 4px;
  white-space: nowrap
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px)
}

.nav>a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 10px 0;
  position: relative;
  color: var(--ink-70);
  transition: color .25s;
  white-space: nowrap;
}

.nav>a::after,
.nav-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 1px;
  width: 100%;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s var(--ease)
}

.nav>a:hover,
.nav>a[aria-current="page"],
.nav-item:hover .nav-trigger,
.nav-item.open .nav-trigger,
.nav-trigger.is-active {
  color: var(--oxblood)
}

.nav>a:hover::after,
.nav>a[aria-current="page"]::after,
.nav-item:hover .nav-trigger::after,
.nav-item.open .nav-trigger::after,
.nav-trigger.is-active::after {
  transform: scaleX(1);
  transform-origin: left
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-trigger .chev {
  width: 11px;
  height: 11px;
  opacity: .65;
  transition: transform .28s var(--ease), opacity .25s;
}

.nav-item:hover .nav-trigger .chev,
.nav-item:focus-within .nav-trigger .chev,
.nav-item.open .nav-trigger .chev {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dd {
  position: absolute;
  top: calc(100% + 6px);
  left: -16px;
  min-width: 296px;
  background: rgba(252, 249, 243, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(13, 11, 10, 0.12);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 24px 48px -12px rgba(13, 11, 10, 0.18), 0 4px 12px rgba(13, 11, 10, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  z-index: 200;
  display: grid;
  gap: 2px;
}

.nav-dd::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd,
.nav-item.open .nav-dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dd a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  transition: background .2s, padding-left .2s;
}

.nav-dd a::after {
  display: none !important;
}

.nav-dd a:hover,
.nav-dd a[aria-current="page"] {
  background: rgba(108, 0, 0, 0.06);
  padding-left: 18px;
}

.nav-dd-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-dd a:hover .nav-dd-title,
.nav-dd a[aria-current="page"] .nav-dd-title {
  color: var(--oxblood);
}

.nav-dd-sub {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--ink-50);
  line-height: 1.35;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background .3s, color .3s, border-color .3s;
}

.icon-btn:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--cream)
}

.icon-btn svg {
  width: 15px;
  height: 15px
}

.head-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 6px;
  background: var(--oxblood);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s, transform .25s;
  white-space: nowrap;
}

.head-cat-btn:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  place-items: center
}

.burger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: transform .4s var(--ease), background .3s
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform .4s var(--ease)
}

.burger span::before {
  top: -6px
}

.burger span::after {
  top: 6px
}

body.menu-open .burger span {
  background: transparent
}

body.menu-open .burger span::before {
  transform: translateY(6px) rotate(45deg)
}

body.menu-open .burger span::after {
  transform: translateY(-6px) rotate(-45deg)
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 129;
  background: rgba(246, 242, 233, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--ink);
  padding: 108px var(--gutter) 44px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-io);
}

body.menu-open .drawer {
  clip-path: inset(0 0 0 0)
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 36px;
  max-width: var(--max);
  margin: 0 auto;
}

.dr-col {
  display: flex;
  flex-direction: column;
}

.dr-heading {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oxblood);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(108, 0, 0, .2);
  font-weight: 600;
}

.drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 3.2vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink);
  border-bottom: 1px solid rgba(13, 11, 10, .09);
  padding: 10px 0;
  transition: color .2s, padding-left .2s;
}

.drawer a:hover,
.drawer a[aria-current="page"] {
  color: var(--oxblood);
  padding-left: 6px;
}

.drawer .d-meta {
  max-width: var(--max);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-50);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media(max-width:1024px) {
  .nav {
    display: none
  }

  .burger {
    display: grid
  }

  .head-tools .icon-btn.desk,
  .head-tools .head-cat-btn {
    display: none
  }
}

@media(max-width:680px) {
  .topbar {
    font-size: 0.68rem;
    letter-spacing: .1em
  }

  .topbar [data-status],
  .topbar .tb-hide-sm {
    display: none
  }

  .brand img {
    width: 36px;
    height: 36px
  }

  .brand .bw b {
    font-size: .96rem
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .42s var(--ease), border-color .42s;
  background: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .52s var(--ease-io)
}

.btn:hover {
  color: var(--cream)
}

.btn:hover::before {
  transform: translateY(0)
}

.btn .ar {
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform .4s var(--ease)
}

.btn .ar::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg)
}

.btn:hover .ar {
  transform: translateX(5px)
}

.btn--solid {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--cream)
}

.btn--solid::before {
  background: var(--ink)
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink)
}

.btn--light {
  border-color: rgba(246, 242, 233, .4);
  color: var(--cream)
}

.btn--light::before {
  background: var(--cream)
}

.btn--light:hover {
  color: var(--ink)
}

.btn--sm {
  padding: 11px 18px;
  font-size: 0.76rem
}

.btn--block {
  width: 100%
}

.btn .sq {
  width: 5px;
  height: 5px;
  background: currentColor
}

/* ---------- reveal primitives ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .95s var(--ease), transform .95s var(--ease)
}

[data-reveal].in {
  opacity: 1;
  transform: none
}

[data-reveal="mask"] {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transform: none;
  transition: clip-path 1.05s var(--ease-io)
}

[data-reveal="mask"].in {
  clip-path: inset(0 0 0 0)
}

.line-mask {
  display: block;
  overflow: hidden
}

.line-mask>span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-io)
}

.in>.line-mask>span,
.line-mask.in>span {
  transform: translateY(0)
}

.stagger>* {
  transition-delay: calc(var(--i, 0)*90ms)
}

.stagger.in>* {
  opacity: 1;
  transform: none
}

[data-parallax] {
  will-change: transform
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition-duration: .001s !important
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none
  }

  .line-mask>span {
    transform: none
  }
}

/* ---------- arch / tombstone frame ---------- */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--sand);
  isolation: isolate;
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s var(--ease), filter .7s
}

.arch:hover img {
  transform: scale(1.055)
}

.arch--flat {
  border-radius: 0
}

.arch--soft {
  border-radius: 6px 6px 0 0
}

.arch--half {
  border-radius: 50% 50% 0 0 / 38% 38% 0 0
}

.arch-card {
  display: block;
  position: relative
}

.arch-card .arch {
  aspect-ratio: 3/4
}

.arch-card .ac-body {
  padding-top: 18px;
  border-top: 1px solid transparent
}

.arch-card .ac-kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 9px;
  display: block
}

.arch-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.12;
  letter-spacing: -.01em;
  transition: color .35s
}

.arch-card:hover h3 {
  color: var(--oxblood)
}

.arch-card p {
  font-size: .86rem;
  color: var(--ink-50);
  line-height: 1.6;
  margin-top: 8px;
  max-width: 34ch
}

/* media frame with corner ticks */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--sand)
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.frame .tick {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(246, 242, 233, .85);
  z-index: 2
}

.frame .tick.tl {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0
}

.frame .tick.tr {
  top: 14px;
  right: 14px;
  border-left: 0;
  border-bottom: 0
}

.frame .tick.bl {
  bottom: 14px;
  left: 14px;
  border-right: 0;
  border-top: 0
}

.frame .tick.br {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(34px, 4.4vw, 62px);
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: end
}

@media(max-width:980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px
  }
}

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-50);
  margin-bottom: clamp(18px, 2vw, 30px)
}

.hero-meta .hm {
  display: flex;
  align-items: center;
  gap: 9px
}

.hero-meta .hm i {
  width: 5px;
  height: 5px;
  background: var(--oxblood);
  display: block;
  transform: rotate(45deg)
}

.hero h1 {
  font-size: clamp(3.3rem, 9.6vw, 10.4rem);
  line-height: .82;
  letter-spacing: -.035em
}

.hero h1 .row {
  display: block;
  overflow: hidden
}

.hero h1 .row>span {
  display: block;
  transform: translateY(102%);
  transition: transform 1.25s var(--ease-io)
}

.hero.ready h1 .row:nth-child(1)>span {
  transition-delay: .05s
}

.hero.ready h1 .row:nth-child(2)>span {
  transition-delay: .18s
}

.hero.ready h1 .row:nth-child(3)>span {
  transition-delay: .31s
}

.hero.ready h1 .row>span {
  transform: translateY(0)
}

.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 46px);
  margin-top: clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--line);
  padding-top: 22px
}

@media(max-width:760px) {
  .hero-sub {
    grid-template-columns: 1fr
  }
}

.hero-sub p {
  color: var(--ink-70);
  font-size: .96rem;
  max-width: 44ch
}

.hero-media {
  position: relative
}

.hero-media .arch {
  aspect-ratio: 4/5;
  max-height: 74vh
}

.hero-media .caption {
  position: absolute;
  left: 0;
  bottom: -30px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-50)
}

.hero-media .caption b {
  color: var(--oxblood);
  font-weight: 500
}

.hero-media .badge {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--oxblood);
  color: var(--cream);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
  animation: spin 26s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* search bar */
.searchbar {
  display: flex;
  border: 1px solid var(--ink);
  background: transparent;
  max-width: 640px;
  margin-top: clamp(26px, 3vw, 40px);
  position: relative;
  z-index: 3
}

.searchbar input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 19px 22px;
  font-size: .95rem;
  outline: none;
  min-width: 0;
}

.searchbar input::placeholder {
  color: var(--ink-50)
}

.searchbar button {
  background: var(--oxblood);
  color: var(--cream);
  border-left: 1px solid var(--ink);
  padding: 0 30px;
  font-family: var(--mono);
  font-size: 0.79rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .4s;
}

.searchbar button:hover {
  background: var(--ink)
}

.searchbar .sb-hint {
  position: absolute;
  right: calc(100% + 0px)
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 15px 0;
  background: var(--bone)
}

.ticker.maroon {
  background: var(--oxblood);
  border-color: var(--wine);
  color: var(--cream)
}

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: slide 42s linear infinite
}

.ticker.rev .ticker-track {
  animation-direction: reverse
}

.ticker:hover .ticker-track {
  animation-play-state: paused
}

.ticker span {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  letter-spacing: -.01em;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px
}

.ticker span::after {
  content: "·";
  color: var(--gold);
  font-size: 1.4em;
  line-height: 0
}

.ticker .mono {
  font-size: 0.79rem;
  letter-spacing: .24em;
  padding: 0 24px;
  opacity: .75
}

@keyframes slide {
  to {
    transform: translateX(-50%)
  }
}

/* ---------- quick links ---------- */
.quick {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .36);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

@media(max-width:900px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:540px) {
  .quick-grid {
    grid-template-columns: 1fr
  }
}

.q-item {
  padding: clamp(24px, 3vw, 38px) clamp(14px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .35s var(--ease);
}

.q-item:first-child {
  padding-left: 0;
}

.q-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.q-item:hover {
  background: rgba(255, 255, 255, .55);
}

.q-item .q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.q-item .q-ic {
  width: 30px;
  height: 30px;
  color: var(--oxblood);
  transition: transform .4s var(--ease)
}

.q-item:hover .q-ic {
  transform: translateY(-4px)
}

.q-item h3 {
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.12
}

.q-item p {
  font-size: .82rem;
  color: var(--ink-50);
  line-height: 1.58;
  max-width: 28ch
}

.q-item .q-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease)
}

.q-item:hover .q-line {
  transform: scaleX(1)
}

/* ---------- news ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 34px)
}

.n-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(13, 11, 10, .1);
  border-radius: 10px;
  padding: clamp(16px, 2vw, 24px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background .3s;
}

.n-card:hover {
  background: #fff;
  border-color: rgba(108, 0, 0, .24);
  box-shadow: 0 20px 44px -24px rgba(13, 11, 10, .28);
  transform: translateY(-4px);
}

.n-card.lead {
  grid-column: span 7
}

.n-card.side {
  grid-column: span 5
}

@media(max-width:1000px) {

  .n-card,
  .n-card.lead,
  .n-card.side {
    grid-column: span 6
  }
}

@media(max-width:680px) {

  .n-card,
  .n-card.lead,
  .n-card.side {
    grid-column: span 12
  }
}

.n-card .arch {
  aspect-ratio: 16/10;
  border-radius: 8px;
  margin-bottom: 18px
}

.n-card.lead .arch {
  aspect-ratio: 16/10
}

.n-card .n-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-50);
  margin-bottom: 10px;
  font-size: 0.72rem;
}

.n-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -.012em;
  transition: color .3s
}

.n-card:hover h3 {
  color: var(--oxblood)
}

.n-card p {
  color: var(--ink-70);
  font-size: .88rem;
  line-height: 1.62;
  margin-top: 10px;
  max-width: 52ch;
  flex: 1;
}

.n-card .n-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
}

.n-card .n-more i {
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease)
}

.n-card:hover .n-more i {
  width: 30px
}

/* list style news (news page) */
.n-list {
  border-top: 1px solid var(--line)
}

.n-row {
  display: grid;
  grid-template-columns: 110px 1fr 220px 40px;
  gap: clamp(16px, 2vw, 34px);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .45s var(--ease)
}

@media(max-width:820px) {
  .n-row {
    grid-template-columns: 1fr 40px;
    gap: 12px
  }
}

.n-row:hover {
  padding-left: 12px
}

.n-row .nr-date {
  font-family: var(--mono);
  font-size: 0.79rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-50)
}

.n-row h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.06;
  transition: color .35s
}

.n-row:hover h3 {
  color: var(--oxblood)
}

.n-row .nr-cat {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
  text-align: right
}

@media(max-width:820px) {
  .n-row .nr-cat {
    display: none
  }
}

.n-row .nr-ar {
  justify-self: end;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background .4s, border-color .4s, color .4s
}

.n-row:hover .nr-ar {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--cream)
}

.n-row .nr-ar svg {
  width: 11px;
  height: 11px
}

/* ---------- hours panel ---------- */
.hours-panel {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(30px, 4vw, 58px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px
}

.hours-panel .hp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px
}

.hours-panel .hp-time {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: .9;
  letter-spacing: -.02em;
  margin: 26px 0 10px
}

.hours-panel .hp-days {
  font-family: var(--mono);
  font-size: 0.79rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, .65)
}

.hours-panel .hp-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 242, 233, .2);
  font-size: .85rem;
  color: rgba(246, 242, 233, .75);
  max-width: 34ch
}

.hours-panel .hp-glow {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 138, 70, .34), transparent 68%)
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7FD1A0;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(127, 209, 160, .6);
  animation: pulse 2.4s infinite
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 209, 160, .55)
  }

  70% {
    box-shadow: 0 0 0 12px rgba(127, 209, 160, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(127, 209, 160, 0)
  }
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

@media(max-width:820px) {
  .stats {
    grid-template-columns: repeat(2, 1fr)
  }
}

.stat {
  padding: clamp(24px, 3vw, 42px) clamp(12px, 2vw, 28px);
  border-right: 1px solid var(--line)
}

.stat:last-child {
  border-right: 0
}

@media(max-width:820px) {
  .stat:nth-child(2n) {
    border-right: 0
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line)
  }
}

.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: .9;
  letter-spacing: -.03em
}

.stat .lbl {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 12px;
  display: block
}

/* ---------- collections rail ---------- */
.rail-wrap {
  position: relative
}

.rail {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: none
}

.rail::-webkit-scrollbar {
  display: none
}

.rail>* {
  flex: 0 0 clamp(190px, 20vw, 270px);
  scroll-snap-align: start
}

.book .arch {
  aspect-ratio: 3/4;
  background: #fff
}

.book .arch img {
  object-fit: cover
}

.book .b-meta {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 14px
}

.book h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.15;
  margin-bottom: 5px
}

.book .b-auth {
  font-size: .76rem;
  color: var(--ink-50);
  line-height: 1.45
}

.book .b-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-top: 9px;
  display: block
}

.rail-nav {
  display: flex;
  gap: 8px
}

.rail-nav button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background .35s, color .35s, border-color .35s
}

.rail-nav button:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink)
}

.rail-nav svg {
  width: 13px;
  height: 13px
}

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 84px);
  align-items: center
}

@media(max-width:940px) {
  .split {
    grid-template-columns: 1fr
  }
}

.split .arch {
  aspect-ratio: 5/6
}

.split--rev .split-media {
  order: 2
}

@media(max-width:940px) {
  .split--rev .split-media {
    order: 0
  }
}

.pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  max-width: 24ch
}

.sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--oxblood)
}

.sig-role {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 6px
}

/* ---------- accordion ---------- */
.acc {
  border-top: 1px solid var(--line)
}

.acc-item {
  border-bottom: 1px solid var(--line)
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left
}

.acc-btn h4 {
  font-family: var(--sans);
  font-size: clamp(.98rem, 1.35vw, 1.14rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.01em;
  transition: color .3s
}

.acc-btn:hover h4 {
  color: var(--oxblood)
}

.acc-ic {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: background .4s, border-color .4s, transform .4s var(--ease)
}

.acc-ic::before,
.acc-ic::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform .4s var(--ease), background .4s
}

.acc-ic::before {
  width: 10px;
  height: 1px
}

.acc-ic::after {
  width: 1px;
  height: 10px
}

.acc-item.open .acc-ic {
  background: var(--oxblood);
  border-color: var(--oxblood);
  transform: rotate(90deg)
}

.acc-item.open .acc-ic::before,
.acc-item.open .acc-ic::after {
  background: var(--cream)
}

.acc-item.open .acc-ic::after {
  transform: scaleY(0)
}

.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height .55s var(--ease-io)
}

.acc-inner {
  padding: 0 60px 26px 0;
  color: var(--ink-70);
  font-size: .92rem;
  line-height: 1.7;
  max-width: 74ch
}

.acc-inner ul {
  margin: 12px 0 0;
  display: grid;
  gap: 7px
}

.acc-inner li {
  position: relative;
  padding-left: 18px
}

.acc-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--oxblood)
}

/* ---------- page hero (inner) ---------- */
.phero {
  padding-top: clamp(40px, 5.4vw, 86px);
  padding-bottom: clamp(30px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden
}

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink-50);
  margin-bottom: clamp(18px, 2.4vw, 32px)
}

.crumbs a {
  transition: color .3s
}

.crumbs a:hover {
  color: var(--oxblood)
}

.crumbs i {
  width: 3px;
  height: 3px;
  background: var(--ink-50);
  border-radius: 50%
}

.phero h1 {
  font-size: clamp(2.7rem, 7.4vw, 7.4rem);
  line-height: .84;
  letter-spacing: -.035em
}

.phero .ph-sub {
  margin-top: clamp(18px, 2.4vw, 30px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 4vw, 60px);
  align-items: end
}

@media(max-width:860px) {
  .phero .ph-sub {
    grid-template-columns: 1fr
  }
}

.phero--img {
  position: relative;
  color: var(--cream);
  border: 0
}

.phero--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, .62), rgba(13, 11, 10, .86));
  z-index: 1
}

.phero--img>* {
  position: relative;
  z-index: 2
}

.phero--big {
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: clamp(70px, 9vw, 120px)
}

.phero-no {
  position: absolute;
  right: var(--gutter);
  top: 10px;
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 15rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(13, 11, 10, .13);
  pointer-events: none;
  user-select: none;
}

/* ---------- generic content blocks ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 52px)
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 38px)
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 30px)
}

@media(max-width:960px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:680px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr
  }
}

.side-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(24px, 4vw, 68px);
  align-items: start
}

@media(max-width:900px) {
  .side-layout {
    grid-template-columns: 1fr
  }
}

.side-nav {
  position: sticky;
  top: 96px
}

.side-nav .sn-title {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px
}

.side-nav a {
  display: block;
  padding: 11px 0;
  font-size: .87rem;
  color: var(--ink-70);
  border-bottom: 1px solid rgba(13, 11, 10, .07);
  transition: color .3s, padding-left .35s var(--ease)
}

.side-nav a:hover,
.side-nav a.on {
  color: var(--oxblood);
  padding-left: 8px
}

.dept-card {
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(13, 11, 10, .1);
  border-top: 2px solid var(--ink);
  border-radius: 6px;
  padding: clamp(20px, 2.4vw, 28px);
  transition: background .3s, transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.dept-card:hover {
  background: #fff;
  border-top-color: var(--oxblood);
  box-shadow: 0 14px 32px -20px rgba(13, 11, 10, .25);
  transform: translateY(-2px);
}

.dept-card .d-no {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .2em;
  color: var(--oxblood);
  margin-bottom: 14px;
  display: block
}

.dept-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.1vw, 1.95rem);
  line-height: 1.05;
  margin-bottom: 12px
}

.dept-card p {
  font-size: .87rem;
  color: var(--ink-70);
  line-height: 1.66;
  margin-bottom: 14px
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.chip {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--ink-70);
  transition: background .3s, color .3s, border-color .3s
}

.chip:hover {
  background: var(--oxblood);
  color: var(--cream);
  border-color: var(--oxblood)
}

.staff-card {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  position: relative
}

.staff-card .s-role {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 10px;
  display: block;
  min-height: 2.6em;
  line-height: 1.5
}

.staff-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.1;
  margin-bottom: 4px
}

.staff-card .s-init {
  position: absolute;
  right: 0;
  top: 12px;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: rgba(13, 11, 10, .1);
  line-height: 1
}

.staff-card.away {
  opacity: .62
}

.staff-card .s-away {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 8px;
  display: inline-block;
  border: 1px solid var(--line);
  padding: 3px 7px
}

/* service sticky stack */
.stack {
  display: grid;
  gap: clamp(16px, 2vw, 26px)
}

.stack-item {
  background: var(--bone);
  padding: clamp(26px, 3.6vw, 48px);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(14px, 2.4vw, 32px);
  border: 1px solid rgba(13, 11, 10, .08);
  border-top: 2px solid var(--oxblood);
  border-radius: 8px;
  transition: background .4s, transform .4s var(--ease), box-shadow .4s;
}

.stack-item:hover {
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 40px -24px rgba(13, 11, 10, .2);
}

.stack-item .si-no {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: .9;
  color: var(--oxblood)
}

.stack-item h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.04;
  margin-bottom: 12px
}

.stack-item p {
  font-size: .9rem;
  color: var(--ink-70);
  line-height: 1.68;
  max-width: 66ch;
  margin-bottom: 12px
}

.stack-item ul {
  display: grid;
  gap: 6px;
  margin-top: 10px
}

.stack-item li {
  position: relative;
  padding-left: 16px;
  font-size: .86rem;
  color: var(--ink-70)
}

.stack-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 5px;
  height: 1px;
  background: var(--oxblood)
}

@media(max-width:600px) {
  .stack-item {
    grid-template-columns: 1fr
  }
}

/* db list */
.db-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(16px, 3vw, 50px);
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .4s
}

.db-row:hover {
  background: rgba(226, 216, 196, .4)
}

.db-row h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -.015em
}

.db-row .db-access {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-top: 8px;
  display: block
}

.db-row p {
  font-size: .87rem;
  color: var(--ink-70);
  line-height: 1.66
}

@media(max-width:720px) {
  .db-row {
    grid-template-columns: 1fr;
    gap: 10px
  }
}

/* artefact gallery */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 40px)
}

.filters button {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--line);
  transition: .35s;
  color: var(--ink-70)
}

.filters button.on,
.filters button:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink)
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px)
}

@media(max-width:900px) {
  .art-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:560px) {
  .art-grid {
    grid-template-columns: 1fr
  }
}

.art-card {
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(246, 242, 233, .6);
  transition: transform .55s var(--ease), box-shadow .55s, background .4s;
  position: relative
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -40px rgba(13, 11, 10, .8);
  background: var(--cream)
}

.art-card .a-thumb {
  aspect-ratio: 1;
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative
}

.art-card .a-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease)
}

.art-card:hover .a-thumb img {
  transform: scale(1.06)
}

.art-card .a-no {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 8px
}

.art-card h4 {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.14;
  margin-bottom: 6px
}

.art-card .a-dl {
  font-size: .72rem;
  color: var(--ink-50);
  line-height: 1.6
}

.art-card .a-dl b {
  color: var(--ink-70);
  font-weight: 500
}

/* forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px
}

@media(max-width:680px) {
  .form-grid {
    grid-template-columns: 1fr
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50)
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: transparent;
  padding: 13px 14px;
  font-size: .9rem;
  outline: none;
  border-radius: 0;
  transition: border-color .3s, background .3s;
  width: 100%;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230D0B0A' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center
}

.field textarea {
  resize: vertical;
  min-height: 130px
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--oxblood);
  background: rgba(226, 216, 196, .28)
}

.form-note {
  font-size: .75rem;
  color: var(--ink-50);
  margin-top: 14px;
  max-width: 52ch
}

.form-ok {
  border: 1px solid var(--oxblood);
  background: rgba(108, 0, 0, .05);
  padding: 16px;
  font-size: .85rem;
  margin-top: 18px;
  display: none
}

.form-ok.on {
  display: block
}

/* contact tiles */
.ctile {
  border-top: 1px solid var(--ink);
  padding-top: 16px
}

.ctile .ct-lbl {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 10px;
  display: block
}

.ctile p,
.ctile a {
  font-size: .95rem;
  line-height: 1.6
}

.ctile a:hover {
  color: var(--oxblood)
}

/* footer */
.foot {
  background: var(--ink);
  color: rgba(246, 242, 233, .74);
  padding-top: clamp(50px, 6vw, 88px);
  position: relative;
  overflow: hidden
}

.foot .f-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 0.9fr 1.1fr;
  gap: clamp(20px, 2.5vw, 44px);
  padding-bottom: clamp(34px, 4vw, 58px);
  border-bottom: 1px solid var(--line-light)
}

@media(max-width:1080px) {
  .foot .f-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media(max-width:580px) {
  .foot .f-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Social Media Hub Glassmorphism Card with Diagonal Sheen */
.social-glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(108, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: clamp(22px, 3.5vw, 34px);
  margin-bottom: 28px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.social-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(108, 0, 0, 0.11), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.social-glass-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 42%;
  height: 220%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  pointer-events: none;
  animation: glassSheen 4.2s ease-in-out infinite;
}

@keyframes glassSheen {
  0% {
    transform: translateX(0) rotate(30deg);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  32% {
    transform: translateX(550%) rotate(30deg);
    opacity: 0;
  }

  100% {
    transform: translateX(550%) rotate(30deg);
    opacity: 0;
  }
}

/* Page Hero Numbering Hidden Site-Wide */
.phero-no {
  display: none !important;
}

.foot .f-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start
}

.foot .f-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92
}

.foot .f-brand b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--cream);
  display: block
}

.foot .f-brand span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, .45);
  display: block;
  margin-top: 7px
}

.foot p {
  font-size: .84rem;
  line-height: 1.7;
  max-width: 34ch;
  margin-top: 18px
}

.foot h5 {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px
}

.foot li {
  margin-bottom: 9px
}

.foot li a {
  font-size: .85rem;
  transition: color .3s, padding-left .3s
}

.foot li a:hover {
  color: var(--cream);
  padding-left: 4px
}

.foot .f-bot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, .4)
}

.foot .f-word {
  font-family: var(--serif);
  font-size: clamp(3rem, 13vw, 12rem);
  line-height: .78;
  color: rgba(246, 242, 233, .055);
  letter-spacing: -.04em;
  white-space: nowrap;
  padding-bottom: 8px;
  user-select: none
}

/* search overlay */
.sov {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(13, 11, 10, .97);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 5vw, 60px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease)
}

.sov.open {
  opacity: 1;
  pointer-events: auto
}

.sov .sov-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 18px
}

.sov .sov-q {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1
}

.sov input {
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  color: var(--cream);
  width: 100%;
  padding: 10px 0
}

.sov input::placeholder {
  color: rgba(246, 242, 233, .32)
}

.sov .sov-close {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid var(--line-light);
  padding: 9px 14px;
  transition: .3s
}

.sov .sov-close:hover {
  background: var(--cream);
  color: var(--ink)
}

.sov .sov-body {
  overflow-y: auto;
  padding-top: 22px;
  flex: 1
}

.sov .sov-hint {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, .4);
  margin-bottom: 14px
}

.sov-res a {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246, 242, 233, .1);
  transition: padding-left .35s var(--ease), background .3s
}

.sov-res a:hover {
  padding-left: 10px
}

.sov-res .sr-t {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.2
}

.sov-res .sr-ty {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold)
}

.sov-res .sr-d {
  font-size: .78rem;
  color: rgba(246, 242, 233, .45);
  margin-top: 3px
}

@media(max-width:640px) {
  .sov-res a {
    grid-template-columns: 1fr;
    gap: 4px
  }
}

/* results page */
.res-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(14px, 3vw, 40px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start
}

.res-item .r-ty {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxblood);
  padding-top: 5px
}

.res-item h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.1;
  margin-bottom: 6px
}

.res-item p {
  font-size: .85rem;
  color: var(--ink-50);
  max-width: 70ch
}

.res-item:hover h3 {
  color: var(--oxblood)
}

@media(max-width:620px) {
  .res-item {
    grid-template-columns: 1fr;
    gap: 6px
  }
}

.empty {
  padding: 60px 0;
  color: var(--ink-50);
  font-size: .95rem
}

/* table */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem
}

.tbl th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--ink)
}

.tbl td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-70);
  vertical-align: top
}

.tbl td:first-child {
  color: var(--ink);
  font-weight: 500
}

/* quote block */
.quote {
  border-left: 2px solid var(--oxblood);
  padding-left: clamp(18px, 3vw, 34px);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  line-height: 1.24;
  letter-spacing: -.015em;
  max-width: 34ch
}

.quote cite {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-style: normal;
  margin-top: 18px
}

/* notice */
.notice {
  background: rgba(108, 0, 0, .05);
  border-left: 2px solid var(--oxblood);
  padding: 16px 20px;
  font-size: .86rem;
  color: var(--ink-70);
  max-width: 70ch
}

.notice b {
  color: var(--oxblood)
}

/* page transition */
#pt {
  position: fixed;
  inset: 0;
  z-index: 9700;
  background: var(--oxblood);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none
}

#pt.run {
  transform: scaleY(1);
  transition: transform .55s var(--ease-io)
}

/* back to top */
.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .45s var(--ease)
}

.totop.on {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

.totop:hover {
  background: var(--oxblood)
}

/* Modal Overlay & Card System */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: grid;
}

.modal-box {
  background: #fff;
  width: min(840px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-close:hover {
  background: var(--sand);
  color: var(--oxblood);
}

/* helpers */
.center {
  text-align: center
}

.mx-auto {
  margin-left: auto;
  margin-right: auto
}

.mt-s {
  margin-top: 16px
}

.mt-m {
  margin-top: 28px
}

.mt-l {
  margin-top: 44px
}

.mb-s {
  margin-bottom: 16px
}

.mb-m {
  margin-bottom: 28px
}

.small {
  font-size: .8rem;
  color: var(--ink-50)
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.pill {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: rgba(108, 0, 0, .07);
  color: var(--oxblood)
}