/* ================================================================
   PANAGON — Core stylesheet
   Palette : Rouge 185C / Noir / Vert 7481C
   Typo    : Nunito Sans (fallback Avenir)
   ================================================================ */

:root {
  --pg-red:   #E4002B;
  --pg-green: #00B140;
  --pg-black: #0A0A0A;
  --pg-ink:   #1D1D1B;
  --pg-bone:  #F5F2EC;
  --pg-white: #FFFFFF;
  --pg-muted: #6B6B6B;

  --pg-font-sans: "Nunito Sans", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --pg-radius: 2px;
  --pg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pg-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pg-container: 1440px;
  --pg-gutter: clamp(20px, 4vw, 56px);
  --pg-section-y: clamp(80px, 10vw, 160px);

  --pg-nav-h: 88px;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pg-font-sans);
  font-weight: 400;
  color: var(--pg-ink);
  background: var(--pg-bone);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; transition: opacity .2s var(--pg-ease); }
a:hover { opacity: .7; }

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

/* --- typography --- */
.pg-h1, .pg-h2, .pg-h3, .pg-display {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
.pg-display { font-size: clamp(56px, 11vw, 180px); }
.pg-h1      { font-size: clamp(42px, 7.5vw, 104px); }
.pg-h2      { font-size: clamp(32px, 5.5vw, 72px); }
.pg-h3      { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.05; }
.pg-eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pg-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: currentColor;
}
.pg-lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 60ch; }
.pg-body { font-size: 16px; line-height: 1.6; max-width: 68ch; }

/* --- layout --- */
.pg-container {
  max-width: var(--pg-container);
  margin: 0 auto;
  padding-left: var(--pg-gutter);
  padding-right: var(--pg-gutter);
}
.pg-section { padding-top: var(--pg-section-y); padding-bottom: var(--pg-section-y); position: relative; }

/* --- colored flag accent --- */
.pg-flag {
  display: inline-flex;
  gap: 0;
  height: 8px;
  width: 60px;
}
.pg-flag i { flex: 1; display: block; }
.pg-flag i:nth-child(1) { background: var(--pg-red); }
.pg-flag i:nth-child(2) { background: var(--pg-black); }
.pg-flag i:nth-child(3) { background: var(--pg-green); }

/* --- navbar --- */
.pg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--pg-nav-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--pg-ease), box-shadow .4s var(--pg-ease), color .4s var(--pg-ease);
  color: var(--pg-white);
  mix-blend-mode: difference;
}
.pg-nav__inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.pg-nav__logo { display: inline-flex; align-items: center; gap: 14px; }
.pg-nav__logo svg { height: 36px; width: auto; }

/* --- wordmark (HTML-based, tricolor macron sits precisely above the O) --- */
.pg-wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--pg-font-sans);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  padding-top: 0.28em;
  color: inherit;
}
.pg-wordmark--lg { font-size: 36px; }
.pg-wordmark__o {
  position: relative;
  display: inline-block;
}
.pg-wordmark__o::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: -0.18em;
  height: 0.12em;
  background: linear-gradient(
    to right,
    var(--pg-red) 0%, var(--pg-red) 33.333%,
    var(--pg-ink) 33.333%, var(--pg-ink) 66.666%,
    var(--pg-green) 66.666%, var(--pg-green) 100%
  );
}
/* On dark nav, keep middle block as ink (reads as "gap" on black bg) */
.pg-nav .pg-wordmark { color: #fff; }
.pg-nav__menu {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 40px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.pg-nav__actions { display: flex; align-items: center; gap: 20px; }
.pg-lang {
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.pg-lang a { opacity: .5; }
.pg-lang a.is-active { opacity: 1; }

body.is-menu-open { overflow: hidden; }

/* --- burger (hidden on desktop) --- */
.pg-burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 120;
  padding: 0;
}
.pg-burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--pg-ease), opacity .2s var(--pg-ease), top .3s var(--pg-ease);
}
.pg-burger span:nth-child(1) { top: 14px; }
.pg-burger span:nth-child(2) { top: 21px; }
.pg-burger span:nth-child(3) { top: 28px; }
body.is-menu-open .pg-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.is-menu-open .pg-burger span:nth-child(2) { opacity: 0; }
body.is-menu-open .pg-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .pg-nav { mix-blend-mode: normal; background: transparent; }
  .pg-nav.is-scrolled,
  body.is-menu-open .pg-nav { background: var(--pg-black); color: var(--pg-white); }
  .pg-burger { display: inline-flex; }

  /* Full-screen overlay menu */
  .pg-nav__menu {
    position: fixed;
    inset: 0;
    background: var(--pg-black);
    color: var(--pg-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: var(--pg-nav-h) var(--pg-gutter) 40px;
    font-size: 32px;
    letter-spacing: -.01em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .35s var(--pg-ease), transform .35s var(--pg-ease);
    z-index: 110;
  }
  body.is-menu-open .pg-nav__menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .pg-nav__menu a { display: inline-block; padding: 6px 0; }
}

/* --- buttons --- */
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  border-radius: 999px;
  transition: background .3s var(--pg-ease), color .3s var(--pg-ease), transform .3s var(--pg-ease);
}
.pg-btn:hover { background: var(--pg-ink); color: var(--pg-bone); opacity: 1; }
.pg-btn--primary { background: var(--pg-ink); color: var(--pg-bone); border-color: var(--pg-ink); }
.pg-btn--primary:hover { background: var(--pg-red); border-color: var(--pg-red); color: var(--pg-white); }
.pg-btn__arrow { transition: transform .3s var(--pg-ease); }
.pg-btn:hover .pg-btn__arrow { transform: translateX(4px); }

/* ================================================================
   HERO
   ================================================================ */
.pg-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--pg-nav-h);
  background: var(--pg-black);
  color: var(--pg-white);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.pg-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(228,0,43,.35), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(0,166,80,.28), transparent 60%),
    #0A0A0A;
  z-index: 0;
}
.pg-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  z-index: 1;
}
.pg-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: 48px;
}
.pg-hero__title { color: var(--pg-white); }
.pg-hero__title em { font-style: normal; color: var(--pg-red); }
.pg-hero__title .pg-green { color: var(--pg-green); }
.pg-hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.pg-hero__tagline { font-size: clamp(14px, 1.1vw, 16px); opacity: .8; max-width: 42ch; }
.pg-hero__actions { display: flex; gap: 16px; justify-content: flex-end; }
.pg-hero__o {
  position: absolute;
  right: calc(var(--pg-gutter) * -0.2);
  bottom: -80px;
  width: clamp(260px, 38vw, 520px);
  opacity: .12;
  z-index: 1;
  animation: pg-spin 30s linear infinite;
}
@keyframes pg-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .pg-hero__meta { grid-template-columns: 1fr; }
  .pg-hero__actions { justify-content: flex-start; }
}

/* --- marquee --- */
.pg-marquee {
  background: var(--pg-ink);
  color: var(--pg-bone);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.pg-marquee__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: pg-marquee 40s linear infinite;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 64px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pg-marquee__track span { display: inline-flex; align-items: center; gap: 60px; }
.pg-marquee__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pg-red); display: inline-block; }
.pg-marquee__dot:nth-child(3n) { background: var(--pg-green); }
@keyframes pg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   ABOUT
   ================================================================ */
.pg-about { background: var(--pg-bone); }
.pg-about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.pg-about__title { max-width: 16ch; }
.pg-about__title em { font-style: normal; color: var(--pg-red); }
.pg-about__copy { display: grid; gap: 24px; }
/* --- Rolling Ō along the bottom of the about section --- */
.pg-about { position: relative; overflow: hidden; padding-bottom: clamp(140px, 14vw, 200px); }
.pg-about > .pg-container { position: relative; z-index: 2; }

.pg-roll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 4vw, 56px);
  height: clamp(70px, 8vw, 110px);
  pointer-events: none;
  z-index: 1;
}
.pg-roll__ball {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(70px, 8vw, 110px);
  aspect-ratio: 400 / 540;
  animation: pg-roll-x 10s linear infinite;
}
.pg-roll__ball img {
  width: 100%;
  height: 100%;
  display: block;
  animation: pg-roll-spin 10s linear infinite;
  transform-origin: 50% 62%;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
}
@keyframes pg-roll-x {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(calc(100vw - clamp(110px, 10vw, 160px))); }
  100% { transform: translateX(0); }
}
@keyframes pg-roll-spin {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(720deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-roll__ball, .pg-roll__ball img { animation: none; }
}
@media (max-width: 860px) {
  .pg-about__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   EXPERTISE
   ================================================================ */
.pg-expertise { background: var(--pg-ink); color: var(--pg-bone); overflow: hidden; }
.pg-expertise__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}

/* Fun tag cloud — not clickable */
.pg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 0;
  pointer-events: none;
}
.pg-tag {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: 1;
  cursor: default;
  user-select: none;
  transform: rotate(calc((var(--i, 0) - 3) * 0.8deg));
  transition: transform .45s var(--pg-ease), box-shadow .45s var(--pg-ease), background .3s var(--pg-ease);
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.45);
  animation: pg-tag-float 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.7s);
  will-change: transform;
}
.pg-tag__num { font-size: 11px; opacity: .65; font-weight: 800; letter-spacing: .1em; }
.pg-tag__label { font-size: inherit; }
.pg-tag:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.6);
}
.pg-tag--sm { font-size: 18px; padding: 14px 26px; }
.pg-tag--md { font-size: 26px; padding: 16px 30px; }
.pg-tag--lg { font-size: 36px; padding: 18px 32px; }
.pg-tag--xl { font-size: 50px; padding: 20px 38px; }
.pg-tag--red   { background: var(--pg-red);   color: #fff; }
.pg-tag--ink   { background: #2a2a28;         color: var(--pg-bone); border: 1px solid rgba(255,255,255,.12); }
.pg-tag--green { background: var(--pg-green); color: #fff; }
.pg-tag--bone  { background: var(--pg-bone);  color: var(--pg-ink); }

@keyframes pg-tag-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-tag { animation: none; }
}
@media (max-width: 760px) {
  .pg-expertise__head { grid-template-columns: 1fr; }
  .pg-tag--xl { font-size: 32px; padding: 14px 26px; }
  .pg-tag--lg { font-size: 24px; }
}

/* ================================================================
   WORK / CASE STUDIES
   ================================================================ */
.pg-work { background: var(--pg-bone); }
.pg-work__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}
.pg-pillar-row { margin-bottom: 96px; }
.pg-pillar-row:last-child { margin-bottom: 0; }
.pg-pillar-row__head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px;
}
.pg-pillar__num {
  font-size: 14px; opacity: .4; font-weight: 800; letter-spacing: .08em;
}
.pg-pillar__name {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.05;
  margin-left: auto;
}
.pg-pillar__accent {
  height: 5px;
  display: flex;
  gap: 6px;
}
.pg-pillar__accent i {
  display: block;
  width: 22px;
  height: 100%;
  border-radius: 2px;
}
.pg-pillar-row--red   .pg-pillar__accent i { background: var(--pg-red); }
.pg-pillar-row--ink   .pg-pillar__accent i { background: var(--pg-ink); }
.pg-pillar-row--green .pg-pillar__accent i { background: var(--pg-green); }

/* Carousel */
.pg-carousel { position: relative; }
.pg-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 var(--pg-gutter) 16px;
  scrollbar-width: none;
}
.pg-carousel__track::-webkit-scrollbar { display: none; }
.pg-carousel__item {
  flex: 0 0 auto;
  width: clamp(280px, 42vw, 560px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
  margin: 0;
}
.pg-carousel__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--pg-ease);
}
.pg-carousel__item:hover img { transform: scale(1.04); }
.pg-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--pg-ink);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: .9;
  transition: opacity .2s var(--pg-ease), transform .2s var(--pg-ease);
}
.pg-carousel__nav:hover { opacity: 1; transform: translateY(-50%) scale(1.06); }
.pg-carousel__nav--prev { left: calc(var(--pg-gutter) - 28px); }
.pg-carousel__nav--next { right: calc(var(--pg-gutter) - 28px); }

@media (max-width: 900px) {
  .pg-work__head { grid-template-columns: 1fr; }
  .pg-pillar-row__head { flex-wrap: wrap; }
  .pg-pillar__name { margin-left: 0; width: 100%; }
  .pg-carousel__nav { display: none; }
}

/* ================================================================
   STATS
   ================================================================ */
.pg-stats {
  background: var(--pg-bone);
  color: var(--pg-ink);
  position: relative;
  overflow: hidden;
}
.pg-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,.15);
}
.pg-stat {
  padding: 56px 32px;
  border-bottom: 1px solid rgba(0,0,0,.15);
  border-right: 1px solid rgba(0,0,0,.15);
}
.pg-stat:last-child { border-right: 0; }
.pg-stat__num {
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.03em;
}
.pg-stat__num em { font-style: normal; color: var(--pg-red); }
.pg-stat__label {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .6;
}
@media (max-width: 800px) {
  .pg-stats__grid { grid-template-columns: 1fr; }
  .pg-stat { border-right: 0; }
}

/* ================================================================
   CLIENTS
   ================================================================ */
.pg-clients { background: var(--pg-bone); }
.pg-clients--dark { background: var(--pg-black); color: var(--pg-white); }
.pg-clients--dark .pg-eyebrow { color: rgba(255,255,255,.7); }
.pg-clients__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
/* Logos marquee */
.pg-logos-marquee {
  overflow: hidden;
  width: 100%;
  padding: 32px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.pg-logos-marquee__track {
  display: flex;
  width: max-content;
  animation: pg-logos-scroll 60s linear infinite;
}
.pg-logos-marquee:hover .pg-logos-marquee__track { animation-play-state: paused; }
.pg-logos-marquee__set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pg-logo {
  width: clamp(140px, 16vw, 200px);
  height: 110px;
  display: grid;
  place-items: center;
  padding: 0 clamp(24px, 3vw, 44px);
  flex-shrink: 0;
}
.pg-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .3s var(--pg-ease);
}
.pg-logo:hover img { transform: scale(1.08); }

@keyframes pg-logos-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-logos-marquee__track { animation: none; }
}

/* ================================================================
   CONTACT
   ================================================================ */
.pg-contact {
  background: var(--pg-red);
  color: var(--pg-white);
  position: relative;
  overflow: hidden;
}
.pg-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 1;
  align-items: start;
}
.pg-contact__intro { display: grid; gap: 18px; max-width: 520px; }
.pg-contact__title { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.05; letter-spacing: -.02em; }
.pg-contact__copy { font-size: 17px; line-height: 1.5; opacity: .92; }

/* Flash messages */
.pg-contact__flash {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.pg-contact__flash--ok {
  background: rgba(29, 191, 115, .14);
  border-color: rgba(29, 191, 115, .45);
  color: #d4f7e3;
}
.pg-contact__flash--err {
  background: rgba(230, 57, 70, .15);
  border-color: rgba(230, 57, 70, .5);
  color: #ffd8db;
}

/* Form */
.pg-contact__form {
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,.08);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.pg-field { display: grid; gap: 6px; }
.pg-field label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}
.pg-field input,
.pg-field textarea {
  width: 100%;
  background: rgba(255,255,255,.96);
  color: var(--pg-ink);
  border: 0;
  border-radius: 2px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  outline: 2px solid transparent;
  transition: outline-color .2s var(--pg-ease);
}
.pg-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.pg-field input:focus,
.pg-field textarea:focus { outline-color: var(--pg-black); }
.pg-btn--block { width: 100%; justify-content: center; margin-top: 8px; }

.pg-contact__o {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  opacity: .10;
  z-index: 0;
}
@media (max-width: 860px) {
  .pg-contact__inner { grid-template-columns: 1fr; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.pg-footer { background: var(--pg-black); color: var(--pg-white); padding: 48px 0 32px; }
.pg-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.pg-footer__legal { font-size: 13px; opacity: .75; display: flex; flex-direction: column; gap: 10px; }
.pg-footer__links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .08em; opacity: .85; }
.pg-footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.pg-footer__logo svg { height: 40px; width: auto; }

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.pg-legal { padding-top: calc(var(--pg-nav-h) + 60px); min-height: 100vh; }
.pg-legal__inner { max-width: 820px; }
.pg-legal h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.pg-legal p + p { margin-top: 12px; }
.pg-legal ul { margin: 0; }
.pg-legal code {
  background: rgba(0,0,0,.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pg-legal a { color: var(--pg-red); text-decoration: underline; text-underline-offset: 3px; }
.pg-legal a:hover { opacity: .8; }

/* ================================================================
   UTILITIES / REVEAL
   ================================================================ */
.pg-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--pg-ease-out), transform .9s var(--pg-ease-out); }
.pg-reveal.is-in { opacity: 1; transform: none; }
.pg-reveal[data-delay="1"] { transition-delay: .1s; }
.pg-reveal[data-delay="2"] { transition-delay: .2s; }
.pg-reveal[data-delay="3"] { transition-delay: .3s; }
.pg-reveal[data-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pg-reveal { opacity: 1; transform: none; }
}

/* ================================================================
   MOBILE POLISH (≤ 600px)
   ================================================================ */
@media (max-width: 600px) {
  :root { --pg-nav-h: 72px; }

  /* Hero — tighter spacing, stacked actions */
  .pg-hero__inner { gap: 28px; }
  .pg-hero__actions { flex-direction: column; width: 100%; }
  .pg-hero__actions .pg-btn { width: 100%; justify-content: center; }
  .pg-hero__o { width: 220px; right: -40px; bottom: -40px; }

  /* Expertise tags — scale down on very small screens */
  .pg-expertise__head { margin-bottom: 40px; }
  .pg-tags { gap: 14px 16px; padding: 16px 0; }
  .pg-tag { padding: 12px 20px; }
  .pg-tag--sm { font-size: 15px; padding: 10px 18px; }
  .pg-tag--md { font-size: 19px; padding: 12px 22px; }
  .pg-tag--lg { font-size: 22px; padding: 14px 24px; }
  .pg-tag--xl { font-size: 26px; padding: 14px 24px; }

  /* Work — tighter carousels with scroll hint */
  .pg-work__head { margin-bottom: 40px; }
  .pg-pillar-row { margin-bottom: 64px; }
  .pg-pillar-row__head { margin-bottom: 20px; gap: 12px; }
  .pg-carousel__item { width: 82vw; }

  /* Stats — reduce vertical padding */
  .pg-stat { padding: 36px 20px; }

  /* Contact section polish */
  .pg-contact__intro { gap: 14px; }
  .pg-contact__copy { font-size: 15px; }
  .pg-contact__o { width: 320px; right: -140px; opacity: .08; }
  .pg-contact__form { padding: 20px; gap: 12px; }

  /* Footer — stack logo under legal text */
  .pg-footer { padding: 36px 0 24px; }
  .pg-footer__inner { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .pg-footer__legal { font-size: 12px; line-height: 1.5; }

  /* Marquee — smaller text */
  .pg-marquee { padding: 16px 0; }
}

/* Extra small screens (≤ 380px) */
@media (max-width: 380px) {
  .pg-tag--lg { font-size: 20px; }
  .pg-tag--xl { font-size: 22px; }
  .pg-pillar__name { font-size: 20px; }
}
