/* ==========================================================================
   ԴԱՇՏ (DASHT) — Tech & Gadget Atelier Design System Stylesheet
   Strictly aligned with google_stitch_design_system.md
   Exclusive Font: Calibri
   ========================================================================== */

:root {
  /* Brand Palette (exact SVG & Design System tokens) */
  --primary: #F7941D;
  --primary-halo: #FBB03B;
  --primary-arch: #FBB040;
  --primary-glow: #FFE3A3;

  /* Dawn Sky (Hero Frame 3) */
  --dawn-sky-top: #243B55;
  --dawn-sky-mid: #5E4B68;
  --dawn-sky-horizon: #C85A53;
  --dawn-sky-glow: #F2A65A;

  /* Surfaces & Neutrals */
  --canvas: #FAF7F2;
  --surface-panel: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --ink: #231F20;
  --body: #3A3533;
  --muted: #6E6864;
  --hairline: #E8E1D5;
  --on-primary: #FFFFFF;
  --on-dark: #FAF7F2;

  /* Radii & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --header-height: 76px;
  --container-max: 1280px;

  /* Live Sun-Driven Dynamic CSS Variables (updated by sunController.js) */
  --sun-x: 50vw;
  --sun-y: 38vh;
  --sun-size: 270px;
  --sun-shadow-x: -20px;
  --sun-shadow-y: 24px;

  /* Strict Font Family */
  --font-sans: 'Calibri', 'Carlito', 'Segoe UI', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--body);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--body);
  background-color: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
}

body.phase-preload,
body.phase-contract {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   THE ONE LIVING SUN (Single-Sun Continuity)
   Pure flat solid #F7941D circle — ZERO glow, ZERO gradient.
   At scrollY = 0 (Hero): z-index: 6 -> strictly BEHIND Hero wheat (12) & wordmark (25).
   When scrolling (.is-above-all): z-index: 80 -> ON TOP OF EVERYTHING (above wheat,
   sections, header & footer — only below modal z:1000)!
   ========================================================================== */
.living-sun {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sun-size);
  height: var(--sun-size);
  transform: translate3d(
    calc(var(--sun-x) - var(--sun-size) * 0.5),
    calc(var(--sun-y) - var(--sun-size) * 0.5),
    0
  );
  border-radius: 50%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
}

.living-sun.is-above-all {
  z-index: 80;
}

.living-sun.is-footer-docked {
  z-index: 8;
}

body:not(.phase-preload) .living-sun {
  opacity: 1;
}

/* Pure solid flat brand orange (#F7941D) — no glow, no gradient */
.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Concentric Golden Halo Arch (#FBB040) — rotates -90deg on scroll into corner, returns to 0deg in Footer */
.sun-halo-arch {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180.3635%;
  height: 180.3635%;
  transform: translate(-50%, -50%) rotate(var(--halo-rot, 0deg)) scale(0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

body.phase-hero .sun-halo-arch {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--halo-rot, 0deg)) scale(1);
}

/* ==========================================================================
   FRAME 1 -> 2: PRELOADER (Solid #F7941D + Single Horizontal Line of White Dots)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  --clip-r: 150vmax;
  --clip-x: 50vw;
  --clip-y: 38vh;
  clip-path: circle(var(--clip-r) at var(--clip-x) var(--clip-y));
  will-change: clip-path, opacity;
}

/* During Frame 2 contraction, place the shrinking orange circle BEHIND the rising wheat! */
body.phase-contract .preloader {
  z-index: 7;
}

.preloader.is-done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Strictly a single horizontal straight row of minimalist white dots */
.preloader-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader-dots.is-hidden {
  opacity: 0;
  transform: scale(0.84);
}

.loader-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #FFFFFF;
  opacity: 0.34;
  transform: scale(0.82);
  animation: horizontalDotWave 1.18s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.19s; }
.loader-dot:nth-child(3) { animation-delay: 0.38s; }

@keyframes horizontalDotWave {
  0%, 80%, 100% {
    opacity: 0.32;
    transform: scale(0.82);
  }
  38% {
    opacity: 1;
    transform: scale(1.22);
  }
}

/* ==========================================================================
   HEADER BAR (Glides down smoothly in Frame 3)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 60;
  background-color: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 225, 213, 0.62);
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

body.phase-hero .site-header {
  transform: translateY(0);
  opacity: 1;
}

.site-header.is-dark-footer {
  background-color: rgba(35, 31, 32, 0.82);
  border-bottom-color: rgba(250, 247, 242, 0.10);
  color: var(--on-dark);
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.header-left-group {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.header-sun-spacer {
  width: 100%;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #000000;
  transition: opacity 0.25s ease, color 0.3s ease;
}

.site-header.is-dark-footer .header-brand {
  color: var(--on-dark);
}

.header-brand-mark {
  display: inline-flex;
  width: 26px;
  height: 20px;
}

.header-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink);
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.site-header.is-dark-footer .nav-link {
  color: rgba(250, 247, 242, 0.86);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(35, 31, 32, 0.14);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.replay-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #FFFFFF;
}

.site-header.is-dark-footer .replay-btn {
  border-color: rgba(250, 247, 242, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

.site-header.is-dark-footer .replay-btn:hover {
  border-color: var(--primary);
  color: var(--primary-halo);
}

/* ==========================================================================
   FRAMES 2 & 3: HERO SECTION (Dawn Sky + Single Centered Sun + Endless Wheat)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: #F7ECDA;
}

/* Frame 2 Calm Pre-Dawn Canvas (clean, no sun glow) */
.hero-predawn-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--canvas);
}

/* Frame 3 Illustrated Sky with crisp vector clouds & distant blue mountains */
.dawn-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(180deg, #3BA8E8 0%, #69C2F2 42%, #B4E2F9 66%, #F6DFC3 100%);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sky-illustration-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 68%;
  display: block;
}

body.phase-hero .dawn-sky {
  opacity: 1;
}

/* Monumental 2x Hero Logo Box shared by Icon Layer (behind wheat) & Text Layer (above all) */
.hero-logo-box {
  position: absolute;
  left: 50%;
  top: clamp(128px, 17vh, 168px);
  transform: translateX(-50%);
  width: clamp(310px, 33.5vw, 480px);
  aspect-ratio: 293.74 / 372.11;
  pointer-events: none;
}

/* Logo Icon (outer arch) sits BEHIND wheat (z:4 < z:12) */
.hero-logo-icon-layer {
  z-index: 4;
}

/* Wordmark («ԴԱՇՏ») + subtitle sit ON TOP OF EVERYTHING (z:25 > z:12) */
.hero-logo-text-layer {
  z-index: 25;
}

/* Exact mathematical position of <circle cx="146.87" cy="146.71" r="81.43"/>
   inside viewBox="0 0 293.74 372.11":
   left: 50%, top: 39.4265%, diameter: 55.4436% of logo width */
.sun-dock-anchor {
  position: absolute;
  left: 50%;
  top: 39.4265%;
  width: 55.4436%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Frame 3 Outer Golden Arch (Լուսապսակ) — flat crisp vector, NO glow */
.hero-logo-arch {
  opacity: 0;
  transform: scale(0.88) rotate(-18deg);
  transform-origin: 50% 39.43%;
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

body.phase-hero .hero-logo-arch {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Frame 3 Geometric «ԴԱՇՏ» Wordmark — crisp on top of everything */
.hero-logo-wordmark {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.28s,
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.28s;
}

body.phase-hero .hero-logo-wordmark {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translate(-50%, 10px);
  white-space: nowrap;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000000;
  opacity: 0;
  transition:
    opacity 0.85s ease 0.48s,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.48s;
}

body.phase-hero .hero-subtitle {
  opacity: 0.9;
  transform: translate(-50%, 0);
}

/* Illustrated Golden Wheat Field Container (IN FRONT of Logo Icon, BEHIND Wordmark!) */
.hero-wheat-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  z-index: 12;
  pointer-events: none;
  transform: translateY(105%);
  opacity: 0;
  transition:
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s ease;
  will-change: transform, opacity;
}

body.phase-contract .hero-wheat-wrap,
body.phase-hero .hero-wheat-wrap {
  transform: translateY(0%);
  opacity: 1;
}

.wheat-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 247, 242, 0.96);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease 0.95s, transform 0.3s ease;
}

.scroll-cue-text {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(35, 31, 32, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 244, 218, 0.22);
}

body.phase-hero .scroll-cue {
  opacity: 1;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(2px);
}

.scroll-cue-line {
  width: 1.5px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 244, 218, 0.95) 0%, rgba(255, 244, 218, 0) 100%);
  animation: scrollLinePulse 2.1s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { transform: scaleY(0.65); opacity: 0.55; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Wide, silky multi-stop gradient melting Hero golden wheat seamlessly into #FAF7F2 */
.hero-bottom-blend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0) 0%,
    rgba(250, 247, 242, 0.05) 20%,
    rgba(250, 247, 242, 0.18) 42%,
    rgba(250, 247, 242, 0.42) 62%,
    rgba(250, 247, 242, 0.72) 78%,
    rgba(250, 247, 242, 0.92) 91%,
    var(--canvas) 100%
  );
}

/* ==========================================================================
   FRAME 4: 3D TECH PRODUCT SHOWCASE (#FAF7F2 DAYLIGHT)
   ========================================================================== */
.products-section {
  position: relative;
  padding: 96px 0 100px;
  background-color: var(--canvas);
  overflow: hidden;
  z-index: 2;
}

/* Shared WebGL Canvas rendered crisp ABOVE hover card halos (pointer-events: none) */
.products-webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 7;
}

.products-container {
  position: relative;
  z-index: 6;
}

.section-header {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.22);
}

.section-title {
  font-size: clamp(2.1rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

/* 3-Column Borderless 3D Tech Showcase Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.product-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px 28px;
  border-radius: var(--radius-lg);
  background: transparent;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at 68% 24%,
    rgba(255, 236, 194, 0.28) 0%,
    rgba(255, 255, 255, 0) 68%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}

.product-stage:hover::before,
.product-stage:focus-within::before {
  opacity: 1;
}

/* Interactive 360° Drag Zone */
.product-canvas-slot {
  position: relative;
  width: 100%;
  height: 332px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.product-canvas-slot.is-dragging {
  cursor: grabbing;
}

/* Subtle 360° Rotation Arc Cue underneath each floating gadget */
.rotate-cue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: rgba(110, 104, 100, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.rotate-cue svg {
  width: 152px;
  height: 28px;
}

.product-stage:hover .rotate-cue {
  color: var(--primary);
}

.product-canvas-slot.is-dragging .rotate-cue {
  opacity: 0.25;
}

.product-meta {
  position: relative;
  z-index: 9;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-category {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.product-name {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.product-tagline {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.48;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Hover-Revealed «Մանրամասներ» Pill Button */
.product-cta-wrap {
  margin-top: 18px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: var(--ink);
  color: var(--on-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: -8px 10px 24px rgba(35, 31, 32, 0.16);
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    box-shadow 0.28s ease;
}

.product-stage:hover .btn-details,
.product-stage:focus-within .btn-details,
.product-stage.is-active .btn-details {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.btn-details:hover {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: -10px 12px 28px rgba(247, 148, 29, 0.32);
  transform: translateY(-2px) scale(1.02);
}

.btn-details:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   FRAME 5: ABOUT SECTION («ՄԱՍԻՆ»)
   White Rounded Panel («Փեղկ») Nestled in Dense Endless Wheat + Sun Shadow
   ========================================================================== */
.about-section {
  position: relative;
  min-height: 960px;
  padding: 164px 0 268px;
  background: linear-gradient(
    180deg,
    var(--canvas) 0%,
    #FAF6EE 24%,
    #F9F2E2 48%,
    #F7E9C8 74%,
    #F3D999 100%
  );
  overflow: hidden;
  z-index: 2;
}

/* Wide, silky multi-stop gradient dissolving golden illustrated wheat smoothly into dark #231F20 Footer */
.about-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  z-index: 9;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(35, 31, 32, 0) 0%,
    rgba(35, 31, 32, 0.05) 18%,
    rgba(35, 31, 32, 0.16) 38%,
    rgba(35, 31, 32, 0.38) 58%,
    rgba(35, 31, 32, 0.68) 76%,
    rgba(35, 31, 32, 0.90) 90%,
    var(--ink) 100%
  );
}

.about-wheat-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
  display: block;
}

/* Vast endless dense wheat field behind the lower half of the white panel */
.about-wheat-back {
  height: 60%;
  z-index: 2;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 14%, #000 28%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 14%, #000 28%);
}

/* Lightweight directional shadow cast downward-left from white panel onto wheat (no expensive blur) */
.about-panel-shadow-cast {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border-radius: 48px;
  background: radial-gradient(
    ellipse at 52% 45%,
    rgba(42, 35, 26, 0.14) 0%,
    rgba(42, 35, 26, 0.07) 48%,
    rgba(42, 35, 26, 0) 78%
  );
  will-change: transform;
}

.about-container {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
}

/* Crisp White Editorial UI Panel («Փեղկ») */
.about-panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  background-color: var(--surface-panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 225, 213, 0.9);
  /* Extra bottom breathing padding so foreground illustrated wheat stalks rise naturally
     over the lower ~18% of the white panel without ever touching a single word of text */
  padding: 52px 56px 136px;
  /* Physically accurate soft shadow angled toward bottom-left from top-right sun */
  box-shadow:
    var(--sun-shadow-x) var(--sun-shadow-y) 48px rgba(35, 31, 32, 0.14),
    calc(var(--sun-shadow-x) * 0.45) calc(var(--sun-shadow-y) * 0.45) 18px rgba(35, 31, 32, 0.07),
    inset -1px 1px 0 rgba(255, 238, 198, 0.72);
}

/* Subtle warm sunlit rim highlight along top-right corner of the white panel */
.about-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    420px 260px at 96% 4%,
    rgba(255, 227, 163, 0.18) 0%,
    rgba(255, 227, 163, 0) 70%
  );
}

.about-panel-top {
  margin-bottom: 28px;
}

.about-title {
  font-size: clamp(2.1rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.about-body-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--ink);
  margin-bottom: 18px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--muted);
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 28px;
  border-left: 1px solid var(--hairline);
}

.pillar-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.pillar-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 3px;
}

.pillar-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.pillar-item p {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Foreground Dense Swaying Wheat Stalks overlapping bottom of white panel */
.about-wheat-front {
  height: 44%;
  z-index: 8;
}

/* ==========================================================================
   FRAME 6: FOOTER (#231F20 CHARCOAL + LARGE RETURNING SOLAR EMBLEM)
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--ink);
  color: var(--on-dark);
  padding: 96px 0 124px;
  overflow: hidden;
}

.footer-container {
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* Large Footer Logo Dock where the Top-Right Living Sun Returns & Expands */
.footer-logo-dock {
  position: relative;
  width: clamp(190px, 18vw, 232px);
  aspect-ratio: 293.74 / 372.11;
}

.footer-logo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.footer-logo-arch {
  z-index: 1;
  opacity: 1;
}

.footer-logo-wordmark {
  position: relative;
  z-index: 20;
  opacity: 1;
}

.footer-brand-note {
  font-size: 0.96rem;
  line-height: 1.62;
  color: rgba(250, 247, 242, 0.68);
  max-width: 320px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-halo);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li {
  font-size: 0.97rem;
  color: rgba(250, 247, 242, 0.8);
}

.footer-col a {
  transition: color 0.22s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.52);
}

.footer-motto {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(251, 176, 59, 0.72);
}

/* Subtle rim-lit dense wheat horizon along very bottom edge of dark footer */
.footer-wheat-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 88px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL («Մանրամասներ»)
   ========================================================================== */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  background: var(--canvas);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: -24px 32px 72px rgba(35, 31, 32, 0.32);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #FFFFFF;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 490px;
}

.modal-stage-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: radial-gradient(
    circle at 82% 16%,
    rgba(255, 227, 163, 0.42) 0%,
    rgba(250, 247, 242, 0.96) 58%,
    #F3ECE0 100%
  );
  border-right: 1px solid var(--hairline);
}

.modal-3d-slot {
  width: 100%;
  height: 360px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.modal-3d-slot.is-dragging {
  cursor: grabbing;
}

.modal-finish-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 225, 213, 0.8);
}

.finish-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.finish-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.finish-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(35, 31, 32, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finish-swatch:hover {
  transform: scale(1.12);
}

.finish-swatch.active {
  box-shadow: 0 0 0 2px var(--primary);
  transform: scale(1.12);
}

.modal-info-col {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 26px;
}

.modal-spec-item dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.modal-spec-item dd {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.modal-footer-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-price-block {
  display: flex;
  flex-direction: column;
}

.modal-price-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
}

.btn-order {
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-order:hover {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: -8px 10px 26px rgba(247, 148, 29, 0.34);
  transform: translateY(-1px);
}

.modal-order-toast {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(247, 148, 29, 0.12);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.modal-order-toast.is-visible {
  opacity: 1;
  max-height: 80px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-body-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-pillars {
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 768px) {
  .container,
  .header-inner {
    padding: 0 20px;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .header-sun-spacer {
    display: none;
  }

  .header-nav {
    gap: 16px;
    justify-content: flex-end;
  }

  .replay-btn span {
    display: none;
  }

  .products-section {
    padding: 84px 0 76px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-canvas-slot {
    height: 310px;
  }

  /* On touch screens keep «Մանրամասներ» softly accessible */
  .btn-details {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .about-section {
    padding: 72px 0 170px;
  }

  .about-panel {
    padding: 34px 26px 104px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-stage-col {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .modal-3d-slot {
    height: 260px;
  }

  .modal-info-col {
    padding: 28px 24px;
  }
}
