/* ============================================
   Kindware Ltd. — Complete Redesign
   Bold. Warm. First-class.
   ============================================ */

/* --- Palette & Tokens --- */
:root {
  /* Warm neutrals */
  --cream:          #FDF6EE;
  --oat:            #F5EDE0;
  --sand:           #EDE4D3;
  --parchment:      #F8F1E8;
  --warm-white:     #FFFBF5;

  /* Brand accents */
  --terracotta:     #C4654A;
  --terracotta-dk:  #A8533B;
  --coral:          #D4837D;
  --amber:          #D4944C;
  --cedar:          #8B6B4A;
  --olive:          #7D8C6E;

  /* Darks */
  --hero-bg:        #1A1411;
  --hero-text:      #F8F1E8;
  --dark-section:   #1E1714;
  --espresso:       #2C1810;
  --espresso-mid:   #5C4A3A;
  --espresso-light: #8A7668;

  /* Cards */
  --card-bg:        #FFFDF9;
  --card-border:    rgba(44, 24, 16, 0.06);
  --card-shadow:    0 2px 20px rgba(44, 24, 16, 0.06), 0 1px 6px rgba(44, 24, 16, 0.04);
  --card-shadow-h:  0 12px 40px rgba(44, 24, 16, 0.12), 0 4px 12px rgba(44, 24, 16, 0.06);
  --card-radius:    20px;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --gap:           8rem;

  /* Easings */
  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
a:hover { color: var(--espresso); }
a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

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

/* --- Custom Cursor (desktop only) --- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 10001;
  width: 8px; height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo), background 0.25s, opacity 0.3s;
  opacity: 0;
  mix-blend-mode: exclusion;
}

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 10000;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(196, 101, 74, 0.35);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.45s var(--ease-expo), height 0.45s var(--ease-expo), border-color 0.25s, opacity 0.3s;
  opacity: 0;
}

body.cursor-ready .cursor,
body.cursor-ready .cursor-glow { opacity: 1; }

body.cursor-hover .cursor {
  width: 48px; height: 48px;
  background: rgba(196, 101, 74, 0.12);
  mix-blend-mode: normal;
}
body.cursor-hover .cursor-glow {
  width: 64px; height: 64px;
  border-color: rgba(196, 101, 74, 0.5);
}

@media (pointer: coarse), (hover: none) {
  .cursor, .cursor-glow { display: none !important; }
}

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

/* --- Section Primitives --- */
.section { padding: var(--gap) 0; }
.section--warm { background: var(--parchment); }
.section--dark { background: var(--dark-section); color: var(--hero-text); }

.section-header { margin-bottom: 4rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--espresso-light);
  margin-bottom: 0.75rem; display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--espresso);
}

.section--dark .section-label { color: var(--espresso-light); }
.section--dark .section-heading { color: var(--hero-text); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 500;
  padding: 0.9rem 2.2rem; border-radius: 60px;
  transition: all 0.35s var(--ease-expo);
  white-space: nowrap; position: relative;
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.btn--primary {
  background: var(--terracotta); color: var(--warm-white);
  box-shadow: 0 4px 20px rgba(196, 101, 74, 0.3);
}
.btn--primary:hover {
  background: var(--terracotta-dk); color: var(--warm-white);
  box-shadow: 0 8px 32px rgba(196, 101, 74, 0.4);
}
.btn--primary:not(.magnetic):hover { transform: translateY(-2px); }

.btn--ghost {
  background: transparent; color: var(--hero-text);
  border: 1.5px solid rgba(248, 241, 232, 0.25);
}
.btn--ghost:hover {
  border-color: rgba(248, 241, 232, 0.6);
  color: var(--hero-text);
}
.btn--ghost:not(.magnetic):hover { transform: translateY(-2px); }

.btn--full { width: 100%; }

/* Light context ghost */
.section--dark .btn--ghost { color: var(--hero-text); border-color: rgba(248,241,232,0.2); }
.contact-form .btn--primary { border-radius: 14px; padding: 1rem 2rem; }

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-expo);
}
.card:hover {
  box-shadow: var(--card-shadow-h);
  transform: translateY(-4px);
}

/* --- Tags --- */
.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  background: var(--oat); color: var(--espresso-mid);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.15rem 0;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header--scrolled {
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 16px rgba(44, 24, 16, 0.06);
  border-bottom-color: rgba(44, 24, 16, 0.04);
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--hero-text);
  transition: color 0.4s;
}
.site-header--scrolled .nav-brand { color: var(--espresso); }
.nav-brand:hover { color: inherit; }

.nav-brand-text { font-weight: 600; font-size: 1.05rem; }

.logo-mark {
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-spring);
}
.nav-brand:hover .logo-mark { transform: scale(1.08); }

.nav-menu { display: flex; align-items: center; gap: 0.15rem; }

.nav-link {
  font-size: 0.88rem; font-weight: 450;
  color: rgba(248, 241, 232, 0.7);
  padding: 0.5rem 1rem; border-radius: 8px;
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover { color: var(--hero-text); background: rgba(255,255,255,0.06); }

.site-header--scrolled .nav-link { color: var(--espresso-mid); }
.site-header--scrolled .nav-link:hover { color: var(--espresso); background: rgba(44,24,16,0.04); }

.nav-link--cta { color: var(--coral); font-weight: 500; }
.site-header--scrolled .nav-link--cta { color: var(--terracotta); }
.site-header--scrolled .nav-link--cta:hover { background: rgba(196,101,74,0.08); color: var(--terracotta); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }

.nav-toggle-bar {
  display: block; width: 24px; height: 2px;
  background: var(--hero-text); border-radius: 2px;
  transition: transform 0.35s var(--ease-expo), opacity 0.25s, background 0.3s;
}
.site-header--scrolled .nav-toggle-bar { background: var(--espresso); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--hero-bg);
  overflow: hidden;
  padding: 8rem 0 6rem;
}

/* Gradient orbs */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; }

.orb {
  position: absolute; border-radius: 50%;
  will-change: transform;
}

.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196, 101, 74, 0.35) 0%, transparent 70%);
  top: -15%; right: -8%;
  filter: blur(80px);
  animation: orb-drift-1 22s ease-in-out infinite;
}
.orb--2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(212, 148, 76, 0.3) 0%, transparent 70%);
  top: 20%; left: -10%;
  filter: blur(70px);
  animation: orb-drift-2 18s ease-in-out infinite;
}
.orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212, 131, 125, 0.25) 0%, transparent 70%);
  bottom: 5%; left: 35%;
  filter: blur(60px);
  animation: orb-drift-3 25s ease-in-out infinite;
}
.orb--4 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(125, 140, 110, 0.2) 0%, transparent 70%);
  top: -5%; left: 25%;
  filter: blur(50px);
  animation: orb-drift-4 20s ease-in-out infinite;
}
.orb--5 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 251, 245, 0.1) 0%, transparent 70%);
  bottom: 15%; right: 12%;
  filter: blur(40px);
  animation: orb-drift-5 15s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.06); }
  66% { transform: translate(-30px, 30px) scale(0.94); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 40px) scale(1.08); }
  66% { transform: translate(35px, -20px) scale(0.96); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(0.95); }
  66% { transform: translate(-40px, 40px) scale(1.05); }
}
@keyframes orb-drift-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 50px); }
}
@keyframes orb-drift-5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -30px); }
}

/* Curve transition */
.hero-curve {
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2;
  line-height: 0;
}
.hero-curve svg { width: 100%; height: 120px; }

/* Hero content */
.hero-inner { position: relative; z-index: 3; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hero-text);
  margin-bottom: 2rem;
}

.hero-line { display: block; overflow: hidden; }

.hero-word {
  display: inline-block; overflow: hidden;
  padding: 0 0.15em 0 0;
}
.hero-word-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: word-rise 0.9s var(--ease-expo) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.2s);
}

.hero-word--accent .hero-word-inner {
  color: var(--amber);
}

@keyframes word-rise {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7; color: rgba(248, 241, 232, 0.6);
  max-width: 520px; margin-bottom: 2.5rem;
  opacity: 0; transform: translateY(20px);
  animation: fade-up 0.8s var(--ease-expo) 0.75s forwards;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fade-up 0.8s var(--ease-expo) 0.95s forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 3rem; left: 50%; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 0; animation: fade-up 0.6s var(--ease-expo) 1.4s forwards;
}

.scroll-cue-text {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(248, 241, 232, 0.35);
}

.scroll-cue-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(196,101,74,0.6), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--sand);
  overflow: hidden;
  background: var(--cream);
}

.marquee-track {
  display: flex; align-items: center; gap: 2.5rem;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--espresso-light);
}

.marquee-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--terracotta); opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ============================================
   ETHOS
   ============================================ */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ethos-card {
  padding: 2.25rem; position: relative; overflow: hidden;
}

.ethos-card-number {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 300;
  color: var(--sand); line-height: 1;
  margin-bottom: 1.25rem; display: block;
}

.ethos-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 400;
  color: var(--espresso);
  margin-bottom: 0.6rem;
}

.ethos-card-text {
  font-size: 0.92rem; line-height: 1.65;
  color: var(--espresso-mid);
}

.ethos-card-line {
  position: absolute; bottom: 0; left: 2.25rem; right: 2.25rem;
  height: 2px;
  background: linear-gradient(to right, var(--terracotta), var(--amber));
  opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity 0.4s, transform 0.6s var(--ease-expo);
}
.ethos-card:hover .ethos-card-line {
  opacity: 0.5; transform: scaleX(1);
}

/* ============================================
   WHAT WE BUILD
   ============================================ */
.build-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.build-text {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--espresso-mid);
  margin-bottom: 2rem;
}

.build-capabilities {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-bottom: 2rem;
}

.build-cap {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 450;
  color: var(--espresso);
}

.build-cap-marker {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta); opacity: 0.6;
  flex-shrink: 0;
}

.build-question {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400;
  color: var(--espresso); line-height: 1.5;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-expo);
}
.portfolio-row:last-child { margin-bottom: 0; }
.portfolio-row:hover {
  box-shadow: var(--card-shadow-h);
  transform: translateY(-4px);
}

.portfolio-row--reverse { direction: rtl; }
.portfolio-row--reverse > * { direction: ltr; }

.portfolio-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  position: relative; overflow: hidden;
}

.portfolio-visual--boop { background: linear-gradient(135deg, #FDF0EC, #FCEAE5); }
.portfolio-visual--dwp { background: linear-gradient(135deg, #F0F2EC, #E8EDE2); }
.portfolio-visual--accountability { background: linear-gradient(135deg, #FDF4EA, #FAEBD8); }
.portfolio-visual--doli { background: linear-gradient(135deg, #FDF0EC, #F8E8E2); }

.portfolio-art {
  width: 70%; height: auto;
  transition: transform 0.6s var(--ease-expo);
}
.portfolio-row:hover .portfolio-art { transform: scale(1.06); }

.portfolio-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }

.portfolio-name {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 400;
  margin-bottom: 0.25rem;
}

.portfolio-tagline {
  font-size: 0.95rem; font-weight: 450;
  color: var(--terracotta); margin-bottom: 1rem;
}

.portfolio-desc {
  font-size: 0.92rem; line-height: 1.7;
  color: var(--espresso-mid);
  margin-bottom: 1.25rem;
}

.portfolio-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }

.portfolio-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--terracotta);
}
.portfolio-link:hover { color: var(--espresso); }

.portfolio-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-expo);
}
.portfolio-link:hover .portfolio-arrow { transform: translateX(4px); }

/* ============================================
   PROCESS
   ============================================ */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process-step { padding-right: 2rem; }
.process-step:last-child { padding-right: 0; }

.process-step-head {
  display: flex; align-items: center;
  margin-bottom: 1.5rem;
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 500;
  color: var(--terracotta);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(196, 101, 74, 0.25);
  border-radius: 50%; flex-shrink: 0;
}

.process-connector {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(196,101,74,0.2), rgba(196,101,74,0.05));
  margin-left: 1rem;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--espresso);
  margin-bottom: 0.5rem;
}

.process-text {
  font-size: 0.9rem; line-height: 1.65;
  color: var(--espresso-mid);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-featured {
  text-align: center;
  max-width: 780px; margin: 0 auto 4rem;
  padding: 0 1rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300; font-style: italic;
  line-height: 1.35;
  color: var(--espresso);
  margin-bottom: 1.5rem;
}

.testimonial-attr {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}

.testimonial-dash {
  width: 24px; height: 1px;
  background: var(--espresso-light);
}

.testimonial-name {
  font-size: 0.88rem; font-weight: 450;
  color: var(--espresso-light);
  font-style: italic;
}

.testimonial-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 780px; margin: 0 auto;
}

.testimonial-small {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

.testimonial-small p {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  line-height: 1.5;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.testimonial-small-attr {
  font-size: 0.82rem;
  color: var(--espresso-light);
  font-style: italic;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; line-height: 1.2;
  color: var(--hero-text);
  margin-bottom: 1.25rem;
}

.contact-text {
  font-size: 1rem; line-height: 1.75;
  color: rgba(248, 241, 232, 0.55);
  margin-bottom: 2rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--amber);
  border-bottom: 1px solid rgba(212, 148, 76, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.contact-email:hover { color: var(--hero-text); border-bottom-color: var(--hero-text); }

/* Form on dark */
.section--dark .form-label {
  font-size: 0.85rem; font-weight: 450;
  color: rgba(248, 241, 232, 0.5);
  margin-bottom: 0.5rem; display: block;
}

.section--dark .form-input {
  width: 100%; font-family: var(--font-body);
  font-size: 0.95rem; padding: 0.9rem 1rem;
  border: 1.5px solid rgba(248, 241, 232, 0.1);
  border-radius: 12px;
  background: rgba(248, 241, 232, 0.04);
  color: var(--hero-text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.section--dark .form-input::placeholder { color: rgba(248, 241, 232, 0.25); }
.section--dark .form-input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 101, 74, 0.15);
}
.section--dark .form-textarea { resize: vertical; min-height: 130px; }

.form-group { margin-bottom: 1.25rem; }

/* Light form fallback */
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--espresso); margin-bottom: 0.4rem; }
.form-input {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.85rem 1rem; border: 1.5px solid var(--sand);
  border-radius: 12px; background: var(--warm-white); color: var(--espresso);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input::placeholder { color: var(--espresso-light); opacity: 0.5; }
.form-input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(196,101,74,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--sand);
  background: var(--cream);
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; }

.footer-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--espresso-light);
}

.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.85rem; color: var(--espresso-light); }
.footer-nav a:hover { color: var(--espresso); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease-expo),
    transform 0.8s var(--ease-expo);
  transition-delay: calc(var(--reveal-i, 0) * 0.08s);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-word-inner { animation: none; transform: none; }
  .hero-sub, .hero-actions, .scroll-cue { opacity: 1; transform: none; animation: none; }
  .orb { animation: none; }
  .marquee-track { animation: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .portfolio-row { grid-template-columns: 1fr; }
  .portfolio-row--reverse { direction: ltr; }
  .portfolio-visual { min-height: 240px; }

  .process-track { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-step { padding-right: 0; }
  .process-connector { display: none; }

  .build-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact-layout { grid-template-columns: 1fr; gap: 3rem; max-width: 560px; }

  .testimonial-row { grid-template-columns: 1fr; max-width: 500px; }
}

@media (max-width: 768px) {
  :root { --gap: 5rem; }

  .container { padding: 0 1.5rem; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: 0;
    width: min(320px, 85vw); height: 100vh; height: 100svh;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 5rem 2rem 2rem;
    background: var(--cream);
    box-shadow: -8px 0 40px rgba(44, 24, 16, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-expo);
    z-index: 999;
  }
  .nav-menu--open { transform: translateX(0); }
  .nav-menu .nav-link { color: var(--espresso-mid); font-size: 1.1rem; padding: 0.8rem 1rem; width: 100%; }
  .nav-menu .nav-link--cta { color: var(--terracotta); }

  .hero {
    padding: 6rem 0 5rem;
    min-height: 100vh; min-height: 100svh;
  }
  .hero-headline { font-size: clamp(2.4rem, 11vw, 3.8rem); }
  .hero-curve svg { height: 60px; }
  .scroll-cue { bottom: 2rem; }

  .marquee { padding: 1rem 0; }

  .section-heading { font-size: clamp(1.7rem, 5vw, 2.4rem); }

  .ethos-grid { grid-template-columns: 1fr; }
  .build-capabilities { grid-template-columns: 1fr; }

  .process-track { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
