/* Frontier Infrastructure Partners — one-page site
   Brand: navy from the logo, slate navy / blue / light blue from the firm deck template.
   Headings: Vollkorn (firm title font). Body: Aptos where installed, otherwise the system sans. */

/* Self-hosted Vollkorn (SIL Open Font License, see assets/fonts/OFL-Vollkorn.txt) */
@font-face {
  font-family: "Vollkorn";
  src: url("/assets/fonts/vollkorn-variable.ttf") format("truetype-variations"),
       url("/assets/fonts/vollkorn-variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vollkorn";
  src: url("/assets/fonts/vollkorn-italic-variable.ttf") format("truetype-variations"),
       url("/assets/fonts/vollkorn-italic-variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #283583;        /* logo */
  --slate: #23283C;       /* deck theme dk2: contact section */
  --slate-deep: #181b29;  /* footer */
  --blue: #0582BE;        /* deck accent 1: links, buttons */
  --steel: #5F87A0;       /* deck accent 4 */
  --sky: #CDDCE6;         /* deck accent 3 */
  --mist: #D7DCDC;        /* deck theme lt2 */
  --grey: #F4F5F7;        /* light section background */
  --text: #111318;
  --muted: #5a5f6e;
  --line: #e2e5ea;
  --font-heading: "Vollkorn", Georgia, "Times New Roman", serif;
  --font-body: "Aptos", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.9rem, 3vw, 2.35rem); color: var(--navy); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section) 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--slate); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark a { color: #fff; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 62ch; }
.measure { max-width: 68ch; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.8rem; }
h3.sub { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-top: 2.5rem; }

/* Placeholders: highlighted so they are easy to find. Delete the .ph class when filling in. */
.ph { background: rgba(255, 238, 88, 0.45); outline: 1px dashed #c9ad00; padding: 0 0.25em; border-radius: 2px; }
.section--dark .ph { background: rgba(255, 238, 88, 0.22); outline-color: #e6cc33; }
.img-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--mist)); color: var(--slate); font-size: 0.85rem; text-align: center; padding: 1rem; outline: 1px dashed #9fb0bd; outline-offset: -1px; }

/* Draft bar: remove before upload */
.draft-bar { background: #fff3b0; color: #5a4a00; font-size: 0.8rem; text-align: center; padding: 0.4rem var(--gutter); }

/* Header */
.site-header { position: relative; z-index: 5; background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 96px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 1.8rem; font-size: 0.9rem; letter-spacing: 0.02em; }
.nav a { text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--blue); }

/* Hero */
.hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--sky); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.55) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 7vw, 96px); padding-top: 120px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: var(--navy); max-width: 16ch; text-wrap: balance; }

/* Focus */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.focus-grid .img-ph { aspect-ratio: 1 / 1; }

/* Where we invest (list) */
.verticals { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.verticals li { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.verticals .name { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy); }
.verticals .tag { color: var(--muted); font-size: 0.9rem; }
.note { font-size: 0.85rem; color: var(--muted); font-style: italic; margin-top: 1.5rem; }

/* How we invest */
.approach-hero { aspect-ratio: 21 / 9; margin-bottom: 3rem; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 2.5rem 0 3.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance dt { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.3rem; }
.glance dd { margin: 0; font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; margin-top: 2rem; }
.points h3 { margin-bottom: 0.4rem; }
.points p { margin: 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.tile { background: var(--grey); padding: 1.6rem; border-top: 3px solid var(--navy); }
.tile h3 { margin-bottom: 0.6rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.btn { display: inline-block; margin-top: 2.5rem; padding: 0.8rem 1.6rem; border: 1px solid var(--navy); color: var(--navy); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.btn:hover { background: var(--navy); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
.contact-grid h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-grid p { margin: 0; color: rgba(255,255,255,0.85); }
.contact-grid a { text-decoration: none; }

/* Footer */
.site-footer { background: var(--slate-deep); color: rgba(255,255,255,0.75); font-size: 0.85rem; padding: 1.75rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.site-footer .links a + a::before { content: "|"; margin: 0 0.6rem; color: rgba(255,255,255,0.4); }

/* Inner pages (site notice, privacy) */
.page { padding: 3rem 0 5rem; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: 2.2rem; color: var(--navy); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
.page .block { margin: 1.5rem 0; }

/* Reveal on scroll (Arcline-style fade-in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .focus-grid, .glance { grid-template-columns: repeat(2, 1fr); }
  .points, .tiles, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .wrap { height: 80px; }
  .brand img { width: 120px; }
  .hero { min-height: 70svh; }
  .verticals li { grid-template-columns: 1fr; gap: 0.2rem; }
  .points, .tiles, .contact-grid, .glance { grid-template-columns: 1fr; }
}

/* Photos */
.focus-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
img.approach-hero { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; margin-bottom: 3rem; }
