:root {
  --ink: #111827;
  --muted: #536071;
  --line: #e7e2d8;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --champagne: #d9c49f;
  --champagne-dark: #9c7a41;
  --navy: #172033;
  --navy-soft: #222d44;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.11);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1rem; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 620; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
li + li { margin-top: .45rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-compact { padding: 34px 0; }
.alt { background: #f4f0e8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skip-link { position: absolute; left: -999px; top: 12px; background: white; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 226, 216, 0.75);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: .01em; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--champagne); font-family: Georgia, serif; font-size: 1.25rem; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-text { font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .95rem; color: #2f3747; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--champagne-dark); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.nav-cta { background: var(--navy); color: white; padding: 10px 16px; border-radius: 999px; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: transparent; color: var(--ink); font: inherit; }
.site-nav a.is-current { color: var(--champagne-dark); font-weight: 700; }
.language-switch { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: rgba(255,255,255,.58); }
.language-switch a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 999px; font-size: .82rem; font-weight: 800; letter-spacing: .02em; color: var(--navy); }
.language-switch a.active { background: var(--navy); color: white; }
.language-switch a::after { display: none !important; }
.hero h1 { font-size: clamp(2.45rem, 5.3vw, 5.05rem); }
.subhero { background: radial-gradient(circle at 85% 20%, rgba(217, 196, 159, .28), transparent 34%), linear-gradient(135deg, #fbfaf7 0%, #f4f0e8 100%); padding-bottom: 86px; }
.subhero h1 { font-size: clamp(2.5rem, 5.8vw, 5.4rem); max-width: 980px; }


.hero { min-height: calc(100vh - 78px); display: grid; align-items: center; background: radial-gradient(circle at 85% 20%, rgba(217, 196, 159, .36), transparent 34%), linear-gradient(135deg, #fbfaf7 0%, #f4f0e8 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) 420px; gap: 64px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--champagne-dark); margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #394255; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border-radius: 999px; font-weight: 650; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12); }
.button-primary { background: var(--navy); color: white; }
.button-secondary { border-color: #cdbb9b; color: var(--navy); background: rgba(255,255,255,.34); }
.full { width: 100%; }
.microcopy { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.hero-card { position: relative; background: rgba(255,255,255,.82); border: 1px solid rgba(231,226,216,.95); border-radius: 34px; padding: 34px; box-shadow: var(--shadow); overflow: hidden; }
.card-line { height: 4px; width: 80px; background: linear-gradient(90deg, var(--champagne), transparent); margin-bottom: 30px; }
.card-kicker { color: var(--champagne-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; }
.hero-card h2 { font-size: 2rem; }
.signal-list { list-style: none; padding: 0; }
.signal-list li { padding: 12px 0; border-top: 1px solid var(--line); margin: 0; color: #333b4d; }

.trust-strip { background: var(--navy); color: #f8f2e8; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: center; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; font-weight: 700; }

.section-heading { max-width: 820px; margin-bottom: 48px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; }
.narrow { max-width: 720px; }
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05); }
.card p { color: var(--muted); }
.card a { color: var(--champagne-dark); font-weight: 700; }
.card a:hover { text-decoration: underline; text-underline-offset: 4px; }

.service-list { display: grid; gap: 18px; }
.service-item { display: grid; grid-template-columns: 86px 1fr; gap: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.service-number { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--champagne); font-weight: 700; }
.service-item p { color: var(--muted); max-width: 780px; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.situation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.situation-grid p { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; color: #394255; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f4f0e8; color: var(--champagne-dark); font-weight: 800; margin-bottom: 26px; }
.step p { color: var(--muted); }

.profile { background: var(--navy); color: white; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.profile .eyebrow { color: var(--champagne); }
.profile-panel p { color: var(--muted); font-size: 1.06rem; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.proof-grid div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 24px; min-height: 170px; }
.proof-grid strong { display: block; color: var(--champagne-dark); font-size: 1.05rem; margin-bottom: 12px; }
.proof-grid span { color: var(--muted); }
.profile .profile-panel p { color: #d9dee8; }
.profile .proof-grid strong { color: var(--champagne); }
.profile .proof-grid span { color: #d9dee8; }

.quote-band { background: linear-gradient(135deg, #f4f0e8, #fbfaf7); }
blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 4.6rem); line-height: 1.1; letter-spacing: -.04em; color: var(--navy); max-width: 980px; }

.section.contact {
  background: linear-gradient(180deg, #f3eee4 0%, #fbfaf7 100%);
  border-top: 1px solid rgba(156, 122, 65, 0.14);
  border-bottom: 1px solid rgba(231, 226, 216, 0.9);
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 420px; gap: 50px; align-items: start; }
.contact p { color: var(--muted); font-size: 1.1rem; }
.contact-card { background: var(--navy); color: white; border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }
.contact-card p { color: #d9dee8; font-size: 1rem; }
.contact-link { display: inline-block; color: var(--champagne); font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; }
.contact-card .button-primary { background: white; color: var(--navy); margin-top: 16px; }

.site-footer { background: #0c111d; color: #d9dee8; padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-brand .brand-mark { background: #fff; color: var(--navy); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #f8f2e8; }

@media (max-width: 920px) {
  .section { padding: 78px 0; }
  .hero-grid, .split, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .cards.three, .steps, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { position: fixed; inset: 78px 16px auto 16px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; display: none; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .language-switch { align-self: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2.75rem; }
  .hero h1 { font-size: 2.35rem; }
  .subhero h1 { font-size: 2.45rem; }
  .cards.three, .steps, .proof-grid, .situation-grid { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .hero-card, .contact-card { padding: 26px; border-radius: 24px; }
  .hero-actions .button { width: 100%; }
}

.legal-section h1 { font-size: clamp(2.1rem, 4vw, 4rem); }
.legal-section h2 { font-size: clamp(1.35rem, 2vw, 2rem); margin-top: 2rem; }

/* Final SEO/accessibility refinements */
a:focus-visible, button:focus-visible, summary:focus-visible {
  describe: 3px solid rgba(156, 122, 65, .45);
  describe-offset: 4px;
  border-radius: 8px;
}

.faq-section .section-heading { margin-bottom: 32px; }
.faq-list { display: grid; gap: 14px; max-width: 920px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.04);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.faq-list summary::marker { color: var(--champagne-dark); }
.faq-list details p { margin: 14px 0 0; color: var(--muted); }

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

/* Ruhige Premium-Motion-Ebene: keine inhaltlichen Änderungen, keine neuen Hintergrundlinien. */
:root {
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  transition: background-color .34s var(--ease-premium), box-shadow .34s var(--ease-premium), border-color .34s var(--ease-premium);
}

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.92);
  border-bottom-color: rgba(217, 196, 159, .45);
  box-shadow: 0 14px 38px rgba(17, 24, 39, .065);
}

.header-inner { transition: min-height .34s var(--ease-premium); }
.site-header.is-scrolled .header-inner { min-height: 70px; }

.brand-mark,
.language-switch,
.nav-toggle,
.card,
.service-item,
.situation-grid p,
.step,
.proof-grid div,
.hero-card,
.contact-card,
.faq-list details {
  transition:
    transform .36s var(--ease-premium),
    box-shadow .36s var(--ease-premium),
    border-color .36s var(--ease-premium),
    background-color .36s var(--ease-premium);
}

.brand:hover .brand-mark { transform: translateY(-1px) scale(1.025); }
.language-switch a { transition: background-color .24s var(--ease-premium), color .24s var(--ease-premium), transform .24s var(--ease-premium); }
.language-switch a:hover { transform: translateY(-1px); }
.nav-toggle:hover { transform: translateY(-1px); border-color: rgba(156, 122, 65, .45); }

.button {
  transition:
    transform .28s var(--ease-premium),
    box-shadow .28s var(--ease-premium),
    background-color .28s var(--ease-premium),
    border-color .28s var(--ease-premium);
}
.button:hover { transform: translateY(-3px); }

.card:hover,
.service-item:hover,
.situation-grid p:hover,
.step:hover,
.proof-grid div:hover,
.hero-card:hover,
.contact-card:hover,
.faq-list details:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(17, 24, 39, .09);
}

.service-number,
.step span {
  transition: transform .34s var(--ease-premium), box-shadow .34s var(--ease-premium);
}
.service-item:hover .service-number,
.step:hover span { transform: scale(1.04); }

.card a,
.contact-link,
.footer-links a {
  transition: color .24s var(--ease-premium), opacity .24s var(--ease-premium), text-underline-offset .24s var(--ease-premium);
}
.card a:hover,
.contact-link:hover,
.footer-links a:hover { text-underline-offset: 6px; }

.trust-grid span { transition: transform .32s var(--ease-premium), color .32s var(--ease-premium); }
.trust-grid span:hover { transform: translateY(-2px); color: var(--champagne); }

.faq-list details[open] {
  border-color: rgba(156, 122, 65, .32);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .07);
}
.faq-list summary { transition: color .24s var(--ease-premium); }
.faq-list summary:hover { color: var(--champagne-dark); }

.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(3px);
  transition:
    opacity .76s var(--ease-enter) var(--reveal-delay, 0ms),
    transform .76s var(--ease-enter) var(--reveal-delay, 0ms),
    filter .76s var(--ease-enter) var(--reveal-delay, 0ms);
}
.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
.motion-ready .reveal.reveal-subtle { transform: translate3d(0, 10px, 0); }
.motion-ready .reveal.reveal-left { transform: translate3d(-14px, 0, 0); }
.motion-ready .reveal.reveal-left.is-visible { transform: translate3d(0, 0, 0); }
.motion-ready .hero-copy > .reveal:first-child { transition-delay: 60ms; }
.motion-ready .hero-copy > .reveal:nth-child(2) { transition-delay: 120ms; }
.motion-ready .hero-copy > .reveal:nth-child(3) { transition-delay: 180ms; }
.motion-ready .hero-copy > .reveal:nth-child(4) { transition-delay: 240ms; }
.motion-ready .hero-copy > .reveal:nth-child(5) { transition-delay: 300ms; }

@media (max-width: 920px) {
  .site-nav { transform-origin: top right; }
  .site-nav.is-open { animation: nav-enter-subtle .28s var(--ease-enter); }
  @keyframes nav-enter-subtle {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (hover: none) {
  .card:hover,
  .service-item:hover,
  .situation-grid p:hover,
  .step:hover,
  .proof-grid div:hover,
  .hero-card:hover,
  .contact-card:hover,
  .faq-list details:hover {
    transform: none;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* BYTHAI project reference — cache-safe, responsive and stable across Safari, desktop, tablet and mobile */
.project-highlight {
  margin-top: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(247,243,235,.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}
.project-highlight p { color: var(--muted); }
.project-highlight h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); margin-bottom: 12px; }
.project-highlight-brand {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 190px;
  justify-self: end;
  padding: 18px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(231,226,216,.95);
  border-radius: 22px;
  overflow: hidden;
  box-sizing: border-box;
}
.project-highlight-brand img,
.project-highlight-brand img.bythai-home-logo {
  display: block !important;
  width: 128px !important;
  max-width: 128px !important;
  height: auto !important;
  max-height: 118px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  border-radius: 14px;
}
.project-highlight-brand span { color: var(--champagne-dark); font-weight: 700; font-size: .9rem; text-align: center; line-height: 1.35; }
.project-link { color: var(--champagne-dark); font-weight: 750; text-decoration: none; }
.project-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.case-section { overflow: hidden; }
.case-section-blue { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.case-section-blue .eyebrow { color: var(--champagne); }
.case-section-blue h2 { color: #ffffff; }
.case-section-blue .case-copy p { color: #d9dee8; }
.case-section-blue .project-link { color: var(--champagne); }

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 54px;
  align-items: center;
}
.case-copy p { color: var(--muted); font-size: 1.08rem; }
.case-copy .project-link { display: inline-flex; margin-top: 8px; }
.case-visual,
.case-visual--slideshow {
  display: block;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-sizing: border-box;
  overflow: hidden;
}
.case-visual:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(17, 24, 39, 0.14); }
.case-slideshow-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5eadf 0%, #fffaf5 100%);
}
.case-slideshow-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 20px;
  opacity: 1;
  transition: opacity .32s ease;
}
.case-slideshow-image.is-fading { opacity: .38; }
.case-visual-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.case-visual-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(123, 113, 112, 0.28); transition: background-color .3s ease, transform .3s ease; }
.case-visual-dots span.is-active { background: var(--champagne-dark); transform: scale(1.15); }
.case-visual-caption { display: block; margin-top: 14px; color: var(--champagne-dark); font-weight: 750; font-size: .95rem; text-align: center; line-height: 1.35; }
.profile-mini-reference { margin-top: 34px; padding: 28px 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.profile-mini-reference h3 { color: #fff; font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: 10px; }
.profile-mini-reference p { color: #d9dee8; }
.profile-mini-reference .project-link { color: var(--champagne); }

@media (max-width: 920px) {
  .project-highlight,
  .case-study-grid { grid-template-columns: 1fr; }
  .project-highlight-brand {
    justify-self: center;
    max-width: 210px;
    margin-top: 4px;
  }
  .project-highlight-brand img,
  .project-highlight-brand img.bythai-home-logo {
    width: 116px !important;
    max-width: 116px !important;
    max-height: 108px !important;
  }
  .case-visual,
  .case-visual--slideshow {
    justify-self: center;
    max-width: min(520px, 100%);
  }
}

@media (max-width: 640px) {
  .project-highlight { padding: 24px 22px; gap: 22px; }
  .project-highlight-brand {
    max-width: 190px;
    padding: 16px;
  }
  .project-highlight-brand img,
  .project-highlight-brand img.bythai-home-logo {
    width: 104px !important;
    max-width: 104px !important;
    max-height: 98px !important;
  }
  .project-highlight-brand span { font-size: .82rem; }
  .case-study-grid { gap: 30px; }
  .case-visual,
  .case-visual--slideshow {
    max-width: 100%;
    padding: 10px;
    border-radius: 24px;
  }
  .case-slideshow-frame {
    aspect-ratio: 4 / 3;
    max-height: 320px;
    border-radius: 18px;
  }
  .case-slideshow-image { border-radius: 16px; }
  .case-visual-caption { font-size: .82rem; margin-top: 12px; }
  .case-visual-dots { margin-top: 12px; }
}

@media (max-width: 390px) {
  .project-highlight-brand img,
  .project-highlight-brand img.bythai-home-logo {
    width: 96px !important;
    max-width: 96px !important;
  }
  .case-slideshow-frame { max-height: 290px; }
}


/* v36 refinements: bilingual structure, clearer section contrast and stronger proof cards. */
.profile .lead,
.profile .section-heading p:not(.eyebrow),
.profile .split > div > p:not(.eyebrow) {
  color: #d9dee8;
}

.proof-grid-highlight div {
  background: linear-gradient(135deg, #ffffff 0%, #f8f3ea 100%);
  border: 1px solid rgba(156, 122, 65, .28);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .075);
}
.proof-grid-highlight div:nth-child(2n) {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-color: rgba(217, 196, 159, .34);
}
.proof-grid-highlight div:nth-child(2n) strong { color: var(--champagne); }
.proof-grid-highlight div:nth-child(2n) span { color: #e7ebf3; }
.proof-grid-highlight div:nth-child(2n+1) strong { color: var(--champagne-dark); }
.proof-grid-highlight div:nth-child(2n+1) span { color: #394255; }

.section.profile .cards .card {
  background: #ffffff;
  color: var(--ink);
}
.section.profile .cards .card p { color: var(--muted); }
.section.profile .cards .card h3 { color: var(--navy); }
.section.profile .cards .card a { color: var(--champagne-dark); }

.offer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.offer-nav a {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--navy);
  font-weight: 750;
  text-align: center;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .04);
}
.offer-nav a:hover { text-decoration: none; color: var(--champagne-dark); transform: translateY(-2px); }
.profile .offer-nav a {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: #f8f2e8;
}
.profile .offer-nav a:hover { color: var(--champagne); }

.lang-note { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.project-highlight .project-link { display: inline-flex; margin-top: 4px; }

@media (max-width: 920px) {
  .offer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 18px; }
}
@media (max-width: 640px) {
  .offer-nav { grid-template-columns: 1fr; }
}


/* v37 refinements: integrated BYTHAI project view, stronger footer, aligned contact panel and improved dark-section readability. */

.section.profile .lead,
.case-section-blue .lead,
.reference-bridge .lead,
.section.profile .split > div > p:not(.eyebrow) {
  color: #eef2f8;
}

.contact-grid-bottom { align-items: end; }
.contact-grid-bottom > div:first-child { display: grid; }
.contact-grid-bottom .cards.three { align-self: end; }
.contact-grid-bottom .contact-card { align-self: end; }

.reference-bridge { padding-top: 18px; }
.project-highlight-inline { margin-top: 0; }
.project-highlight-inline .project-highlight-brand img { width: 148px !important; max-width: 148px !important; max-height: 148px !important; border-radius: 18px; }

.site-footer {
  background: linear-gradient(180deg, #0b1220 0%, #10192d 100%);
  color: #d9dee8;
  padding: 56px 0 60px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-shell {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr) minmax(0,.85fr);
  gap: 42px;
  align-items: start;
}
.footer-brand-block p { max-width: 520px; color: #d9dee8; margin-top: 16px; }
.footer-title {
  margin: 0 0 14px;
  font-size: .88rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 750;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-links-stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer .footer-links a,
.site-footer .footer-brand,
.site-footer .footer-brand .brand-text { color: #f8f2e8; }
.site-footer .footer-links a { opacity: .92; }
.site-footer .footer-links a:hover,
.site-footer .footer-brand:hover .brand-text { color: var(--champagne); text-decoration: none; }
.site-footer .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.site-footer .footer-brand .brand-mark img { display:block; }

.case-section-blue .case-copy p,
.case-section-blue .lead,
.case-section-blue p { color: #e6ebf4; }
.case-section-blue .cards .card p,
.section.profile .cards .card p { color: #4e5a70; }

@media (max-width: 980px) {
  .footer-shell { grid-template-columns: 1fr; gap: 28px; }
}


/* v38 refinements: five entry cards, integrated BYTHAI highlight, clearer offer labels and navy CAS references. */
.first-conversation-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
}
.first-conversation-note a {
  color: var(--champagne-dark);
  font-weight: 750;
}
.project-highlight-integrated {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,244,236,.92));
}
.project-highlight-integrated .project-highlight-visual {
  max-width: 260px;
  padding: 10px;
}
.project-highlight-integrated .case-slideshow-frame {
  border-radius: 20px;
}
.project-highlight-integrated .case-visual-caption {
  font-size: .82rem;
}
.cas-reference-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%) !important;
  border-color: rgba(217,196,159,.38) !important;
  box-shadow: 0 20px 48px rgba(17,24,39,.18) !important;
}
.cas-reference-card h3,
.cas-reference-card .eyebrow,
.cas-reference-card .project-link {
  color: var(--champagne) !important;
}
.cas-reference-card p {
  color: #e6ebf4 !important;
}
.cas-reference-card .project-highlight-brand {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
.cas-reference-card .project-highlight-brand span {
  color: var(--champagne) !important;
}
@media (max-width: 920px) {
  .project-highlight-integrated .project-highlight-visual {
    max-width: min(420px, 100%);
  }
}


/* v40 refinements */

.offer-nav .offer-nav-primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}
.offer-nav .offer-nav-primary:hover {
  color: #ffffff;
  background: #111c34;
}
.step h3 {
  color: var(--ink);
}
.project-highlight-shell {
  margin-top: 36px;
}
.project-highlight-wide {
  margin-top: 0;
  width: 100%;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 320px);
}
.project-highlight-wide .project-highlight-visual {
  max-width: none;
  width: 100%;
  justify-self: end;
}
.project-highlight-wide .case-slideshow-frame {
  max-width: 290px;
  margin-inline: auto;
}
.cas-reference-card {
  min-height: 300px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: center;
}
.cas-reference-card .project-highlight-brand {
  min-height: 210px;
}
@media (max-width: 920px) {
  .project-highlight-wide {
    grid-template-columns: 1fr;
  }
  .project-highlight-wide .project-highlight-visual {
    justify-self: start;
  }
  .cas-reference-card {
    min-height: 260px;
  }
}


/* v41 refinements: light profile proof cards, aligned mandate/AI content columns and larger reference cards. */
.proof-grid-highlight div,
.proof-grid-highlight div:nth-child(2n),
.proof-grid-highlight div:nth-child(2n+1) {
  background: linear-gradient(135deg, #ffffff 0%, #f8f3ea 100%);
  border: 1px solid rgba(156, 122, 65, .28);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .075);
}
.proof-grid-highlight div strong,
.proof-grid-highlight div:nth-child(2n) strong,
.proof-grid-highlight div:nth-child(2n+1) strong {
  color: var(--champagne-dark);
}
.proof-grid-highlight div span,
.proof-grid-highlight div:nth-child(2n) span,
.proof-grid-highlight div:nth-child(2n+1) span {
  color: #394255;
}

.scope-note {
  margin: 20px 0 16px;
  color: var(--muted);
  font-weight: 750;
}

@media (min-width: 921px) {
  .split {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 72px;
  }
}

.cas-reference-card {
  min-height: 450px;
  padding-top: 58px;
  padding-bottom: 58px;
}
.cas-reference-card .project-highlight-brand {
  min-height: 275px;
}
.cas-reference-card .project-highlight-brand img {
  width: 168px !important;
  max-width: 168px !important;
  max-height: 168px !important;
}

@media (max-width: 920px) {
  .cas-reference-card {
    min-height: 320px;
  }
  .cas-reference-card .project-highlight-brand {
    min-height: 210px;
  }
}


/* v43 refinements: v40-style CAS reference cards and special alignment exception for confidential mandates. */

/* Special exception: confidential special mandates keep the more open v40-style card alignment. */
@media (min-width: 921px) {
  .special-mandates-exception .container.split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

/* Restore the v40 proportions for IKF reference cards while keeping the navy visual language. */
.cas-reference-card {
  min-height: 300px !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  align-items: center !important;
}
.cas-reference-card .project-highlight-brand {
  min-height: 210px !important;
}
.cas-reference-card .project-highlight-brand img {
  width: 148px !important;
  max-width: 148px !important;
  max-height: 148px !important;
}
@media (max-width: 920px) {
  .cas-reference-card {
    min-height: 260px !important;
  }
}
