@import url('/fonts/fonts.css');

:root {
  --warm-white: #f7f5f0;
  --charcoal: #242729;
  --bronze: #a58c70;
  --sand: #e7e1d7;
  --line: rgba(36, 39, 41, .18);
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--warm-white); color: var(--charcoal); font-family: 'Manrope', sans-serif; font-weight: 400; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { width: min(100% - 48px, var(--max-width)); margin: 0 auto; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 94px; height: auto; max-height: 60px; object-fit: contain; object-position: left center; }
.nav-toggle { display: none; border: 1px solid var(--charcoal); background: transparent; color: var(--charcoal); padding: 10px 14px; font: inherit; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 4px; }
.language { color: var(--charcoal); border-left: 1px solid var(--line); padding-left: 24px; font-weight: 700; }
main { overflow: hidden; }
.container { width: min(100% - 48px, var(--max-width)); margin: 0 auto; }
.eyebrow { margin: 0 0 24px; color: var(--charcoal); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: 'Newsreader', serif; font-weight: 450; line-height: 1.08; }
h1 { font-size: clamp(54px, 7vw, 104px); letter-spacing: -.04em; }
h2 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.035em; }
h3 { font-size: clamp(28px, 3vw, 42px); }
.lead { max-width: 580px; margin: 28px 0 0; font-size: 18px; line-height: 1.7; }
.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.section-heading p { max-width: 560px; margin: 0; font-size: 18px; }
.editorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.editorial-item { background: var(--warm-white); padding: 36px 32px 42px; min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; }
.editorial-item p { max-width: 440px; }
.book-image { width: 100%; height: 360px; object-fit: contain; object-position: center; background: var(--sand); margin-bottom: 28px; }
.book-image.full-cover { object-fit: cover; }
.action-link { margin-top: auto; padding-top: 24px; color: var(--charcoal); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid var(--bronze); }
.action-link:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 4px; }
.detail-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; align-items: start; padding: 96px 0; }
.detail-cover { width: 100%; max-height: 720px; object-fit: contain; background: var(--sand); }
.detail-copy p { max-width: 640px; font-size: 18px; }
.book-facts { margin: 48px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.book-facts dt { margin-top: 18px; color: var(--charcoal); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.book-facts dd { margin: 4px 0 0; }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; }
.project-list article { padding-top: 28px; border-top: 1px solid var(--charcoal); }
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; padding: 96px 0; }
form { display: grid; gap: 22px; }
label { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
input, textarea, select { width: 100%; margin-top: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--charcoal); border-radius: 0; background: transparent; color: var(--charcoal); font: inherit; }
textarea { min-height: 150px; resize: vertical; }
button { justify-self: start; border: 1px solid var(--charcoal); padding: 15px 24px; background: var(--charcoal); color: var(--warm-white); font: inherit; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
button:hover { background: var(--warm-white); color: var(--charcoal); border-color: var(--charcoal); }
.notice { padding: 18px; background: var(--sand); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.dev-lock { min-height: calc(100vh - 180px); display: grid; place-items: center; text-align: center; }
.dev-lock-inner { max-width: 640px; padding: 96px 0; }
.dev-lock h1 { font-size: clamp(52px, 9vw, 110px); }
.dev-lock p { margin: 28px auto 0; max-width: 520px; }

/* ===== Homepage — scoped under body.home ===== */

/* Hero — V13 editorial composition: top (name+tagline), portrait, bottom (role+intro+CTA) */
body.home .home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  align-items: stretch;
}
body.home .home-hero-top {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px 48px max(24px, calc((100vw - var(--max-width)) / 2));
  position: relative;
  z-index: 2;
}
body.home .home-hero-name {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn .9s ease forwards;
  animation-delay: .3s;
}
body.home .home-hero-first {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--charcoal);
  font-size: .72em;
  margin-bottom: 6px;
}
body.home .home-hero-divider {
  width: 56px;
  height: 1px;
  background: var(--bronze);
  margin: 36px 0 32px;
  border: 0;
  opacity: 0;
  animation: heroFadeIn .6s ease forwards;
  animation-delay: .5s;
}
body.home .home-hero-tagline {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.25;
  letter-spacing: -.01em;
  max-width: 480px;
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeIn .8s ease forwards;
  animation-delay: .6s;
}
body.home .home-hero-bottom {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  padding: 32px 56px 64px max(24px, calc((100vw - var(--max-width)) / 2));
  position: relative;
  z-index: 2;
}
body.home .home-hero-role {
  margin: 0;
  color: var(--charcoal);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeIn .7s ease forwards;
  animation-delay: .75s;
}
body.home .home-hero-intro {
  margin: 24px 0 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.75;
  color: #3a3d40;
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeIn .7s ease forwards;
  animation-delay: .85s;
}
body.home .home-hero-cta {
  align-self: flex-start;
  margin-top: 32px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 6px;
  transition: border-bottom-color .25s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeIn .6s ease forwards;
  animation-delay: .95s;
}
body.home .home-hero-cta:hover {
  border-bottom-color: var(--charcoal);
}
body.home .home-hero-portrait {
  margin: 0;
  background: var(--sand);
  overflow: hidden;
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
}
body.home .home-hero-portrait::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--bronze);
  opacity: .4;
  z-index: 1;
}
body.home .home-hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transform: scale(1.05);
  animation: heroFadeIn 1.4s ease forwards;
  animation-delay: .15s;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Projects preview — compact editorial section between hero and books */
body.home .home-projects {
  padding: 96px 0 88px;
  border-top: 1px solid var(--line);
}
body.home .home-projects-heading {
  display: flex;
  align-items: baseline;
  gap: 32px;
  margin-bottom: 48px;
}
body.home .home-projects-heading h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  margin: 0;
}
body.home .home-projects-heading a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 4px;
  transition: border-bottom-color .25s ease;
}
body.home .home-projects-heading a:hover {
  border-bottom-color: var(--charcoal);
}
body.home .home-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
body.home .home-project {
  padding: 32px 0 0;
  border-top: 1px solid var(--charcoal);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.home .home-project + .home-project {
  margin-left: 0;
}
body.home .home-projects-grid > .home-project:first-child {
  padding-right: 48px;
}
body.home .home-projects-grid > .home-project:last-child {
  padding-left: 48px;
  border-left: 1px solid var(--line);
}
body.home .home-project h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0;
  transition: color .25s ease;
}
body.home .home-project:hover h3 {
  color: #6b5840;
}
body.home .home-project p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
}
body.home .home-project-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: border-bottom-color .25s ease;
}
body.home .home-project:hover .home-project-link {
  border-bottom-color: var(--charcoal);
}

/* Books — compacted but still high quality */
body.home .home-books {
  padding: 96px 0 104px;
  border-top: 1px solid var(--line);
}
body.home .home-books-heading {
  margin-bottom: 56px;
}
body.home .home-books-heading h2 {
  font-size: clamp(28px, 3.5vw, 48px);
}
body.home .home-books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-bottom: 48px;
}
body.home .home-book {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
body.home .home-book-figure {
  margin: 0 0 28px;
  background: var(--sand);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.home .home-book-img {
  max-height: 100%;
  max-width: 86%;
  width: auto;
  height: 100%;
  object-fit: contain;
  transition: opacity .3s ease, transform .4s ease;
}
body.home .home-book:hover .home-book-img {
  opacity: .9;
  transform: scale(1.02);
}
body.home .home-book h3 {
  font-size: clamp(19px, 2vw, 26px);
  margin-bottom: 10px;
}
body.home .home-book p {
  max-width: 400px;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
body.home .home-books-cta {
  display: inline-block;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 6px;
  transition: border-bottom-color .25s ease;
}
body.home .home-books-cta:hover {
  border-bottom-color: var(--charcoal);
}

/* Scroll reveal — hidden only when JS successfully initializes (progressive enhancement) */
body.home .home-projects.reveal-ready,
body.home .home-books.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
body.home .home-projects.reveal-ready.revealed,
body.home .home-books.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1023px) {
  body.home .home-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }
  body.home .home-hero-top {
    grid-column: 1;
    grid-row: 1;
    padding: 48px 24px 28px;
  }
  body.home .home-hero-name {
    font-size: clamp(52px, 9vw, 88px);
  }
  body.home .home-hero-portrait {
    grid-column: 1;
    grid-row: 2;
    min-height: 460px;
  }
  body.home .home-hero-portrait img {
    object-position: center 15%;
  }
  body.home .home-hero-bottom {
    grid-column: 1;
    grid-row: 3;
    padding: 36px 24px 56px;
  }
  body.home .home-projects-grid > .home-project:first-child {
    padding-right: 32px;
  }
  body.home .home-projects-grid > .home-project:last-child {
    padding-left: 32px;
  }
  body.home .home-books-grid {
    gap: 48px;
  }
  body.home .home-book-figure {
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 800px) {
  .header-inner { min-height: 76px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; z-index: 5; top: 76px; left: 0; right: 0; display: none; padding: 24px; background: var(--warm-white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .site-nav.is-open { display: flex; }
  .language { border-left: 0; padding-left: 0; }
  .detail-layout, .form-layout { grid-template-columns: 1fr; gap: 48px; padding: 64px 0; }
  .section { padding: 64px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .editorial-grid, .project-list { grid-template-columns: 1fr; }
  .book-image { height: 320px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  body.home .home-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  body.home .home-hero-top {
    grid-column: 1;
    grid-row: 1;
    padding: 32px 20px 20px;
  }
  body.home .home-hero-name {
    font-size: clamp(42px, 12vw, 58px);
  }
  body.home .home-hero-divider {
    margin: 18px 0 16px;
  }
  body.home .home-hero-tagline {
    font-size: 19px;
    margin: 0;
    max-width: 100%;
  }
  body.home .home-hero-portrait {
    grid-column: 1;
    grid-row: 2;
    min-height: clamp(460px, 68vw, 560px);
  }
  body.home .home-hero-portrait img {
    object-position: center top;
  }
  body.home .home-hero-bottom {
    grid-column: 1;
    grid-row: 3;
    padding: 32px 20px 48px;
  }
  body.home .home-hero-role {
    font-size: 13px;
    letter-spacing: .15em;
  }
  body.home .home-hero-intro {
    font-size: 15px;
  }
  body.home .home-projects {
    padding: 64px 0 56px;
  }
  body.home .home-projects-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
  }
  body.home .home-projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body.home .home-projects-grid > .home-project:first-child,
  body.home .home-projects-grid > .home-project:last-child {
    padding: 24px 0 0;
    border-left: 0;
  }
  body.home .home-books {
    padding: 64px 0 72px;
  }
  body.home .home-books-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  body.home .home-book-figure {
    height: 260px;
  }
}

/* Small screens — portrait sizing scoped here to avoid overriding tablet */
@media (max-width: 600px) {
  body.home .home-hero-portrait {
    min-height: 300px;
  }
  body.home .home-hero-portrait img {
    object-position: center 18%;
  }
}

@media (max-width: 480px) {
  .container, .header-inner { width: min(100% - 32px, var(--max-width)); }
  h1 { font-size: 56px; }
  .editorial-item { padding: 28px 22px 34px; }
  body.home .home-hero-name {
    font-size: 40px;
  }
  body.home .home-hero-first {
    font-size: .68em;
  }
  body.home .home-hero-divider {
    margin: 18px 0 16px;
  }
  body.home .home-hero-tagline {
    font-size: 18px;
  }
  body.home .home-hero-portrait {
    min-height: 280px;
  }
  body.home .home-hero-intro {
    font-size: 15px;
  }
  body.home .home-book-figure {
    height: 220px;
  }
}

/* ===== Legal pages — scoped under body.legal-page ===== */
body.legal-page .legal-document {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 96px 0;
}
body.legal-page .legal-document h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.03em;
  margin-bottom: 32px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
body.legal-page .legal-document h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}
body.legal-page .legal-document p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 0 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}
body.legal-page .legal-document ul {
  margin: 0 0 16px;
  padding-left: 24px;
}
body.legal-page .legal-document li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 6px;
}
body.legal-page .legal-document a {
  word-break: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 800px) {
  body.legal-page .legal-document {
    padding: 64px 0;
  }
  body.legal-page .legal-document h1 {
    font-size: clamp(28px, 7vw, 40px);
  }
  body.legal-page .legal-document h2 {
    font-size: clamp(20px, 5vw, 28px);
    margin-top: 40px;
  }
  body.legal-page .legal-document p,
  body.legal-page .legal-document li {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  body.legal-page .legal-document {
    width: min(100% - 32px, 860px);
  }
  body.legal-page .legal-document h1 {
    font-size: clamp(26px, 8vw, 36px);
  }
}

/* Reduced motion — disable all animations and scroll reveals */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body.home .home-hero-name,
  body.home .home-hero-divider,
  body.home .home-hero-tagline,
  body.home .home-hero-role,
  body.home .home-hero-intro,
  body.home .home-hero-cta,
  body.home .home-hero-portrait img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  body.home .home-projects,
  body.home .home-books {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* V25-RL03 TECHNICAL MOBILE OVERFLOW FIX: ONLY HIGH-PROTEIN DETAIL HEADINGS */
@media (max-width: 430px) {
  .detail-copy h1.hp-title-mobile-safe { font-size: 46px; }
}


/* Website 02 RL04: keyboard accessibility only; no default-view redesign */
.skip-to-content {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  transform: translateY(-160%); background: #242729; color: #f7f5f0;
  padding: 12px 16px; font: 600 14px/1.4 'Manrope',sans-serif;
  text-decoration: none;
}
.skip-to-content:focus, .skip-to-content:focus-visible { transform: none; outline: 3px solid #242729; outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline-color: #242729; }
@media (max-width: 350px) {
  .detail-copy h1.hp-title-mobile-safe { font-size: 38px; overflow-wrap: anywhere; }
}

/* Phase 1 – ONLY static email contact; preserve original 2-column layout */
.email-contact { min-width: 0; }
.email-contact .lead a { overflow-wrap: anywhere; word-break: break-word; }
.email-contact .notice { margin-top: 30px; }
