/* ============================================================
   STONECRAFT — Apple-Inspired Redesign
   Clean, minimal, typography-focused design system
   ============================================================ */

/* 1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Text colors */
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;

  /* Backgrounds */
  --color-bg-white: #ffffff;
  --color-bg-light: #f5f5f7;
  --color-bg-dark: #1d1d1f;

  /* Accent */
  --color-accent: #D4A843;
  --color-accent-hover: #C8962E;

  /* Overlays */
  --overlay-frost: rgba(255, 255, 255, 0.72);
  --overlay-frost-dark: rgba(29, 29, 31, 0.72);

  /* Borders */
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;

  /* Typography */
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-hero: clamp(3rem, 7vw, 5.5rem);
  --text-headline: clamp(2.4rem, 5vw, 4rem);
  --text-title: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-subtitle: clamp(1.1rem, 2vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-body-lg: 1.25rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  /* Spacing */
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-96: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --nav-height: 62px;
  --card-radius: 20px;
  --card-radius-sm: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-reveal: 1s;
}


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

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

body {
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}


/* 3. Typography
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h1 { font-size: var(--text-hero); font-weight: 800; }
h2 { font-size: var(--text-headline); }
h3 { font-size: var(--text-title); }


/* 4. Buttons & Links
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--text-small);
  border-radius: 980px;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  padding: 12px 28px;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

.btn--link {
  color: var(--color-accent);
  padding: 12px 0;
  font-size: var(--text-body);
}

.btn--link:hover {
  opacity: 0.8;
}


/* 5. Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(8, 8, 10, 0.45);
  backdrop-filter: blur(48px) saturate(130%);
  -webkit-backdrop-filter: blur(48px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(48px) saturate(130%);
  -webkit-backdrop-filter: blur(48px) saturate(130%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.nav__logo {
  display: flex;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
  margin-left: calc(-1 * var(--space-24));
  margin-top: -6px;
}

.nav__logo-mark {
  height: 34px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-32);
}

.nav__links a {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--duration-fast);
}

.nav__links a:hover {
  color: #fff;
}

/* Nav Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  transition: color var(--duration-fast);
}

.nav__dropdown-trigger:hover {
  color: #fff;
}

.nav__dropdown-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
  margin-top: 1px;
}

.nav__dropdown:hover .nav__dropdown-arrow {
  transform: rotate(180deg);
}

/* Bridge to prevent gap between trigger and panel */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  display: none;
}

.nav__dropdown:hover::after {
  display: block;
}

.nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  background: rgba(20, 20, 22, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius-sm);
  padding: var(--space-24) var(--space-32);
  min-width: 360px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--duration-fast) var(--ease-out),
              visibility var(--duration-fast),
              transform var(--duration-fast) var(--ease-out);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.nav__dropdown:hover .nav__dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-heading {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-12);
}

.nav__dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__dropdown-col a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 5px 0;
  transition: color var(--duration-fast);
}

.nav__dropdown-col a:hover {
  color: #fff;
}

/* Mobile Menu Accordion */
.mobile-menu__accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-menu__accordion-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font);
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.mobile-menu__accordion-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.mobile-menu__accordion-trigger.active .mobile-menu__accordion-arrow {
  transform: rotate(180deg);
}

.mobile-menu__accordion-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out);
}

.mobile-menu__accordion-panel.active {
  max-height: 600px;
  padding-top: var(--space-24);
}

.mobile-menu__sublink {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration-fast);
}

.mobile-menu__sublink:hover {
  color: var(--color-accent);
}

.nav__cta {
  display: none;
  align-items: center;
  background: var(--color-accent);
  color: #fff;
  padding: 6px 18px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  transition: background var(--duration-fast);
  flex-shrink: 0;
}

.nav__cta:hover {
  background: var(--color-accent-hover);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 8px 4px;
}

.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav__hamburger.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__hamburger.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}


/* 6. Mobile Menu
   ------------------------------------------------------------ */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  z-index: 999;
  background: rgba(20, 20, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-32);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #fff;
  transition: color var(--duration-fast);
}

.mobile-menu__link:hover {
  color: var(--color-accent);
}

.mobile-menu__cta {
  display: inline-flex;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--space-16);
}


/* 7. Hero Section — Cinematic Full-Viewport
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 0;
  overflow: hidden;
  background: #0a0a0a;
}

/* Background image with ken-burns */
.hero__bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  animation: kenBurns 28s ease-in-out infinite alternate;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -0.5%); }
}

/* Grain texture overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* Cinematic gradient — bottom + corners vignette */
.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.35) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
}

/* Content panel — frosted architectural glass */
.hero__panel {
  position: absolute;
  bottom: var(--space-24);
  left: var(--space-16);
  right: var(--space-16);
  z-index: 10;
  background: rgba(8, 8, 10, 0.5);
  backdrop-filter: blur(48px) saturate(130%);
  -webkit-backdrop-filter: blur(48px) saturate(130%);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0 var(--space-24) var(--space-24);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 8px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: panelReveal 1.1s var(--ease-out-expo) 0.2s both;
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gold accent line at top of panel */
.hero__panel-accent {
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), rgba(212,168,67,0.2));
  border-radius: 2px 2px 0 0;
  margin: 0 calc(-1 * var(--space-24));
  margin-bottom: var(--space-24);
}

.hero__panel-inner {
  display: flex;
  flex-direction: column;
}

/* Header row — slide number + label inline */
.hero__panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.55s both;
}

.hero__slide-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 4px;
  line-height: 1;
}

.hero__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-16);
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.75s both;
}

.hero__subtitle {
  font-size: var(--text-body);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: var(--space-32);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.95s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 1.1s both;
}

/* Ghost button for hero */
.btn--ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--text-small);
  border-radius: 980px;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  background: rgba(255,255,255,0.04);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* Divider line above dots */
.hero__panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: var(--space-24) 0 var(--space-16);
  opacity: 0;
  animation: fadeUp 0.5s var(--ease-out-expo) 1.3s both;
}

/* Carousel dots */
.hero__dots {
  display: flex;
  gap: 6px;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease-out-expo) 1.4s both;
}

.hero__dot {
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.hero__dot--active {
  background: var(--color-accent);
  width: 44px;
}

.hero__dot:hover:not(.hero__dot--active) {
  background: rgba(255,255,255,0.35);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-48);
  right: var(--space-32);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 1.8s both;
}

.hero__scroll span {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}


/* 8. Solutions Section
   ------------------------------------------------------------ */
.solutions {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.hero + .solutions {
  margin-top: 6px;
}


/* 9. Card — Shared Styles
   ------------------------------------------------------------ */
.card {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.card__title {
  font-size: var(--text-headline);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-8);
  color: #fff;
}

.card__title--small {
  font-size: var(--text-title);
}

.card__tagline {
  font-size: var(--text-subtitle);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--space-24);
}

/* Card button — stretched link makes entire card clickable */
.btn--card {
  padding: 10px 24px;
  font-size: 0.8rem;
  position: static;
}

.btn--card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}

.btn--card:hover {
  transform: none;
}

/* Card image containers */
.card__image {
  position: relative;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.03);
}


/* 10. Card Row Grid
   ------------------------------------------------------------ */
.card-row--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}


/* 11. Large Card — Side-by-Side
   ------------------------------------------------------------ */
.card--large {
  min-height: 400px;
}

.card--side-by-side {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-dark);
}

.card--side-by-side > .card__text {
  padding: var(--space-48) var(--space-24);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card--side-by-side > .card__image {
  height: 300px;
}



/* 12. Stacked Card — Text Top, Image Bottom 2/3
   ------------------------------------------------------------ */
.card--medium {
  aspect-ratio: 1 / 1;
}

.card--small {
  aspect-ratio: 1 / 1;
}

.card--stacked {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-dark);
}

.card--stacked > .card__text {
  padding: var(--space-32) var(--space-24);
}

.card--stacked > .card__image {
  flex: 1;
  min-height: 200px;
}



/* 13. Side-by-Side Reverse (image left, text right on desktop)
   ------------------------------------------------------------ */
.card--side-by-side--reverse {
  /* On mobile, stays column (text then image) — reverse only at 768px+ */
}


/* CTA Banner
   ------------------------------------------------------------ */
.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-80) var(--space-24);
  background: var(--color-bg-dark);
}

.cta-banner__title {
  font-size: var(--text-title);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-12);
}

.cta-banner__subtitle {
  font-size: var(--text-body-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-32);
}

.cta-banner__btn {
  padding: 16px 40px;
  font-size: var(--text-body);
}


/* 18. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-tertiary);
  padding: var(--space-64) var(--space-24) var(--space-32);
  margin-top: var(--space-96);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}

.footer__logo {
  color: #fff;
  height: 43px;
  width: auto;
  margin-bottom: var(--space-16);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-32);
}

.footer__heading {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-16);
}

.footer__column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__column li,
.footer__column a {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
  transition: color var(--duration-fast);
}

.footer__column a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-48);
  padding-top: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__bottom p {
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.4);
}


/* 19. Scroll Reveal
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.card-row--2 [data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}


/* 20. Image Protection
   ------------------------------------------------------------ */
.card__image::before,
.hero__bg::before,
.page-hero__bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='150'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='sans-serif' font-size='16' font-weight='700' letter-spacing='4' fill='rgba(255,255,255,0.12)' transform='rotate(-30 150 75)'%3ESTONECRAFT%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 150px;
}

.card img,
.hero__bg img,
.page-hero__bg img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}


/* 21. Placeholder Page
   ------------------------------------------------------------ */
.placeholder {
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-48);
  background: var(--color-bg-light);
}

.placeholder h1 {
  font-size: var(--text-headline);
  margin-bottom: var(--space-16);
}

.placeholder p {
  color: var(--color-text-secondary);
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-32);
}

.placeholder .btn {
  font-size: var(--text-body);
}


/* Page Hero — Sub-page cinematic header
   ------------------------------------------------------------ */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  background: #0a0a0a;
}

.page-hero__bg {
  position: absolute;
  inset: -5%;
  z-index: 0;
  animation: kenBurns 28s ease-in-out infinite alternate;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

.page-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.3) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
}

.page-hero__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) var(--space-24) var(--space-48);
}

.page-hero__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: var(--space-16);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.3s both;
}

.page-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-16);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.5s both;
}

.page-hero__subtitle {
  font-size: var(--text-body-lg);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 540px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.7s both;
}


/* Page Intro — Section heading between hero and content
   ------------------------------------------------------------ */
.page-intro {
  text-align: center;
  padding: var(--space-80) var(--space-24) var(--space-48);
  max-width: 720px;
  margin: 0 auto;
}

.page-intro__title {
  font-size: var(--text-title);
  font-weight: 800;
  margin-bottom: var(--space-16);
}

.page-intro__text {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* Card Row — 3-Column Grid
   ------------------------------------------------------------ */
.card-row--3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.card-row--3 [data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}

.card-row--3 [data-reveal]:nth-child(3) {
  transition-delay: 0.24s;
}


/* Colour Swatches
   ------------------------------------------------------------ */
.colour-swatches {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
}

.colour-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: block;
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast);
  cursor: pointer;
}

.colour-swatch:hover {
  transform: scale(1.15);
  border-color: rgba(255,255,255,0.5);
}


/* Feature Checklist
   ------------------------------------------------------------ */
.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.feature-checklist li {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  padding-left: var(--space-24);
  position: relative;
}

.feature-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}


/* 22. Responsive — 768px+
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  /* Nav */
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__hamburger {
    display: none;
  }

  /* Hero */
  .hero__panel {
    bottom: var(--space-48);
    left: var(--space-48);
    right: auto;
    max-width: 560px;
    padding: 0 var(--space-48) var(--space-32);
  }
  .hero__panel-accent {
    margin: 0 calc(-1 * var(--space-48));
    margin-bottom: var(--space-32);
  }
  .hero__title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
  }
  .hero__scroll {
    display: flex;
  }

  /* Card rows */
  .card-row--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Large side-by-side */
  .card--side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
  }
  .card--side-by-side > .card__text {
    padding: var(--space-64) var(--space-48);
  }
  .card--side-by-side > .card__image {
    height: auto;
  }

  /* Side-by-side reverse: swap order so image is left, text is right */
  .card--side-by-side--reverse > .card__text {
    order: 2;
  }
  .card--side-by-side--reverse > .card__image {
    order: 1;
  }

  /* Stacked cards at desktop: more generous text padding */
  .card--stacked > .card__text {
    padding: var(--space-32) var(--space-32);
  }


  /* Footer */
  .footer__top {
    flex-direction: row;
    gap: var(--space-64);
  }
  .footer__brand {
    flex-shrink: 0;
    min-width: 200px;
  }
  .footer__links {
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* 23. Responsive — 1024px+
   ------------------------------------------------------------ */
@media (min-width: 1024px) {
  .solutions {
    padding: var(--space-16) var(--space-24);
  }

  .card-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-hero {
    height: 65vh;
    min-height: 480px;
  }

  .hero__panel {
    bottom: var(--space-64);
    left: var(--space-64);
    max-width: 620px;
    padding: 0 var(--space-64) var(--space-48);
  }
  .hero__panel-accent {
    margin: 0 calc(-1 * var(--space-64));
    margin-bottom: var(--space-48);
  }
  .hero__title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
  }

  .card--side-by-side > .card__text {
    padding: var(--space-80) var(--space-64);
  }

  .card--stacked > .card__text {
    padding: var(--space-48) var(--space-48);
  }
}


/* 24. Responsive — 1280px+
   ------------------------------------------------------------ */
@media (min-width: 1280px) {
  .solutions {
    padding: var(--space-16) var(--space-48);
  }

  .hero__panel {
    bottom: var(--space-80);
    left: var(--space-80);
    max-width: 680px;
    padding: 0 var(--space-80) var(--space-48);
  }
  .hero__panel-accent {
    margin: 0 calc(-1 * var(--space-80));
    margin-bottom: var(--space-48);
  }

  .card--side-by-side > .card__text {
    padding: var(--space-96) var(--space-80);
  }
}


/* 25. Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  .hero__panel,
  .hero__panel-header,
  .hero__title,
  .hero__subtitle,
  .hero__ctas,
  .hero__panel-divider,
  .hero__dots,
  .hero__scroll,
  .page-hero__label,
  .page-hero__title,
  .page-hero__subtitle {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .hero__bg,
  .page-hero__bg {
    animation: none;
  }
  .hero__scroll-line {
    animation: none;
  }
}
