/* ============================================
   EWUS Technologies: one page site
   Vibrant, gradient based, light 3D cards.
   Blue, green and pink define each section.
   ============================================ */

:root {
  --bg: #FAFAF9;
  --band: #F2F1EE;
  --text: #141414;
  --muted: #52565C;
  --faint: #7B7F86;
  --accent: #060F32;
  --accent-hover: #0C1948;
  --line: rgba(20, 20, 20, 0.12);
  --line-soft: rgba(20, 20, 20, 0.08);
  --radius: 6px;
  --maxw-text: 680px;
  --maxw-page: 1120px;
  --space-section: 96px;
  --space-section-m: 56px;

  --blue-l: #E6F1FB;   --blue: #378ADD;   --blue-d: #185FA5;
  --green-l: #EAF3DE;  --green: #5DCAA5;  --green-d: #0F6E56;
  --pink-l: #FBEAF0;   --pink: #D4537E;   --pink-d: #993556;
  --card-radius: 16px;

  --navy-deep: #0F2E52;   --navy-mid: #3D5A80;
  --forest-deep: #164430; --forest-mid: #3E7A5E;
  --wine-deep: #6E2842;   --wine-mid: #9B4A68;
  --glass-fill: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .btn, .brand-name {
  font-family: 'Space Grotesk', 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1rem; margin-bottom: 6px; }

p { color: var(--text); }
p + p { margin-top: 14px; }

a { color: var(--accent); }
a:not(.btn):hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* focus visibility, accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 12px 20px;
  z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw-page); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--maxw-text); }
.prose-center { max-width: var(--maxw-text); margin: 0 auto; text-align: left; }

.section { padding: var(--space-section-m) 0; }
.section.band { background: var(--band); }
.section-head { max-width: var(--maxw-text); margin-bottom: 44px; }
.eyebrow {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px;
}

/* section titles take on their own section's tone, premium touch */
#commit .section-head h2 { color: var(--forest-deep); }
#commit .section-head .eyebrow { color: var(--forest-mid); }
#where .section-head h2 { color: var(--navy-deep); }
#where .section-head .eyebrow { color: var(--navy-mid); }
#build .section-head h2 { color: var(--wine-deep); }
#build .section-head .eyebrow { color: var(--wine-mid); }
#process .section-head h2 { color: var(--forest-deep); }
#process .section-head .eyebrow { color: var(--forest-mid); }
#contact .section-head h2 { color: var(--wine-deep); }
#contact .section-head .eyebrow { color: var(--wine-mid); }

@media (min-width: 860px) {
  .section { padding: var(--space-section) 0; }
}

hr.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: none;
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name { font-size: 27px; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; color: #2C3A50; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) {
  color: var(--muted); font-size: 0.92rem; font-weight: 500; text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--accent); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 40px; height: 40px; font-size: 1.2rem; color: var(--text); cursor: pointer;
}

@media (max-width: 780px) {
  .nav-links { position: absolute; left: 0; right: 0; top: 68px; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    padding: 8px 24px 20px; gap: 14px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-block; overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--pink-d), var(--blue)); background-size: 220% 220%;
  color: #fff; padding: 14px 28px; border-radius: 10px; border: none;
  font-size: 0.98rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.3s cubic-bezier(.16,.8,.24,1), box-shadow 0.3s cubic-bezier(.16,.8,.24,1);
  box-shadow: 0 10px 20px -6px rgba(153, 53, 86, 0.45);
  animation: gradientShift 6s ease-in-out infinite;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-120%) skewX(-15deg);
}
.btn:hover::after { animation: shine 0.9s ease forwards; }
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 30px -8px rgba(153, 53, 86, 0.55); color: #fff; text-decoration: none; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 0; }
.hero-inner { display: flex; flex-direction: column; }
.hero-text { padding: 40px 24px 32px; max-width: 640px; }
.hero-eyebrow { font-weight: 600; color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero-text .btn { margin-top: 26px; }
.hero-note {
  margin-top: 28px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.42); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px -14px rgba(6, 15, 50, 0.3);
  font-size: 0.92rem; color: var(--text); max-width: 60ch;
}
.hero {
  background: linear-gradient(135deg, var(--blue-l) 0%, var(--pink-l) 55%, var(--green-l) 100%);
  background-size: 200% 200%; animation: gradientShift 14s ease-in-out infinite;
}
.hero-media {
  width: 100%; aspect-ratio: 16 / 9; background: var(--band); overflow: hidden;
  border-radius: var(--card-radius); box-shadow: 0 24px 48px -18px rgba(6, 15, 50, 0.35);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px) {
  .hero-inner { position: relative; min-height: 560px; display: block; padding: 40px; }
  .hero-media { position: absolute; inset: 40px; width: calc(100% - 80px); height: calc(100% - 80px); aspect-ratio: auto; }
  .hero-text {
    position: relative; z-index: 2; padding: 50px 40px 50px 6vw;
    max-width: 46%;
  }
}

/* ---------- commit (section 2) ---------- */
#commit { background: linear-gradient(180deg, var(--green-l), #fff); }
.commit-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: var(--maxw-page); }
.commit-item {
  display: flex; gap: 16px; align-items: flex-start; background: var(--glass-fill);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--card-radius); padding: 20px; border: 0.5px solid rgba(15, 110, 86, 0.2);
  box-shadow: 0 16px 30px -18px rgba(15, 110, 86, 0.28);
}
.commit-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.commit-icon svg { width: 22px; height: 22px; }
.commit-item p { color: var(--muted); max-width: 46ch; }

.commit-item:nth-child(4n+1) .commit-icon { background: linear-gradient(135deg, var(--blue), var(--blue-d)); box-shadow: 0 8px 16px -4px rgba(12, 68, 124, 0.5); }
.commit-item:nth-child(4n+2) .commit-icon { background: linear-gradient(135deg, var(--green), var(--green-d)); box-shadow: 0 8px 16px -4px rgba(15, 110, 86, 0.5); }
.commit-item:nth-child(4n+3) .commit-icon { background: linear-gradient(135deg, #ED93B1, var(--pink-d)); box-shadow: 0 8px 16px -4px rgba(114, 36, 62, 0.5); }
.commit-item:nth-child(4n+4) .commit-icon { background: linear-gradient(135deg, #EF9F27, #854F0B); box-shadow: 0 8px 16px -4px rgba(133, 79, 11, 0.5); }

@media (min-width: 700px) {
  .commit-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- work cards (section 3) ---------- */
.work-list { display: flex; flex-direction: column; gap: 40px; }
.work-item {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  background: var(--glass-fill); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--card-radius); padding: 24px;
}
.work-media {
  aspect-ratio: 3 / 2; background: var(--band); overflow: hidden; border-radius: 14px;
  border: 0.5px solid rgba(6, 15, 50, 0.08);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-body { max-width: var(--maxw-text); }
.work-status {
  display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 20px;
}
.work-body p { color: var(--muted); }
.work-products { margin-top: 10px; }
.work-products p { margin-top: 8px; }
.work-products b { color: var(--text); }

.work-item:nth-child(3n+1) { border: 0.5px solid rgba(12, 68, 124, 0.2); box-shadow: 0 20px 40px -22px rgba(12, 68, 124, 0.3); }
.work-item:nth-child(3n+1) .work-status { background: var(--blue-l); color: var(--blue-d); }
.work-item:nth-child(3n+2) { border: 0.5px solid rgba(15, 110, 86, 0.2); box-shadow: 0 20px 40px -22px rgba(15, 110, 86, 0.3); }
.work-item:nth-child(3n+2) .work-status { background: var(--green-l); color: var(--green-d); }
.work-item:nth-child(3n+3) { border: 0.5px solid rgba(114, 36, 62, 0.2); box-shadow: 0 20px 40px -22px rgba(114, 36, 62, 0.3); }
.work-item:nth-child(3n+3) .work-status { background: var(--pink-l); color: var(--pink-d); }

@media (min-width: 860px) {
  .work-item { grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px; }
  .work-item.reverse .work-media { order: 2; }
}

/* ---------- where we work (section 4) ---------- */
#where { background: linear-gradient(180deg, var(--blue-l), #fff); }
.where-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.where-list h4 { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--blue-d); margin-bottom: 10px; }
.where-list p { color: var(--muted); }
.where-media {
  aspect-ratio: 4 / 3; background: var(--band); overflow: hidden; border-radius: var(--card-radius);
  border: 0.5px solid rgba(12, 68, 124, 0.15); box-shadow: 0 24px 44px -20px rgba(12, 68, 124, 0.4);
}
.where-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px) {
  .where-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ---------- how we build (section 5) ---------- */
#build { background: linear-gradient(180deg, var(--pink-l), #fff); }
.build-list { display: flex; flex-direction: column; gap: 20px; max-width: var(--maxw-page); }
.build-list > div {
  background: var(--glass-fill); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--card-radius); padding: 24px;
  border: 0.5px solid rgba(114, 36, 62, 0.2); box-shadow: 0 18px 34px -20px rgba(114, 36, 62, 0.28);
}
.build-list p { color: var(--muted); max-width: var(--maxw-text); }
.build-media {
  aspect-ratio: 3 / 2; background: var(--band); overflow: hidden; border-radius: var(--card-radius);
  margin-bottom: 40px; max-width: var(--maxw-page); border: 0.5px solid rgba(114, 36, 62, 0.15);
  box-shadow: 0 24px 44px -20px rgba(114, 36, 62, 0.4);
}
.build-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- how we work (section 6): editorial numbered list, no timeline ---------- */
#process { background: linear-gradient(180deg, var(--green-l), var(--blue-l)); }

.steps-editorial { display: flex; flex-direction: column; max-width: var(--maxw-page); }
.estep {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid rgba(6, 15, 50, 0.1);
}
.estep:last-child { border-bottom: none; }
.estep-num {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 1.9rem; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.estep:nth-child(3n+2) .estep-num { background: linear-gradient(135deg, var(--green), var(--green-d)); -webkit-background-clip: text; background-clip: text; }
.estep:nth-child(3n) .estep-num { background: linear-gradient(135deg, var(--pink), var(--pink-d)); -webkit-background-clip: text; background-clip: text; }
.estep-body h3 { margin-bottom: 6px; }
.estep-body p { color: var(--muted); }
.estep-body .you-get { margin-top: 10px; font-size: 0.92rem; color: var(--faint); font-style: italic; }

@media (min-width: 860px) {
  .estep { grid-template-columns: 68px 1fr; padding: 30px 0; }
  .estep-num { font-size: 2.1rem; }
}

/* ---------- who we are (section 7) ---------- */
.who-body p { color: var(--muted); max-width: var(--maxw-text); }

/* ---------- talk to us (section 8) ---------- */
#contact { background: linear-gradient(135deg, var(--blue-l), var(--pink-l)); }
#contact .section-head { margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.contact-intro p { color: var(--muted); max-width: var(--maxw-text); }
.contact-channels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.contact-form {
  background: var(--glass-fill); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--card-radius); padding: 28px;
  border: 0.5px solid var(--glass-border); box-shadow: 0 24px 48px -22px rgba(6, 15, 50, 0.28);
}
.field-group { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; padding: 12px 14px;
  border: 0.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue-l); }
.form-note { margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-note:empty { display: none; }

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- footer, matches the main page's light vibrant system ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--green-l), var(--blue-l) 50%, var(--pink-l));
  padding: 64px 0 32px; margin-top: 0; border-top: 0.5px solid rgba(6, 15, 50, 0.08);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
.footer-col { padding: 0; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 12px; }
.footer-col p { color: var(--muted); font-size: 0.94rem; }
.footer-col p b { color: var(--text); }
.footer-col p + p { margin-top: 6px; }
.footer-legal { border-top: 0.5px solid rgba(6, 15, 50, 0.12); padding-top: 24px; font-size: 0.85rem; color: var(--faint); text-align: center; }
.footer-legal p + p { margin-top: 8px; }
.footer-legal a { color: var(--blue-d); text-decoration: underline; }
.footer-legal-links { display: flex; justify-content: center; gap: 16px; }
.footer-legal-links a { margin-right: 0; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
}

/* ---------- simple pages: privacy / terms / 404 ---------- */
.simple-page { padding: var(--space-section-m) 0 var(--space-section); }
.simple-page .prose h2 { margin-top: 40px; }
.simple-page .prose p { color: var(--muted); }
.simple-page .prose ul { margin: 12px 0 12px 20px; color: var(--muted); }
.simple-page .prose li { margin-bottom: 6px; }

.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .code { font-family: 'Space Grotesk', sans-serif; font-size: 4rem; font-weight: 700; color: var(--accent); }

/* ---------- reveal on scroll, staggered, premium easing ---------- */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-15deg); } 100% { transform: translateX(220%) skewX(-15deg); } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.reveal {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
}
.js .reveal { opacity: 0; transform: translateY(22px) scale(0.97); }
.js .reveal.in { opacity: 1; transform: none; }

.commit-grid .commit-item:nth-child(1) { transition-delay: 0s; }
.commit-grid .commit-item:nth-child(2) { transition-delay: 0.08s; }
.commit-grid .commit-item:nth-child(3) { transition-delay: 0.16s; }
.commit-grid .commit-item:nth-child(4) { transition-delay: 0.24s; }
.work-list .work-item:nth-child(1) { transition-delay: 0s; }
.work-list .work-item:nth-child(2) { transition-delay: 0.1s; }
.work-list .work-item:nth-child(3) { transition-delay: 0.2s; }
.steps-editorial .estep:nth-child(1) { transition-delay: 0.02s; } .steps-editorial .estep:nth-child(2) { transition-delay: 0.06s; }
.steps-editorial .estep:nth-child(3) { transition-delay: 0.1s; } .steps-editorial .estep:nth-child(4) { transition-delay: 0.14s; }
.steps-editorial .estep:nth-child(5) { transition-delay: 0.18s; } .steps-editorial .estep:nth-child(6) { transition-delay: 0.22s; }
.steps-editorial .estep:nth-child(7) { transition-delay: 0.26s; }
.js .estep.reveal { transform: translateX(-16px); }
.js .estep.reveal.in { transform: none; }
.build-list > .reveal:nth-child(1) { transition-delay: 0s; }
.build-list > .reveal:nth-child(2) { transition-delay: 0.1s; }
.build-list > .reveal:nth-child(3) { transition-delay: 0.2s; }

/* card lift on hover, luxury feel */
.commit-item, .work-item, .build-list > div, .contact-form {
  transition: transform 0.35s cubic-bezier(.16,.8,.24,1), box-shadow 0.35s cubic-bezier(.16,.8,.24,1);
}
.commit-item:hover, .work-item:hover, .build-list > div:hover {
  transform: translateY(-6px);
}
.commit-icon { transition: transform 0.4s cubic-bezier(.16,.8,.24,1); }
.commit-item:hover .commit-icon { transform: scale(1.05); }

@media (min-width: 860px) {
  .hero-media { animation: floatY 7s ease-in-out infinite; }
}

/* ---------- image placeholder state (until real photos land) ---------- */
.hero-media, .work-media, .where-media, .build-media {
  display: flex; align-items: center; justify-content: center;
}
.img-pending {
  font-size: 0.78rem; color: var(--faint); text-align: center; padding: 12px;
}
