/* ===================================================================== */
/* E-SPACE — main.css                                                     */
/* Outfit + brand blue. Shared by SK and EN versions.                     */
/* ===================================================================== */

:root {
  --bg:           #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F7F8FB;
  --surface-3:    #F0F2FA;
  --border:       #E2E5EE;
  --border-soft:  #EEF0F6;
  --ink:          #1A1D23;
  --ink-soft:     #4B5160;
  --ink-mute:     #8B92A3;
  --ink-faint:    #B8BDCB;

  --brand:        #3451E8;
  --brand-deep:   #2A41C7;
  --brand-light:  #AAB4EE;
  --brand-lightest:#EEF1FE;

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1280px;

  --shadow-sm: 0 1px 2px rgba(26,29,35,0.04);
  --shadow:    0 4px 24px rgba(52,81,232,0.06);
  --shadow-lg: 0 12px 40px rgba(52,81,232,0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* offset for sticky nav */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "kern", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

/* TYPE ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 600;
}
.display {
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.display .accent { color: var(--brand); }
.display .soft { color: var(--brand-light); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--brand);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 400;
}

/* LAYOUT -------------------------------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
}
section { padding: clamp(5rem, 11vh, 8rem) 0; position: relative; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 600;
}
.section-head h2 .accent { color: var(--brand); }
.section-head .h-right { display: flex; flex-direction: column; gap: 1rem; }
.section-head p { margin: 0; max-width: 50ch; color: var(--ink-soft); font-size: 1.05rem; }

/* NAV ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.brand img {
  height: 26px;
  width: auto;
  display: block;
}
@media (max-width: 920px) {
  .brand img { height: 22px; }
}

.nav-links {
  display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
  position: relative;
  padding: 0.25rem 0;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink-mute);
}
.lang-switch a {
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
  letter-spacing: 0.02em;
}
.lang-switch a.active {
  color: var(--brand);
  background: var(--brand-lightest);
}
.lang-switch a:not(.active):hover { color: var(--ink); }
.lang-switch .sep { color: var(--ink-faint); }

.nav-cta {
  background: var(--brand);
  color: white;
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow); }

.menu-toggle { display: none; color: var(--ink); font-size: 1.4rem; padding: 0.4rem 0.6rem; }

/* HERO ---------------------------------------------------------------- */
.hero {
  padding: clamp(1.25rem, 3vh, 2.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(170,180,238,0.30) 0%, rgba(170,180,238,0) 65%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow-row {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.pill-eyebrow {
  background: var(--brand-lightest);
  color: var(--brand);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.pill-eyebrow .dot {
  width: 6px; height: 6px; background: var(--brand);
  border-radius: 50%; display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.meta-line {
  font-size: 0.85rem; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.meta-line .sep { color: var(--ink-faint); }

.hero h1 { max-width: 18ch; }
.hero h1 .line { display: block; }

.hero-meta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
}
.hero-meta-grid .left {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2rem);
}
.hero-meta-grid .left p { max-width: 48ch; margin: 0; }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 2px 10px rgba(52,81,232,0.20); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 6px 18px rgba(52,81,232,0.28); }
.btn-ghost { background: white; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-faint); }
.btn .arr { transition: transform .2s ease; font-size: 1.05em; }
.btn:hover .arr { transform: translateX(3px); }

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.4rem 0; }
.stat + .stat { padding-left: 1.2rem; border-left: 1px solid var(--border); }
.stat .v {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
}
.stat .v .small { font-size: 0.65em; color: var(--ink-mute); font-weight: 500; margin-left: 0.15em; }
.stat .v .accent { color: var(--brand); }
.stat .l { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.04em; }

/* MARQUEE ------------------------------------------------------------- */
/* Now sits inside #clients section as a full-width strip below the section-head */
.marquee {
  padding: 2rem 0 2.2rem;
  overflow: hidden;
  background: var(--surface-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.marquee-track {
  display: flex; gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
  animation: scroll 42s linear infinite;
  width: max-content;
}
.marquee-track img {
  height: 30px; width: auto;
  filter: grayscale(1) brightness(0.6);
  opacity: 0.6;
  transition: opacity .25s ease, filter .25s ease;
}
.marquee-track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* CAPABILITIES -------------------------------------------------------- */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.4rem);
}
.cap {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  min-height: 360px;
}
.cap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.cap-num {
  font-size: 0.78rem; font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.cap-num::before { content: ""; width: 18px; height: 1px; background: var(--brand); }
.cap h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
}
.cap h3 .accent { color: var(--brand); }
.cap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.cap li {
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}
.cap li::before {
  content: ""; position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
}
.cap-tag {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 0.4rem;
}
.cap-tag .accent { color: var(--brand); }

/* APPROACH ------------------------------------------------------------ */
.approach {
  background: var(--surface-2);
  margin: 0;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.principle {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.2rem;
  border: 1px solid var(--border-soft);
}
.principle .ico {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--brand-lightest);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 600;
  letter-spacing: -0.04em;
}
.principle h3 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 600;
}
.principle p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; margin: 0; }

/* ENGAGEMENTS --------------------------------------------------------- */
.eng-list {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.eng-row {
  display: grid;
  grid-template-columns: 50px 1.4fr 1.6fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.6rem clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  transition: background .2s ease;
  cursor: default;
}
.eng-row:last-child { border-bottom: 0; }
.eng-row:hover { background: var(--surface-2); }
.eng-row:hover .eng-arrow { opacity: 1; transform: translateX(0); color: var(--brand); }

.eng-num {
  font-size: 0.85rem;
  color: var(--brand-light);
  font-weight: 500;
}
.eng-name {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.eng-modules {
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-weight: 400;
}
.eng-modules .pill-mod {
  display: inline-block;
  background: var(--surface-3);
  color: var(--ink-soft);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin-right: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
}
.eng-tag {
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: right;
  display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem;
}
.eng-arrow {
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
  color: var(--brand-light);
}

/* CONTACT ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

/* contact section is intentionally tighter than other sections */
#contact { padding: clamp(3.5rem, 7vh, 5.5rem) 0; }
#contact .section-head { margin-bottom: clamp(1.6rem, 3.5vw, 2.5rem); }
#contact .section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }

/* clients section — fills viewport so contact never peeks underneath.
   Section-head centred vertically; marquee anchored at the bottom as closer. */
#clients {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  padding: 0;
}
#clients > .wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(2rem, 5vh, 4rem);
}
#clients .section-head { margin-bottom: 0; width: 100%; }

.industry-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: clamp(1.5rem, 3vh, 2rem);
}
.industry-pill {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.industry-pill:hover {
  border-color: var(--brand-light);
  color: var(--brand);
  background: var(--brand-lightest);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: flex; flex-direction: column; gap: 1.3rem;
}
.info-block { display: flex; flex-direction: column; gap: 0.3rem; }
.info-block .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.info-block .val {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.info-block .val a { border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.info-block .val a:hover { color: var(--brand); border-color: var(--brand); }
.info-block .sub { font-size: 0.95rem; color: var(--ink-soft); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
}
form { display: flex; flex-direction: column; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input, .field textarea {
  font: inherit;
  font-family: var(--font);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  font-size: 0.96rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 3px rgba(52,81,232,0.10);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form button { align-self: flex-start; margin-top: 0.5rem; }

.form-status {
  font-size: 0.92rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success {
  background: #E8F5E9;
  color: #1F5C2F;
  border: 1px solid #C8E6C9;
}
.form-status.error {
  background: #FEECEB;
  color: #8A2C25;
  border: 1px solid #F5C2BE;
}

/* FOOTER -------------------------------------------------------------- */
footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border-soft);
  padding: clamp(3rem, 5vh, 4rem) 0 2rem;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.foot-brand {
  display: inline-block;
  margin-bottom: 0.8rem;
}
.foot-brand img {
  height: 26px;
  width: auto;
  display: block;
}
.foot-tagline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 30ch;
  line-height: 1.5;
}
.foot-top h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 1rem;
}
.foot-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.foot-top ul a, .foot-top ul li { font-size: 0.92rem; color: var(--ink-soft); transition: color .2s ease; }
.foot-top ul a:hover { color: var(--brand); }
.foot-bottom {
  display: flex; flex-direction: column;
  padding-top: 1.5rem;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.foot-bottom-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.foot-bottom-legal {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* REVEAL -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-meta-grid { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
  .eng-row { grid-template-columns: 36px 1fr; gap: 0.6rem; row-gap: 0.4rem; padding: 1.2rem; }
  .eng-modules { grid-column: 2; }
  .eng-tag { grid-column: 2; text-align: left; justify-content: flex-start; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid var(--border); }
  .stat-card { grid-template-columns: 1fr; gap: 0; }
}
