@font-face { font-family: 'Poppins'; font-weight: 300; font-display: swap; src: url('../assets/fonts/poppins-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('../assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('../assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('../assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../assets/fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../assets/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../assets/fonts/manrope-latin-700-normal.woff2') format('woff2'); }

:root {
  --pg-green: #005D3B;
  --pg-green-soft: #347D60;
  --pg-cream: #D5EBD6;   /* light mint: main light screens and panels */
  --pg-mint: #BBE1B8;    /* mint: cards, chips, inputs and highlighted rows */
  --pg-grey: #FFFFFF;
  --pg-lime: #C3F14C;
  --pg-black: #000000;
  --pg-white: #FFFFFF;
  --pg-ink: color-mix(in srgb, var(--pg-green) 55%, var(--pg-black));
  --pg-nav: var(--pg-green);
  --pg-font: 'Poppins', system-ui, sans-serif;
  --pg-font-ui: 'Manrope', var(--pg-font);   /* nav, buttons, dates */
  /* Home page palette (PG website Home page XD) */
  --pg-deep: #062C1F;    /* dark green text */
  --pg-moss: #2D5A27;    /* section headlines over light backgrounds */
  --pg-paper: #F2F2F2;   /* about, highlights */
  --pg-dew: #F6FFF5;     /* capacity */
  --pg-snow: #FCFDFC;    /* investor, newsroom */
  --pg-ivory: #F9F7E6;   /* button text, news card panels */
  --pg-neon: #4CF192;    /* news card accents */
}

/* 1rem = 10px on a 1670px wide screen; the layout scales with the viewport width. */
html { font-size: clamp(5px, calc(100vw / 167), 13px); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
body { font-family: var(--pg-font); font-weight: 400; color: var(--pg-green); background: var(--pg-white); overflow-x: hidden; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.pg-more { display: inline-flex; align-items: center; gap: 1.2rem; margin-top: 3.4rem; font-size: 1.6rem; font-weight: 300; }
.pg-more::after { content: ""; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--pg-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.500 6.500 15 12l-5.500 5.500' fill='none' stroke='white' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.pg-more--light { color: var(--pg-lime); }
.pg-more--light::after { background-color: var(--pg-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.500 6.500 15 12l-5.500 5.500' fill='none' stroke='%23005D3B' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pg-button { display: inline-block; padding: 1.2rem 2.8rem; border-radius: 99px; background: var(--pg-green); color: var(--pg-ivory); font-family: var(--pg-font-ui); font-size: 1.57rem; font-weight: 600; text-transform: uppercase; transition: background .3s; }
.pg-button:hover { background: var(--pg-green-soft); }

/* The page is assembled by js/include.js; it fades in once every section is in place. */
body { opacity: 0; transition: opacity .4s; }
body.pg-ready { opacity: 1; }

/* Shared type. Inner pages are drawn on a 1920px artboard: 1 design px = 1rem / 11.5. */
.pg-kicker { font-size: 2.09rem; font-weight: 300; line-height: 1.6; text-transform: uppercase; }
.pg-heading { font-size: 4.17rem; font-weight: 300; line-height: 1.13; text-transform: uppercase; }
.pg-heading--medium { font-weight: 500; }
.pg-copy { font-size: 1.74rem; line-height: 1.6; }
.pg-outline { color: transparent; -webkit-text-stroke: 1.5px var(--pg-outline, var(--pg-green)); font-weight: 700; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.pg-more--white { color: var(--pg-white); }
.pg-more--white::after { background-color: var(--pg-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.500 6.500 15 12l-5.500 5.500' fill='none' stroke='%23005D3B' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Visually hidden, still read by screen readers. */
.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Inner page scenes draw on .pg-art: the 1920 x 1080 artboard, scaled with the page and centred in the screen,
   so the layout keeps its proportions on any screen shape. Children are placed in artboard coordinates. */
.pg-page { position: relative; height: 100vh; min-height: 52rem; overflow: hidden; }
.pg-art { position: absolute; left: 50%; top: 50%; width: 166.96rem; height: 93.91rem; transform: translate(-50%, -50%); }
/* On screens wider than 16:9 the artboard would be taller than the screen and slide under the header, so js/main.js
   scales it (--pg-fit) to fit the space below the header and centres it there (--pg-art-top). */
@media (min-width: 901px) and (min-aspect-ratio: 1201/1000) {
  .pg-fitted .pg-art { top: var(--pg-art-top); transform: translateX(-50%) scale(var(--pg-fit)); transform-origin: 50% 0; }
}

/* Tabs: buttons with data-tab switch panels with the same data-panel inside one [data-tabs] block (js/main.js). */
.pg-tab { padding: .9rem 2.6rem; border: 1px solid var(--pg-green); border-radius: .87rem; background: var(--pg-white); color: #000; font: inherit; font-size: 1.57rem; cursor: pointer; transition: background .3s, color .3s; }
.pg-tab.is-active { background: var(--pg-green); color: var(--pg-cream); font-weight: 600; }
[data-panel] { transition: opacity .35s; }
[data-panel][hidden] { display: none; }

/* Stage: on wide screens with motion on, every section is a fixed full-screen scene and one scrubbed timeline (js/main.js) moves between them. */
.pg-scroll { display: none; }
.pg-staged .pg-scroll { display: block; }
.pg-staged .pg-scene { position: fixed; inset: 0; height: 100vh; min-height: 0; }

/* Below 900px the scroll choreography is off and every section is laid out in normal flow. */
@media (max-width: 900px), (max-aspect-ratio: 6/5) {
  html { font-size: 10px; }
  .pg-heading { font-size: 3rem; }
  .pg-outline { white-space: normal; }
  .pg-page { height: auto; min-height: 0; padding: 11rem 2rem 6rem; }
  .pg-page + .pg-page { padding-top: 6rem; }
  .pg-art { position: static; width: auto; height: auto; transform: none; }
}
