@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Manrope:wght@600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* =========================================================
   PIISTECH – Home page (new.made-in-bd.com)
   Everything is scoped to .pt-page so it never clashes with
   the site header/footer or Bootstrap (.container, .btn, .small).
   Icons use the site's Font Awesome 6 via CSS, because the CMS
   editor strips <svg>, <script> and empty <i> tags.
   All motion is pure CSS and switches off for visitors who
   prefer reduced motion.
   ========================================================= */

@property --n {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.pt-page {
  --night: #04130e;
  --night2: #0a2219;
  --ink: #0f1f19;
  --red: #e8283c;
  --pink: #9be15d;
  --blue: #0f8f6a;
  --violet: #c9a227;
  --mint: #19b394;
  --grad: linear-gradient(100deg, #16a974 0%, #0d8f7f 50%, #0a6a80 100%);
  --muted: #557066;
  --soft: #f1f6f3;
  --line: #dfe9e4;
  --serif: 'Instrument Serif', Georgia, serif;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  overflow-x: clip;
}

/* Let the page run edge to edge inside the CMS wrapper */
.cms-content-wrapper:has(.pt-page) {
  max-width: none;
  width: 100%;
  padding: 0;
}

.cms-content-wrapper:has(.pt-page) main,
.cms-page-content:has(.pt-page) {
  padding: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   CMS page wrappers: when the block is pasted with the
   preview's placeholders, hide the empty paragraph above it,
   the placeholder footer below it and the wrapper padding.
   ========================================================= */
.cms-section-wrapper:has(.pt-home) > p,
.cms-section-wrapper:has(.pt-home) > footer {
  display: none !important;
}

main.pb-3:has(> .cms-content-wrapper .pt-page),
.cms-content-wrapper:has(.pt-page) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ribbon text stays readable even before the font loads */
.ph-ribbon-track {
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

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

.pt-page h1, .pt-page h2, .pt-page h3, .pt-page p, .pt-page ul, .pt-page figure {
  margin-top: 0;
}

.pt-page h1, .pt-page h2, .pt-page h3 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: inherit;
}

.pt-page a {
  text-decoration: none;
  color: inherit;
}

.pt-page img {
  max-width: 100%;
  display: block;
}

.pt-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

/* ---------- Font Awesome icon helper ---------- */
.pt-page [class*="pt-ic-"] {
  font-size: 0;
  line-height: 0;
}

.pt-page [class*="pt-ic-"]::before {
  content: var(--ic);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

.pt-ic-code     { --ic: "\f121"; }
.pt-ic-erp      { --ic: "\f542"; }
.pt-ic-mobile   { --ic: "\f3cd"; }
.pt-ic-design   { --ic: "\f53f"; }
.pt-ic-qa       { --ic: "\f46c"; }
.pt-ic-cart     { --ic: "\f07a"; }
.pt-ic-school   { --ic: "\f549"; }
.pt-ic-pos      { --ic: "\f788"; }
.pt-ic-chat     { --ic: "\f086"; }
.pt-ic-rocket   { --ic: "\f135"; }
.pt-ic-shield   { --ic: "\f3ed"; }
.pt-ic-bolt     { --ic: "\f0e7"; }
.pt-ic-money    { --ic: "\f53a"; }
.pt-ic-clock    { --ic: "\f017"; }
.pt-ic-globe    { --ic: "\f0ac"; }
.pt-ic-phone    { --ic: "\f095"; }
.pt-ic-mail     { --ic: "\f0e0"; }

/* =========================================================
   Shared bits
   ========================================================= */
.ph-section {
  padding: 120px 0;
}

.ph-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
}

.ph-title {
  font-size: clamp(34px, 4.4vw, 60px);
  margin: 14px 0 0;
}

.pt-page .ph-title em,
.pt-page .ph-big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}

.ph-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 470px;
  margin-bottom: 0;
}

.ph-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}

.ph-center {
  text-align: center;
  margin-bottom: 70px;
}

/* Animated gradient text */
.ph-shine {
  background: linear-gradient(100deg, #17c08a, #9be15d, #f5c542, #9be15d, #17c08a);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ph-shine 8s linear infinite;
}

/* Buttons */
.ph-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}

/* light sweep on hover */
.ph-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s;
}

.ph-btn:hover {
  transform: translateY(-3px);
}

.ph-btn:hover::after {
  transform: translateX(120%);
}

.ph-btn-arrow {
  display: inline-block;
  transition: transform .3s;
}

.ph-btn:hover .ph-btn-arrow {
  transform: translateX(4px) rotate(-45deg);
}

.pt-page .ph-btn-grad {
  background: var(--grad);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 12px 34px rgba(22, 169, 116, .35);
  animation: ph-shine 6s linear infinite;
}

.pt-page .ph-btn-grad:hover {
  color: #fff;
  box-shadow: 0 18px 44px rgba(22, 169, 116, .5);
}

.pt-page .ph-btn-glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pt-page .ph-btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.pt-page .ph-btn-dark {
  background: var(--night);
  color: #fff;
}

.pt-page .ph-btn-dark:hover {
  color: #fff;
  box-shadow: 0 14px 30px rgba(4, 19, 14, .3);
}

/* Aurora blobs (hero + contact) */
.ph-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ph-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  font-size: 0;
}

.ph-blob-1 {
  width: 520px;
  height: 520px;
  background: #006a4e;
  top: -160px;
  left: -120px;
  animation: ph-drift-a 18s ease-in-out infinite alternate;
}

.ph-blob-2 {
  width: 600px;
  height: 600px;
  background: #0f8f6a;
  top: 10%;
  right: -200px;
  animation: ph-drift-b 22s ease-in-out infinite alternate;
}

.ph-blob-3 {
  width: 420px;
  height: 420px;
  background: #c9a227;
  bottom: -120px;
  left: 35%;
  opacity: .4;
  animation: ph-drift-a 26s ease-in-out infinite alternate-reverse;
}

/* =========================================================
   Hero
   ========================================================= */
/* Hero on a light mint background (#eff9f1), designed for light:
   a mint-to-white wash with two large crisp mint circles and a faint dot
   pattern, dark green type, white cards with soft green shadows */
.ph-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eff9f1 0%, #eff9f1 70%, #f7fcf8 100%);
  color: #0f2418;
  padding: 55px 0 60px;
  border-bottom: 1px solid #e3efe6;
}

/* faint dot pattern, strongest at the top left */
.ph-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 122, 70, .14) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 15% 10%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 15% 10%, #000 0%, transparent 60%);
  pointer-events: none;
}

/* the drifting glows become two big crisp circles */
.ph-hero .ph-floor,
.ph-hero .ph-blob-1 { display: none; }
.ph-hero .ph-blob { filter: none; opacity: 1; }
.ph-hero .ph-blob-2 { width: 720px; height: 720px; top: -260px; right: -220px; background: #e3f3e8; }
.ph-hero .ph-blob-3 { width: 380px; height: 380px; bottom: -200px; left: -140px; top: auto; background: #e6f5ea; }

/* type */
.ph-hero .ph-chip { color: #1d3327; background: #fff; border-color: #e1efe5; box-shadow: 0 6px 18px rgba(16, 60, 35, .06); }
.ph-hero .ph-live,
.ph-hero .ph-live::after { background: #22a35a; }
.ph-hero .ph-rotator { color: #1f8a4c; }
.ph-hero h1 .ph-shine {
  background-image: linear-gradient(100deg, #1e7a46, #2fae64, #1e7a46, #2fae64, #1e7a46);
}
.ph-hero .ph-hero-lead { color: #4f6157; }

/* buttons */
.pt-page .ph-hero .ph-btn-grad {
  background: #1e7a46;
  animation: none;
  box-shadow: 0 12px 26px rgba(30, 122, 70, .25);
}
.pt-page .ph-hero .ph-btn-grad:hover { background: #17683b; box-shadow: 0 16px 32px rgba(30, 122, 70, .32); }
.pt-page .ph-hero .ph-btn-glass { background: #fff; color: #0f2418; border-color: #d9eadf; box-shadow: 0 6px 16px rgba(16, 60, 35, .05); }
.pt-page .ph-hero .ph-btn-glass:hover { color: #1e7a46; background: #fff; border-color: #1e7a46; }

.ph-hero .ph-review { background: #fff; border-color: #e1efe5; box-shadow: 0 8px 22px rgba(16, 60, 35, .06); }
.ph-hero .ph-review small { color: #4f6157; }

/* product pictures, ring and floating cards */
.ph-hero .ph-layer { border: 6px solid #fff; box-shadow: 0 24px 50px rgba(16, 60, 35, .16); }
.ph-hero .ph-orbit { border: 1px solid rgba(30, 122, 70, .2); }
.pt-page .ph-hero .ph-orbit-ic { background: #fff; border-color: #e1efe5; color: #1e7a46; box-shadow: 0 10px 24px rgba(16, 60, 35, .12); }
.ph-hero .ph-tag { color: #0f2418; background: #fff; border-color: #e1efe5; box-shadow: 0 12px 28px rgba(16, 60, 35, .1); }
.ph-hero .ph-tag [class*="pt-ic-"]::before { color: #1e7a46; }

/* stats */
.ph-hero .ph-stat { background: #fff; border-color: #e1efe5; box-shadow: 0 10px 28px rgba(16, 60, 35, .06); }
.ph-hero .ph-stat:hover { border-color: #bfdcc9; }
.ph-hero .ph-stat strong { color: #1e7a46; }
.ph-hero .ph-stat-label { color: #4f6157; }

@media (max-width: 640px) {
  .ph-hero .ph-blob-2 { width: 420px; height: 420px; top: -160px; right: -200px; }
  .ph-hero .ph-blob-3 { width: 260px; height: 260px; }
  .ph-hero .ph-layer { border-width: 4px; }
}

/* moving perspective grid floor */
.ph-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 60%;
  font-size: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 60%, transparent 100%);
  animation: ph-floor 3s linear infinite;
  pointer-events: none;
}

.ph-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

.ph-hero-copy > * {
  animation: ph-rise .9s cubic-bezier(.2, .8, .2, 1) both;
}

.ph-hero-copy > :nth-child(2) { animation-delay: .1s; }
.ph-hero-copy > :nth-child(3) { animation-delay: .2s; }
.ph-hero-copy > :nth-child(4) { animation-delay: .3s; }
.ph-hero-copy > :nth-child(5) { animation-delay: .4s; }

.ph-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #d4e2db;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}

.ph-live {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8283c;
  font-size: 0;
}

.ph-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e8283c;
  animation: ph-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

.ph-hero h1 {
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 26px 0 24px;
}

/* rotating word */
.ph-rotator {
  display: block;
  height: 1.08em;
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: #a7efcf;
}

.ph-rot-track {
  display: block;
  animation: ph-rotate 12.5s cubic-bezier(.7, 0, .3, 1) infinite;
}

.ph-rot-word {
  display: block;
  height: 1.08em;
  line-height: 1.08;
}

.ph-hero h1 .ph-shine {
  display: block;
}

.ph-hero-lead {
  color: #a3b8ae;
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 36px;
}

.ph-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.ph-review {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

.ph-review img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}

.ph-stars {
  display: block;
  color: #ffc53d;
  letter-spacing: 3px;
  font-size: 14px;
  line-height: 1.3;
}

.ph-review small {
  color: #a3b8ae;
  font-size: 12.5px;
}

/* 3D product stage */
.ph-stage {
  position: relative;
  aspect-ratio: 1 / .92;
  perspective: 1400px;
  animation: ph-fade 1.2s .3s both;
}

.ph-stack {
  position: absolute;
  inset: 10% 10% 10% 8%;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(9deg) rotateZ(1deg);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}

.ph-stage:hover .ph-stack {
  transform: rotateY(-6deg) rotateX(4deg);
}

.ph-layer {
  position: absolute;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
  animation: ph-bob 7s ease-in-out infinite;
}

.ph-layer-1 {
  width: 82%;
  top: 6%;
  left: 0;
  transform: translateZ(0);
}

.ph-layer-2 {
  width: 52%;
  bottom: 0;
  left: -6%;
  transform: translateZ(90px);
  animation-delay: -2.4s;
}

.ph-layer-3 {
  width: 50%;
  top: 36%;
  right: 0;
  transform: translateZ(120px);
  animation-delay: -4.6s;
}

/* orbiting icons */
.ph-orbit {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .14);
  animation: ph-spin 30s linear infinite;
}

.ph-orbit-ic {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 34, 25, .85);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: ph-spin 30s linear infinite reverse;
}

.ph-orbit-ic::before { font-size: 17px; }

.ph-orbit-ic:nth-child(1) { top: -23px; left: calc(50% - 23px); color: #f5c542; }
.ph-orbit-ic:nth-child(2) { right: -23px; top: calc(50% - 23px); color: #f5c542; }
.ph-orbit-ic:nth-child(3) { bottom: -23px; left: calc(50% - 23px); color: #9be15d; }
.ph-orbit-ic:nth-child(4) { left: -23px; top: calc(50% - 23px); color: #6fe3c7; }

.ph-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  animation: ph-bob 6s ease-in-out infinite;
}

.ph-tag [class*="pt-ic-"]::before {
  font-size: 13px;
  color: #ffc53d;
}

.ph-tag-a { top: 8%; right: 4%; }
.ph-tag-b { bottom: 4%; right: 16%; animation-delay: -3s; }

/* counting stats */
.ph-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 70px;
}

.ph-stat {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .4s, border-color .4s;
  animation: ph-rise .9s cubic-bezier(.2, .8, .2, 1) both;
}

.ph-stat:nth-child(2) { animation-delay: .1s; }
.ph-stat:nth-child(3) { animation-delay: .2s; }
.ph-stat:nth-child(4) { animation-delay: .3s; }

.ph-stat::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s;
}

.ph-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .22);
}

.ph-stat:hover::before {
  transform: scaleX(1);
}

.ph-stat strong {
  --size: clamp(36px, 4vw, 54px);
  display: block;
  font-family: Manrope, sans-serif;
  font-size: var(--size);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.ph-stat-label {
  color: #a3b8ae;
  font-size: 14px;
}

/* The number is the span's own text, e.g. <span class="ph-num">30</span>.
   home.js counts up to it; without the script it simply shows. */
.ph-num {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Logo marquee
   ========================================================= */
.ph-logos {
  padding: 70px 0 60px;
  overflow: hidden;
}

.ph-logos-title {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 34px;
}

.ph-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding: 10px 0;
}

.ph-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ph-marquee 40s linear infinite;
}

.ph-marquee-rev .ph-marquee-track {
  animation-direction: reverse;
  animation-duration: 46s;
}

.ph-marquee:hover .ph-marquee-track {
  animation-play-state: paused;
}

.pt-page .ph-marquee img {
  height: 54px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  margin: 0 46px;
  transition: transform .3s;
}

.pt-page .ph-marquee img:hover {
  transform: scale(1.1);
}

/* =========================================================
   Products bento
   ========================================================= */
.ph-products {
  padding-top: 90px;
}

.ph-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 18px;
}

.ph-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--soft);
  isolation: isolate;
}

.ph-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.ph-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 19, 14, 0) 30%, rgba(4, 19, 14, .88) 100%);
  transition: opacity .5s;
}

.ph-tile:hover img {
  transform: scale(1.08);
}

.ph-tile-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 24px;
  color: #fff;
  transform: translateY(6px);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.ph-tile:hover .ph-tile-info {
  transform: translateY(0);
}

.ph-tile-info small {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #a7efcf;
}

.ph-tile-info h3 {
  font-size: 20px;
  margin: 4px 0 0;
  color: #fff;
}

.ph-tile-info p {
  color: #d0ddd6;
  font-size: 15px;
  margin: 10px 0 0;
  max-width: 440px;
}

.ph-tile-go {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  transform: scale(.6) rotate(-45deg);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}

.ph-tile:hover .ph-tile-go,
.ph-tile:focus-visible .ph-tile-go {
  transform: scale(1) rotate(0);
  opacity: 1;
}

.ph-tile-feat {
  grid-column: span 2;
  grid-row: span 2;
}

.ph-tile-feat .ph-tile-info {
  padding: 34px;
}

.ph-tile-feat .ph-tile-info h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.ph-tile-wide {
  grid-column: span 2;
}

/* spinning gradient border on the featured tile */
.ph-tile-feat::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang), #17c08a, #9be15d, #f5c542, transparent 60%, #17c08a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ph-border 5s linear infinite;
  pointer-events: none;
}

.ph-more {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
}

/* =========================================================
   Crossing ribbons
   ========================================================= */
.ph-ribbons {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.ph-ribbon {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  padding: 9px 0;
  overflow: hidden;
}

.ph-ribbon-a {
  background: var(--grad);
  transform: translateY(-50%) rotate(-2.2deg);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(22, 169, 116, .25);
}

.ph-ribbon-b {
  background: var(--night);
  transform: translateY(-50%) rotate(1.8deg);
}

.ph-ribbon-track {
  display: flex;
  width: max-content;
  animation: ph-marquee 32s linear infinite;
}

.ph-ribbon-b .ph-ribbon-track {
  animation-direction: reverse;
}

.ph-rib {
  display: inline-flex;
  align-items: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: -.02em;
  color: #fff;
  white-space: nowrap;
}

.ph-rib::after {
  content: '\2726';
  margin: 0 22px;
  font-size: .7em;
  opacity: .8;
}

.ph-ribbon-b .ph-rib {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: #a7efcf;
}

/* =========================================================
   Services accordion
   ========================================================= */
.ph-services {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.ph-services::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  right: -250px;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, .16), transparent 65%);
}

.ph-services .ph-lead {
  color: #a3b8ae;
}

.ph-services .ph-label {
  color: #f5c542;
}

.ph-acc {
  display: flex;
  gap: 12px;
  height: 460px;
}

.ph-acc-item {
  --c1: #17c08a;
  --c2: #0b6e4f;
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px;
  background: var(--night2);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: flex .7s cubic-bezier(.2, .8, .2, 1), border-color .5s;
}

.ph-acc-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(150deg, var(--c1), var(--c2));
  opacity: 0;
  transition: opacity .7s;
}

.ph-acc-2 { --c1: #e8b923; --c2: #a8730b; }
.ph-acc-3 { --c1: #f0444f; --c2: #a3162a; }
.ph-acc-4 { --c1: #2fb8c4; --c2: #126b73; }
.ph-acc-5 { --c1: #8ccf4d; --c2: #3f7a1a; }
.ph-acc-6 { --c1: #ff9f43; --c2: #b5591a; }

.ph-acc-item > * {
  position: relative;
  z-index: 1;
}

.ph-acc-num {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
}

.ph-acc-ic {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), background .5s;
}

.ph-acc-ic::before { font-size: 19px; }

.ph-acc-vert {
  position: absolute;
  left: 50%;
  bottom: 30px;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: opacity .3s;
}

.ph-acc-body {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  width: 360px;
  max-width: calc(100% - 60px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
}

.ph-acc-body h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-bottom: 12px;
  color: #fff;
}

.ph-acc-body p {
  color: rgba(255, 255, 255, .88);
  margin-bottom: 18px;
}

.ph-acc-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

/* the open panel: hovered/focused one, or the first when idle */
.ph-acc-item:hover,
.ph-acc-item:focus-visible,
.ph-acc:not(.ph-acc-js):not(:hover):not(:focus-within) .ph-acc-1,
.ph-acc-js:not(:hover):not(:focus-within) .ph-acc-item.is-active,
.ph-acc-js .ph-acc-item.is-active:hover {
  flex: 4.2;
  border-color: transparent;
}

.ph-acc-item:hover::before,
.ph-acc-item:focus-visible::before,
.ph-acc:not(.ph-acc-js):not(:hover):not(:focus-within) .ph-acc-1::before,
.ph-acc-js:not(:hover):not(:focus-within) .ph-acc-item.is-active::before,
.ph-acc-js .ph-acc-item.is-active:hover::before {
  opacity: 1;
}

.ph-acc-item:hover .ph-acc-vert,
.ph-acc-item:focus-visible .ph-acc-vert,
.ph-acc:not(.ph-acc-js):not(:hover):not(:focus-within) .ph-acc-1 .ph-acc-vert,
.ph-acc-js:not(:hover):not(:focus-within) .ph-acc-item.is-active .ph-acc-vert,
.ph-acc-js .ph-acc-item.is-active:hover .ph-acc-vert {
  opacity: 0;
}

.ph-acc-item:hover .ph-acc-body,
.ph-acc-item:focus-visible .ph-acc-body,
.ph-acc:not(.ph-acc-js):not(:hover):not(:focus-within) .ph-acc-1 .ph-acc-body,
.ph-acc-js:not(:hover):not(:focus-within) .ph-acc-item.is-active .ph-acc-body,
.ph-acc-js .ph-acc-item.is-active:hover .ph-acc-body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s .25s, transform .6s .25s cubic-bezier(.2, .8, .2, 1);
}

.ph-acc-item:hover .ph-acc-ic,
.ph-acc-item:focus-visible .ph-acc-ic,
.ph-acc:not(.ph-acc-js):not(:hover):not(:focus-within) .ph-acc-1 .ph-acc-ic,
.ph-acc-js:not(:hover):not(:focus-within) .ph-acc-item.is-active .ph-acc-ic,
.ph-acc-js .ph-acc-item.is-active:hover .ph-acc-ic {
  transform: scale(1.5) rotate(-10deg) translate(-8px, 8px);
  background: rgba(255, 255, 255, .2);
}

.ph-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: #a3b8ae;
  font-size: 14px;
}

.ph-extra a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e2ece7;
  font-weight: 600;
  transition: background .3s, border-color .3s;
}

.ph-extra a:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
}

/* ---------- Service card decoration ----------
   A faint dot texture, a large tilted watermark of the card's own icon in the
   corner, and a big outlined number once the panel is open. */
.ph-acc-1 { --wm: "\f121"; }
.ph-acc-2 { --wm: "\f542"; }
.ph-acc-3 { --wm: "\f3cd"; }
.ph-acc-4 { --wm: "\f07a"; }
.ph-acc-5 { --wm: "\f53f"; }
.ph-acc-6 { --wm: "\f46c"; }

.ph-acc-item {
  isolation: isolate;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px);
  background-size: 18px 18px;
}

.ph-acc-item::after {
  content: var(--wm);
  position: absolute;
  z-index: 0;
  right: -26px;
  bottom: -38px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 190px;
  line-height: 1;
  color: #fff;
  opacity: .05;
  transform: rotate(-14deg);
  transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.ph-acc-num {
  transition: font-size .6s cubic-bezier(.2, .8, .2, 1), color .4s;
}

/* open panel */
.ph-acc-item:hover::after,
.ph-acc-item:focus-visible::after,
.ph-acc:not(.ph-acc-js):not(:hover):not(:focus-within) .ph-acc-1::after,
.ph-acc-js:not(:hover):not(:focus-within) .ph-acc-item.is-active::after {
  opacity: .16;
  transform: rotate(-6deg) scale(1.08);
}

.ph-acc-item:hover .ph-acc-num,
.ph-acc-item:focus-visible .ph-acc-num,
.ph-acc:not(.ph-acc-js):not(:hover):not(:focus-within) .ph-acc-1 .ph-acc-num,
.ph-acc-js:not(:hover):not(:focus-within) .ph-acc-item.is-active .ph-acc-num {
  font-size: 84px;
  line-height: .9;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45);
}

/* =========================================================
   Stacked case studies (sticky)
   ========================================================= */
.ph-work {
  background: var(--soft);
}

.ph-cases {
  display: grid;
  gap: 30px;
}

.ph-case {
  --i: 0;
  position: sticky;
  top: calc(110px + var(--i) * 28px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 40px;
  min-height: 460px;
  padding: 46px 50px;
  border-radius: 32px;
  background: var(--night);
  color: #fff;
  box-shadow: 0 -10px 40px rgba(4, 19, 14, .08);
  transform-origin: center top;
}

.pt-page .ph-case-1 { color: #fff; }
.pt-page .ph-case-2 { --i: 1; background: #ddf3e8; color: var(--ink); }
.pt-page .ph-case-3 { --i: 2; background: #fbf0cf; color: var(--ink); }
.pt-page .ph-case-4 { --i: 3; background: #dcf0f3; color: var(--ink); }

.ph-case-text small {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
}

.ph-case-1 .ph-case-text small {
  color: #f5c542;
}

.ph-case-text h3 {
  font-size: clamp(30px, 3.4vw, 46px);
  margin: 10px 0 14px;
}

.ph-case-text p {
  font-size: 16.5px;
  opacity: .78;
  margin-bottom: 22px;
  max-width: 440px;
}

.ph-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.ph-case-tags .ph-chip-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: .7;
}

.ph-case-cta {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: transform .3s, background .3s;
}

.ph-case-1 .ph-case-cta {
  background: #fff;
  color: var(--ink);
}

.ph-case:hover .ph-case-cta {
  transform: translateX(6px);
}

.ph-case-img {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(4, 19, 14, .18);
}

/* the picture zooms inside its frame, so the frame stays in line with the text */
.ph-case-img img {
  width: 100%;
  aspect-ratio: 716 / 473;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.ph-case:hover .ph-case-img img {
  transform: scale(1.04);
}

/* =========================================================
   Process timeline
   ========================================================= */
.ph-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.ph-line {
  position: absolute;
  top: 34px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  font-size: 0;
}

.ph-line-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad);
  transform-origin: left;
}

.ph-tstep {
  position: relative;
  text-align: center;
  padding: 0 6px;
}

.ph-node {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--red);
  border: 2px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 31, 25, .08);
  transition: background .4s, color .4s, border-color .4s, transform .4s;
}

.ph-node::before {
  font-size: 24px;
}

.ph-node::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
  animation: ph-pulse 3.2s ease-out infinite;
}

.ph-tstep:nth-child(3) .ph-node::after { animation-delay: .8s; }
.ph-tstep:nth-child(4) .ph-node::after { animation-delay: 1.6s; }
.ph-tstep:nth-child(5) .ph-node::after { animation-delay: 2.4s; }

.ph-tstep:hover .ph-node {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
  transform: translateY(-6px) rotate(-8deg);
}

.ph-tstep small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.ph-tstep h3 {
  font-size: 23px;
  margin: 6px 0 10px;
}

.ph-tstep p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* =========================================================
   Team + polaroids
   ========================================================= */
.ph-team {
  background:
    radial-gradient(circle at 90% 10%, #ddf3e8 0%, transparent 35%),
    radial-gradient(circle at 10% 90%, #fbf0cf 0%, transparent 35%),
    #f9fcfa;
}

.ph-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.ph-team-copy .ph-lead {
  margin-top: 22px;
  max-width: 520px;
}

.pt-page .ph-reasons {
  list-style: none;
  padding: 0;
  margin: 34px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ph-reasons li {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s, box-shadow .35s;
}

.ph-reasons li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 31, 25, .08);
}

.ph-reasons strong {
  display: block;
  font-size: 15px;
}

.ph-reasons small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ph-reason-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #fff;
  transition: background .35s;
}

.ph-reason-ic::before { font-size: 15px; }

.ph-reasons li:hover .ph-reason-ic {
  background: var(--red);
}

.ph-awards {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ph-awards img {
  height: 46px;
  width: auto;
}

.ph-collage {
  position: relative;
  min-height: 560px;
}

.ph-polaroid {
  position: absolute;
  margin: 0;
  padding: 12px 12px 44px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(15, 31, 25, .18);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s;
}

.ph-polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: 3px;
}

.ph-polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #35504a;
}

.ph-pol-main {
  width: 74%;
  top: 40px;
  left: 6%;
  transform: rotate(-4deg);
  z-index: 1;
}

.ph-pol-a {
  width: 46%;
  top: 0;
  right: 0;
  transform: rotate(7deg);
  z-index: 2;
  animation: ph-sway 8s ease-in-out infinite;
}

.ph-pol-b {
  width: 44%;
  bottom: 0;
  right: 6%;
  transform: rotate(-9deg);
  z-index: 3;
  animation: ph-sway 9s ease-in-out infinite reverse;
}

.ph-polaroid:hover {
  transform: rotate(0) scale(1.05);
  z-index: 5;
  animation-play-state: paused;
  box-shadow: 0 40px 80px rgba(15, 31, 25, .28);
}

.ph-sticker {
  position: absolute;
  z-index: 4;
  left: -10px;
  top: -10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 20px 40px rgba(22, 169, 116, .35);
  animation: ph-wobble 6s ease-in-out infinite;
}

.ph-sticker strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  letter-spacing: -.04em;
}

.ph-sticker::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .6);
  animation: ph-spin 14s linear infinite;
}

/* =========================================================
   Contact
   ========================================================= */
.ph-contact {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  padding: 130px 0;
}

.ph-aurora-soft .ph-blob {
  opacity: .35;
}

.ph-aurora-soft .ph-blob-1 {
  top: auto;
  bottom: -200px;
}

.ph-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.ph-contact .ph-label {
  color: #f5c542;
}

.ph-big {
  font-size: clamp(44px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -.055em;
  margin: 16px 0 24px;
}

.ph-contact .ph-lead {
  color: #a3b8ae;
  max-width: 500px;
}

.ph-ceo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0 30px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  max-width: 500px;
}

.ph-ceo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: #fff;
  flex-shrink: 0;
}

.ph-ceo p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.ph-ceo small {
  color: #a3b8ae;
}

.ph-contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ph-contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 700;
  transition: background .3s, border-color .3s;
}

.ph-contact-lines a:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .35);
}

.ph-contact-lines [class*="pt-ic-"]::before {
  font-size: 14px;
  color: #f5c542;
}

/* glass form with spinning gradient edge */
.ph-form-wrap {
  position: relative;
  border-radius: 30px;
  padding: 2px;
  overflow: hidden;
  isolation: isolate;
}

.ph-form-wrap::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(from var(--ang), transparent 0deg, #17c08a 60deg, #9be15d 120deg, #f5c542 180deg, transparent 240deg);
  animation: ph-border 6s linear infinite;
}

.ph-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 40px;
  border-radius: 28px;
  background: rgba(8, 28, 21, .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.ph-form h3 {
  grid-column: 1 / -1;
  font-size: 26px;
  margin-bottom: 8px;
  color: #fff;
}

.ph-full {
  grid-column: 1 / -1;
}

/* floating labels */
.ph-field {
  position: relative;
}

.ph-field input,
.ph-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 24px 16px 10px;
  resize: vertical;
  transition: border-color .3s, background .3s;
}

.ph-field label {
  position: absolute;
  left: 17px;
  top: 17px;
  font-size: 15px;
  color: #8aa398;
  pointer-events: none;
  transition: top .25s, font-size .25s, color .25s;
}

.ph-field input:focus,
.ph-field textarea:focus {
  outline: none;
  border-color: #f5c542;
  background: rgba(255, 255, 255, .08);
}

.ph-field input:focus + label,
.ph-field input:not(:placeholder-shown) + label,
.ph-field textarea:focus + label,
.ph-field textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 11.5px;
  color: #f5c542;
}

.ph-form .ph-btn {
  width: 100%;
  margin-top: 6px;
}

/* =========================================================
   Scroll-driven effects (browsers that support them)
   ========================================================= */
@supports (animation-timeline: view()) {
  .ph-reveal {
    animation: ph-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  .ph-bento .ph-tile:nth-child(even) {
    animation-range: entry 8% cover 34%;
  }

  .ph-line-fill {
    animation: ph-grow linear both;
    animation-timeline: view();
    animation-range: entry 40% cover 55%;
  }

  .ph-case {
    animation: ph-shrink linear both;
    animation-timeline: view();
    animation-range: exit-crossing 0% exit-crossing 100%;
  }

  .ph-case-4 {
    animation: none;
  }
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes ph-shine {
  to { background-position: 300% 0; }
}

@keyframes ph-drift-a {
  to { transform: translate(140px, 90px) scale(1.15); }
}

@keyframes ph-drift-b {
  to { transform: translate(-160px, 120px) scale(.9); }
}

@keyframes ph-floor {
  to { background-position: 0 64px; }
}

@keyframes ph-rise {
  from { opacity: 0; transform: translateY(30px); }
}

@keyframes ph-fade {
  from { opacity: 0; transform: scale(.94); }
}

@keyframes ph-ping {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes ph-rotate {
  0%, 15%   { transform: translateY(0); }
  20%, 35%  { transform: translateY(-1.08em); }
  40%, 55%  { transform: translateY(-2.16em); }
  60%, 75%  { transform: translateY(-3.24em); }
  80%, 95%  { transform: translateY(-4.32em); }
  100%      { transform: translateY(-5.4em); }
}

@keyframes ph-bob {
  50% { translate: 0 -16px; }
}

@keyframes ph-spin {
  to { transform: rotate(360deg); }
}

@keyframes ph-count {
  from { --n: 0; }
}

@keyframes ph-marquee {
  to { transform: translateX(-50%); }
}

@keyframes ph-border {
  to { --ang: 360deg; }
}

@keyframes ph-pulse {
  0%   { opacity: .6; transform: scale(.9); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes ph-sway {
  50% { translate: 0 -12px; rotate: 2deg; }
}

@keyframes ph-wobble {
  50% { transform: rotate(-12deg) scale(1.05); }
}

@keyframes ph-reveal {
  from { opacity: 0; transform: translateY(60px) scale(.97); }
}

@keyframes ph-grow {
  from { transform: scaleX(0); }
}

@keyframes ph-shrink {
  to { filter: brightness(.85); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .ph-bento { grid-template-columns: repeat(3, 1fr); }
  .ph-tile-wide { grid-column: span 3; }
  .ph-acc { height: 420px; }
  .ph-acc-vert { font-size: 17px; }
}

@media (max-width: 960px) {
  .ph-section { padding: 90px 0; }
  .ph-hero { padding-top: 40px; }
  .ph-hero-grid,
  .ph-team-grid,
  .ph-contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .ph-stage { max-width: 560px; width: 100%; margin: 0 auto; }
  .ph-stats { grid-template-columns: repeat(2, 1fr); }
  .ph-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ph-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .ph-tile-wide { grid-column: span 2; }

  /* accordion becomes stacked cards */
  .ph-acc { flex-direction: column; height: auto; }
  .ph-acc-item { flex: none !important; min-height: 220px; }
  .ph-acc-item::before { opacity: 1 !important; }
  .ph-acc-vert { display: none; }
  .ph-acc-body { position: relative; left: 0; right: 0; bottom: 0; width: auto; max-width: none; opacity: 1 !important; transform: none !important; margin-top: 60px; }
  .ph-acc-ic { transform: none !important; }
  /* every stacked card is open, so each gets the open-panel decoration */
  .pt-page .ph-acc-item::after { opacity: .14; transform: rotate(-6deg); font-size: 160px; }
  .pt-page .ph-acc-num { font-size: 64px; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); }
  .ph-acc-body { margin-top: 26px !important; }

  .ph-case { grid-template-columns: 1fr; gap: 28px; padding: 36px; top: calc(90px + var(--i) * 20px); }
  .ph-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .ph-line { display: none; }
  .ph-collage { min-height: 520px; max-width: 600px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  .pt-wrap { width: calc(100% - 32px); }
  .ph-section { padding: 70px 0; }
  .ph-hero { padding: 30px 0 40px; }
  .ph-hero-buttons .ph-btn { flex: 1 1 100%; }
  .ph-btn { white-space: normal; }
  .ph-stage { aspect-ratio: 1 / 1; }
  .ph-blob { width: 300px; height: 300px; filter: blur(70px); }
  .ph-blob-2 { right: -140px; }
  /* flat collage on phones: the 3D stack can paint its back layers blank */
  .pt-page .ph-stack { transform: none !important; }
  .pt-page .ph-layer { transform: none !important; }
  .ph-layer-2 { left: 0; }
  .ph-orbit-ic { width: 38px; height: 38px; }
  .ph-orbit-ic:nth-child(1) { top: -19px; left: calc(50% - 19px); }
  .ph-orbit-ic:nth-child(2) { right: -19px; top: calc(50% - 19px); }
  .ph-orbit-ic:nth-child(3) { bottom: -19px; left: calc(50% - 19px); }
  .ph-orbit-ic:nth-child(4) { left: -19px; top: calc(50% - 19px); }
  .ph-tag { font-size: 12px; padding: 8px 12px; }
  .ph-tag-b { right: 0; bottom: 2%; }
  .ph-stats { gap: 10px; margin-top: 40px; }
  .ph-stat { padding: 20px 18px; }
  .pt-page .ph-marquee img { height: 42px; margin: 0 28px; }
  /* products: the desktop bento in two columns */
  .ph-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .ph-tile-feat,
  .ph-tile-wide { grid-column: span 2; }
  .ph-tile-feat { grid-row: span 2; }
  .pt-page .ph-tile { border-radius: 16px; clip-path: inset(0 round 16px); }
  .ph-tile-info { padding: 10px 12px; }
  .ph-tile-info small { font-size: 9.5px; letter-spacing: .8px; }
  .ph-tile-info h3 { font-size: 14px; }
  .ph-tile-feat .ph-tile-info { padding: 16px 18px; }
  .ph-tile-feat .ph-tile-info h3 { font-size: 20px; }
  .ph-tile-feat .ph-tile-info p { font-size: 13px; margin-top: 6px; }
  .ph-tile-go { opacity: 1; transform: none; width: 28px; height: 28px; top: 8px; right: 8px; font-size: 13px; }
  .ph-ribbons { height: 110px; }

  .ph-case { padding: 26px 22px; border-radius: 24px; min-height: 0; }

  /* how it works: 2 x 2 */
  .ph-timeline { grid-template-columns: 1fr 1fr; gap: 34px 14px; }
  .ph-node { width: 56px; height: 56px; margin-bottom: 14px; }
  .ph-node::before { font-size: 20px; }
  .ph-tstep h3 { font-size: 18px; }
  .ph-tstep p { font-size: 13.5px; }
  .pt-page .ph-reasons { grid-template-columns: 1fr; }
  .ph-collage { min-height: 400px; }
  .ph-sticker { width: 92px; height: 92px; font-size: 11px; left: 0; top: 0; }
  .ph-sticker strong { font-size: 23px; }
  .ph-polaroid { padding: 8px 8px 34px; }
  .ph-polaroid figcaption { font-size: 16px; bottom: 7px; }
  .ph-contact { padding: 80px 0; }
  .ph-form { grid-template-columns: 1fr; padding: 28px 20px; }
  .ph-awards { gap: 20px; flex-wrap: wrap; }
}

/* =========================================================
   Reduced motion: keep the layout, drop the movement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .pt-page *,
  .pt-page *::before,
  .pt-page *::after {
    animation: none !important;
    transition: none !important;
  }

  .ph-marquee-track,
  .ph-ribbon-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

/* =========================================================
   JS layer (home.js adds .js-on). Without the script none
   of this applies and the CSS animations above run instead.
   ========================================================= */

/* scroll reveals */
.js-on .ph-reveal,
.js-on .ph-stat,
.js-on .ph-case,
.js-on .ph-line-fill {
  animation: none !important;
}

.js-on .ph-js-reveal {
  opacity: 0;
  translate: 0 50px;
  transition: opacity .8s var(--stagger, 0ms), translate 1s cubic-bezier(.2, .8, .2, 1) var(--stagger, 0ms);
}

.js-on .ph-js-reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.js-on .ph-polaroid.ph-js-reveal {
  translate: 0 80px;
  scale: .9;
  transition: opacity .8s var(--stagger, 0ms), translate 1s cubic-bezier(.3, 1.4, .5, 1) var(--stagger, 0ms), scale 1s cubic-bezier(.3, 1.4, .5, 1) var(--stagger, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s;
}

.js-on .ph-polaroid.ph-js-reveal.is-in {
  scale: 1;
}

/* word-by-word headings */
.js-on .ph-split.ph-js-reveal {
  opacity: 1;
  translate: none;
}

.ph-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .06em .14em 0;
  margin-bottom: -.14em;
}

.ph-w-in {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  transform-origin: left bottom;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.ph-split.is-in .ph-w-in {
  transform: none;
}

/* typewriter */
.js-on .ph-rotator {
  height: auto;
  overflow: visible;
  min-height: 1.08em;
}

.ph-caret {
  display: inline-block;
  width: .06em;
  height: .85em;
  margin-left: .06em;
  vertical-align: -.05em;
  background: currentColor;
  animation: ph-blink 1s steps(1) infinite;
}

/* counters pop when they land */
.js-on .ph-num {
  animation: none;
}

.ph-stat strong.ph-pop {
  animation: ph-land .5s cubic-bezier(.3, 1.6, .5, 1);
}

/* hero follows the cursor */
.js-on .ph-stack {
  transform: rotateY(calc(-16deg + var(--ry, 0deg))) rotateX(calc(9deg + var(--rx, 0deg))) rotateZ(1deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.js-on .ph-stage:hover .ph-stack {
  transform: rotateY(calc(-16deg + var(--ry, 0deg))) rotateX(calc(9deg + var(--rx, 0deg))) rotateZ(1deg);
}

.js-on .ph-hero .ph-aurora,
.js-on .ph-tag {
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

/* magnetic buttons */
.js-on .ph-btn {
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, translate .35s cubic-bezier(.2, .8, .2, 1);
}

/* tilting product tiles. No preserve-3d here: it switches off the
   rounded clipping, so the image would spill past the tile's corners. */
.js-on .ph-tile {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .8s var(--stagger, 0ms), translate 1s cubic-bezier(.2, .8, .2, 1) var(--stagger, 0ms);
}

/* keep every tile image inside its rounded frame, even while tilted */
.ph-tile {
  clip-path: inset(0 round 24px);
}

/* Tiles marked .ph-fit show the whole picture instead of cropping it.
   The picture sits at the top; the space around it is filled with a
   blurred copy (added by home.js), or plain dark green without it. */
.ph-tile.ph-fit {
  background: #0a2219;
}

.pt-page .ph-tile.ph-fit img {
  object-fit: contain;
  object-position: center top;
}

.pt-page .ph-tile-wide.ph-fit img {
  object-position: center;
}

/* Tiles marked .ph-stretch show the whole picture stretched to fill the frame */
.pt-page .ph-tile.ph-stretch img {
  object-fit: fill;
}

.ph-tile-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(.5) saturate(1.2);
  pointer-events: none;
}

/* cursor spotlight */
.ph-reasons li,
.ph-form {
  position: relative;
}

.pt-page .ph-spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 65%);
  transition: opacity .35s;
}

.ph-reasons li .ph-spot,
.ph-form .ph-spot {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(23, 192, 138, .16), transparent 65%);
}

.ph-tile:hover .ph-spot,
.ph-acc-item:hover .ph-spot,
.ph-stat:hover .ph-spot,
.ph-reasons li:hover .ph-spot,
.ph-form:hover .ph-spot {
  opacity: 1;
}

.ph-reasons li > div,
.ph-reasons li > .ph-reason-ic {
  position: relative;
  z-index: 2;
}

/* timeline fills with scroll and lights each step */
.js-on .ph-line-fill {
  transform: scaleX(0);
  transition: transform .2s linear;
}

.ph-tstep.is-lit .ph-node {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

/* stacked case cards */
.js-on .ph-case {
  filter: brightness(var(--b, 1));
}

/* page progress bar */
.ph-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@keyframes ph-blink {
  50% { opacity: 0; }
}

@keyframes ph-land {
  40% { transform: scale(1.18) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .js-on .ph-js-reveal,
  .ph-w-in {
    opacity: 1 !important;
    translate: none !important;
    transform: none !important;
  }
}
