/* ============================================================
   MINGWAY CONSULTING — English site
   ============================================================ */
:root {
  --ink: #101815;
  --ink-soft: #2b3631;
  --teal: #0c8a70;
  --teal-deep: #0a6f5a;
  --cream: #f7f4ee;
  --cream-2: #efe9df;
  --line: rgba(16, 24, 21, 0.12);
  --line-light: rgba(247, 244, 238, 0.16);
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--teal); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 48px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.on-dark:not(.scrolled) { color: var(--cream); }
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: 0.22em; }
.brand img { height: 34px; width: auto; display: block; }
.brand .name {
  font-family: var(--sans); font-weight: 700; font-size: 17px;
  letter-spacing: 0.28em;
}
.brand .sub {
  font-size: 10px; letter-spacing: 0.32em; opacity: 0.6;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a {
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.75; position: relative; padding: 4px 0;
  transition: opacity 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 9px 22px; border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav.scrolled .nav-cta, .nav-cta:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream);
  padding: 140px 48px 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(12, 138, 112, 0.32), transparent 62%),
    radial-gradient(900px 560px at 8% 92%, rgba(12, 138, 112, 0.16), transparent 60%);
}
.hero .grain {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero .kicker {
  font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: 16px;
  margin-bottom: 34px;
}
.hero .kicker::before { content: ""; width: 46px; height: 1px; background: var(--teal); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(52px, 7.4vw, 108px);
  line-height: 1.04; letter-spacing: -0.01em; max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lede {
  margin-top: 36px; max-width: 560px; font-size: 17px; font-weight: 300;
  color: rgba(247, 244, 238, 0.72);
}
.hero .actions { margin-top: 52px; display: flex; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 34px; border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); }
.btn-ghost { border: 1px solid rgba(247,244,238,0.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero .scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(247,244,238,0.45); display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.hero .hero-mark {
  position: absolute; right: 0; bottom: 0;
  width: min(920px, 66vw); opacity: 0.2; pointer-events: none;
}
.hero .scroll-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(rgba(247,244,238,0.5), transparent);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Shared section layout ---------- */
.section { padding: 120px 48px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: 16px;
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--teal); }
h2.title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 4.4vw, 62px); line-height: 1.1; letter-spacing: -0.01em;
  max-width: 18ch;
}
h2.title em { font-style: italic; color: var(--teal); }
.lede-p { margin-top: 26px; max-width: 640px; font-size: 16.5px; font-weight: 300; color: var(--ink-soft); }

/* ---------- Values ---------- */
.values { background: var(--cream); }
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 70px;
}
.value-card {
  background: var(--cream); padding: 64px 56px;
  transition: background 0.45s var(--ease);
  position: relative; overflow: hidden;
}
.value-card:hover { background: var(--white); }
.value-card .num {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--teal); letter-spacing: 0.1em;
}
.value-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 34px;
  margin: 18px 0 16px;
}
.value-card p { font-size: 15.5px; font-weight: 300; color: var(--ink-soft); max-width: 46ch; }

/* ---------- Services ---------- */
.services { background: var(--ink); color: var(--cream); }
.services .lede-p { color: rgba(247,244,238,0.66); }
.svc-list { margin-top: 70px; border-top: 1px solid var(--line-light); }
.svc-row {
  display: grid; grid-template-columns: 90px 1fr 1.2fr auto;
  gap: 40px; align-items: center;
  padding: 52px 0; border-bottom: 1px solid var(--line-light);
  transition: padding 0.4s var(--ease);
}
.svc-row:hover { padding-left: 14px; }
.svc-row .idx {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--teal);
}
.svc-row h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; }
.svc-row p { font-size: 15px; font-weight: 300; color: rgba(247,244,238,0.66); }
.svc-row .go {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(247,244,238,0.3);
  display: grid; place-items: center; font-size: 18px;
  transition: background 0.3s, transform 0.35s var(--ease);
}
.svc-row:hover .go { background: var(--teal); border-color: var(--teal); transform: rotate(-45deg); }

/* ---------- Practice matrix ---------- */
.matrix { background: var(--cream-2); }
.matrix-grid {
  margin-top: 70px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.matrix-card {
  background: var(--cream); border: 1px solid var(--line);
  padding: 40px 30px 34px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s;
}
.matrix-card:hover {
  transform: translateY(-8px); background: var(--white);
  box-shadow: 0 24px 50px -24px rgba(16, 24, 21, 0.35);
}
.matrix-card .glyph {
  font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--teal);
}
.matrix-card h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin-top: 22px; min-height: 2.5em; text-wrap: balance; }
.matrix-card span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.7; margin-top: 8px; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: start; }
.about-copy p { font-size: 16.5px; font-weight: 300; color: var(--ink-soft); margin-bottom: 22px; }
.about-copy p strong { font-weight: 600; color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.stat { background: var(--cream); padding: 34px 26px; }
.stat .n { font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--teal); line-height: 1; }
.stat .l { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: var(--ink); color: var(--cream);
  padding: 220px 48px 110px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 82% 0%, rgba(12, 138, 112, 0.28), transparent 62%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 6vw, 84px); line-height: 1.06; max-width: 16ch;
}
.page-hero h1 em { font-style: italic; color: var(--teal); }
.page-hero .lede-p { color: rgba(247,244,238,0.7); }

/* ---------- Process (partner page) ---------- */
.process { background: var(--cream); }
.steps { margin-top: 80px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 140px 1fr 1.4fr; gap: 40px;
  padding: 46px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .no {
  font-family: var(--serif); font-style: italic; font-size: 46px; color: var(--teal); line-height: 1;
}
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; }
.step p { font-size: 15px; font-weight: 300; color: var(--ink-soft); }

/* ---------- Model cards ---------- */
.model { background: var(--ink); color: var(--cream); }
.model .lede-p { color: rgba(247,244,238,0.66); }
.model-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model-card {
  border: 1px solid var(--line-light); padding: 44px 36px; min-height: 250px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.model-card:hover { background: rgba(247,244,238,0.05); transform: translateY(-6px); }
.model-card .glyph { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--teal); }
.model-card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-top: 20px; }
.model-card p { font-size: 14.5px; font-weight: 300; color: rgba(247,244,238,0.62); margin-top: 12px; }

/* ---------- Cases ---------- */
.cases-list { background: var(--cream); }
.case {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px;
  padding: 80px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.case:last-child { border-bottom: none; }
.case:nth-child(even) .case-info { order: 2; }
.case-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 999px; padding: 6px 16px;
  margin-bottom: 24px;
}
.case h3 { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.12; }
.case .role { margin-top: 10px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.case-meta { display: flex; gap: 60px; margin-top: 36px; }
.case-meta .m .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }
.case-meta .m .v { font-family: var(--serif); font-size: 30px; margin-top: 6px; }
.case-panel {
  background: var(--ink); color: var(--cream); padding: 48px 44px;
  position: relative; overflow: hidden;
}
.case-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 90% 0%, rgba(12,138,112,0.3), transparent 65%);
}
.case-panel > * { position: relative; }
.case-panel .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.case-panel p { font-size: 15px; font-weight: 300; color: rgba(247,244,238,0.78); }
.case-panel .weeks {
  font-family: var(--serif); font-size: 64px; line-height: 1; margin-top: 30px;
}
.case-panel .weeks small { font-size: 15px; font-family: var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,244,238,0.55); margin-left: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; align-items: start; }
.c-item { padding: 30px 0; border-top: 1px solid var(--line); }
.c-item .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.c-item .v { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.c-item .v a:hover { color: var(--teal); }
.c-item .qr {
  width: 172px; height: 172px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 14px;
}
.c-item .qr-note { font-size: 13px; color: var(--ink-soft); opacity: 0.75; margin-top: 10px; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 54px 50px; }
.form-card h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin-bottom: 8px; }
.form-card > p { font-size: 14.5px; font-weight: 300; color: var(--ink-soft); margin-bottom: 34px; }
.f-row { margin-bottom: 24px; }
.f-row label {
  display: block; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px;
}
.f-row input, .f-row textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  background: transparent; padding: 10px 2px; font-family: var(--sans);
  font-size: 16px; color: var(--ink); outline: none; resize: vertical;
  transition: border-color 0.3s;
}
.f-row input:focus, .f-row textarea:focus { border-color: var(--teal); }
.form-card .btn { border: none; cursor: pointer; font-family: var(--sans); }
.form-note { font-size: 12.5px; color: var(--ink-soft); opacity: 0.7; margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal); color: var(--white);
  padding: 110px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 50% 120%, rgba(16,24,21,0.35), transparent 65%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.12; max-width: 20ch; margin: 0 auto; }
.cta-band p { margin: 22px auto 0; max-width: 520px; font-weight: 300; color: rgba(255,255,255,0.82); }
.cta-band .btn { margin-top: 44px; background: var(--ink); color: var(--cream); }
.cta-band .btn:hover { background: #000; }
.cta-band .qr {
  width: 128px; height: 128px; margin: 40px auto 0;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.35);
  background: #fff; padding: 6px;
}
.cta-band .qr-note { margin-top: 12px; font-size: 12.5px; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(247,244,238,0.62); padding: 90px 48px 40px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid var(--line-light);
}
.footer .brand .name { color: var(--cream); }
.footer .f-desc { font-size: 14px; font-weight: 300; max-width: 40ch; margin-top: 20px; }
.footer h4 { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cream); margin-bottom: 22px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; font-size: 14px; font-weight: 300; }
.footer a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 34px; font-size: 12px; letter-spacing: 0.06em;
  color: rgba(247,244,238,0.4);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 60px 1fr; }
  .svc-row p, .svc-row .go { grid-column: 2; }
  .case { grid-template-columns: 1fr; gap: 40px; }
  .case:nth-child(even) .case-info { order: 0; }
  .step { grid-template-columns: 80px 1fr; }
  .step p { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav { padding: 16px 22px; }
  .nav.scrolled { padding: 12px 22px; }
  .brand img { height: 28px; }
  .hero .hero-mark { width: 96vw; opacity: 0.10; }
  .nav-links, .nav-cta { display: none; }
  .burger {
    display: flex; flex-direction: column; gap: 6px; background: none;
    border: none; cursor: pointer; padding: 8px;
  }
  .burger span { width: 26px; height: 1.5px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--cream);
    display: flex; flex-direction: column; justify-content: center; padding: 0 40px; gap: 8px;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; }
  .mobile-menu a { font-family: var(--serif); font-size: 40px; padding: 12px 0; border-bottom: 1px solid var(--line-light); }
  .section { padding: 80px 24px; }
  .hero, .page-hero { padding-left: 24px; padding-right: 24px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 44px 30px; }
  .matrix-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .case-meta { gap: 30px; flex-wrap: wrap; }
  .form-card { padding: 36px 26px; }
  .cta-band { padding: 80px 24px; }
  .footer { padding: 70px 24px 32px; }
}
@media (min-width: 721px) { .mobile-menu { display: none; } }
