/* ============================================================
   Rong Wei — Computer Systems Design & Integrated Technology
   Design: "Woven Canvas" — Terracotta + Slate + Cream
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --clay: #D4764A;
  --clay-deep: #B8603A;
  --clay-light: #E8A882;
  --clay-wash: #FDF0E8;
  --slate: #3B4A5A;
  --slate-light: #5B6B7C;
  --slate-dark: #2A3642;
  --cream: #F7F3ED;
  --cream-warm: #F0EAE0;
  --charcoal: #1E242B;
  --white: #FFFFFF;
  --muted: #5B6B7C;
  --border-soft: #E5DED5;
  --border-warm: #D9CEC0;
  --shadow-sm: 0 1px 3px rgba(30,36,43,0.06);
  --shadow-md: 0 4px 16px rgba(30,36,43,0.08);
  --shadow-lg: 0 12px 40px rgba(30,36,43,0.10);
  --shadow-xl: 0 24px 64px rgba(30,36,43,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --max-width: 1280px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--clay);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--clay-deep); }
a:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--charcoal);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--clay);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus {
  top: 0.5rem;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  padding: 1.2rem 0;
}
.site-nav.scrolled {
  background: rgba(247, 243, 237, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--charcoal);
  text-decoration: none;
}
.nav-brand-icon {
  width: 38px;
  height: 38px;
  background: var(--clay);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}
.site-nav:not(.scrolled) .nav-brand { color: var(--white); }
.site-nav:not(.scrolled) .nav-brand-icon { background: var(--white); color: var(--clay); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width var(--transition-base);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }
.site-nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.9); }
.site-nav:not(.scrolled) .nav-links a::after { background: var(--white); }
.site-nav:not(.scrolled) .nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--clay) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: background var(--transition-fast), transform var(--transition-fast) !important;
}
.nav-cta:hover {
  background: var(--clay-deep) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }
.site-nav:not(.scrolled) .nav-cta {
  background: var(--white) !important;
  color: var(--clay) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}
.site-nav:not(.scrolled) .hamburger span { background: var(--white); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.mobile-menu.active {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.mobile-menu a:hover { color: var(--clay); }
.mobile-menu .mobile-cta {
  background: var(--clay);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
}
.mobile-menu .mobile-cta:hover { color: var(--white); background: var(--clay-deep); }

/* --- Hero — Diagonal Split --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--slate);
}

.hero-diagonal {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%);
  background: linear-gradient(160deg, var(--clay) 0%, var(--clay-deep) 70%, #9A4D2E 100%);
}
.hero-diagonal::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.hero-diagonal::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 6px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  padding-top: 3rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero-title em {
  font-style: normal;
  color: var(--cream-warm);
}
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--white);
  color: var(--clay);
}
.btn-primary:hover {
  background: var(--cream);
  color: var(--clay-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--slate);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--slate-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb {
  position: relative;
  width: 340px;
  height: 340px;
}
.hero-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  animation: orbPulse 6s ease-in-out infinite;
}
.hero-orb-ring:nth-child(1) {
  inset: 0;
  animation-delay: 0s;
}
.hero-orb-ring:nth-child(2) {
  inset: 40px;
  border-color: rgba(255,255,255,0.2);
  animation-delay: 1s;
}
.hero-orb-ring:nth-child(3) {
  inset: 80px;
  border-color: rgba(255,255,255,0.25);
  animation-delay: 2s;
}
.hero-orb-ring:nth-child(4) {
  inset: 120px;
  background: rgba(255,255,255,0.08);
  border: none;
  animation-delay: 3s;
}
.hero-orb-icon {
  position: absolute;
  inset: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb-icon svg {
  width: 60px;
  height: 60px;
  fill: var(--white);
  opacity: 0.9;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.7; }
}

/* --- Section Common --- */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin-bottom: 0.6rem;
}
.section-title {
  margin-bottom: 0.8rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Capabilities — Irregular Mosaic --- */
.capabilities {
  background: var(--white);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.mosaic-item {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.mosaic-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  border: 1px solid var(--border-soft);
}
.mosaic-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--clay);
  transition: height var(--transition-slow);
  border-radius: 0 0 4px 0;
}
.mosaic-item:hover::before { height: 40%; }

.mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.mosaic-item:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.mosaic-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.mosaic-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.mosaic-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }
.mosaic-item:nth-child(7) { grid-column: span 2; grid-row: span 1; }
.mosaic-item:nth-child(8) { grid-column: span 2; grid-row: span 2; }

.mosaic-icon {
  width: 44px;
  height: 44px;
  background: var(--clay-wash);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  color: var(--clay);
}
.mosaic-icon svg { width: 22px; height: 22px; fill: currentColor; }

.mosaic-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.mosaic-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.mosaic-featured {
  background: var(--slate) !important;
  color: var(--white) !important;
}
.mosaic-featured h3 { color: var(--white); }
.mosaic-featured p { color: rgba(255,255,255,0.75); }
.mosaic-featured .mosaic-icon { background: rgba(255,255,255,0.12); color: var(--clay-light); }
.mosaic-featured::before { background: var(--clay-light); }
.mosaic-featured:hover { background: var(--slate-dark) !important; border-color: transparent; }

/* --- Process — Horizontal Deck --- */
.process {
  background: var(--cream);
  overflow: hidden;
}
.deck-wrapper {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.deck-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0.5rem;
  scroll-behavior: smooth;
}
.deck-track::-webkit-scrollbar { display: none; }

.deck-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
  border: 1px solid var(--border-soft);
}
.deck-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.deck-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.deck-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.deck-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.deck-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--cream-warm);
  line-height: 1;
  pointer-events: none;
}

.deck-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.deck-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.deck-nav button:hover {
  background: var(--clay);
  color: var(--white);
  border-color: var(--clay);
}
.deck-nav button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

/* --- Results — Animated Ring Charts --- */
.results {
  background: var(--white);
}
.rings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.ring-card {
  text-align: center;
  padding: 2rem 1rem;
}
.ring-chart {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.2rem;
}
.ring-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: var(--cream-warm);
  stroke-width: 8;
}
.ring-fill {
  fill: none;
  stroke: var(--clay);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--charcoal);
}
.ring-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.ring-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* --- Company Story — Milestone Timeline --- */
.story {
  background: var(--cream);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-warm);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  padding-right: 3rem;
  text-align: right;
}
.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 3rem;
}
.timeline-dot {
  position: absolute;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: var(--clay);
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--clay);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -9px; }
.timeline-item:nth-child(even) .timeline-dot { left: -9px; }
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.06em;
}
.timeline-item h3 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.4rem;
}
.timeline-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Industry Tag Cloud --- */
.industries {
  background: var(--white);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.tag-group {
  text-align: center;
}
.tag-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.tag-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--slate);
  transition: all var(--transition-fast);
  cursor: default;
}
.tag:hover {
  background: var(--clay);
  color: var(--white);
  transform: translateY(-1px);
}
.tag-xl { font-size: 1.3rem; padding: 0.5rem 1.2rem; font-weight: 700; }
.tag-lg { font-size: 1rem; padding: 0.45rem 1.1rem; font-weight: 600; }
.tag-md { font-size: 0.85rem; }
.tag-sm { font-size: 0.75rem; }

/* --- CTA Full-Bleed --- */
.cta-full {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
  background: var(--slate);
}
.cta-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--clay) 0%, transparent 60%),
    linear-gradient(225deg, var(--clay-deep) 0%, transparent 50%);
  opacity: 0.25;
}
.cta-full .container {
  position: relative;
  z-index: 2;
}
.cta-full h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-full p {
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.cta-full .btn-primary {
  background: var(--clay);
  color: var(--white);
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
}
.cta-full .btn-primary:hover {
  background: var(--clay-deep);
  color: var(--white);
}

/* --- Contact — Split Layout --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.contact-info h2 {
  margin-bottom: 1rem;
}
.contact-info > p {
  color: var(--muted);
  margin-bottom: 2rem;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.contact-details svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--clay);
}
.contact-details strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(212,118,74,0.15);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  background: var(--clay);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.form-submit:hover {
  background: var(--clay-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.form-submit:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.active { display: block; }
.form-success svg {
  width: 48px;
  height: 48px;
  color: #4CAF50;
  margin-bottom: 1rem;
}
.form-success h3 { margin-bottom: 0.5rem; }

/* --- Footer --- */
.site-footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-top: 0.8rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--clay-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--clay-light); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* --- Legal Pages (Privacy / Terms) --- */
.legal-page {
  background: var(--white);
  min-height: 100vh;
}
.legal-hero {
  background: var(--slate);
  padding: 7rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--clay) 0%, transparent 70%);
  opacity: 0.15;
}
.legal-hero .container { position: relative; z-index: 2; }
.legal-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.legal-hero .legal-updated {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.legal-body h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--slate);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--slate);
}
.legal-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.legal-body ul, .legal-body ol {
  margin-bottom: 1rem;
  padding-left: 1.8rem;
}
.legal-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.legal-body a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clay);
  font-weight: 600;
  margin-top: 2.5rem;
  text-decoration: none;
  font-size: 0.95rem;
}
.legal-back:hover { color: var(--clay-deep); }

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.visible { opacity: 1; }
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual { display: none; }
  .hero-text { text-align: center; padding-top: 4rem; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }

  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic-item:nth-child(8) { grid-column: span 2; grid-row: span 1; }

  .rings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
  .hero-text { padding-top: 3rem; }

  .mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0.75rem;
  }
  .mosaic-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .rings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .timeline::before { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 2.5rem;
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: calc(1rem - 7px);
    right: auto;
  }

  .deck-card { flex: 0 0 280px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .container { padding: 0 1.25rem; }

  .contact-form-wrap { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .rings-grid { grid-template-columns: 1fr; }
  .tag-cloud { gap: 1rem; }
}
