/* Myelink landing page - editorial light design (from Claude Design "Myelink.dc") */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }

/* Mono kicker above every section title */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.kicker--muted { color: var(--muted-2); }
.kicker--on-dark { color: var(--accent-on-dark); }

.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 48px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--accent { background: var(--accent); color: #fff; font-weight: 500; }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--fg); color: #fff; }
.btn--outline { border: 0.5px solid var(--line-strong); color: var(--fg); }
.btn--outline:hover, .btn--outline:focus-visible { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(36, 82, 224, 0.35); }

/* --- Sticky header ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 48px);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--fg); }
.brand-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); white-space: nowrap; }
.site-nav a { font-size: 14px; color: var(--muted); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.site-nav .nav-cta {
  background: var(--fg);
  color: var(--bg);
  padding: 10px 20px;
  font-weight: 500;
  transition: background-color 160ms ease;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { background: var(--accent); color: var(--bg); }
@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}

/* Language switch */
.lang-switch {
  display: flex;
  gap: 2px;
  border: 0.5px solid var(--line-strong);
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.lang-btn {
  padding: 5px 12px;
  color: var(--muted-2);
}
.lang-btn:hover, .lang-btn:focus-visible { color: var(--fg); }
.lang-btn.is-active { background: var(--fg); color: var(--bg); }

/* --- Hero -------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero { padding: clamp(64px, 9vh, 96px) 0 80px; animation: rise 0.7s ease both; }
.hero .kicker { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-lead {
  display: flex;
  gap: 64px;
  align-items: flex-end;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 48px clamp(40px, 6vw, 84px);
  margin-top: 72px;
  border-top: 0.5px solid var(--line);
  padding-top: 28px;
  flex-wrap: wrap;
}
.stat-value { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 4px; }

/* --- Trust names ------------------------------------------------------- */
.trust { padding-bottom: 88px; }
.trust .kicker { text-align: center; margin-bottom: 28px; }
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px clamp(28px, 4vw, 52px);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.client-logos img {
  height: 26px;
  width: auto;
  display: block;
  /* Uniform dark monochrome so competing brand colors do not clash on light */
  filter: brightness(0);
  opacity: 0.45;
  transition: opacity 160ms ease;
}
.client-logos li:hover img { opacity: 0.8; }
/* Per-logo optical balancing: marks with taglines or stacked text need more
   height, very wide wordmarks need less, to look the same visual size. */
.client-logos li:nth-child(1) img { height: 22px; }  /* AstraZeneca */
.client-logos li:nth-child(3) img { height: 31px; }  /* Soufflet Malt */
.client-logos li:nth-child(4) img { height: 33px; }  /* TEKsystems */
.client-logos li:nth-child(5) img { height: 33px; }  /* Allegis Group */
.client-logos li:nth-child(6) img { height: 16px; }  /* Techplaces */
@media (max-width: 640px) {
  .client-logos { gap: 18px 28px; }
  .client-logos img, .client-logos li:nth-child(n) img { height: 18px; }
}

/* --- Services (dark) --------------------------------------------------- */
.services { background: var(--dark-bg); color: var(--dark-fg); padding: 88px 0; }
.services .section-title { max-width: 22ch; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Interior lines are 1px grid gaps over the line color; keep the outer
     border at 1px so all grid lines have the same weight */
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}
.service-cell { background: var(--dark-bg); padding: 32px 28px; transition: background-color 160ms ease; }
/* With 7 services the grid has a leftover slot: let the closing cell fill the row */
.service-cell:last-child { grid-column: 1 / -1; }
.service-cell:hover { background: var(--dark-bg-hover); }
.service-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-on-dark); margin-bottom: 16px; }
.service-cell h3 { font-size: 19px; font-weight: 500; margin: 0 0 10px; }
.service-cell p { font-size: 14.5px; line-height: 1.6; color: var(--dark-muted); margin: 0; text-wrap: pretty; }

/* --- Case studies ------------------------------------------------------ */
.cases { padding: 88px 0; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.case-card {
  border: 0.5px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  transition: border-color 160ms ease;
}
.case-card:hover { border-color: var(--accent); }
.case-sector {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.case-card h3 { font-size: 20px; font-weight: 500; margin: 0; line-height: 1.3; }
.case-card > p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; text-wrap: pretty; }
.case-result { border-top: 0.5px solid var(--line); padding-top: 16px; }
.case-metric { font-size: 30px; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; }
.case-metric-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.cases-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin: 24px 0 0; }

/* --- Testimonials ------------------------------------------------------ */
.testimonials { padding-bottom: 88px; }
.testimonials .kicker { margin-bottom: 28px; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}
@media (max-width: 720px) {
  .quote-grid { grid-template-columns: 1fr; }
}
.quote {
  margin: 0;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote p { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0; text-wrap: pretty; }
.quote footer { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* --- Portfolio (Realisations) ------------------------------------------ */
.portfolio { padding: 0 0 88px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 720px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-card--featured { grid-column: 1 / -1; }
.portfolio-card {
  border: 0.5px solid var(--line);
  padding: 32px 28px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 160ms ease;
}
.portfolio-card:hover, .portfolio-card:focus-visible { border-color: var(--accent); outline: none; }
.portfolio-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.portfolio-head h3 { font-size: 20px; font-weight: 500; margin: 0; }
.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.portfolio-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; text-wrap: pretty; }
.portfolio-link { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* --- About ------------------------------------------------------------- */
.about { background: var(--bg-alt); padding: 88px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.portrait { display: flex; flex-direction: column; gap: 20px; }
.portrait-frame {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--line);
  display: grid;
  place-items: center;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-caption { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); line-height: 1.7; }
.about-title { margin-bottom: 24px; max-width: 20ch; }
.about p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; max-width: 60ch; text-wrap: pretty; }
/* Sector strip: line pictograms + mono labels under the bio */
.sector-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.sector-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.sector-item svg { width: 17px; height: 17px; flex: none; }

.about-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.step-card { background: var(--bg); border: 0.5px solid var(--line); padding: 20px; }
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.step-card h3 { font-weight: 500; font-size: 15px; margin: 0 0 6px; }
.step-card p { font-size: 13px; line-height: 1.55; color: var(--muted-2); margin: 0; }

/* --- Contact footer (dark) --------------------------------------------- */
.contact-footer { background: var(--dark-bg); color: var(--dark-fg); padding: 96px 0 48px; }
.contact-title {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 20px;
  max-width: 16ch;
  line-height: 1.05;
  text-wrap: balance;
}
.contact-sub { font-size: 17px; color: var(--dark-muted); margin: 0 0 36px; max-width: 50ch; line-height: 1.6; text-wrap: pretty; }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.contact-actions .btn { padding: 16px 32px; font-size: 16px; }
.contact-actions .btn--accent:hover, .contact-actions .btn--accent:focus-visible { background: var(--dark-fg); color: var(--dark-bg); }
.btn--outline-dark { border: 0.5px solid var(--dark-line); color: var(--dark-fg); }
.btn--outline-dark:hover, .btn--outline-dark:focus-visible { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
.legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--dark-line);
  margin-top: 80px;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
.legal-bar a { color: var(--muted-2); border-bottom: 0.5px solid var(--dark-line); }
.legal-bar a:hover, .legal-bar a:focus-visible { color: var(--dark-fg); border-bottom-color: var(--accent-on-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { animation: none; }
  .btn, .service-cell, .case-card, .portfolio-card, .trust-name { transition: none; }
}
