@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --ink: #071624;
  --midnight: #0b2236;
  --brass: #c89a4b;
  --ember: #e25b3d;
  --cloud: #f4f5f3;
  --body: #33404c;
  --line: rgba(7, 22, 36, 0.14);
}

html { scroll-padding-top: 84px; }
body {
  background: var(--cloud) !important;
  color: var(--body) !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body.font-display { font-family: 'Source Sans 3', sans-serif !important; }
h1, h2, h3, h4, h5, h6, nav, button, .font-display {
  font-family: 'Manrope', sans-serif !important;
}
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.035em !important; }
p { text-wrap: pretty; }
a, button, input, textarea, [role='button'] { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [role='button']:focus-visible {
  outline: 3px solid var(--ember) !important;
}

body > header {
  padding: 13px clamp(1.25rem, 5vw, 5rem) !important;
  background: rgba(244, 245, 243, 0.94) !important;
  border-color: var(--line) !important;
  backdrop-filter: blur(14px);
}
body > header > div:first-child { max-width: 1240px !important; }
body > header img { width: 154px !important; height: 48px !important; object-fit: contain; }
body > header nav { gap: clamp(1rem, 2.2vw, 2rem) !important; }
body > header nav a {
  color: var(--ink) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
}
body > header nav a:hover { color: var(--ember) !important; }
.lang-toggle { border-color: var(--line) !important; color: var(--ink) !important; }
body > header a[href*='#contact'] {
  background: var(--ink) !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}
body > header a[href*='#contact']:hover { background: var(--ember) !important; }

body > a[href^='https://wa.me'] {
  right: 20px !important;
  bottom: 20px !important;
  width: 52px !important;
  height: 52px !important;
  background: #168b5b !important;
  box-shadow: 0 6px 12px rgba(7, 22, 36, .18) !important;
}

/* Hero: one decisive image, protected copy space, no template ornaments. */
body > section:first-of-type {
  min-height: min(700px, calc(100svh - 74px));
  display: flex;
  align-items: flex-start;
  padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem) !important;
  background: var(--ink) !important;
}
body > section:first-of-type > .absolute img {
  opacity: .9 !important;
  mix-blend-mode: normal !important;
  object-position: center;
}
body > section:first-of-type > .absolute > div {
  background: linear-gradient(90deg, rgba(4,14,24,.98) 0%, rgba(4,14,24,.88) 35%, rgba(4,14,24,.42) 66%, rgba(4,14,24,.15) 100%) !important;
}
body > section:first-of-type .max-w-7xl { width: 100%; max-width: 1240px !important; }
body > section:first-of-type .max-w-3xl { max-width: 720px !important; gap: 1.4rem !important; }
body > section:first-of-type .max-w-3xl > div:first-child {
  justify-content: flex-start !important;
  color: #f2d495;
}
body > section:first-of-type .max-w-3xl > div:first-child div { background: var(--ember) !important; width: 34px !important; }
body > section:first-of-type .max-w-3xl > div:first-child span {
  color: #f6e7c8 !important;
  letter-spacing: .08em !important;
  font-size: .76rem !important;
}
body > section:first-of-type h1 {
  max-width: 680px;
  font-size: clamp(3.35rem, 7.2vw, 6rem) !important;
  line-height: .98 !important;
  font-weight: 700 !important;
}
body > section:first-of-type h1 span { color: #f2c66f !important; font-style: normal !important; }
body > section:first-of-type p {
  max-width: 630px;
  color: rgba(255,255,255,.82) !important;
  line-height: 1.65 !important;
  font-size: clamp(1.04rem, 1.5vw, 1.22rem) !important;
}
body > section:first-of-type .pt-6 { padding-top: .7rem !important; }
body > section:first-of-type a {
  min-width: 0 !important;
  height: 52px !important;
  border-radius: 8px !important;
  padding-inline: 1.55rem !important;
  box-shadow: none !important;
}
body > section:first-of-type a:first-child { background: var(--ember) !important; }
body > section:first-of-type a:first-child:hover { background: #f06b4b !important; transform: translateY(-2px) !important; }
body > section:first-of-type .glass-panel {
  background: transparent !important;
  backdrop-filter: none !important;
  border-color: rgba(255,255,255,.55) !important;
}

/* Proof strip */
body > section:first-of-type + div {
  background: var(--cloud) !important;
  color: var(--ink) !important;
  padding: 0 clamp(1.25rem, 5vw, 5rem) !important;
  border: 0 !important;
  box-shadow: none !important;
}
body > section:first-of-type + div > div {
  max-width: 1240px !important;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0 !important;
}
body > section:first-of-type + div > div > div { border-color: var(--line) !important; padding-inline: 1.4rem !important; }
body > section:first-of-type + div h4 { color: var(--ink); font-size: clamp(1.45rem, 2.5vw, 2rem) !important; }
body > section:first-of-type + div p { color: #56616a !important; letter-spacing: .06em !important; font-size: .7rem !important; }

section[id], body > section:not(:first-of-type) { padding-block: clamp(5rem, 9vw, 8.5rem) !important; }
section[id] > div, body > section:not(:first-of-type) > div { max-width: 1240px !important; }
section h2 { color: var(--ink) !important; font-weight: 700 !important; font-size: clamp(2.4rem, 4.8vw, 4.4rem) !important; line-height: 1.03 !important; }
section .uppercase.tracking-\[0\.2em\], section .uppercase.tracking-widest { letter-spacing: .08em !important; }

#about { background: var(--cloud) !important; }
#about > .absolute { display: none; }
#about > div { gap: clamp(3rem, 7vw, 7rem) !important; align-items: center !important; }
#about img { border: 0 !important; border-radius: 10px !important; box-shadow: none !important; }
#about .absolute.bg-white {
  right: -1.5rem !important;
  bottom: -1.5rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--ink) !important;
  color: white;
  box-shadow: none !important;
}
#about .absolute.bg-white h5 { color: white !important; }
#about .absolute.bg-white p { color: rgba(255,255,255,.68) !important; }
#about .absolute.bg-white span { color: #f2c66f !important; }
#about .space-y-6 > div:first-child span { color: var(--ember) !important; }
#about .space-y-6 > div:first-child div { background: var(--line) !important; }
#about .text-slate-600 { color: #44515c !important; }
#about .grid > div { border: 0 !important; padding: 1.25rem 0 0 !important; border-top: 1px solid var(--line) !important; }
#about .grid .text-primary { color: var(--ember) !important; }

/* Process: a real horizontal sequence, not four floating cards. */
#about + section { background: var(--ink) !important; border: 0 !important; color: white; }
#about + section h2, #about + section h3 { color: white !important; }
#about + section .text-primary { color: #f2c66f !important; }
#about + section .text-slate-600 { color: rgba(255,255,255,.66) !important; }
#about + section .grid { gap: 0 !important; border-top: 1px solid rgba(255,255,255,.18); }
#about + section .grid > .absolute { display: none !important; }
#about + section .grid > div:not(.absolute) {
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 2rem clamp(1rem, 2.4vw, 2rem) !important;
}
#about + section .grid > div:last-child { border-right: 0 !important; }
#about + section .grid > div > div:first-child {
  width: auto !important; height: auto !important; background: transparent !important;
  color: #f2c66f !important; border-radius: 0 !important; box-shadow: none !important;
  margin-bottom: 2.7rem !important; font-size: .82rem !important;
}
#about + section .grid > div:hover { transform: none !important; }

#expertise { background: white !important; }
#expertise > div > div:first-child { text-align: left !important; margin-left: 0 !important; max-width: 800px !important; }
#expertise .grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  border-top: 1px solid var(--line);
}
#expertise .grid > div {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: clamp(1.4rem, 3vw, 2.25rem) 0 !important;
  background: transparent !important;
}
#expertise .grid > div:nth-child(odd) { padding-right: clamp(1.5rem, 4vw, 4rem) !important; }
#expertise .grid > div:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 4rem) !important; border-left: 1px solid var(--line) !important; }
#expertise .grid > div:hover { transform: none !important; }
#expertise .grid > div > div:first-child {
  width: 46px !important; height: 46px !important; border-radius: 8px !important;
  background: var(--ink) !important; color: #f2c66f !important; box-shadow: none !important;
}
#expertise h3 { color: var(--ink) !important; }
#expertise .text-slate-600 { color: #52606b !important; }
#expertise .pole-checklist { color: #3f4d58 !important; }
#expertise .pole-checklist .text-primary { color: var(--ember) !important; }

#portfolio { background: var(--midnight) !important; }
#portfolio h2 { color: white !important; }
#portfolio .bg-primary { background: var(--ember) !important; }
#portfolio button { border-radius: 999px !important; box-shadow: none !important; }
#portfolio-grid { gap: 12px !important; }
#portfolio-grid > div { border-radius: 8px !important; box-shadow: none !important; }
#portfolio-grid img { transition: transform .7s cubic-bezier(.16,1,.3,1) !important; }
#portfolio-grid > div:hover img { transform: scale(1.035) !important; }

#media { background: var(--cloud) !important; }
#media > div > div:first-child { text-align: left !important; margin-left: 0 !important; }
#media .rounded-2xl, #contact .rounded-2xl { border-radius: 10px !important; }
#media .shadow-2xl, #contact .shadow-xl { box-shadow: none !important; }
#media .bg-primary { background: var(--ember) !important; }

#media + section { background: white !important; }
#media + section .rounded-2xl { border-radius: 10px !important; }

#contact { background: var(--cloud) !important; }
#contact > div > div:first-child { text-align: left !important; margin-left: 0 !important; }
#contact .bg-white { box-shadow: none !important; border-color: var(--line) !important; }
#contact .bg-navy { background: var(--ink) !important; }
#contact input, #contact textarea, #contact #custom-select-button {
  border-radius: 8px !important; background: white !important; border-color: var(--line) !important;
}
#contact button[type='submit'], #contact .bg-primary { background: var(--ember) !important; box-shadow: none !important; border-radius: 8px !important; }

footer { background: var(--ink) !important; border: 0 !important; }
footer img,
footer .footer-logo { filter: none !important; opacity: 1; }
footer nav a { display: inline-flex; min-height: 44px; align-items: center; }

@media (max-width: 1023px) {
  body > header img { width: 136px !important; }
  #about + section .grid > div:nth-child(2) { border-right: 0 !important; }
  #about + section .grid > div { border-bottom: 1px solid rgba(255,255,255,.18) !important; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  body > section:first-of-type { min-height: 650px; align-items: flex-start; padding-top: 1.75rem !important; }
  body > section:first-of-type > .absolute img { object-position: 63% center; opacity: .62 !important; }
  body > section:first-of-type > .absolute > div { background: linear-gradient(180deg, rgba(4,14,24,.22), rgba(4,14,24,.96) 67%) !important; }
  body > section:first-of-type .max-w-3xl { text-align: left !important; align-items: flex-start !important; margin: 0 !important; }
  body > section:first-of-type h1 { font-size: clamp(3rem, 15vw, 4.3rem) !important; }
  body > section:first-of-type .pt-6 { justify-content: flex-start !important; }
  body > section:first-of-type a { width: 100%; }
  body > section:first-of-type + div > div { grid-template-columns: 1fr 1fr !important; row-gap: 1.2rem !important; }
  body > section:first-of-type + div > div > div:nth-child(3) { border-left: 0 !important; }
  #about .absolute.bg-white { position: relative !important; inset: auto !important; margin: -1.25rem 1rem 0 !important; max-width: none !important; }
  #about + section .grid { grid-template-columns: 1fr !important; }
  #about + section .grid > div { border-right: 0 !important; }
  #expertise .grid { grid-template-columns: 1fr !important; }
  #expertise .grid > div { padding: 1.4rem 0 !important; border-left: 0 !important; }
  #expertise .pole-desc, #expertise .pole-checklist { display: block !important; }
  #portfolio-grid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
