/*
Theme Name: phlus-theme
Theme URI: https://phlus.com/
Author: Phlus
Description: Premium corporate theme for Phlus, parent company of PTOspace.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: phlus
*/

:root {
  --ink: #101a17;
  --ink-soft: #26332f;
  --cream: #f3f0e8;
  --paper: #faf9f5;
  --white: #fff;
  --sage: #a9e9c7;
  --lime: #d8ff5f;
  --line: rgba(16, 26, 23, .15);
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--ink); background: var(--sage); }

.container { width: min(100% - (2 * var(--gutter)), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.section { padding-block: clamp(96px, 13vw, 190px); }
.section--cream { background: var(--cream); }
.section--ink { color: var(--white); background: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 1000; inset: 0 0 auto; color: var(--white); transition: color .35s ease, background .35s ease, box-shadow .35s ease; }
.site-header.is-scrolled { color: var(--ink); background: rgba(250, 249, 245, .9); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.brand__name { font-size: 1.25rem; font-weight: 750; letter-spacing: -.04em; }
.brand__mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.brand__mark span { position: absolute; width: 16px; height: 22px; border: 3px solid currentColor; border-radius: 50%; transform: rotate(35deg) translateX(-3px); }
.brand__mark span:last-child { transform: rotate(-35deg) translateX(3px); }
.brand--light { color: var(--white); }
.primary-nav { display: flex; gap: clamp(24px, 3vw, 48px); align-items: center; }
.primary-nav__list { display: flex; gap: clamp(22px, 2.5vw, 40px); align-items: center; padding: 0; margin: 0; list-style: none; }
.primary-nav__list a { position: relative; color: inherit; font-size: .84rem; font-weight: 650; text-decoration: none; }
.primary-nav__list a::after { position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.primary-nav__list a:hover::after, .primary-nav__list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.nav-toggle > span:not(.screen-reader-text) { display: block; width: 24px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform .25s ease; }

.button { display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform .3s var(--ease), background .3s ease, color .3s ease; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 1.05rem; }
.button--small { min-height: 44px; padding-inline: 19px; font-size: .8rem; }
.button--dark { color: var(--white); background: var(--ink); }
.button--dark:hover { background: #263b34; }
.button--light { color: var(--ink); background: var(--white); }
.button--light:hover { background: var(--lime); }
.site-header:not(.is-scrolled) .button--dark { color: var(--ink); background: var(--white); }
.text-link { display: inline-flex; gap: 12px; align-items: center; width: fit-content; padding-bottom: 3px; border-bottom: 1px solid; font-size: .9rem; font-weight: 700; text-decoration: none; }
.text-link--light { color: var(--white); border-color: rgba(255,255,255,.55); }

.eyebrow { margin: 0 0 28px; color: #53635d; font-size: .7rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--light { color: rgba(255,255,255,.68); }
.display-title { max-width: 1040px; margin: 0; font-size: clamp(2.5rem, 5.8vw, 5.7rem); font-weight: 550; letter-spacing: -.065em; line-height: .99; }

.hero { position: relative; display: flex; align-items: flex-end; min-height: max(720px, 100svh); overflow: hidden; color: var(--white); background: #18221f; }
.hero__media, .hero__veil { position: absolute; inset: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { background: linear-gradient(90deg, rgba(10,18,15,.82) 0%, rgba(10,18,15,.48) 47%, rgba(10,18,15,.1) 76%), linear-gradient(0deg, rgba(10,18,15,.5), transparent 55%); }
.hero__content { position: relative; z-index: 2; padding-top: 180px; padding-bottom: clamp(72px, 10vh, 118px); }
.hero h1 { max-width: 1050px; margin: 0; font-size: clamp(3.8rem, 8.3vw, 8.4rem); font-weight: 500; letter-spacing: -.075em; line-height: .86; }
.hero__lede { max-width: 650px; margin: 32px 0 0; color: rgba(255,255,255,.85); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.5; }
.hero__actions { display: flex; gap: 28px; align-items: center; margin-top: 38px; }
.media-control { position: absolute; z-index: 3; right: var(--gutter); bottom: 42px; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--white); background: rgba(0,0,0,.2); backdrop-filter: blur(10px); cursor: pointer; }
.media-control__pause::before, .media-control__pause::after { position: absolute; top: 16px; width: 3px; height: 15px; background: currentColor; content: ""; }
.media-control__pause::before { left: 18px; }.media-control__pause::after { right: 18px; }
.media-control.is-paused::after { position: absolute; top: 15px; left: 19px; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 13px solid currentColor; content: ""; }
.media-control.is-paused .media-control__pause { display: none; }
.reveal { animation: intro 1s var(--ease) both; }.reveal--delay-1 { animation-delay: .1s; }.reveal--delay-2 { animation-delay: .2s; }.reveal--delay-3 { animation-delay: .3s; }
@keyframes intro { from { opacity: 0; transform: translateY(30px); } }

.manifesto__grid { display: grid; grid-template-columns: minmax(150px, .65fr) 3fr; gap: var(--gutter); }
.manifesto__copy { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 7vw, 100px); max-width: 900px; margin-top: clamp(48px, 7vw, 88px); }
.manifesto__copy p { margin: 0; color: #4f5d58; font-size: clamp(1rem, 1.25vw, 1.17rem); }

.product { overflow: hidden; background: var(--paper); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: clamp(42px, 6vw, 72px); }
.section-heading h2 { max-width: 850px; margin: 0; font-size: clamp(3.3rem, 7vw, 7rem); font-weight: 520; letter-spacing: -.075em; line-height: .9; }
.section-heading > p { max-width: 320px; margin: 0 0 8px; color: #5f6b67; font-size: 1.05rem; }
.section-heading--light > p, .section-heading--light { color: var(--white); }
.product-stage { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 720px; overflow: visible; border-radius: var(--radius); background: #d7f2e4; }
.product-stage__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(38px, 6vw, 84px); }
.product-logo { width: 72px; height: 72px; margin-bottom: 42px; border-radius: 18px; }
.product-stage h3 { max-width: 540px; margin: 0; font-size: clamp(2.4rem, 4vw, 4.6rem); font-weight: 560; letter-spacing: -.06em; line-height: .98; }
.product-stage__copy p { max-width: 520px; margin: 30px 0 38px; color: #41534c; font-size: 1.05rem; }
.product-stage__visual { position: relative; min-height: 680px; overflow: visible; border-radius: 0 var(--radius) var(--radius) 0; background: #14362c; }
.product-stage__glow { position: absolute; inset: 8% -10% auto; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(216,255,95,.5), transparent 65%); filter: blur(30px); }
.product-stage__visual img { position: absolute; z-index: 1; top: -36px; left: 50%; width: min(75%, 500px); height: auto; aspect-ratio: 1260 / 2736; object-fit: contain; border-radius: 56px 56px 0 0; box-shadow: 0 0 0 1px rgba(0,0,0,.16), 0 18px 44px rgba(0,0,0,.3), 0 48px 110px rgba(0,0,0,.42); transform: translateX(-50%); }

.principles .section-heading { border-bottom: 1px solid rgba(255,255,255,.2); }
.principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { min-height: 390px; padding: 42px clamp(24px, 3vw, 48px) 20px 0; border-right: 1px solid rgba(255,255,255,.2); }
.principle + .principle { padding-left: clamp(24px, 3vw, 48px); }
.principle:last-child { border-right: 0; }
.principle span { color: var(--sage); font-size: .72rem; letter-spacing: .1em; }
.principle h3 { max-width: 360px; margin: 130px 0 22px; font-size: clamp(1.65rem, 2.5vw, 2.4rem); font-weight: 560; letter-spacing: -.04em; line-height: 1.1; }
.principle p { max-width: 340px; margin: 0; color: rgba(255,255,255,.62); }

.story__grid { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 720px; background: var(--paper); }
.story__image { min-height: 620px; overflow: hidden; }
.story__image img { width: 100%; height: 100%; object-fit: cover; }
.story__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(44px, 6vw, 86px); }
.story__copy h2 { margin: 0; font-size: clamp(2.6rem, 4.6vw, 5rem); font-weight: 550; letter-spacing: -.065em; line-height: .97; }
.story__copy > p:not(.eyebrow) { margin: 32px 0 40px; color: #53605c; font-size: 1.05rem; }

.leadership { background: var(--paper); }
.leadership__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.leader__portrait { aspect-ratio: 1 / 1.12; overflow: hidden; background: var(--cream); }
.leader__portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: filter .5s ease, transform .7s var(--ease); }
.leader:hover img { filter: saturate(1); transform: scale(1.025); }
.leader h3 { margin: 22px 0 2px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.025em; }
.leader p { margin: 0; color: #65716d; font-size: .9rem; }

.closing { position: relative; display: flex; align-items: flex-end; min-height: min(820px, 85vh); overflow: hidden; color: var(--white); }
.closing__media, .closing__veil { position: absolute; inset: 0; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; }
.closing__veil { background: linear-gradient(0deg, rgba(9,17,14,.82), rgba(9,17,14,.08) 80%); }
.closing__content { position: relative; z-index: 1; padding-bottom: clamp(60px, 8vw, 105px); }
.closing h2 { max-width: 850px; margin: 0 0 38px; font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 500; letter-spacing: -.075em; line-height: .9; }

.site-footer { padding: 80px 0 30px; color: var(--white); background: #09100e; }
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 190px; }
.site-footer__top p { max-width: 300px; margin: 0; color: rgba(255,255,255,.58); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.52); font-size: .78rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__links { display: flex; gap: 28px; }
.site-footer__links a { text-decoration: none; }.site-footer__links a:hover { color: var(--white); }
.prose-shell { min-height: 70vh; padding: 150px 0 100px; }.prose-shell h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.06em; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header__inner { min-height: 72px; }
  body.nav-open .site-header.is-scrolled { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
  body.nav-open .site-header .brand { position: relative; z-index: 2; }
  .nav-toggle { position: relative; z-index: 2; display: block; }
  .nav-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { position: fixed; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100svh; max-height: 100dvh; padding: 90px var(--gutter) 50px; overflow-y: auto; color: var(--white); background: var(--ink); visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; }
  .primary-nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .primary-nav__list a { font-size: clamp(2.5rem, 11vw, 4.8rem); font-weight: 500; letter-spacing: -.06em; }
  .primary-nav .button { margin-top: 28px; color: var(--ink); background: var(--white); }
  .manifesto__grid { grid-template-columns: 1fr; }.manifesto__copy { gap: 30px; }
  .product-stage { grid-template-columns: 1fr; }.product-stage__visual { min-height: 600px; border-radius: 0 0 var(--radius) var(--radius); }
  .story__grid { grid-template-columns: 1fr; }.story__image { min-height: 480px; }.story__copy { min-height: 520px; }
}

@media (max-width: 640px) {
  :root { --radius: 20px; }
  .section { padding-block: 88px; }
  .hero { min-height: 760px; }
  .hero__veil { background: linear-gradient(0deg, rgba(10,18,15,.82), rgba(10,18,15,.22) 80%); }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.2rem); }
  .hero__content { padding-bottom: 94px; }.hero__actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .media-control { right: 20px; bottom: 25px; }
  .manifesto__copy, .principles__grid, .leadership__grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }.section-heading h2 { font-size: 3.7rem; }
  .product-stage { min-height: 0; }.product-stage__copy { padding: 44px 28px 54px; }.product-stage__visual { min-height: 500px; }.product-stage__visual img { top: -28px; width: 82%; }
  .principle { min-height: 280px; padding: 34px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }.principle + .principle { padding-left: 0; }.principle:last-child { border-bottom: 0; }.principle h3 { margin-top: 75px; }
  .story__image { min-height: 340px; }.story__copy { min-height: 0; padding: 46px 28px 56px; }
  .leadership__grid { gap: 42px; }.leader__portrait { aspect-ratio: 1 / 1; }
  .closing { min-height: 680px; }.closing h2 { font-size: 4rem; }
  .site-footer__top, .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 28px; }.site-footer__links { flex-wrap: wrap; }
}

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

@media print {
  .site-header, .media-control, .hero__media video { display: none; }
  .hero { min-height: auto; color: var(--ink); background: var(--white); }.hero__veil { display: none; }
}
