/* ============================================================
   VERTIA CAPITAL
   Discrete private-capital presence. Paper-forward below the fold.
   Dials: VARIANCE 5 · MOTION 3 · DENSITY 3
   ============================================================ */

:root {
  --ink: #141414;
  --ink-soft: #1c1c1c;
  --paper: #f7f5f1;
  --panel: #e4e2dc;
  --line: rgba(20, 20, 20, 0.14);
  --line-soft: rgba(20, 20, 20, 0.08);
  --text: #1a1a1a;
  --text-muted: #555555;
  --text-faint: #888888;
  --gold: #a8874d;
  --gold-hover: #8f713c;
  --on-ink: #f0eee8;
  --on-ink-muted: #b8b5ad;
  /* Work Sans across the board — display + text */
  --display: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Pop-out windows (about modal, principle tooltips) */
  --pop-radius: 14px;
  --pop-border: 2px;
  --pop-line: rgba(20, 20, 20, 0.22);
  /* Editorial motion — smooth, unhurried, almost invisible */
  --ease: cubic-bezier(0.33, 0.1, 0.25, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --pad-x: clamp(1.25rem, 4.5vw, 3.5rem);
  --max: 1080px;
  --max-wide: 1180px;
  --dur-ui: 280ms;
  --dur-pop: 220ms;
  --dur-modal: 360ms;
  --dur-reveal: 900ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- layout ---------- */

.wrap {
  width: min(var(--max-wide), 100%);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.wrap--narrow {
  width: min(var(--max), 100%);
}

.band {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background: var(--paper);
}

.band--tight-top {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.band--contact {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

/* ---------- type ---------- */

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.35rem;
}

.section-title--pad {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.lede {
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  text-wrap: pretty;
}

.prose {
  max-width: 62ch;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: pretty;
}

.text-link {
  display: inline;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-ui) var(--ease-soft), border-color var(--dur-ui) var(--ease-soft);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    color: var(--gold-hover);
    border-bottom-color: var(--gold-hover);
  }
}

.text-link--btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition:
    background 0.5s var(--ease-soft),
    border-color 0.5s var(--ease-soft),
    opacity 0.8s var(--ease);
  border-bottom: 1px solid transparent;
  opacity: 0;
}

.site-head.is-ready {
  opacity: 1;
}

.site-head.is-scrolled {
  background: rgba(247, 245, 241, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.site-head.is-scrolled .wordmark,
.site-head.is-scrolled .site-nav a {
  color: var(--text);
}

.site-head.is-scrolled .wordmark__light {
  color: var(--text-muted);
}

.site-head.is-scrolled .nav-about {
  color: var(--text);
  border-color: var(--line);
}

.site-head.is-scrolled .nav-toggle span {
  background: var(--text);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin-inline: auto;
  padding: 1.15rem var(--pad-x);
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink);
  white-space: nowrap;
}

.wordmark__strong {
  font-weight: 600;
}

.wordmark__light {
  font-weight: 300;
  color: var(--on-ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  transition: color 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--on-ink);
}

.nav-about {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink);
  border: 1px solid rgba(240, 238, 232, 0.28);
  padding: 0.55rem 0.95rem;
  transition:
    background var(--dur-ui) var(--ease-soft),
    color var(--dur-ui) var(--ease-soft),
    border-color var(--dur-ui) var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .nav-about:hover {
    background: var(--on-ink);
    color: var(--ink);
    border-color: var(--on-ink);
  }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 1.6rem;
  height: 1.1rem;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--on-ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav-toggle span:first-child {
  top: 30%;
}

.nav-toggle span:last-child {
  top: 70%;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 50%;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.5rem var(--pad-x) 1.75rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-nav .nav-about {
  align-self: flex-start;
  color: var(--text);
  border-color: var(--line);
  margin-top: 0.35rem;
}

.mobile-nav.is-open {
  display: flex;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(20, 20, 20, 0.55) 0%,
      rgba(20, 20, 20, 0.28) 40%,
      rgba(20, 20, 20, 0.35) 70%,
      rgba(20, 20, 20, 0.72) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem var(--pad-x) 5rem;
}

.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #f5f3ee;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line__inner {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: lineUp 1.4s var(--ease) 0.2s forwards;
}

.hero__title .line:nth-child(2) .line__inner {
  animation-delay: 0.4s;
}

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

/* ---------- sectors (investments) ---------- */

.sectors {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.25rem);
}

.sector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  background: var(--panel);
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease);
  transition-delay: var(--rd, 0ms);
}

.sector.is-in {
  opacity: 1;
}

.sector--flip .sector__media {
  order: 2;
}

.sector--flip .sector__copy {
  order: 1;
}

.sector__media {
  overflow: hidden;
  min-height: 240px;
  background: #cfcbc2;
}

.sector__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.8s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .sector:hover .sector__media img {
    filter: grayscale(0.9) contrast(1.04) brightness(0.96);
  }
}

.sector__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.sector__copy h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.sector__copy p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 38ch;
  text-wrap: pretty;
}

/* ---------- accordion ---------- */

.acc {
  margin-top: 0.5rem;
  border-top: 1px solid var(--text);
}

.acc__item {
  border-bottom: 1px solid var(--text);
}

.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0.1rem;
  text-align: left;
}

.acc__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text);
  transition: color var(--dur-ui) var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .acc__head:hover .acc__title {
    color: var(--gold-hover);
  }
}

.acc__icon {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold);
  transition:
    transform 0.35s var(--ease-soft),
    opacity 0.35s var(--ease-soft);
}

.acc__icon::before {
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.acc__icon::after {
  width: 1px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.acc__item.is-open .acc__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.acc__panel > p {
  overflow: hidden;
  min-height: 0;
  color: var(--text-muted);
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.7;
  padding: 0 0.1rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease), padding 0.45s var(--ease);
}

.acc__item.is-open .acc__panel {
  grid-template-rows: 1fr;
}

.acc__item.is-open .acc__panel > p {
  padding-bottom: 1.5rem;
  opacity: 1;
}

/* ---------- principles ---------- */

.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  padding: 2.75rem 1rem;
  text-align: center;
  outline: none;
  cursor: default;
}

.principle + .principle {
  border-left: 1px solid var(--line);
}

.principle__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.4s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .principle:hover .principle__name {
    color: var(--gold);
  }
}

.principle:focus-visible .principle__name,
.principle.is-active .principle__name {
  color: var(--gold);
}

.principle__pop {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 0.75rem);
  width: min(17.5rem, 78vw);
  transform: translateX(-50%);
  background: #fff;
  border: var(--pop-border) solid var(--pop-line);
  border-radius: var(--pop-radius);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.08);
  padding: 1.25rem 1.2rem 1.15rem;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-pop) var(--ease),
    visibility 0s var(--dur-pop);
}

@media (hover: hover) and (pointer: fine) {
  .principle:hover .principle__pop {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}

.principle:focus-visible .principle__pop,
.principle.is-active .principle__pop {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.principles .principle:first-child .principle__pop {
  left: 0;
  transform: none;
}

.principles .principle:last-child .principle__pop {
  left: auto;
  right: 0;
  transform: none;
}

.principle__pop-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.principle__pop p:not(.principle__pop-title) {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  margin-top: 0.5rem;
}

.contact__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cform {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
  max-width: 32rem;
}

.cform__field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
  gap: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.cform__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cform input,
.cform textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.35rem 0;
  resize: vertical;
}

.cform input:focus,
.cform textarea:focus {
  outline: none;
}

.cform__field:focus-within {
  border-bottom-color: var(--gold);
}

.cform__note {
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.cform__note.is-shown {
  opacity: 1;
}

.contact__office address {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.contact__by {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--paper);
  padding: 3rem var(--pad-x) 2.75rem;
  text-align: center;
}

.wordmark--foot {
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  justify-content: center;
}

.wordmark--foot .wordmark__light {
  color: var(--text-muted);
}

.site-foot__rule {
  width: min(100%, 42rem);
  height: 1px;
  background: var(--text);
  margin: 1.75rem auto 1.35rem;
}

.site-foot__legal {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.site-foot__legal a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.site-foot__legal a:hover {
  color: var(--text);
  border-bottom-color: var(--line);
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[aria-hidden="true"] {
  pointer-events: none;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  opacity: 0;
  transition: opacity var(--dur-modal) var(--ease);
}

.modal__card {
  position: relative;
  width: min(36rem, 100%);
  max-height: min(80dvh, 40rem);
  overflow-y: auto;
  background: #fff;
  border: var(--pop-border) solid var(--pop-line);
  border-radius: var(--pop-radius);
  padding: clamp(2rem, 4vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.14);
  opacity: 0;
  transition: opacity var(--dur-modal) var(--ease);
}

.modal.is-open .modal__scrim {
  opacity: 1;
}

.modal.is-open .modal__card {
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-faint);
  padding: 0.35rem;
  transition: color 0.35s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .modal__close:hover {
    color: var(--text);
  }
}

.modal__label {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.modal__body p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-wrap: pretty;
}

.modal__body p + p {
  margin-top: 1rem;
}

/* ---------- scroll reveals — opacity only, editorial ---------- */

[data-reveal] {
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease);
  transition-delay: var(--rd, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .sector,
  .sector--flip {
    grid-template-columns: 1fr;
  }

  .sector--flip .sector__media,
  .sector--flip .sector__copy {
    order: unset;
  }

  .sector__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
  }

  .principle {
    min-height: 8.5rem;
  }

  .principle:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .principle + .principle {
    border-left: none;
  }

  .principle:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .principles .principle:first-child .principle__pop,
  .principles .principle:last-child .principle__pop {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:nth-child(even) {
    border-left: none;
  }

  .principle + .principle,
  .principle:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .cform__field {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__title .line__inner {
    transform: none;
    opacity: 1;
    animation: none;
  }

  .site-head,
  [data-reveal],
  .sector {
    opacity: 1;
    transition: none;
  }
}
