/* Sideways homepage. Wide screens travel left to right; narrow screens stack. */

.hz-root { position: relative; background: radial-gradient(ellipse 60% 70% at 72% 50vh, rgba(201, 169, 106, .07), transparent 70%); }
.hz-root .field { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; z-index: 0; pointer-events: none; }
.hz-track { position: relative; z-index: 1; }
.hz-ui { display: none; }
.ghost { display: none; }

/* Stacked layout (phones, short screens) */
.panel { padding: clamp(80px, 12vw, 140px) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.p-hero {
  min-height: 100vh; min-height: 100svh; max-width: none;
  display: flex; flex-direction: column; justify-content: center; position: relative;
  padding-top: 120px; padding-bottom: 40px;
}
.p-hero h1 { font-family: var(--serif); font-weight: 400; margin: 0; font-size: clamp(52px, 9.2vw, 152px); line-height: .94; letter-spacing: -.02em; }
.p-hero h1 em { color: var(--gold); }
.p-intro > p { color: var(--ink-2); font-weight: 300; margin: 28px 0 0; max-width: 30em; }
.p-intro .text-link { display: inline-block; margin-top: 32px; }
.thesis-copy { margin-top: 36px; }
.p-portrait .portrait { margin: 0; }
.portrait figcaption blockquote { margin: 28px 0 0; }
.p-facts .facts { margin-top: 0; }

.venture-cols, .conviction-cards, .essay-cards { list-style: none; margin: 48px 0 0; padding: 0; }
.venture-cols li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.venture-cols .idx { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; grid-row: span 2; }
.venture-cols .name { font-family: var(--serif); font-size: clamp(32px, 6vw, 56px); line-height: 1; }
.venture-cols .name em { color: var(--ink-2); }
.venture-cols .tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.conviction-cards li { padding: 28px 0; border-top: 1px solid var(--line); }
.conviction-cards span { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.conviction-cards p { font-family: var(--serif); font-size: clamp(30px, 6vw, 56px); line-height: 1.06; margin: 10px 0 0; }
.conviction-cards em { color: var(--gold); }
.p-questions .question-list { margin-top: 40px; }
.essay-cards a { display: block; padding: 24px 0; border-top: 1px solid var(--line); }
.essay-cards .cat { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.essay-cards .title { display: block; font-family: var(--serif); font-size: clamp(26px, 5vw, 36px); line-height: 1.12; margin: 8px 0; }
.essay-cards .time { font-size: 13px; color: var(--ink-3); }
.p-contact { padding-bottom: 0; }
.p-contact h2 { font-size: clamp(42px, 7vw, 112px); line-height: .98; }
.p-contact h2 em { color: var(--gold); }
.p-contact > p { color: var(--ink-2); font-weight: 300; max-width: 32em; margin: 32px 0 0; }
.p-contact .site-footer { margin: clamp(80px, 12vw, 160px) calc(var(--gutter) * -1) 0; }

/* Sideways layout */
@media (min-width: 900px) and (min-height: 560px) {
  .hz-on body { overscroll-behavior-x: none; }
  .hz-on .hz-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; overflow: clip; }
  .hz-on .hz-root .field { position: absolute; height: 100%; }
  .hz-on .hz-track { display: flex; height: 100%; width: max-content; will-change: transform; }
  .hz-on .panel {
    flex: 0 0 auto; height: 100%; max-width: none; margin: 0; position: relative;
    padding: 110px 6vw 96px; display: flex; flex-direction: column; justify-content: center;
  }
  .hz-on .panel + .panel { border-left: 1px solid var(--line); }
  .hz-on .label { margin-bottom: clamp(24px, 4vh, 48px); }
  .hz-on .label::after { max-width: 120px; }
  .hz-on h2 { font-size: clamp(40px, min(4.6vw, 8.4vh), 84px); }

  .hz-on .ghost {
    display: block; position: absolute; right: 3vw; bottom: 4vh; z-index: -1; pointer-events: none;
    font-family: var(--serif); font-style: italic; font-size: 40vh; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(236, 231, 221, .05);
  }

  .hz-on .p-hero { width: 100vw; min-height: 0; }
  .hz-on .p-hero .hero-foot { bottom: 96px; }

  .hz-on .p-thesis { width: 78vw; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; column-gap: 6vw; align-content: center; }
  .hz-on .p-thesis .label { grid-column: 1 / -1; }
  .hz-on .p-thesis .thesis-copy { margin-top: 0; align-self: end; }
  .hz-on .p-thesis .thesis-copy p { font-size: clamp(15px, 2.1vh, 18px); }

  .hz-on .p-portrait { width: 64vw; padding-left: 4vw; padding-right: 4vw; }
  .hz-on .p-portrait .portrait { height: 100%; display: flex; flex-direction: column; }
  .hz-on .p-portrait .portrait img { flex: 1; height: auto; min-height: 0; }
  .hz-on .portrait figcaption { position: absolute; left: 3vw; bottom: 3vw; right: 30%; z-index: 2; }
  .hz-on .portrait figcaption blockquote { background: none; font-size: clamp(22px, 3.4vh, 34px); }

  .hz-on .p-facts { width: 44vw; }
  .hz-on .p-facts .facts { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0; }
  .hz-on .p-facts .facts div { padding: 4vh 2vw 4vh 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hz-on .p-facts .facts div:nth-child(even) { padding-left: 2vw; border-left: 1px solid var(--line); }
  .hz-on .p-facts .facts div:nth-child(n+3) { border-bottom: 0; margin-top: 0; border-top: 0; }
  .hz-on .p-facts .facts dt { font-size: clamp(44px, 8vh, 80px); }

  .hz-on .p-ventures, .hz-on .p-convictions, .hz-on .p-perspectives { flex-direction: row; align-items: center; gap: 5vw; }
  .hz-on .p-intro { flex: 0 0 30vw; }

  .hz-on .venture-cols { display: flex; height: 64vh; margin: 0; border-left: 1px solid var(--line); }
  .hz-on .venture-cols li {
    width: 19vw; padding: 0 2.4vw; border-top: 0; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: space-between; transition: background .6s var(--ease);
  }
  .hz-on .venture-cols li:hover { background: rgba(236, 231, 221, .03); }
  .hz-on .venture-cols .name { font-size: clamp(36px, 6.4vh, 64px); writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; margin: auto 0; }
  .hz-on .venture-cols .tag { max-width: 16em; line-height: 1.6; }
  .hz-on .venture-cols .next .name { color: var(--ink-2); }

  .hz-on .conviction-cards { display: flex; gap: 2vw; margin: 0; }
  .hz-on .conviction-cards li {
    width: 30vw; height: 62vh; padding: 4vh 2.4vw; border: 1px solid var(--line); border-radius: 2px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(160deg, rgba(236, 231, 221, .035), transparent 60%);
    transition: border-color .6s var(--ease), transform .8s var(--ease);
  }
  .hz-on .conviction-cards li:hover { border-color: rgba(201, 169, 106, .5); transform: translateY(-8px); }
  .hz-on .conviction-cards p { font-size: clamp(30px, 5vh, 54px); }

  .hz-on .p-questions { width: 92vw; display: grid; grid-template-columns: 1fr 1fr; column-gap: 6vw; align-content: center; }
  .hz-on .p-questions .question-list { margin-top: 0; }
  .hz-on .p-questions .question-list li { padding: 1.8vh 0; }

  .hz-on .essay-cards { display: flex; gap: 1.6vw; margin: 0; }
  .hz-on .essay-cards li { width: 22vw; }
  .hz-on .essay-cards a {
    height: 60vh; padding: 4vh 2vw; border: 1px solid var(--line); border-radius: 2px;
    display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
    transition: border-color .6s var(--ease);
  }
  .hz-on .essay-cards a::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--gold); opacity: .08;
    transition: height .8s var(--ease);
  }
  .hz-on .essay-cards a:hover { border-color: rgba(201, 169, 106, .5); }
  .hz-on .essay-cards a:hover::after { height: 100%; }
  .hz-on .essay-cards .title { font-size: clamp(26px, 4.2vh, 40px); margin: 0; }
  .hz-on .essay-cards .time::after { content: "  \2192"; color: var(--gold); }

  .hz-on .p-range { width: 76vw; }
  .hz-on .range-cloud { font-size: clamp(28px, 5.6vh, 56px); }

  .hz-on .p-contact { width: 100vw; padding-bottom: 0; }
  .hz-on .p-contact h2 { font-size: clamp(48px, min(7vw, 12vh), 128px); }
  .hz-on .p-contact .site-footer { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding-bottom: 96px; border-top: 0; }

  .hz-on .hz-ui {
    display: flex; align-items: center; gap: 28px; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; z-index: 5;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  }
  .hz-chapter { min-width: 160px; color: var(--ink-2); transition: opacity .4s; }
  .hz-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
  .hz-bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
  .hz-hint { min-width: 90px; text-align: right; transition: opacity .6s; }
  .hz-hint b { color: var(--gold); font-weight: 400; display: inline-block; animation: nudge 2s var(--ease) infinite; }
  .hz-moved .hz-hint { opacity: 0; }
  @keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

  .hz-on .reveal { transform: translateX(60px); }
  .hz-on .reveal.in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-hint b { animation: none; }
  .hz-on .reveal { transform: none; }
}

/* Secondary ventures: a quiet line under the intro */
.p-intro .also { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.p-intro .also span { display: block; margin-bottom: 8px; font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--gold); }
.p-intro .also i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; margin: 0 .7em; }
html:not(.hz-on) .p-ventures { display: flex; flex-direction: column; }
html:not(.hz-on) .p-ventures .p-intro { display: contents; }
html:not(.hz-on) .p-ventures .venture-cols { order: 1; }
html:not(.hz-on) .p-ventures .also { order: 2; }
