/*
Theme Name: Proyoung Industrial Clean
Theme URI: https://proyoung.com.tw/
Author: Proyoung
Description: Clean-room industrial presentation theme preserving Proyoung's content order and brand palette.
Version: 1.5.5
Requires at least: 6.1
Requires PHP: 8.0
Text Domain: proyoung-industrial
*/

:root {
  --py-green: #80aa00;
  --py-green-dark: #5f8200;
  --py-blue: #101b63;
  --py-navy: #10182c;
  --py-yellow: #f3cf32;
  --py-ink: #172033;
  --py-muted: #637083;
  --py-line: #dfe5ea;
  --py-paper: #f5f7f4;
  --py-white: #fff;
  --py-shadow: 0 18px 48px rgba(16, 24, 44, .12);
  --py-radius: 18px;
  --py-wrap: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--py-ink); background: #fff; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.75; }
html.py-menu-open, body.py-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.py-wrap { width: var(--py-wrap); margin-inline: auto; }
.py-section { padding: clamp(64px, 8vw, 104px) 0; }
.py-section--soft { background: var(--py-paper); }
.py-section--dark { color: #fff; background: linear-gradient(135deg, #10182c, #17234a); }
.py-kicker { display: block; margin-bottom: 8px; color: var(--py-green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.py-section--dark .py-kicker { color: #b9dc58; }
.py-title { margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.18; letter-spacing: -.04em; }
.py-lead { max-width: 720px; margin: 18px 0 0; color: var(--py-muted); font-size: 1.08rem; }
.py-section--dark .py-lead { color: #cbd3e0; }

.py-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(16,24,44,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.py-header__bar { display: flex; align-items: center; min-height: 82px; gap: 18px; }
.py-brand { display: flex; align-items: center; flex: 0 0 auto; }
.py-brand img { display: block; width: min(260px, 23vw); max-height: 54px; object-fit: contain; object-position: left center; }
.py-nav { min-width: 0; margin-left: auto; }
.py-nav ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.py-nav a { display: block; padding: 10px 8px; border-radius: 9px; color: #263048; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.py-nav a:hover, .py-nav .current-menu-item > a { color: var(--py-green-dark); background: #eef5dd; }
.py-nav .menu-item-has-children { position: relative; }
.py-nav .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; display: none; width: 250px; max-height: min(70vh, 560px); overflow-y: auto; padding: 10px; border: 1px solid var(--py-line); border-radius: 13px; background: #fff; box-shadow: var(--py-shadow); }
.py-nav .sub-menu a { padding: 9px 11px; font-size: .86rem; }
.py-nav .menu-item-has-children:hover > .sub-menu, .py-nav .menu-item-has-children:focus-within > .sub-menu { display: grid; }
.py-header__cta, .py-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--py-blue); font-weight: 800; box-shadow: 0 10px 24px rgba(16,27,99,.22); transition: transform .2s, box-shadow .2s, background .2s; }
.py-header__cta { flex: 0 0 auto; min-height: 42px; padding: 0 17px; font-size: .86rem; white-space: nowrap; box-shadow: 0 8px 18px rgba(16,27,99,.18); }
.py-header__cta:hover, .py-button:hover { transform: translateY(-2px); background: #1b2b88; box-shadow: 0 14px 30px rgba(16,27,99,.28); }
.py-button--green { background: var(--py-green-dark); box-shadow: 0 10px 24px rgba(95,130,0,.24); }
.py-button--line { color: var(--py-navy); background: #fff; box-shadow: inset 0 0 0 1px var(--py-line); }
.py-menu-toggle { display: none; margin-left: auto; padding: 10px 12px; border: 1px solid var(--py-line); border-radius: 10px; background: #fff; font-size: 1rem; font-weight: 800; }

.py-hero { position: relative; min-height: 430px; overflow: hidden; background: var(--py-navy); }
.py-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background-size: cover; background-position: center; }
.py-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,18,38,.88) 0%, rgba(9,18,38,.6) 48%, rgba(9,18,38,.18) 100%); }
.py-hero__slide.is-active { opacity: 1; }
.py-hero__content { position: relative; z-index: 2; display: grid; align-content: center; min-height: 430px; color: #fff; }
.py-hero__content > div { max-width: 720px; }
.py-hero h1 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.4rem); line-height: 1.04; letter-spacing: -.055em; }
.py-hero h1 span { color: #c1df65; }
.py-hero p { max-width: 630px; margin: 16px 0 22px; color: #e0e5ed; font-size: 1.05rem; }
.py-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.py-hero__dots { position: absolute; z-index: 3; bottom: 30px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.py-hero__dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); }
.py-hero__dot.is-active { background: var(--py-yellow); }

.py-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 38px; }
.py-card { grid-column: span 4; overflow: hidden; border: 1px solid var(--py-line); border-radius: var(--py-radius); background: #fff; box-shadow: 0 8px 30px rgba(16,24,44,.06); transition: transform .22s, box-shadow .22s; }
.py-card:hover { transform: translateY(-5px); box-shadow: var(--py-shadow); }
.py-card__media { aspect-ratio: 16 / 9; max-height: 230px; overflow: hidden; background: #e9ece8; }
.py-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.py-card:hover .py-card__media img { transform: scale(1.035); }
.py-card__body { padding: 24px; }
.py-card__body h3 { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.35; }
.py-card__body p { margin: 0; color: var(--py-muted); font-size: .96rem; }
.py-card__link { display: inline-flex; margin-top: 18px; color: var(--py-green-dark); font-weight: 800; }
.py-card--wide { grid-column: span 6; }

.py-feature { display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; margin-top: 42px; border-radius: 24px; background: #fff; box-shadow: var(--py-shadow); }
.py-feature__media { min-height: 360px; max-height: 400px; }
.py-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.py-feature__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 72px); }
.py-feature__copy h3 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.2; }
.py-feature__copy p { color: var(--py-muted); }
.py-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.py-pill { padding: 8px 13px; border-radius: 999px; color: #415100; background: #eff6dc; font-size: .9rem; font-weight: 800; }

.py-news { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.14); }
.py-news__item { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 24px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.py-news__date { color: #aeb8c9; font-size: .9rem; }
.py-news__title { font-size: 1.08rem; font-weight: 800; }
.py-news__more { color: #c1df65; font-weight: 800; }

.py-contact-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 48px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--py-blue), #263b9d); box-shadow: var(--py-shadow); }
.py-contact-band h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.py-contact-band p { margin: 8px 0 0; color: #dce3ff; }
.py-contact-band .py-button { color: var(--py-navy); background: var(--py-yellow); box-shadow: none; }

.py-map { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; margin-top: 40px; overflow: hidden; border: 1px solid var(--py-line); border-radius: 24px; }
.py-map__visual { display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 28% 25%, #dcefa7, transparent 32%), linear-gradient(135deg, #e8eee5, #cbd8c7); }
.py-map__pin { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50% 50% 50% 12px; color: #fff; background: var(--py-green-dark); transform: rotate(-45deg); box-shadow: var(--py-shadow); }
.py-map__pin span { transform: rotate(45deg); font-size: 2rem; }
.py-map__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 68px); }
.py-map__copy h3 { margin: 0 0 12px; font-size: 1.8rem; }

.py-project-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 36px; }
.py-project-shot { position: relative; grid-column: span 4; min-height: 250px; overflow: hidden; margin: 0; border-radius: 18px; background: #dfe5e7; box-shadow: 0 10px 28px rgba(16,24,44,.1); }
.py-project-shot--1 { grid-column: span 7; min-height: 340px; }
.py-project-shot--2 { grid-column: span 5; min-height: 340px; }
.py-project-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.py-project-shot:hover img { transform: scale(1.025); }
.py-project-shot figcaption { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 11px 14px; border-radius: 10px; color: #fff; background: rgba(9,18,38,.78); backdrop-filter: blur(8px); font-weight: 800; }
.py-new-year { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--py-line); text-align: center; }
.py-new-year img { width: auto; max-height: 380px; border-radius: 18px; box-shadow: var(--py-shadow); }

/* Compact homepage directory layout: preserves the source site's quick-scan rhythm. */
.py-section--compact { padding: 46px 0; }
.py-home-overview { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
.py-directory { padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #e8793f 0 21%, #e7b936 21% 39%, #fff 39%); box-shadow: var(--py-shadow); }
.py-directory h2 { margin: 7px 0 48px; font-size: 1.85rem; }
.py-directory__links { display: grid; }
.py-directory__links a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 2px; border-bottom: 1px solid var(--py-line); color: #3d718a; font-weight: 800; }
.py-directory__links a:hover { color: var(--py-green-dark); }
.py-directory__links b { color: var(--py-green); }
.py-directory__all { display: inline-flex; margin-top: 19px; color: var(--py-green-dark); font-weight: 900; }

.py-portfolio-entry { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 470px; overflow: hidden; border: 1px solid var(--py-line); border-radius: 18px; background: #fff; box-shadow: var(--py-shadow); }
.py-portfolio-entry__media { display: flex; align-items: center; justify-content: center; min-width: 0; background: #e9eeea; }
.py-portfolio-entry__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.py-portfolio-entry__copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.py-portfolio-entry h2, .py-home-module h2 { margin: 3px 0 12px; font-size: 1.75rem; }
.py-portfolio-entry p { margin: 0 0 18px; color: var(--py-muted); }
.py-project-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.py-project-links a { padding: 9px 11px; border-radius: 9px; color: #30430c; background: #eff6dc; font-size: .9rem; font-weight: 800; }
.py-project-links a:hover { background: #dceba9; }

.py-home-columns { display: grid; grid-template-columns: 1fr 1.25fr .85fr; gap: 28px; }
.py-home-module { min-width: 0; }
.py-compact-news { border-top: 1px solid rgba(255,255,255,.16); }
.py-compact-news a { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.py-compact-news time { color: #aeb8c9; font-size: .78rem; }
.py-compact-news span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.py-mini-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.py-mini-products a { position: relative; min-height: 118px; overflow: hidden; border-radius: 12px; background: #263044; }
.py-mini-products img { width: 100%; height: 118px; object-fit: cover; opacity: .82; transition: transform .35s; }
.py-mini-products span { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 6px 8px; border-radius: 7px; background: rgba(8,15,30,.78); font-size: .8rem; font-weight: 800; }
.py-mini-products a:hover img { transform: scale(1.04); }
.py-location-card__visual { display: flex; flex-direction: column; justify-content: center; min-height: 176px; padding: 24px; border-radius: 14px; color: var(--py-navy); background: radial-gradient(circle at 80% 20%, #f4d852, transparent 24%), linear-gradient(135deg, #eff5e3, #c7db8d); }
.py-location-card__visual span { font-size: 2rem; }
.py-location-card__visual strong { font-size: 1.15rem; }
.py-location-card__visual small { margin-top: 3px; }
.py-google-map { overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: #dfe5e7; }
.py-google-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.py-google-map--compact { min-height: 176px; }
.py-google-map--compact iframe { min-height: 176px; }
.py-location-card__address { margin: 10px 0 0; color: #dce3ef; font-size: .86rem; }
.py-location-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.py-location-card__actions a { padding: 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; text-align: center; font-size: .86rem; font-weight: 800; }

.py-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.py-section-heading h2 { margin-bottom: 0; }
.py-section-heading > a { color: var(--py-green-dark); font-weight: 900; }
.py-project-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.py-project-strip a { display: block; color: inherit; }
.py-project-strip figure { position: relative; aspect-ratio: 1.35 / 1; overflow: hidden; margin: 0; border-radius: 14px; background: #dfe5e7; box-shadow: 0 8px 22px rgba(16,24,44,.09); }
.py-project-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.py-project-strip a:hover img { transform: scale(1.035); }
.py-project-strip figcaption { position: absolute; right: 8px; bottom: 8px; left: 8px; display: grid; gap: 2px; padding: 9px 10px; border-radius: 7px; color: #fff; background: rgba(9,18,38,.82); backdrop-filter: blur(7px); }
.py-project-strip figcaption strong { font-size: .82rem; }
.py-project-strip figcaption small { color: #dce5c0; font-size: .7rem; }
.py-seasonal-row { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 42px; }
.py-seasonal-row > img { width: 100%; max-height: 290px; object-fit: contain; border-radius: 16px; box-shadow: var(--py-shadow); }
.py-seasonal-row h2 { margin: 5px 0 12px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.py-seasonal-row p { margin: 0 0 20px; color: var(--py-muted); }

.py-page-hero p { max-width: 760px; margin: 12px 0 0; color: #cbd3e0; }
.py-catalog-section { padding-top: 48px; }
.py-term-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; padding: 13px; border: 1px solid var(--py-line); border-radius: 15px; background: var(--py-paper); }
.py-term-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; color: #334056; background: #fff; font-weight: 800; }
.py-term-nav a:hover, .py-term-nav a.is-active { color: #fff; background: var(--py-green-dark); }
.py-term-nav b { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 999px; color: inherit; background: rgba(128,170,0,.14); font-size: .76rem; }
.py-term-nav a.is-active b { background: rgba(255,255,255,.2); }
.py-term-nav--projects { gap: 8px; }
.py-term-nav--projects a { min-height: 36px; padding: 0 12px; font-size: .86rem; }
.py-catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.py-catalog-card { overflow: hidden; border: 1px solid var(--py-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(16,24,44,.07); }
.py-catalog-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #edf0ed; }
.py-catalog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.py-catalog-card:hover .py-catalog-card__media img { transform: scale(1.035); }
.post-type-archive-product .py-catalog-card__media,
.tax-product_category .py-catalog-card__media,
.page-template-page-shop .py-catalog-card__media { padding: 10px; background: #fff; }
.post-type-archive-product .py-catalog-card__media img,
.tax-product_category .py-catalog-card__media img,
.page-template-page-shop .py-catalog-card__media img { object-fit: contain; }
.post-type-archive-product .py-catalog-card:hover .py-catalog-card__media img,
.tax-product_category .py-catalog-card:hover .py-catalog-card__media img,
.page-template-page-shop .py-catalog-card:hover .py-catalog-card__media img { transform: none; }
.py-catalog-card > div { padding: 18px; }
.py-catalog-card h2 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.py-catalog-card p { min-height: 2.8em; margin: 8px 0 0; color: var(--py-muted); font-size: .83rem; line-height: 1.55; }
.py-catalog-card .py-card__link { margin-top: 12px; font-size: .88rem; }
.py-catalog-grid--projects .py-catalog-card__media { aspect-ratio: 4 / 3; }
.page-numbers { display: flex; flex-wrap: wrap; gap: 7px; margin: 34px 0 0; padding: 0; list-style: none; }
.page-numbers a, .page-numbers .current { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; background: var(--py-paper); font-weight: 800; }
.page-numbers .current { color: #fff; background: var(--py-green-dark); }

.py-content--editorial { width: min(1040px, calc(100vw - 40px)); }
.py-editorial-visual { display: grid; grid-template-columns: 1.35fr .65fr; overflow: hidden; margin: 0 0 46px; border-radius: 20px; background: var(--py-navy); box-shadow: var(--py-shadow); }
.py-editorial-visual > img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.py-editorial-visual figcaption { display: flex; flex-direction: column; justify-content: center; padding: 34px; color: #fff; }
.py-editorial-visual .py-kicker { color: #c1df65; }
.py-editorial-visual strong { font-size: 1.65rem; }
.py-editorial-visual p { margin: 9px 0; color: #dce2ec; }
.py-editorial-visual small { color: #9eabc0; }
.py-contact-map { margin-top: 48px; padding-top: 38px; border-top: 1px solid var(--py-line); }
.py-contact-map header { margin-bottom: 18px; }
.py-content .py-contact-map h2 { margin: 3px 0 6px; }
.py-contact-map header p { margin: 0; color: var(--py-muted); }
.py-google-map--large { min-height: 420px; border-color: var(--py-line); box-shadow: var(--py-shadow); }
.py-google-map--large iframe { min-height: 420px; }
.py-prose { padding: 0 clamp(0px, 4vw, 60px); }
.py-prose > div { max-width: 100%; }
.py-prose h2 { position: relative; padding-left: 18px; }
.py-prose h2::before { content: ""; position: absolute; top: .18em; bottom: .18em; left: 0; width: 5px; border-radius: 5px; background: var(--py-green); }
.py-prose p { font-size: 1.02rem; }
.py-prose table { overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px var(--py-line); }
.py-imported-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.py-imported-gallery figure { margin: 0; }
.py-imported-gallery img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 14px; background: var(--py-paper); }

.py-product-gallery { margin: 0 0 44px; }
.py-product-gallery__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.py-product-gallery__head h2 { margin: 0; font-size: 1.55rem; }
.py-product-gallery__head p { margin: 3px 0 0; color: var(--py-muted); font-size: .88rem; }
.py-product-gallery__controls { display: flex; align-items: center; gap: 8px; }
.py-product-gallery__controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--py-line); border-radius: 50%; color: var(--py-navy); background: #fff; font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.py-product-gallery__controls button:hover { color: #fff; border-color: var(--py-green-dark); background: var(--py-green-dark); }
.py-product-gallery__counter { min-width: 58px; color: var(--py-muted); text-align: center; font-size: .84rem; font-weight: 800; }
.py-product-gallery__track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 4px 4px 13px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-color: #a9bd6a #edf1e6; scrollbar-width: thin; }
.py-product-gallery__slide { flex: 0 0 min(82%, 760px); display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; margin: 0; padding: 12px; border: 1px solid var(--py-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(16,24,44,.08); scroll-snap-align: start; }
.py-product-gallery__slide img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; border-radius: 10px; background: #fff; }
.py-detail-section { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--py-line); }
.py-detail-section__head { margin-bottom: 26px; }
.py-detail-section__head .py-kicker { color: var(--py-green-dark); }
.py-detail-section__head h2 { margin: 3px 0 0; }
.py-product-details > :first-child { margin-top: 0; }
.py-vent-section { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--py-line); }
.py-content .py-vent-section h3 { margin: 0 0 18px; color: var(--py-navy); font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.py-video-embed { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #0d1426; box-shadow: 0 12px 30px rgba(16,24,44,.14); }
.py-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.py-table-scroll { overflow-x: auto; border: 1px solid var(--py-line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.py-content .py-table-scroll table { min-width: 720px; margin: 0; }
.py-flow-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.py-content .py-flow-gallery figure { overflow: hidden; margin: 0; border: 1px solid var(--py-line); border-radius: 14px; background: #fff; }
.py-content .py-flow-gallery img { display: block; width: 100%; height: 100%; min-height: 210px; object-fit: contain; border-radius: 0; }

.py-page-hero { padding: 70px 0 54px; color: #fff; background: linear-gradient(135deg, var(--py-navy), #1f315e); }
.py-page-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.12; }
.py-breadcrumbs { margin-bottom: 14px; color: #bfc8d8; font-size: .9rem; }
.py-content { width: min(920px, calc(100vw - 40px)); margin: 0 auto; padding: 64px 0 96px; }
.py-content > :first-child { margin-top: 0; }
.py-content h2 { margin-top: 2.2em; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.3; }
.py-content h3 { margin-top: 1.8em; font-size: 1.35rem; }
.py-content p, .py-content li { color: #344158; }
.py-content table { width: 100%; border-collapse: collapse; }
.py-content th, .py-content td { padding: 13px 15px; border: 1px solid var(--py-line); text-align: left; }
.py-content th { background: var(--py-paper); }
.py-content figure { margin: 30px 0; }
.py-content img { border-radius: 12px; }
.py-content .py-product-gallery__head h2 { margin: 0; font-size: 1.55rem; }
.py-content .py-product-gallery__head p { margin: 3px 0 0; color: var(--py-muted); font-size: .88rem; }
.py-content .py-product-gallery__slide { margin: 0; }
.py-content .py-detail-section__head h2 { margin: 3px 0 0; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.py-content__cta { margin-top: 58px; padding: 32px; border-radius: 18px; background: var(--py-paper); }

/* Company profile: brand story, service intent and proof imagery. */
.py-about-hero { position: relative; display: flex; align-items: center; min-height: 520px; overflow: hidden; margin-bottom: 76px; border-radius: 24px; background: var(--py-navy); box-shadow: var(--py-shadow); isolation: isolate; }
.py-about-hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(10,18,38,.96) 0%, rgba(10,18,38,.88) 32%, rgba(10,18,38,.55) 55%, rgba(10,18,38,.08) 82%); }
.py-about-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center right; border-radius: 0; }
.py-about-hero__copy { width: min(56%, 560px); padding: clamp(36px, 6vw, 66px); color: #fff; }
.py-content .py-about-hero__copy h2, .py-content .py-about-section__head h2, .py-content .py-about-split h2, .py-content .py-about-cta h2 { margin: 8px 0 16px; }
.py-content .py-about-hero__copy h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.18; text-wrap: balance; }
.py-content .py-about-hero__copy p { max-width: 500px; margin: 0; color: #e2e8f3; font-size: 1.02rem; }
.py-about-eyebrow { color: var(--py-green-dark); font-size: .76rem; font-weight: 900; letter-spacing: .17em; }
.py-about-hero .py-about-eyebrow { color: #c2df6e; }
.py-about-section { margin: 76px 0; }
.py-about-section__head { max-width: 760px; margin-bottom: 30px; }
.py-about-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.py-about-service-grid article { padding: 28px; border: 1px solid var(--py-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(16,24,44,.06); }
.py-content .py-about-service-grid h3 { margin: 0 0 10px; color: var(--py-navy); }
.py-about-service-grid p { margin: 0; }
.py-about-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 44px; align-items: start; margin: 76px 0; }
.py-about-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.py-about-points li { display: grid; gap: 3px; padding: 20px 22px; border-left: 4px solid var(--py-green); border-radius: 0 14px 14px 0; background: var(--py-paper); }
.py-about-points strong { color: var(--py-navy); }
.py-about-points span { font-size: .92rem; }
.py-about-section--soft { padding: 38px; border-radius: 22px; background: linear-gradient(135deg, #f2f6e8, #f8faf5); }
.py-about-section--soft .py-about-section__head { max-width: none; margin: 0; }
.py-about-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 70px 0; }
.py-content .py-about-gallery figure { aspect-ratio: 4 / 3; overflow: hidden; margin: 0; border-radius: 14px; background: var(--py-paper); }
.py-content .py-about-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.py-about-gallery figure:hover img { transform: scale(1.035); }
.py-about-cta { display: flex; gap: 32px; align-items: center; justify-content: space-between; margin-top: 70px; padding: 40px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--py-navy), #243c78); }
.py-content .py-about-cta p { margin-bottom: 0; color: #dce3f2; }
.py-about-cta__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.py-about-cta .py-button { color: var(--py-navy); background: var(--py-yellow); box-shadow: none; }
.py-about-cta .py-button--outline { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }

.py-footer { padding: 64px 0 24px; color: #d6dceb; background: #0d1426; }
.py-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 52px; }
.py-footer__logo { width: min(360px, 100%); padding: 10px; border-radius: 8px; background: #fff; }
.py-footer h2, .py-footer h3 { margin-top: 0; color: #fff; }
.py-footer ul { margin: 0; padding: 0; list-style: none; }
.py-footer a:hover { color: #c1df65; }
.py-footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #98a4ba; font-size: .86rem; }

@media (max-width: 1120px) {
  .py-header__cta { display: none; }
  .py-menu-toggle { display: inline-flex; }
  .py-nav { position: fixed; z-index: 120; top: 82px; right: 14px; left: 14px; display: none; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior-y: contain; padding: 14px 14px 24px; border: 1px solid var(--py-line); border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 22px 50px rgba(16,24,44,.25); -webkit-overflow-scrolling: touch; }
  .py-nav.is-open { display: block; }
  body.py-menu-open .py-header { position: fixed; right: 0; left: 0; width: 100%; }
  body.py-menu-open .py-nav { position: absolute; top: 82px; }
  .py-nav ul { display: block; }
  .py-nav .sub-menu { position: static; display: grid; width: auto; max-height: none; margin: 4px 0 8px 14px; padding: 5px; border: 0; border-left: 3px solid #dceba9; border-radius: 0; box-shadow: none; }
  .py-brand img { width: min(360px, 58vw); }
  .py-card, .py-card--wide { grid-column: span 6; }
  .py-feature { grid-template-columns: 1fr; }
  .py-feature__media { min-height: 300px; max-height: 340px; }
  .py-map { grid-template-columns: 1fr; }
  .py-project-shot, .py-project-shot--1, .py-project-shot--2 { grid-column: span 6; min-height: 260px; }
  .py-footer__grid { grid-template-columns: 1fr 1fr; }
  .py-home-overview { grid-template-columns: 320px 1fr; }
  .py-portfolio-entry { grid-template-columns: 1fr; min-height: 0; }
  .py-portfolio-entry__media { height: 250px; }
  .py-home-columns { grid-template-columns: 1fr 1fr; }
  .py-location-card { grid-column: 1 / -1; }
  .py-project-strip { grid-template-columns: repeat(3, 1fr); }
  .py-catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .py-editorial-visual { grid-template-columns: 1fr; }
  .py-editorial-visual > img { min-height: 280px; }
  .admin-bar .py-header { top: 32px; }
  .admin-bar .py-nav { top: 114px; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
  body.admin-bar.py-menu-open .py-nav { top: 82px; }
}

@media (max-width: 820px) {
  .py-about-split { grid-template-columns: 1fr; }
  .py-about-hero { min-height: 560px; align-items: flex-end; }
  .py-about-hero::after { background: linear-gradient(180deg, rgba(10,18,38,.12) 0%, rgba(10,18,38,.62) 45%, rgba(10,18,38,.97) 78%); }
  .py-about-hero__copy { width: 100%; padding-top: 180px; }
  .py-about-hero > img { object-position: 66% center; }
  .py-about-service-grid { grid-template-columns: 1fr; }
  .py-about-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .py-about-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 782px) {
  .admin-bar .py-header { top: 46px; }
  .admin-bar .py-nav { top: 128px; max-height: calc(100vh - 142px); max-height: calc(100dvh - 142px); }
  body.admin-bar.py-menu-open .py-nav { top: 82px; }
}

@media (max-width: 680px) {
  :root { --py-wrap: min(100% - 28px, 1180px); }
  .py-section { padding: 56px 0; }
  .py-hero, .py-hero__content { min-height: 620px; }
  .py-hero__slide::after { background: linear-gradient(90deg, rgba(9,18,38,.9), rgba(9,18,38,.58)); }
  .py-card, .py-card--wide { grid-column: 1 / -1; }
  .py-news__item { grid-template-columns: 1fr; gap: 4px; }
  .py-contact-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .py-card__media { max-height: 210px; }
  .py-project-shot, .py-project-shot--1, .py-project-shot--2 { grid-column: 1 / -1; min-height: 220px; }
  .py-footer__grid { grid-template-columns: 1fr; }
  .py-section--compact { padding: 42px 0; }
  .py-home-overview, .py-home-columns, .py-seasonal-row { grid-template-columns: 1fr; }
  .py-directory { background: linear-gradient(145deg, #e8793f 0 18%, #e7b936 18% 34%, #fff 34%); }
  .py-directory h2 { margin-bottom: 44px; }
  .py-location-card { grid-column: auto; }
  .py-project-strip { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
  .py-project-strip > a { flex: 0 0 min(76vw, 290px); min-width: 0; scroll-snap-align: start; }
  .py-project-strip figure { width: 100%; }
  .py-product-gallery__head { align-items: center; }
  .py-product-gallery__slide { flex-basis: 90%; padding: 8px; }
  .py-product-gallery__controls button { width: 38px; height: 38px; }
  .py-section-heading { align-items: center; }
  .py-seasonal-row { gap: 26px; }
  .py-catalog-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .py-term-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 14px; }
  .py-term-nav a { flex: 0 0 auto; }
  .py-editorial-visual > img { min-height: 220px; }
  .py-editorial-visual figcaption { padding: 26px 22px; }
  .py-imported-gallery { grid-template-columns: 1fr; }
  .py-about-hero { margin-bottom: 54px; }
  .py-about-hero__copy, .py-about-section--soft, .py-about-cta { padding: 26px 22px; }
  .py-about-section, .py-about-split, .py-about-gallery { margin: 54px 0; }
  .py-about-gallery { grid-template-columns: 1fr; }
  .py-about-cta__actions { width: 100%; flex-direction: column; }
  .py-about-cta__actions .py-button { width: 100%; }
  .py-flow-gallery { grid-template-columns: 1fr; }
  .py-content .py-flow-gallery img { min-height: 0; }
}

@media (max-width: 480px) {
  .py-catalog-grid { grid-template-columns: 1fr; }
}
