/* ViewPark Ventures landing page
   Palette follows the supplied wordmarks: black, charcoal and white. No accent colour. */

:root {
  --black: #000000;
  --charcoal: #1c1c1c;
  --silver: #a3a3a3;      /* secondary text on black / charcoal */
  --graphite: #595959;    /* secondary text on white */
  --paper: #ffffff;
  --rule: #d9d9d9;        /* dividers on white */
  --rule-dark: rgba(255, 255, 255, 0.14);
  --field-border: #8a8a8a;
  --error: #b3261e;

  --font: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  /* Type scale: perfect fourth from an 18px base */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
  --step-hero: clamp(2.25rem, 1.3rem + 3.8vw, 4.5rem);

  --gutter: clamp(1rem, 4vw, 4rem);
  --section-space: clamp(5rem, 3rem + 7vw, 9.5rem);
  --header-height: 4.5rem;
  --max-width: 80rem;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--black);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--light { background: var(--paper); color: var(--black); }
.button--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.button--outline-light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.5); }
.button--outline-light:hover { border-color: var(--paper); }

.button--dark { background: var(--black); color: var(--paper); }
.button--dark:hover { background: transparent; color: var(--black); border-color: var(--black); }

/* The ring sits on the surrounding background, so it takes the background's opposite */
.button--light:focus-visible,
.button--outline-light:focus-visible { outline-color: var(--paper); }
.button--dark:focus-visible { outline-color: var(--black); }

.button--small { min-height: 2.5rem; padding: 0.5rem 1.15rem; font-size: 0.9375rem; }

.button[aria-busy="true"] { cursor: progress; opacity: 0.75; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--rule-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-height);
}

.brand { flex-shrink: 0; padding-block: 0.5rem; }
.brand img { width: auto; height: 1.75rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.button) {
  color: var(--silver);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:not(.button):hover { color: var(--paper); }

/* Shown on small screens only */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero: a widescreen frame that reframes per screen size */

.hero { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-space); }

.frame-wrap { position: relative; }

/* Top row holds the light, bottom row the title. The ratio comes from a spacer rather than aspect-ratio,
   because aspect-ratio boxes stop growing to fit their content once overflow is hidden. */
.frame {
  --frame-ratio: 2.39;
  position: relative;
  display: grid;
  grid-template-rows: minmax(8rem, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
}

.frame::before {
  content: "";
  grid-area: 1 / 1 / 3 / 2;
  /* capped to the screen height so landscape phones still see the headline; the grid still grows to fit the title */
  padding-top: min(calc(100% / var(--frame-ratio)), calc(100svh - var(--header-height) - 6rem));
}

.frame-light { grid-area: 1 / 1; }
.frame-title { grid-area: 2 / 1; }

.frame-picture {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, #141414 0%, var(--black) 70%);
}

/* Fine horizontal scan texture */
.frame-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 4px
  );
}

.frame-light { position: relative; }

/* The ident is light on black, so screen blending drops its black and leaves only the light */
.frame-ident {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64%, 48rem);
  aspect-ratio: 16 / 9;
  translate: -50% -50%;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.frame.has-ident .frame-ident { opacity: 1; }

/* Anamorphic light streak */
.beam-glow,
.beam-core,
.beam-echo {
  position: absolute;
  left: 50%;
  width: 150%;
  translate: -50% 0;
  pointer-events: none;
  transition: opacity 1.2s ease, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.beam-glow {
  top: 50%;
  height: 14rem;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 55%, transparent);
  filter: blur(12px);
}

.beam-core {
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, 0.25) 30%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.25) 70%, transparent 92%);
  box-shadow: 0 0 12px 1px rgba(255, 255, 255, 0.35);
}

.beam-echo {
  top: calc(50% + 1.5rem);
  height: 1px;
  width: 90%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18) 50%, transparent);
}

/* While the ident plays the streak waits, then drifts in as the ident fades.
   The "ident" class is set in the head before first paint, so the streak never flashes. */
.ident .frame:not(.is-settled) :is(.beam-glow, .beam-core, .beam-echo) {
  opacity: 0;
  transform: translateX(-6%);
}

/* Crop marks sit just outside each corner */
.crop {
  position: absolute;
  width: 0.875rem;
  height: 0.875rem;
  border-color: rgba(255, 255, 255, 0.55);
  border-style: solid;
  border-width: 0;
}
.crop--tl { top: -0.5rem; left: -0.5rem; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: -0.5rem; right: -0.5rem; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: -0.5rem; left: -0.5rem; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: -0.5rem; right: -0.5rem; border-bottom-width: 1px; border-right-width: 1px; }

.frame-title {
  position: relative;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
}

/* Tracked capitals echo the VENTURES line of the wordmark */
.eyebrow {
  margin-bottom: 1rem;
  color: var(--silver);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 18ch;
  font-size: var(--step-hero);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

.hero-intro {
  display: grid;
  gap: 2rem;
  justify-items: start;
  max-width: 38rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-left: auto;
}

.hero-intro p {
  color: var(--silver);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
}

.button-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* One orchestrated load moment: the frame opens like a shutter, the ident plays, the title settles */
@media (prefers-reduced-motion: no-preference) {
  .frame { animation: shutter 1.4s cubic-bezier(0.65, 0, 0.35, 1) both; }
  .frame-title { animation: settle 1s 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-intro { animation: settle 1s 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

@keyframes shutter {
  from { clip-path: inset(49.5% 0 49.5% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

/* Sections */

.section { padding-block: var(--section-space); }

.section--paper { background: var(--paper); color: var(--black); }
.section--charcoal { background: var(--charcoal); color: var(--paper); }

/* Investment Focus follows Strategy on the same white, separated by a rule instead of a colour change */
.section--ruled { padding-top: 0; }
.section--ruled > .container {
  padding-top: var(--section-space);
  /* draw the rule inside the gutters, not edge to edge */
  background: linear-gradient(var(--rule), var(--rule)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px;
}

.section-title {
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 1.5rem;
}
.split > .section-title { grid-column: 1 / span 4; }
.split > .split-body { grid-column: 6 / span 7; }

/* Long headings take a wide first row, with the body stepping in below */
.split--stacked { row-gap: 2.5rem; }
.split--stacked > .section-title { grid-column: 1 / span 8; max-width: 24ch; }
.split--stacked > .split-body { grid-row: 2; }

.split-body { max-width: 40rem; }
.split-body > * + * { margin-top: 1.25rem; }
.section--paper .split-body p:not(.lead) { color: var(--graphite); }

/* Investment Focus */

.focus-list { margin-top: clamp(3rem, 6vw, 5rem); }

.focus-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 0.75rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.focus-item:last-child { border-bottom: 1px solid var(--rule); }

.focus-item h3 {
  grid-column: 1 / span 5;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.2;
}

.focus-item p {
  grid-column: 6 / span 6;
  max-width: 36rem;
  color: var(--graphite);
}

/* Approach: three considerations side by side, not a sequence, so no numbers */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
}

.pillar h3 {
  margin-bottom: 0.75rem;
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.3;
}

.pillar p { max-width: 30rem; color: var(--silver); }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 3rem;
}

.contact-intro { grid-column: 1 / span 5; }
.contact-intro > * + * { margin-top: 1.5rem; }
.contact-intro p { max-width: 28rem; color: var(--graphite); }
.contact-email a { color: var(--black); font-weight: 500; overflow-wrap: anywhere; }

.contact-form {
  grid-column: 7 / span 6;
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.field { display: grid; gap: 0.5rem; }

.field label { font-size: 1rem; font-weight: 500; }
.optional { color: var(--graphite); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  transition: border-color 0.15s ease;
}

.field textarea { min-height: 9rem; resize: vertical; }

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

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-color: var(--black);
}

.field [aria-invalid="true"] { border-color: var(--error); }

.field-hint { color: var(--graphite); font-size: var(--step--1); }
.field-error { color: var(--error); font-size: var(--step--1); font-weight: 500; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Without JavaScript the form cannot send, so only the email link is shown */
.no-js .contact-form { display: none; }

.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy { color: var(--graphite); font-size: 0.9375rem; }

.contact-form .button { justify-self: start; }

.form-status {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--black);
  background: #f4f4f4;
  color: var(--black);
}
.form-status:focus { outline: none; }
.form-status h3 { margin-bottom: 0.25rem; font-size: 1.125rem; font-weight: 500; }
.form-status p { color: var(--graphite); }
.form-status[data-tone="error"] { border-left-color: var(--error); }

/* Footer */

.site-footer {
  padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem;
  background: var(--black);
  color: var(--silver);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.footer-logo { width: auto; height: 2.25rem; }

.footer-nav { justify-self: end; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--paper); text-decoration: underline; }

.footer-legal {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
}
.footer-legal p { max-width: 52rem; }

/* Privacy notice page */

.page { padding-block: clamp(3rem, 6vw, 5.5rem) var(--section-space); }
.page h1 { font-size: var(--step-3); font-weight: 300; line-height: 1.12; margin-bottom: 2.5rem; }
.page h2 { font-size: var(--step-1); font-weight: 400; margin: 2.5rem 0 0.75rem; }
.prose { max-width: 42rem; }
.prose p, .prose ul { color: var(--graphite); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose * + p { margin-top: 1rem; }
.prose a { color: var(--black); }

/* Responsive */

@media (max-width: 1023px) {
  .frame { --frame-ratio: 1.7778; }
}

@media (max-width: 899px) {
  /* one track, so the eleven column gaps cannot push content past narrow phones */
  .split,
  .focus-item,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .split > .section-title,
  .split > .split-body,
  .contact-intro,
  .contact-form { grid-column: 1 / -1; }

  .focus-item h3,
  .focus-item p { grid-column: 1 / -1; }

  .pillars { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

@media (max-width: 719px) {
  :root { --header-height: 4rem; }
  .header-inner { gap: 1rem; }
  .brand img { height: 1.375rem; }

  /* Navigation folds into a menu that drops below the header */
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--black);
    border-bottom: 1px solid var(--rule-dark);
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.button) {
    display: block;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--rule-dark);
    color: var(--paper);
    font-size: 1.25rem;
    font-weight: 300;
  }
  .site-nav .button { width: 100%; margin-top: 1.5rem; min-height: 3rem; font-size: 1rem; }

  /* Without JavaScript the menu cannot open, so the links sit in the header instead */
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .menu-toggle { display: none; }
  .no-js .site-nav { display: block; position: static; width: 100%; max-height: none; padding: 0 0 1rem; border: 0; }

  .frame-ident { width: 125%; }

  .frame { --frame-ratio: 1.3333; }
  .hero-intro { margin-left: 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }
}

@media (max-width: 479px) {
  .frame { --frame-ratio: 0.8; }
}

@media (max-width: 380px) {
  .brand img { height: 1.2rem; }
  .eyebrow { letter-spacing: 0.24em; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: 1rem; }
  .frame { grid-template-rows: minmax(2rem, 1fr) auto; }
}

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