/* Self-hosted fonts — do not depend on the Google Fonts CDN being reachable
   (corporate firewalls / ad-blockers / offline dev commonly block it). */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/photonic_web/static/fonts/kanit-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/photonic_web/static/fonts/kanit-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0304, U+0308, U+0329, U+1E00-1EFF;
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/photonic_web/static/fonts/kanit-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/photonic_web/static/fonts/kanit-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0304, U+0308, U+0329, U+1E00-1EFF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/photonic_web/static/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/photonic_web/static/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/photonic_web/static/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/photonic_web/static/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/photonic_web/static/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/photonic_web/static/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/photonic_web/static/fonts/jbmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/photonic_web/static/fonts/jbmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/photonic_web/static/fonts/jbmono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/photonic_web/static/fonts/jbmono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.pho {
  /* Ink — dark surfaces */
  --ink-900: #0D2022;
  --ink-800: #142B2D;
  --ink-700: #1C3739;
  --ink-600: #264446;
  --ink-500: #355457;
  --ink-400: #5A7679;

  /* Bone — light surfaces */
  --bone-50: #F7F6F1;
  --bone-100: #EDEBE3;
  --bone-200: #DBD8CC;
  --bone-300: #B8B5A8;

  /* Solar — energy / output */
  --solar-300: #F8EE80;
  --solar-400: #F5E85D;
  --solar-500: #F1E23A;
  --solar-600: #D4C61E;
  --solar-700: #A89C0F;

  /* Leaf — sustainability / savings */
  --leaf-300: #D2F5B5;
  --leaf-400: #C3F19E;
  --leaf-500: #B4EE8A;
  --leaf-600: #93D262;
  --leaf-700: #6FA641;

  /* Volt — electrification / grid */
  --volt-300: #A6FFF7;
  --volt-400: #82FFF4;
  --volt-500: #67FEF2;
  --volt-600: #2DD9CB;
  --volt-700: #18A89C;

  /* Functional grays */
  --gray-50: #F4F5F5;
  --gray-100: #E6E8E8;
  --gray-200: #C7CCCC;
  --gray-300: #9EA6A6;
  --gray-400: #6F7878;
  --gray-500: #4F5757;
  --gray-600: #363D3D;

  /* Semantic */
  --success: var(--leaf-500);
  --warning: var(--solar-500);
  --info: var(--volt-500);
  --alert-500: #FF6B5B;

  /* Typography */
  --font-display: 'Kanit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing — 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
  --s-40: 160px;

  /* Radii */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Container */
  --container-max: 1440px;
  --container-pad: clamp(20px, 4vw, 64px);

  /* Motion — sharp, deliberate, never bouncy */
  --ease-out-sharp: cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
}

.pho, .pho *,
.pho *::before,
.pho *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pho {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.pho {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bone-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'tnum' 1;
  overflow-x: hidden;
}

.pho #root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pho main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Page transition — signature cell-grid mask reveal (never a plain fade) */
.pho .page-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  pointer-events: none;
}

.pho .page-mask__bar {
  flex: 1;
  background: var(--ink-900);
  transform-origin: top;
}

.pho img,
.pho svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.pho button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.pho ul {
  list-style: none;
}

.pho input,
.pho textarea,
.pho select {
  font: inherit;
  color: inherit;
}

/* Typography scale */
.pho .display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.pho .display-l {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.pho .display-m {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pho .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.pho .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pho .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.pho .body-l {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
}

.pho .body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}

.pho .body-s {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}

.pho .caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pho .mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
}

.pho .mono-s {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
}

/* Layout helpers */
.pho .section {
  padding: clamp(60px, 10vh, 140px) var(--container-pad);
  position: relative;
}

.pho .section--dark {
  background: var(--ink-900);
  color: var(--bone-50);
}

.pho .section--bone {
  background: var(--bone-50);
  color: var(--ink-900);
}

.pho .section--bone-100 {
  background: var(--bone-100);
  color: var(--ink-900);
}

.pho .pho-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pho .section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}

.pho .section-label__num {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.5;
}

.pho .section-label__bar {
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.pho .section-label__text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.pho .section-lede {
  max-width: 640px;
  opacity: 0.75;
  margin-bottom: var(--s-16);
  font-size: 18px;
  line-height: 1.55;
}

/* Signature graphic device — cell grid */
.pho .cell-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pho .cell-grid--dark {
  background-image:
    linear-gradient(rgba(103, 254, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 254, 242, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.pho .cell-grid--bone {
  background-image:
    linear-gradient(rgba(13, 32, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 32, 34, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Buttons */
.pho .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-out-sharp), border-color var(--dur-fast) var(--ease-out-sharp), color var(--dur-fast) var(--ease-out-sharp), transform var(--dur-fast) var(--ease-out-sharp);
}

.pho .btn:active {
  transform: translateY(1px);
}

.pho .btn--primary {
  background: var(--solar-500);
  color: var(--ink-900);
}

.pho .btn--primary:hover {
  background: var(--solar-400);
}

.pho .btn--secondary {
  background: transparent;
  color: var(--volt-500);
  border: 1px solid var(--volt-700);
}

.pho .btn--secondary:hover {
  border-color: var(--volt-500);
}

.pho .btn--ghost {
  padding: 13px 2px;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

/* Tags */
.pho .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--gray-100);
  color: var(--ink-700);
}

.pho .tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pho .tag--solar .tag__dot {
  background: var(--solar-500);
}

.pho .tag--leaf .tag__dot {
  background: var(--leaf-500);
}

.pho .tag--volt .tag__dot {
  background: var(--volt-500);
}

.pho ::selection {
  background: var(--volt-500);
  color: var(--ink-900);
}

/* Navigation */
.pho .nav, .pho.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 32, 34, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(247, 246, 241, 0.08);
  color: var(--bone-50);
}

.pho .nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  padding: 14px var(--container-pad);
}

.pho .nav__brand {
  display: inline-flex;
  align-items: center;
}

.pho .logo {
  display: block;
}

.pho .nav__links {
  display: flex;
  gap: 4px;
}

.pho .nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  opacity: 0.65;
  border-radius: var(--r-sm);
  transition: opacity var(--dur-fast) var(--ease-out-sharp), background var(--dur-fast) var(--ease-out-sharp);
}

.pho .nav__link:hover {
  opacity: 1;
  background: rgba(247, 246, 241, 0.06);
}

.pho .nav__link.is-active {
  opacity: 1;
  color: var(--volt-500);
}

.pho .nav__cta {
  padding: 10px 20px;
  font-size: 13px;
}

.pho .nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.pho .nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 22px;
  flex: none;
}

.pho .nav__burger span {
  display: block;
  height: 2px;
  background: var(--bone-50);
  border-radius: 1px;
  transition: transform var(--dur-fast) var(--ease-out-sharp), opacity var(--dur-fast) var(--ease-out-sharp);
}

.pho .nav__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pho .nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.pho .nav__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.pho .nav__backdrop {
  position: fixed;
  inset: 0;
  top: 100%;
  height: 100vh;
  background: rgba(13, 32, 34, 0.5);
  border: none;
  padding: 0;
  cursor: default;
}

@media (max-width: 760px) {
  .pho .nav__burger {
    display: flex;
  }

  .pho .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid rgba(247, 246, 241, 0.08);
    padding: var(--s-2) var(--container-pad) var(--s-6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out-sharp), transform var(--dur-base) var(--ease-out-sharp), visibility 0s linear var(--dur-base);
  }

  .pho .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--dur-base) var(--ease-out-sharp), transform var(--dur-base) var(--ease-out-sharp), visibility 0s;
  }

  .pho .nav__link {
    padding: 14px var(--s-2);
    font-size: 14px;
    border-radius: 0;
    border-bottom: 1px solid rgba(247, 246, 241, 0.06);
  }

  .pho .nav__link:last-child {
    border-bottom: none;
  }
}

/* Footer */
.pho .footer {
  background: var(--ink-900);
  color: var(--bone-50);
  padding: var(--s-20) 0 0;
}

.pho .footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-10);
  padding: 0 var(--container-pad) var(--s-16);
  border-bottom: 1px solid rgba(247, 246, 241, 0.1);
}

.pho .footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}

.pho .footer__tagline {
  opacity: 0.6;
}

.pho .footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: 14px;
}

.pho .footer__col a {
  opacity: 0.75;
  transition: opacity var(--dur-fast) var(--ease-out-sharp);
}

.pho .footer__col a:hover {
  opacity: 1;
}

.pho .footer__heading {
  opacity: 0.45;
  margin-bottom: var(--s-2);
}

.pho .footer__address {
  opacity: 0.65;
}

.pho .footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: var(--s-6) var(--container-pad);
  opacity: 0.45;
}

@media (max-width: 900px) {
  .pho .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .pho .footer__bottom {
    flex-direction: column;
    gap: var(--s-2);
  }
}

/* Hero */
.pho .hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pho .hero__grid {
  mask-image: radial-gradient(ellipse at 70% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 30%, transparent 75%);
}

.pho .hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-24) 0;
}

.pho .hero__eyebrow {
  color: var(--volt-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pho .hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--volt-500);
}

.pho .hero__title {
  margin: 0;
}

.pho .hero__title em {
  font-style: normal;
  color: var(--solar-500);
  font-size: 0.34em;
  margin-left: 0.18em;
  vertical-align: baseline;
}

.pho .hero__sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.3;
  max-width: 680px;
  opacity: 0.85;
}

.pho .hero__ctas {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}

.pho .hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-10);
  margin-top: var(--s-10);
  border-top: 1px solid rgba(247, 246, 241, 0.1);
}

.pho .hero__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pho .hero__stat .caption {
  opacity: 0.55;
}

.pho .hero__stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--volt-500);
}

@media (max-width: 760px) {
  .pho .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Essence */
.pho .essence__statement {
  max-width: 1000px;
  margin-bottom: var(--s-16);
}

.pho .essence__accent {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(110deg, var(--volt-700) 0%, var(--leaf-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 01.1 / 01.2 / 01.3 dark cards */
.pho .essence__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-12);
}

.pho .essence-card {
  background: var(--ink-900);
  color: var(--bone-50);
  padding: var(--s-10);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
}

.pho .essence-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.pho .essence-card--solar::after {
  background: var(--solar-500);
}

.pho .essence-card--leaf::after {
  background: var(--leaf-500);
}

.pho .essence-card--volt::after {
  background: var(--volt-500);
}

.pho .essence-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.4;
  margin-bottom: var(--s-3);
}

.pho .essence-card__label {
  display: block;
  opacity: 0.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.pho .essence-card__title {
  margin-bottom: var(--s-4);
}

.pho .essence-card__body {
  opacity: 0.8;
  margin-top: auto;
}

@media (max-width: 1000px) {
  .pho .essence__cards {
    grid-template-columns: 1fr;
  }
}

/* 5-trait light grid */
.pho .essence__traits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-12);
}

.pho .essence__trait {
  background: var(--bone-100);
  padding: var(--s-6);
  border-radius: var(--r-md);
  border-left: 3px solid var(--ink-700);
}

.pho .essence__trait-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 6px;
}

.pho .essence__trait h3 {
  margin-bottom: var(--s-2);
}

.pho .essence__trait-body {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .pho .essence__traits {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    margin-top: var(--s-12);
  }
}

/* Equipment scroll focus */
.pho .equipment-section-container {
  position: relative;
}

.pho .product-card-wrapper {
  transition: transform var(--dur-base) var(--ease-out-sharp), filter var(--dur-base) ease, opacity var(--dur-base) ease;
  position: relative;
  z-index: 1;
}

@media (max-width: 1000px) {
  .pho .product-grid.has-active-card .product-card-wrapper:not(.is-focused) {
    opacity: 0.4;
    filter: blur(3px);
    transform: scale(0.95);
  }
}

/* Product grid + card */
.pho .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.pho .product-grid__more {
  display: flex;
  justify-content: center;
  margin-top: var(--s-12);
}

.pho .product-card {
  background: var(--bone-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.pho .tag--gray {
  background: var(--gray-100);
}

.pho .tag--gray .tag__dot {
  background: var(--gray-400);
}

.pho .product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bone-100);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pho .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pho .product-card--carousel .product-card__image {
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pho .product-card--carousel .product-card__image::-webkit-scrollbar {
  display: none;
}

.pho .product-card--carousel .product-card__image img {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.pho .product-card__thumbs {
  display: flex;
  gap: var(--s-2);
}

.pho .product-card__thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-xs);
  border: 1.5px solid transparent;
  background: var(--bone-100);
  overflow: hidden;
  padding: 2px;
  transition: border-color var(--dur-fast) var(--ease-out-sharp);
}

.pho .product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pho .product-card__thumb.is-active {
  border-color: var(--volt-600);
}

.pho .product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pho .product-card__name {
  margin: 0;
}

.pho .product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.7;
}

.pho .product-card__specs li {
  padding-left: var(--s-4);
  position: relative;
}

.pho .product-card__specs li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--volt-600);
}

.pho .product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--gray-100);
  gap: var(--s-3);
}

.pho .product-card__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}

.pho .product-card__cta-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 1000px) {
  .pho .product-grid {
    display: flex;
    gap: var(--s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    padding-bottom: var(--s-10); /* Prevent clipping when scaled */
    padding-top: var(--s-6);
    /* Without this, scroll-snap's snapport is measured from the padding edge,
       so the browser silently rests scrolled past padding-inline-start on load. */
    scroll-padding-inline: var(--container-pad);
  }

  .pho .product-grid::-webkit-scrollbar {
    display: none;
  }

  .pho .product-grid > * {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .pho .product-card-wrapper.is-focused {
    z-index: 95;
    transform: scale(1.05);
  }

  .pho .product-grid__more {
    display: none;
  }
}

@media (max-width: 560px) {
  .pho .product-grid > * {
    flex-basis: 86%;
  }
}

@media (max-width: 600px) {
  .pho .product-card--carousel .product-card__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}

/* Trailing "see all" tile — mobile swipe strip only, desktop keeps the ghost link below the grid */
.pho .product-grid__see-all {
  display: none;
}

@media (max-width: 1000px) {
  .pho .product-grid__see-all {
    display: block;
    flex: 0 0 34%;
    scroll-snap-align: start;
  }

  .pho .product-grid__see-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    width: 100%;
    height: 100%;
    min-height: 100%;
    color: var(--ink-900);
    text-align: center;
    padding: var(--s-6);
  }

  .pho .product-grid__see-all-card:hover .product-grid__see-all-icon {
    background: var(--volt-700);
  }

  .pho .product-grid__see-all-icon {
    width: 15px;
    height: 15px;
    padding: 12px;
    box-sizing: content-box;
    border-radius: 50%;
    background: var(--ink-900);
    color: var(--bone-50);
    transition: background var(--dur-fast) var(--ease-out-sharp);
  }
}

@media (max-width: 560px) {
  .pho .product-grid__see-all {
    flex-basis: 44%;
  }
}

/* Case study */
.pho .case-study__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-16);
}

.pho .case-study__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}

.pho .case-study__stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-8);
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
}

.pho .case-study__stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--volt-500);
}

.pho .case-study__stat .caption {
  opacity: 0.55;
}

@media (max-width: 760px) {
  .pho .case-study__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA */
.pho .cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}

/* Products page */
.pho .products-page {
  min-height: 70vh;
}

.pho .products-filter {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-10);
  flex-wrap: wrap;
}

.pho .products-filter__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--gray-200);
  color: var(--ink-700);
  transition: all var(--dur-fast) var(--ease-out-sharp);
}

.pho .products-filter__btn:hover {
  border-color: var(--volt-600);
}

.pho .products-filter__btn.is-active {
  background: var(--ink-900);
  color: var(--bone-50);
  border-color: var(--ink-900);
}

.pho .product-grid--catalog {
  grid-template-columns: repeat(3, 1fr);
}

/* Catalog page keeps a plain 2-up grid on mobile — only the homepage teaser scrolls horizontally */
@media (max-width: 1000px) {
  .pho .product-grid--catalog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
    overflow-x: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }

  .pho .product-grid--catalog > * {
    flex: initial;
    scroll-snap-align: none;
  }

  .pho .product-grid--catalog .product-card {
    padding: var(--s-4);
  }

  .pho .product-grid--catalog .product-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
  }

  .pho .product-grid--catalog .product-card__price {
    font-size: 13px;
  }

  .pho .product-grid--catalog .product-card__name {
    font-size: 15px;
  }
}


.pho .voice-table {
  display: flex;
  flex-direction: column;
  margin-top: var(--s-12);
  border-top: 1px solid rgba(247, 246, 241, 0.1);
}

.pho .voice-table__row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid rgba(247, 246, 241, 0.1);
  align-items: center;
}

.pho .voice-table__row--head {
  opacity: 0.5;
  padding-bottom: var(--s-3);
}

.pho .voice-table__trait {
  color: var(--volt-500);
}

.pho .voice-table__not {
  opacity: 0.6;
}

@media (max-width: 760px) {
  .pho .voice-table__row {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

  .pho .voice-table__row--head {
    display: none;
  }
}

/* Process / technical-line device */
.pho .process {
  position: relative;
  margin-top: var(--s-8);
}

.pho .process__trace {
  width: 100%;
  height: 40px;
  display: block;
  margin-bottom: var(--s-2);
}

.pho .process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}

.pho .process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-4);
}

.pho .process__step-num {
  color: var(--volt-700);
}

.pho .process__step-body {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .pho .process__trace {
    display: none;
  }

  .pho .process__steps {
    grid-template-columns: 1fr;
    text-align: left;
    gap: var(--s-10);
  }

  .pho .process__step-wrapper {
    transition: transform var(--dur-base) var(--ease-out-sharp), opacity var(--dur-base) ease;
    transform-origin: center center;
    perspective: 1000px;
    padding: var(--s-2) 0;
  }

  .pho .process__steps.has-active .process__step-wrapper.is-inactive {
    opacity: 0.35;
    transform: scale(0.9);
  }

  .pho .process__steps.has-active .process__step-wrapper.is-active {
    transform: scale(1.1) translateZ(20px);
    opacity: 1;
    z-index: 10;
  }

  .pho .process__step {
    align-items: flex-start;
  }

  .pho .process__step-num {
    display: none;
  }
}

/* Contact page */
.pho .contact-page__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-24);
  align-items: start;
}

.pho .contact-page__details {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-top: var(--s-16);
}

.pho .contact-page__details .caption {
  opacity: 0.5;
  display: block;
  margin-bottom: var(--s-2);
}

.pho .contact-page__details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pho .contact-page__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}

.pho .contact-page__detail-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--volt-700);
}

.pho .contact-form {
  background: var(--bone-100);
  border-radius: var(--r-md);
  padding: var(--s-10);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.pho .contact-form--done {
  min-height: 320px;
  justify-content: center;
  gap: var(--s-3);
}

.pho .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.pho .field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
}

.pho .field label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.pho .field input,
.pho .field textarea {
  background: var(--bone-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease-out-sharp), box-shadow var(--dur-fast) var(--ease-out-sharp);
}

.pho .field input:focus,
.pho .field textarea:focus {
  outline: none;
  border-color: var(--volt-500);
  box-shadow: 0 0 0 3px rgba(103, 254, 242, 0.25);
}

.pho .field__hint {
  opacity: 0.5;
}

.pho .contact-form__submit {
  align-self: flex-start;
  margin-top: var(--s-2);
}

@media (max-width: 900px) {
  .pho .contact-page__inner {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }

  .pho .field-row {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   PHOTONIC · STATIC PORT — motion & scoping
   Replaces framer-motion / react-router runtime with CSS + a tiny JS helper.
   ============================================ */

/* Odoo/Bootstrap ships bare-element + utility rules that reach inside our
   scope. Neutralise the ones that actually bite: */
.pho * { box-sizing: border-box; }
.pho .btn { white-space: nowrap; }                 /* stop nav CTA wrapping */
.pho .pho-wrap::before, .pho .pho-wrap::after,
.pho .footer__inner::before, .pho .footer__inner::after { content: none; display: none; }
.pho ul, .pho ol { list-style: none; margin: 0; padding: 0; }
.pho p { margin: 0; }

/* keep the scope box transparent so it never paints over an Odoo section.
   overflow-x:clip (not hidden) tames animation overflow WITHOUT turning the
   box into a scroll container — so a sticky .nav inside still works. */
.pho { background: transparent; overflow-x: clip; }
.pho .section { isolation: isolate; }

/* Scroll reveal (was <Reveal> / whileInView) */
.pho [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out-sharp), transform 500ms var(--ease-out-sharp);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.pho [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .pho [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Hero entrance (was motion initial/animate) */
@keyframes phoRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pho .hero__eyebrow,
.pho .hero__title,
.pho .hero__sub,
.pho .hero__ctas,
.pho .hero__stats {
  animation: phoRise 600ms var(--ease-out-sharp) both;
}
.pho .hero__title { animation-delay: 90ms; }
.pho .hero__sub   { animation-delay: 170ms; }
.pho .hero__ctas  { animation-delay: 250ms; }
.pho .hero__stats { animation-delay: 330ms; }

/* Nav entrance */
@keyframes phoNavIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.pho.nav, .pho .nav { animation: phoNavIn 500ms var(--ease-out-sharp) both; }

/* Page-mask reveal (was <PageMask>, 8 bars wiping up). Purely decorative;
   runs once on load then removes itself from the layout. */
.pho .page-mask__bar { animation: phoMaskUp 640ms var(--ease-out-sharp) forwards; }
.pho .page-mask__bar:nth-child(1) { animation-delay: 0ms; }
.pho .page-mask__bar:nth-child(2) { animation-delay: 60ms; }
.pho .page-mask__bar:nth-child(3) { animation-delay: 120ms; }
.pho .page-mask__bar:nth-child(4) { animation-delay: 180ms; }
.pho .page-mask__bar:nth-child(5) { animation-delay: 240ms; }
.pho .page-mask__bar:nth-child(6) { animation-delay: 300ms; }
.pho .page-mask__bar:nth-child(7) { animation-delay: 360ms; }
.pho .page-mask__bar:nth-child(8) { animation-delay: 420ms; }
@keyframes phoMaskUp { to { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .pho .page-mask { display: none; } }
