/* ============================================================
   Social Science Press — shared stylesheet
   Editorial / scholarly aesthetic
   ============================================================ */

:root {
  --ink:        #1c1a17;
  --ink-soft:   #423d37;
  --paper:      #f7f4ee;
  --paper-2:    #efe9df;
  --line:       #ddd4c6;
  --oxblood:    #7a2321;
  --oxblood-dk: #5e1a18;
  --gold:       #a9843f;
  --muted:      #6d665c;
  --white:      #fffdf9;
  --shadow:     0 18px 45px rgba(28, 26, 23, 0.10);
  --maxw:       1140px;
  --serif:      "Source Serif 4", Georgia, "Times New Roman", serif;
  --display:    "Fraunces", Georgia, serif;
  --sans:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1.1rem; }
a { color: var(--oxblood); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--oxblood-dk); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--oxblood);
  margin: 0 0 0.9rem;
}

/* ---------------- Top bar ---------------- */
.topbar {
  background: var(--oxblood-dk);
  color: #f2e6d8;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #f2e6d8; }
.topbar a:hover { color: #fff; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark {
  width: 46px; height: 46px; flex: none;
  border: 1.5px solid var(--oxblood);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; color: var(--oxblood);
  font-size: 1.15rem;
}
.brand .name { font-family: var(--display); font-size: 1.28rem; font-weight: 600; line-height: 1.05; color: var(--ink); }
.brand .name small { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }
.brand-logo { height: 52px; width: auto; display: block; }
@media (max-width: 900px) { .brand-logo { height: 42px; } }

nav.main { display: flex; gap: 30px; align-items: center; }
nav.main a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.94rem;
  padding: 6px 0; position: relative;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--oxblood); transition: width .25s ease;
}
nav.main a:hover, nav.main a.active { color: var(--oxblood); }
nav.main a.active::after, nav.main a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(94,26,24,0.94), rgba(58,18,17,0.9)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
  color: #f6ecdf;
  padding: 92px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(169,132,63,0.35), transparent 45%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 2; max-width: var(--maxw);
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center;
}
.hero-copy { max-width: 620px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: #fdf7ee; margin: 0 0 1.1rem; }
.hero p.lead { font-family: var(--serif); font-size: 1.2rem; color: #eaddca; max-width: 620px; }
.hero .cta-row { margin-top: 2rem; display: flex; gap: 16px; flex-wrap: wrap; }

/* Diagonal 3D book */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual svg {
  width: 100%; max-width: 350px; height: auto;
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.45));
  animation: bookFloat 7s ease-in-out infinite;
}
.hero-cover { animation: bookFloat 7s ease-in-out infinite; }
.hero-cover img {
  width: 100%; max-width: 296px; height: auto; border-radius: 4px;
  transform: rotate(6deg);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0,0,0,0.4);
}
@media (max-width: 900px) { .hero-cover img { max-width: 210px; } }
@keyframes bookFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual svg { animation: none; } }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 2px;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--gold); color: #2a1a0a; border-color: var(--gold); }
.btn-primary:hover { background: #c39a4d; color: #2a1a0a; }
.btn-ghost { background: transparent; color: #f6ecdf; border-color: rgba(246,236,223,0.5); }
.btn-ghost:hover { border-color: #f6ecdf; color: #fff; }
.btn-dark { background: var(--oxblood); color: #fff; border-color: var(--oxblood); }
.btn-dark:hover { background: var(--oxblood-dk); color: #fff; }

/* ---------------- Sections ---------------- */
section { padding: 78px 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 0.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--paper-2); }
.dark-band { background: var(--ink); color: #ece6dc; }
.dark-band h2, .dark-band h3 { color: #fdf7ee; }
.dark-band .section-head p { color: #b8b0a3; }

/* ---------------- Feature grid ---------------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  padding: 30px 28px; border-radius: 4px; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { margin-bottom: 16px; color: var(--oxblood); line-height: 0; }
.card .icon svg { width: 34px; height: 34px; display: block; }
.card .step-num {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  border: 1.5px solid var(--oxblood); color: var(--oxblood);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem;
}
.card h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------------- Subject list ---------------- */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.subjects div { background: var(--white); padding: 20px 22px; font-family: var(--serif); font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.subjects div span { color: var(--oxblood); font-weight: 700; }
.subjects div:last-child { grid-column: 1 / -1; }

/* ---------------- Books ---------------- */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.book { }
.book .cover {
  aspect-ratio: 3/4.4; border-radius: 3px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 18px; color: #f6ecdf; position: relative; overflow: hidden;
}
.book .cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: rgba(0,0,0,0.22);
}
.book .cover .bk-pub { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.book .cover .bk-title { font-family: var(--display); font-size: 1.12rem; line-height: 1.2; }
.book .cover .bk-author { font-size: 0.8rem; font-style: italic; opacity: 0.92; }
.book .cover-img { width: 100%; aspect-ratio: 10/15; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); display: block; background: var(--paper-2); transition: transform .25s ease; }
.book:hover .cover-img { transform: translateY(-4px); }
.book h4 { margin: 14px 0 3px; font-size: 1rem; }
.book p { font-size: 0.85rem; color: var(--muted); margin: 0; }

.c1 { background: linear-gradient(150deg, #5e1a18, #7a2321); }
.c2 { background: linear-gradient(150deg, #26414f, #35576a); }
.c3 { background: linear-gradient(150deg, #3d3320, #6a5836); }
.c4 { background: linear-gradient(150deg, #2f3b2c, #47593f); }
.c5 { background: linear-gradient(150deg, #43304a, #5d456a); }
.c6 { background: linear-gradient(150deg, #4a3324, #6d4b34); }
.c7 { background: linear-gradient(150deg, #1f3a3a, #2f5a58); }
.c8 { background: linear-gradient(150deg, #4a2530, #6b3746); }

/* ---------------- Split / prose ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 2.4rem 0 0.8rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 0.6rem; color: var(--oxblood); }
.prose p { font-family: var(--serif); font-size: 1.08rem; color: var(--ink-soft); }
.prose blockquote {
  margin: 2rem 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--gold);
  font-family: var(--display); font-size: 1.3rem; color: var(--ink); font-style: italic;
}

/* ---------------- Timeline ---------------- */
.timeline { position: relative; margin: 40px 0 0; padding-left: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 1px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.timeline .yr { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 5px; }
.timeline .body h4 { margin: 0 0 5px; font-size: 1.15rem; }
.timeline .body p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 760px; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--display); font-size: 2.8rem; color: var(--gold); font-weight: 600; line-height: 1; }
.stat .lbl { font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; color: #b8b0a3; margin-top: 8px; }

/* ---------------- Leadership ---------------- */
.leader { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.leader .portrait {
  aspect-ratio: 1; border-radius: 6px; background: linear-gradient(155deg, #7a2321, #3a1211);
  display: grid; place-items: center; color: #f0d9b8; box-shadow: var(--shadow); position: relative;
  overflow: hidden;
}
.leader .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; z-index: 1; }
.leader .portrait .initials { font-family: var(--display); font-size: 4.4rem; font-weight: 600; }
.leader .portrait .ring { position: absolute; inset: 14px; border: 1px solid rgba(240,217,184,0.55); border-radius: 4px; pointer-events: none; z-index: 2; }

/* Founder figure (About page history) */
.founder-fig { float: right; width: 230px; margin: 4px 0 18px 34px; text-align: center; }
.founder-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 6px; box-shadow: var(--shadow); display: block; }
.founder-fallback { display: none; width: 100%; aspect-ratio: 1; border-radius: 6px; background: linear-gradient(155deg, #7a2321, #3a1211); color: #f0d9b8; place-items: center; font-family: var(--display); font-size: 3rem; font-weight: 600; box-shadow: var(--shadow); }
.founder-fig figcaption { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-top: 12px; color: var(--ink); }
.founder-fig figcaption span { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oxblood); font-weight: 600; margin-top: 3px; }
@media (max-width: 700px) { .founder-fig { float: none; width: 200px; margin: 0 auto 26px; } }
.leader .role { color: var(--oxblood); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 6px; }
.leader h3 { font-size: 2rem; margin: 0 0 1rem; }
.leader p { font-family: var(--serif); color: var(--ink-soft); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info dt { font-weight: 700; color: var(--oxblood); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 22px; }
.contact-info dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.08rem; }
form.enquiry label { display: block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 16px 0 6px; }
form.enquiry input, form.enquiry textarea, form.enquiry select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--sans); font-size: 0.95rem; background: var(--white); color: var(--ink);
}
form.enquiry input:focus, form.enquiry textarea:focus, form.enquiry select:focus { outline: 2px solid var(--oxblood); border-color: var(--oxblood); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(135deg, var(--oxblood), var(--oxblood-dk)); color: #f6ecdf; text-align: center; }
.cta-band h2 { color: #fdf7ee; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta-band p { color: #eaddca; max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.1rem; }

/* ---------------- Footer ---------------- */
footer.site {
  background: var(--ink); color: #b8b0a3; padding: 62px 0 28px; font-size: 0.92rem;
}
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site h4 { color: #fdf7ee; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; font-family: var(--sans); }
footer.site a { color: #cbc3b6; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--gold); }
footer.site .brand .name { color: #fdf7ee; }
footer.site .brand .name small { color: #8c8477; }
footer.site .brand .mark { border-color: var(--gold); color: var(--gold); }
footer.site p.blurb { color: #9a9285; max-width: 300px; margin-top: 16px; }
.footer-bottom { border-top: 1px solid #33302b; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7d766a; font-size: 0.82rem; }

/* Footer logo chip (light backing so the black-and-white logo reads on dark) */
.footer-logo { background: var(--paper); border-radius: 9px; padding: 10px 14px; display: inline-block; line-height: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.footer-logo img { height: 44px; width: auto; display: block; }

/* Powered by Vektr Studio */
.powered-by { text-align: center; margin-top: 20px; }
.powered-by a { display: inline-flex; align-items: center; gap: 8px; color: #8c8477; font-size: 0.8rem; letter-spacing: 0.02em; transition: color .2s ease; }
.powered-by a:hover { color: #cbc3b6; }
.powered-by a:hover .vk-mark { color: #5aa0ff; }
.powered-by strong { color: #cbc3b6; font-weight: 600; }
.powered-by .vk-mark { color: #3d8bff; flex: none; transition: color .2s ease; }

/* ---------------- Page hero (interior) ---------------- */
.page-hero { background: var(--ink); color: #f0e8db; padding: 66px 0 58px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fdf7ee; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.6rem; }
.page-hero p { color: #b8b0a3; font-size: 1.12rem; max-width: 640px; margin: 0; }
.crumbs { font-size: 0.8rem; color: #8c8477; margin-bottom: 18px; letter-spacing: 0.04em; }
.crumbs a { color: #b8b0a3; }

/* ---------------- Reveal animation (progressive enhancement) ----------------
   Content is visible by default. Only when JS is active AND confirms the
   animation can run does <html> get .reveal-on, which hides elements until
   they gain .in. A fallback guarantees nothing stays hidden. */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  nav.main { position: fixed; inset: 72px 0 auto 0; background: var(--paper); flex-direction: column; gap: 0; padding: 10px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow); }
  nav.main.open { transform: none; }
  nav.main a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .books, .subjects { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .split, .contact-grid, .leader { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 240px; }
  .leader { text-align: center; }
  .leader .portrait { max-width: 220px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline li { padding-left: 40px; }
}
@media (max-width: 560px) {
  .books, .subjects, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
  .hero { padding: 66px 0 72px; }
}
