/* ─── PAGES ─── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ─── INTERIOR PAGE LAYOUT ─── */
.int-hero {
  padding: calc(86px + 60px) var(--margin) 80px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: end;
}

.int-hero-left { max-width: 640px; }

.int-eyebrow {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.60);
}

.int-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gray-2);
  display: block;
  flex-shrink: 0;
}

.int-title {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 28px;
  text-shadow: 0 1px 17px rgba(0,0,0,0.62), 0 1px 5px rgba(0,0,0,0.40);
}

.int-intro {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--gray-1);
  text-shadow: 0 1px 13px rgba(0,0,0,0.72), 0 1px 5px rgba(0,0,0,0.48);
}

.int-hero-right {
  padding-bottom: 8px;
}

.int-side-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-2);
  line-height: 2.2;
  text-align: right;
}

/* ─── INTERIOR BODY ─── */
.int-body {
  padding: 72px var(--margin) 96px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.int-main p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-1);
  line-height: 1.82;
  max-width: 620px;
  margin-bottom: 22px;
}

.int-main h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin: 52px 0 20px;
}

.int-main h3:first-child { margin-top: 0; }

/* ─── CAPABILITY LIST ─── */
.cap-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 0;
}

.cap-list li {
  padding: 15px 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-1);
  border-bottom: 1px solid var(--rule-mid);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cap-list li::before {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  background: var(--gray-2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── FEATURED BLOCK ─── */
.featured-tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  margin-top: 0;
}

.featured-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gray-2);
}

.prod-block {
  border-top: 1px solid var(--rule);
  padding: 44px 0 36px;
}

.prod-block h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.prod-block p {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--gray-1);
  line-height: 1.78;
  max-width: 540px;
  margin-bottom: 24px;
}

.dev-note {
  margin-top: 52px;
  padding: 28px 32px;
  border-left: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--gray-2);
  line-height: 1.75;
}

/* ─── BOOK ENTRIES ─── */
.book-entry {
  border-top: 1px solid var(--rule);
  padding: 44px 0;
}

.book-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.book-author {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 18px;
  font-weight: 400;
}

.book-desc {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--gray-1);
  line-height: 1.78;
  max-width: 540px;
}

/* ─── VENTURES SECTIONS ─── */
.venture-sec {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}

.venture-sec h3 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 20px;
}

.venture-sec p {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--gray-1);
  line-height: 1.78;
  max-width: 540px;
  margin-bottom: 16px;
}

/* ─── LEGAL ─── */
.legal-sec {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--rule-mid);
}

.legal-sec:last-of-type { border-bottom: none; }

.legal-sec h3 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 16px;
}

.legal-sec p {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--gray-1);
  line-height: 1.85;
  margin-bottom: 12px;
}

.legal-links {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.legal-links a {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-links a:hover { color: var(--white); }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 52px;
}

.contact-col h3 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  font-weight: 400;
  margin-bottom: 12px;
}

.contact-col p {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--gray-1);
  line-height: 1.78;
  margin-bottom: 6px;
}

.contact-col a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s;
}

.contact-col a:hover { border-color: var(--white); }

.contact-block { margin-bottom: 40px; }

/* ─── SIDEBAR (interior pages) ─── */
.int-sidebar {
  padding-top: 4px;
  position: sticky;
  top: 100px;
}

.sidebar-nav {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.sidebar-nav li {
  border-bottom: 1px solid var(--rule-mid);
}

.sidebar-nav li a {
  display: block;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-nav li a:hover { color: var(--white); }


/* ─── V8 PUBLISHING / FEATURED AUTHOR ─── */
#page-publishing .author-feature,
#page-publishing .pub-author,
#page-publishing .author-block {
  position: relative;
}
#page-publishing .author-feature::before,
#page-publishing .pub-author::before,
#page-publishing .author-block::before {
  content: 'FEATURED AUTHOR';
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--gray-2);
  margin-bottom: 18px;
}
#page-publishing .author-feature h2,
#page-publishing .pub-author h2,
#page-publishing .author-block h2 {
  font-family: var(--serif);
  font-weight: 400;
}
#page-publishing .books-grid,
#page-publishing .pub-grid {
  position: relative;
}

/* ─── DIVISION INTERIOR HERO IMAGES ─── */
#page-ip .int-hero {
  background-image:
    linear-gradient(180deg, rgba(5,5,5,0) 60%, rgba(5,5,5,.85) 92%, rgba(5,5,5,1) 100%),
    linear-gradient(90deg, rgba(5,5,5,.84) 0%, rgba(5,5,5,.44) 48%, rgba(5,5,5,.22) 100%),
    url('../assets/divisions/ip.png');
  background-size: 115%, 100%, 115%;
  background-position: center 28%, center 28%, center 28%;
  background-repeat: no-repeat;
  background-color: #050505;
}

#page-technology .int-hero {
  background-image:
    linear-gradient(180deg, rgba(5,5,5,0) 60%, rgba(5,5,5,.85) 92%, rgba(5,5,5,1) 100%),
    linear-gradient(90deg, rgba(5,5,5,.84) 0%, rgba(5,5,5,.44) 48%, rgba(5,5,5,.22) 100%),
    url('../assets/divisions/technology.png');
  background-size: cover, 100%, cover;
  background-position: center 35%, center 35%, center 35%;
  background-repeat: no-repeat;
  background-color: #050505;
}

#page-publishing .int-hero {
  background-image:
    linear-gradient(180deg, rgba(5,5,5,0) 60%, rgba(5,5,5,.85) 92%, rgba(5,5,5,1) 100%),
    linear-gradient(90deg, rgba(5,5,5,.84) 0%, rgba(5,5,5,.44) 48%, rgba(5,5,5,.22) 100%),
    url('../assets/divisions/publishing.png');
  background-size: cover, 100%, cover;
  background-position: center 30%, center 30%, center 30%;
  background-repeat: no-repeat;
  background-color: #050505;
}

#page-media .int-hero {
  background-image:
    linear-gradient(180deg, rgba(5,5,5,0) 60%, rgba(5,5,5,.85) 92%, rgba(5,5,5,1) 100%),
    linear-gradient(90deg, rgba(5,5,5,.84) 0%, rgba(5,5,5,.44) 48%, rgba(5,5,5,.22) 100%),
    url('../assets/divisions/media-creators.png');
  background-size: cover, 100%, cover;
  background-position: center 45%, center 45%, center 45%;
  background-repeat: no-repeat;
  background-color: #050505;
}

#page-ventures .int-hero {
  background-image:
    linear-gradient(180deg, rgba(5,5,5,0) 60%, rgba(5,5,5,.85) 92%, rgba(5,5,5,1) 100%),
    linear-gradient(90deg, rgba(5,5,5,.84) 0%, rgba(5,5,5,.44) 48%, rgba(5,5,5,.22) 100%),
    url('../assets/divisions/ventures.png');
  background-size: cover, 100%, cover;
  background-position: center 38%, center 38%, center 38%;
  background-repeat: no-repeat;
  background-color: #050505;
}

.book-date {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-2);
  margin-top: 10px;
  font-style: italic;
}

.author-name {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 44px;
  letter-spacing: -0.01em;
}

.taxwagero-preview {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.prod-block-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.prod-block-inner img {
  width: 162px;
  height: 162px;
  border-radius: 36px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 4px;
}

.prod-block-text {
  flex: 1;
}

.book-cover {
  width: 190px;
  height: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.38);
}

.book-entry-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.book-entry-text {
  flex: 1;
}

.author-bio {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--gray-2);
  line-height: 1.82;
  max-width: 580px;
  margin-top: 6px;
  margin-bottom: 44px;
}

/* ─── ABOUT HERO: reduced gradient desktop ─── */
.about-hero {
  background-image:
    linear-gradient(90deg, rgba(5,5,5,.23) 0%, rgba(5,5,5,.14) 52%, rgba(5,5,5,.07) 100%),
    url('../assets/extracted/image_0003.png');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-color: #050505;
  border-bottom: none;
  min-height: clamp(380px, 45vw, 560px);
  padding-bottom: 80px;
}
