/* =========================================================================
   Jennison Holdings LLC — jennisonholdings.com
   1. Tokens
   2. Reset & base
   3. Layout (shell + rail)
   4. Components (buttons, marks, cards, entities, form)
   5. Sections
   6. Header / navigation
   7. Footer
   8. Legal pages
   9. Responsive
   ========================================================================= */

/* ---------------------------------------- 1. Tokens */
:root {
  /* surface */
  --void:        #0A0908;
  --char:        #131211;
  --panel:       #1A1816;

  /* line work */
  --line:        #2B2724;
  --line-strong: #3B352E;
  --edge:        #6B645A;   /* interactive boundaries — meets 3:1 */

  /* type */
  --bone:        #EDE9E3;
  --bone-dim:    #A8A29A;

  /* accent */
  --bronze:      #C08F4C;
  --bronze-hi:   #DCB275;
  --bronze-dim:  rgba(192, 143, 76, 0.35);

  /* state */
  --alert:       #E09184;

  /* metrics */
  --gutter:  clamp(20px, 5vw, 64px);
  --rail:    clamp(22px, 5vw, 68px);
  --measure: 62ch;
  --radius:  2px;

  --pace: 480ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------------------------------------- 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 80px) + 28px);
}

body {
  margin: 0;
  background: var(--char);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--bone);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--bronze); color: #17120B; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 1px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--bronze);
  color: #17120B;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: top 200ms var(--ease);
}
.skip:focus { top: 16px; }

.prose {
  max-width: var(--measure);
  color: var(--bone-dim);
}

/* ---------------------------------------- 3. Layout (shell + rail) */
.shell {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The rail: a continuous hairline that descends the page, with a bronze
   node at each section heading — the holding structure, drawn. */
.shell--rail {
  position: relative;
  padding-left: calc(var(--gutter) + var(--rail));
}

.shell--rail::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.section {
  padding-block: clamp(72px, 11vw, 132px);
}

.section__title {
  position: relative;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 2.25rem;
}

.section__title::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail) - 3px);
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--bronze);
}

/* ---------------------------------------- 4. Components */

/* -- official logo — assets/img/jh-logo.png
   Sized by height so the supplied artwork keeps its own proportions. */
.logo {
  height: 42px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
.logo--sm { height: 36px; }
.logo[hidden] { display: none; }

/* -- monogram — fallback only, shown if the logo file is missing */
.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(192,143,76,0.10), rgba(192,143,76,0));
}
.mark__letters {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bronze);
  line-height: 1;
}
.mark[hidden] { display: none; }
.mark--sm { width: 34px; height: 34px; }
.mark--sm .mark__letters { font-size: 0.72rem; }

/* -- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease);
}

.btn--solid {
  background: var(--bronze);
  color: #17120B;
}
.btn--solid:hover { background: var(--bronze-hi); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--bone);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--bronze);
  color: var(--bronze-hi);
}

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--wide { width: 100%; padding-block: 16px; }

/* -- discipline cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.card {
  padding: 40px 34px 8px;
}
.card:first-child { padding-left: 0; }
.card:last-child { padding-right: 0; }
.card + .card { border-left: 1px solid var(--line); }

.card__glyph {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--bronze);
  margin-bottom: 26px;
}
.card__glyph svg { width: 100%; height: 100%; }

.card__title {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--bone-dim);
  font-size: 1rem;
}

/* -- company records */
.roster { border-top: 1px solid var(--line); }

.entity {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 24px 56px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}

.entity__name {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.4rem;
}

.entity__meta { margin: 0; }
.entity__meta > div {
  display: flex;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.entity__meta dt {
  flex: 0 0 84px;
  color: var(--bone-dim);
}
.entity__meta dd {
  margin: 0;
  color: var(--bone);
}

.entity__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}
.entity__desc {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--bone);
}

.roster__note {
  margin-top: 26px;
  font-size: 0.925rem;
  color: var(--bone-dim);
}

/* -- form */
.form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(26px, 4vw, 40px);
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--bone-dim);
  margin-bottom: 6px;
}
.field__opt { color: var(--bone-dim); opacity: 0.8; }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  padding: 10px 2px;
  font-size: 1rem;
  color: var(--bone);
  transition: border-color 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--bone-dim); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--bronze);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--alert); }

.field__error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--alert);
}

.form__status {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--bone-dim);
  min-height: 1.4em;
}
.form__status.is-ok { color: var(--bronze-hi); }
.form__status.is-bad { color: var(--alert); }

/* ---------------------------------------- 5. Sections */

/* -- hero */
.section--hero {
  padding-top: clamp(132px, 19vh, 208px);
  padding-bottom: clamp(84px, 13vw, 148px);
  background:
    radial-gradient(120% 78% at 8% 0%, rgba(192, 143, 76, 0.085) 0%, rgba(192, 143, 76, 0) 58%),
    var(--char);
}

.hero__title {
  font-size: clamp(2.5rem, 6.9vw, 5rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
  font-weight: 300;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.hero__line {
  display: block;
  position: relative;
}

/* short bronze tick joining each headline to the rail */
.hero__line::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail));
  top: 0.55em;
  width: calc(var(--rail) - 14px);
  height: 1px;
  background: var(--bronze-dim);
}

.hero__lede {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.55vw, 1.24rem);
  line-height: 1.65;
  color: var(--bone-dim);
  margin-bottom: clamp(34px, 4.5vw, 48px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* -- about */
.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: 20px 72px;
  align-items: start;
}
.split .section__title { margin-bottom: 0; }
.split .prose p { font-size: 1.1rem; }

/* -- philosophy band */
.section--band {
  background: var(--void);
  border-block: 1px solid var(--line);
}

.creed {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px 72px;
  align-items: start;
}

.creed__list {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 300;
}
.creed__list li { position: relative; }
.creed__list li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail) - 3px);
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--bronze);
}

.creed__note { padding-top: 0.5rem; }

/* -- contact */
.contact {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 48px 72px;
  align-items: start;
}
.contact__intro .prose { font-size: 1.1rem; }

.contact__email {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  color: var(--bronze-hi);
  border-bottom: 1px solid var(--bronze-dim);
  padding-bottom: 3px;
  transition: border-color 200ms var(--ease);
  word-break: break-word;
}
.contact__email:hover { border-bottom-color: var(--bronze); }

.contact__place {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--bone-dim);
}

/* ---------------------------------------- 6. Header / navigation */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(19, 18, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.masthead.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(12, 11, 10, 0.86);
}

.masthead__inner {
  max-width: 1220px;
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__list {
  display: flex;
  gap: 34px;
  font-size: 0.95rem;
}
.nav__list a {
  position: relative;
  color: var(--bone-dim);
  padding-block: 4px;
  transition: color 200ms var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav__list a:hover { color: var(--bone); }
.nav__list a:hover::after { transform: scaleX(1); }

/* -- burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger__bars { display: block; width: 17px; }
.burger__bars i {
  display: block;
  height: 1px;
  background: var(--bone);
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.burger__bars i:first-child { margin-bottom: 5px; }
.burger[aria-expanded="true"] .burger__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* -- mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h, 80px) 0 0;
  z-index: 70;
  background: var(--void);
  padding: 40px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  animation: drawer-in 260ms var(--ease) both;
}
.drawer[hidden] { display: none; }

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

.drawer__nav ul { display: flex; flex-direction: column; }
.drawer__nav li + li { border-top: 1px solid var(--line); }
.drawer__nav a {
  display: block;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.drawer__foot {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.drawer__foot a { color: var(--bronze-hi); }
.drawer__foot p { margin: 6px 0 0; color: var(--bone-dim); }

/* ---------------------------------------- 7. Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--void);
  padding-block: clamp(52px, 7vw, 76px) 34px;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
}

.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.footer__place {
  margin: 2px 0 0;
  font-size: 0.875rem;
  color: var(--bone-dim);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 0.925rem;
}
.footer__nav a { color: var(--bone-dim); transition: color 200ms var(--ease); }
.footer__nav a:hover { color: var(--bone); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--bone-dim);
}
.footer__base p { margin: 0; }
.footer__legal { display: flex; gap: 26px; }
.footer__legal a { transition: color 200ms var(--ease); }
.footer__legal a:hover { color: var(--bronze-hi); }

/* ---------------------------------------- 8. Legal pages */
.legal {
  padding-top: clamp(96px, 14vh, 148px);
  padding-bottom: clamp(72px, 10vw, 120px);
}
.legal__title {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  margin-bottom: 10px;
}
.legal__stamp {
  font-size: 0.875rem;
  color: var(--bone-dim);
  margin-bottom: 48px;
}
.legal__body { max-width: 72ch; color: var(--bone-dim); }
.legal__body h2 {
  font-size: 1.35rem;
  color: var(--bone);
  margin: 44px 0 12px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body ul {
  list-style: none;
  margin: 0 0 1.15em;
  padding: 0;
}
.legal__body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 1px;
  background: var(--bronze);
}
.legal__body a { color: var(--bronze-hi); border-bottom: 1px solid var(--bronze-dim); }

/* ---------------------------------------- 9. Responsive */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .card:nth-child(2) { padding-right: 0; }
  .card:nth-child(3) {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }
  .creed { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }

  .split { grid-template-columns: 1fr; gap: 18px; }
  .split .section__title { margin-bottom: 4px; }

  .entity {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 38px;
  }
  .entity__name { margin-bottom: 1rem; }
  .entity__body { gap: 22px; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .logo { height: 36px; }

  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 32px 0 6px; }
  .card + .card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero__actions .btn { flex: 1 1 100%; }
  .footer__base { justify-content: flex-start; }
}

/* ---------------------------------------- Motion */
/* One orchestrated moment: the rail draws down, the headline arrives. */
@media (prefers-reduced-motion: no-preference) {
  .section--hero .shell--rail::before {
    transform-origin: top;
    animation: rail-draw 900ms var(--ease) 60ms both;
  }
  .hero__line,
  .hero__lede,
  .hero__actions {
    animation: rise 700ms var(--ease) both;
  }
  .hero__line:nth-child(1) { animation-delay: 180ms; }
  .hero__line:nth-child(2) { animation-delay: 300ms; }
  .hero__line:nth-child(3) { animation-delay: 420ms; }
  .hero__lede { animation-delay: 560ms; }
  .hero__actions { animation-delay: 680ms; }

  @keyframes rail-draw {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
