/* ===========================================================
   Kaeus — brand site
   =========================================================== */

:root {
  --kaeus-bg-dark: #111111;
  --kaeus-bg-darker: #0a0a0a;
  --kaeus-bg-light: #f5f5f5;
  --kaeus-text-dark: #222222;
  --kaeus-text-light: #eeeeee;
  --kaeus-muted: #8a8a8a;
  --kaeus-yellow: #f6ef21;
  --kaeus-yellow-dim: #c9c30c;
  --kaeus-divider-dark: #2a2a2a;
  --kaeus-divider-light: #d8d8d8;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--kaeus-bg-dark);
  color: var(--kaeus-text-light);
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section { scroll-margin-top: 90px; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* ---------- Typography play (kaeus-style mixed weights) ---------- */
.t-thin   { font-weight: 200; letter-spacing: -0.01em; }
.t-light  { font-weight: 300; }
.t-heavy  { font-weight: 800; letter-spacing: -0.02em; }
.t-big    { font-size: 1.4em; line-height: 0.9; }
.t-small  { font-size: 0.7em; letter-spacing: 0.04em; }
.t-yellow { color: var(--kaeus-yellow); }

/* ---------- Navbar ---------- */
.navbar-main {
  background-color: var(--kaeus-bg-dark) !important;
  height: 90px;
  border-bottom: 1px solid var(--kaeus-divider-dark);
}

.navbar-main .nav-link {
  color: #cccccc !important;
  font-weight: 400;
  transition: color 0.15s ease;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: #ffffff !important;
}

.navbar-logo { width: 200px; }

/* Language toggle: render the <button> elements as plain text links. */
.lang-switch button.nav-link {
  background: none;
  border: 0;
  cursor: pointer;
}

.lang-switch .nav-link.active {
  font-weight: 600 !important;
  color: var(--kaeus-yellow) !important;
}

/* ---------- Skip to content ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1100;
  padding: 0.6rem 1rem;
  background: var(--kaeus-yellow);
  color: var(--kaeus-text-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--kaeus-text-dark);
  outline-offset: 2px;
}

/* Skip target: move reading position without a stray focus ring on the region. */
#main:focus {
  outline: none;
}

/* Honeypot: removed from layout and the accessibility tree, off-screen so
   nothing focuses or sees it, but still present for bots to fill. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .navbar-logo { width: 100px; }
  .navbar-main { height: 70px; }
  .navbar-main .navbar-collapse {
    background-color: var(--kaeus-bg-dark);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--kaeus-divider-dark);
  }
}

.navmainfooter-content { padding-top: 90px; }

@media screen and (max-width: 768px) {
  .navmainfooter-content { padding-top: 70px; }
}

/* ---------- HERO / Banner ---------- */
.hero-section {
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  /* viewport minus the fixed navbar (90px) so the hero fills exactly one
     screen and the scroll cue stays visible above the fold on load. */
  min-height: calc(100vh - 90px);
}

.hero-image {
  width: 100%;
  height: calc(100vh - 90px);
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  filter: brightness(1.03) contrast(1.03);
  animation: kenburns 24s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(17,17,17,0) 0%, rgba(17,17,17,0.35) 55%, rgba(17,17,17,0.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(17,17,17,0.98) 100%);
  pointer-events: none;
}

/* thin brand accent line at the very bottom of the hero */
.hero-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--kaeus-yellow), transparent);
  opacity: 0.7;
  z-index: 3;
}

/* scroll cue */
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* soft local scrim so the tagline reads over the lit globe
     without dimming the whole image */
  background: radial-gradient(ellipse 66% 46% at 50% 50%,
    rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.35) 48%, rgba(0,0,0,0) 72%);
}

.hero-tagline {
  font-size: 4rem;
  font-weight: 200;
  line-height: 1.15;
  margin: 0;
  text-align: center;
  max-width: 980px;
  color: #ffffff;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 1px 6px rgba(0,0,0,0.65);
}

/* Brand inside tagline inherits the tagline's own weight. */

.hero-subtagline {
  margin: 1.4rem 0 0;
  max-width: 640px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
  color: #e6e6e6;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.7), 0 1px 5px rgba(0,0,0,0.65);
}

@media screen and (max-width: 768px) {
  .hero-bg { min-height: calc(100vh - 70px); }
  .hero-image { height: calc(100vh - 70px); }
  .hero-tagline { font-size: 2.3rem; padding: 0 1rem; }
  .hero-subtagline { font-size: 1rem; margin-top: 1rem; padding: 0 1.5rem; }
}

/* ---------- Sections ---------- */
/* Each section fills at least a full viewport, content vertically centered,
   for a "one page per section" rhythm. Sections with more content grow
   naturally beyond 100vh. */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.section > .container {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .section {
    min-height: auto;
    padding: 4rem 0;
  }
}

.section-light {
  background-color: var(--kaeus-bg-light);
  color: var(--kaeus-text-dark);
}

.section-dark {
  background-color: var(--kaeus-bg-darker);
}

.section-title {
  font-size: 3rem;
  font-weight: 200;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

@media screen and (max-width: 768px) {
  .section-title { font-size: 2.2rem; }
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--kaeus-muted);
  margin-bottom: 2.5rem;
}

.section-light .section-subtitle {
  color: #666;
}

.section-body {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- About ---------- */
#about .section-body {
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  color: #333;
}

@media screen and (max-width: 768px) {
  #about .section-body { font-size: 1.25rem; }
}

/* ---------- Sectors (typographic band, inside About) ---------- */
/* Real won-business sectors from kaeus.db. The artistic treatment is built
   purely from the Noto Sans weight range plus a condensed and an uppercase
   variant: monochrome on the light section, no italics, no accent color. */
.sectors-about {
  margin-top: 3.5rem;
}

.sectors-band-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: #6b6b6b;
  margin-bottom: 1.5rem;
}

/* One line, words butted together, alternating thin/thick weights. The flex
   container drops the whitespace between the spans, so the words run on with
   no gaps and the weight contrast marks the boundaries. */
.sectors-band-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em 0;            /* small space between wrapped lines, none between words */
  text-transform: lowercase;
  line-height: 1.15;
  color: var(--kaeus-text-dark);
}

.sec {
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
  white-space: nowrap;     /* keep each sector on one piece; wrap only between sectors */
}

.sec--thin { font-weight: 200; }
.sec--reg  { font-weight: 400; }

@media screen and (max-width: 768px) {
  .sectors-about { margin-top: 2.5rem; }
}

/* ---------- Technologies (wordmark strip) ---------- */
/* Real technologies from the case stacks. Sober, uniform wordmarks (proper
   brand casing kept) so it reads as a tech strip, distinct from the sectors
   band. */
.tech-strip {
  margin-top: 4.5rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.7rem 1.6rem;
}

.tech {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.01em;
}

@media screen and (max-width: 768px) {
  .tech-strip { margin-top: 3rem; }
  .tech-list { gap: 0.6rem 1.1rem; }
  .tech { font-size: 0.9rem; }
}

/* ---------- Team ---------- */
.team-member {
  max-width: 30rem;
  margin: 0 auto;
  text-align: center;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  /* Unify the source headshots (different backgrounds) with the deck's B&W look. */
  filter: grayscale(100%);
  border: 1px solid var(--kaeus-divider-dark);
  margin-bottom: 1.4rem;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.team-role {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--kaeus-yellow);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--kaeus-muted);
  margin: 0;
}

/* ---------- Why Kaeus ---------- */
.why-item {
  padding: 0.5rem 0 0 0;
  height: 100%;
  position: relative;
}

.why-num {
  display: block;
  font-size: 4.5rem;
  font-weight: 200;
  color: var(--kaeus-yellow);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.why-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.why-text {
  font-size: 1rem;
  font-weight: 300;
  color: #b8b8b8;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Services ---------- */
.service-card {
  background-color: #ffffff;
  height: 100%;
  border-top: 3px solid var(--kaeus-yellow);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.service-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0a0a0a;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.service-card:hover .service-image {
  transform: scale(1.07);
}

.service-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--kaeus-text-dark);
  line-height: 1;
  letter-spacing: -0.025em;
}

.service-pitch {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}

.service-text {
  font-size: 0.98rem;
  font-weight: 300;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ---------- How we work / phases ---------- */
.phase-item {
  padding: 1rem 0.5rem;
}

.phase-num {
  display: block;
  font-size: 1rem;
  font-weight: 200;
  color: var(--kaeus-yellow);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.phase-title {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.025em;
}

.phase-text {
  font-size: 1rem;
  font-weight: 300;
  color: #b8b8b8;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Cases ---------- */
.case-item {
  background-color: #ffffff;
  padding: 1.75rem;
  height: 100%;
  border-left: 3px solid var(--kaeus-yellow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-left-width 0.2s ease;
}

.case-item {
  cursor: pointer;
}

.case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  border-left-width: 6px;
}

.case-item:focus-visible {
  outline: 2px solid var(--kaeus-yellow);
  outline-offset: 3px;
}

.case-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.case-more::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.25s ease;
}

.case-item:hover .case-more::after {
  transform: translateX(4px);
}

.case-service {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kaeus-text-dark);
  background-color: var(--kaeus-yellow);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.case-sector {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b6b6b;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}

.case-title {
  font-size: 1.15rem;
  color: var(--kaeus-text-dark);
  margin-bottom: 0.5rem;
}

.case-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* Scannable qualitative result, the card's payoff line. */
.case-result {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #ececec;
}

.case-result-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6f6f6f;
  margin-bottom: 0.2rem;
}

.case-result-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--kaeus-text-dark);
}

/* ---------- Contact ---------- */
.contactus-button {
  width: 10rem;
  background-color: var(--kaeus-yellow);
  border-color: var(--kaeus-yellow);
  color: var(--kaeus-text-dark);
  font-weight: 600;
}

.contactus-button:hover,
.contactus-button:focus,
.contactus-button:active {
  background-color: #c5d630 !important;
  border-color: #c5d630 !important;
  color: var(--kaeus-text-dark) !important;
}

.contactus-icon {
  width: 2.5rem;
  font-size: 1.3em;
  line-height: 1.6;
  color: #ddd;
}

.contactus-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.contactus-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.contactus-link:hover {
  color: var(--kaeus-yellow);
}

.contactus-control {
  background-color: #2a2a2a;
  border-radius: 0;
  outline: none;
  border: 0;
  border-bottom: 1px solid #555;
  color: white;
  padding: 0.5rem 0.6rem;
}

.contactus-control:focus {
  background-color: #2a2a2a;
  border-radius: 0;
  outline: none;
  border: 0;
  border-bottom: 1px solid var(--kaeus-yellow);
  color: white;
  box-shadow: none;
}

/* ---------- Modal ---------- */
.modal-content {
  background-color: #2a2a2a;
  color: #eee;
  border-radius: 0;
  border: 0;
}

.modal-header {
  background-color: var(--kaeus-bg-darker);
  border-radius: 0;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--kaeus-bg-darker);
  padding: 1.5rem 0;
  border-top: 1px solid var(--kaeus-divider-dark);
}

/* Lift muted text on dark backgrounds to meet WCAG AA contrast
   (Bootstrap .text-muted #6c757d sits at ~4.2:1 on the dark sections). */
.site-footer .text-muted,
#contact small.text-muted { color: #8f8f8f !important; }

/* ===========================================================
   Enhancements — reveal on scroll, nav, hover polish
   =========================================================== */

/* Scroll-reveal: elements rise + fade as they enter the viewport.
   The .reveal class is applied automatically by main.js. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1),
              transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Navbar gains a translucent blur + shadow once the page scrolls. */
.navbar-main {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar-main.scrolled {
  background-color: rgba(17, 17, 17, 0.82) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* Why-items: the number warms up + the block lifts slightly on hover. */
.why-item {
  transition: transform 0.3s ease;
}

.why-item:hover {
  transform: translateY(-4px);
}

.why-num {
  transition: letter-spacing 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.why-item:hover .why-num {
  opacity: 1;
  letter-spacing: -0.02em;
}

/* Phase items: number badge brightens on hover. */
.phase-item {
  transition: transform 0.3s ease;
}

.phase-item:hover {
  transform: translateY(-4px);
}

/* Service badge / sector tag on case cards gets a touch of motion. */
.case-service {
  transition: transform 0.3s ease;
}

.case-item:hover .case-service {
  transform: translateX(2px);
}

/* Language + nav links underline-grow on hover (dark navbar). */
.navbar-main .nav-link {
  position: relative;
}

.navbar-main .nav-link[href^="#"]::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--kaeus-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar-main .nav-link[href^="#"]:hover::after,
.navbar-main .nav-link[href^="#"].active::after {
  transform: scaleX(1);
}

/* Buttons get a gentle lift. */
.contactus-button {
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contactus-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 239, 33, 0.25);
}

/* ---------- Case detail drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1040;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.case-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 480px;
  max-width: 92vw;
  background: var(--kaeus-bg-dark);
  border-left: 3px solid var(--kaeus-yellow);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
  z-index: 1050;
  overflow-y: auto;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
}

.case-drawer.open {
  transform: none;
}

.drawer-close {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  text-align: right;
  background: var(--kaeus-bg-dark);
  border: 0;
  color: #999;
  font-size: 2rem;
  line-height: 1;
  padding: 1rem 1.5rem 0.5rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease;
}

.drawer-close:hover {
  color: #fff;
}

.drawer-content {
  padding: 0 2rem 3rem;
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.drawer-head .case-service,
.drawer-head .case-sector {
  margin: 0;
}

.drawer-title {
  font-size: 1.8rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

/* Full-width drawer on mobile, with a comfortable, reachable close button. */
@media screen and (max-width: 768px) {
  .case-drawer { left: 0; right: 0; width: auto; max-width: none; border-left: 0; }
  .drawer-close { font-size: 2.4rem; padding: 0.9rem 1.25rem 0.5rem; }
  .drawer-content { padding: 0 1.25rem 2.5rem; }
  .drawer-title { font-size: 1.5rem; }
}

.drawer-summary {
  font-size: 1.1rem;
  font-weight: 300;
  color: #dcdcdc;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.drawer-section {
  margin-bottom: 1.75rem;
}

.drawer-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--kaeus-yellow);
  margin-bottom: 0.6rem;
}

.drawer-body {
  color: #c4c4c4;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
}

.drawer-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.drawer-body li {
  margin-bottom: 0.5rem;
}

.drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.drawer-chips .chip {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid #444;
  border-radius: 999px;
  color: #cfcfcf;
}

.drawer-cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--kaeus-yellow);
  color: var(--kaeus-text-dark);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 239, 33, 0.25);
  color: var(--kaeus-text-dark);
}

/* Prerendered, crawler-facing case detail. Present in the static HTML for SEO
   and AI crawlers; never shown to users (the interactive drawer is the human
   path). Kept off layout via the hidden attribute; this is a belt-and-suspenders. */
.case-detail { display: none !important; }

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-image { animation: none; }
  .hero-cue { animation: none; }
  .case-drawer { transition: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Service detail page ---------- */
.service-detail .breadcrumb-nav {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: #777;
}
.service-detail .breadcrumb-nav a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}
.service-detail .breadcrumb-nav a:hover { color: var(--kaeus-text-dark); }
.service-detail .breadcrumb-nav .sep { margin: 0 0.5rem; color: #bbb; }

.service-detail-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--kaeus-text-dark);
  margin-bottom: 0.75rem;
}
.service-detail-pitch {
  font-size: 1.25rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 1.25rem;
}
.service-detail-overview {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  max-width: 72ch;
}

.service-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--kaeus-text-dark);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.service-list {
  padding-left: 1.2rem;
  line-height: 1.75;
  color: #444;
  max-width: 72ch;
}
.service-list li { margin-bottom: 0.4rem; }

.service-detail .phase-item { text-align: left; }

.service-tech { margin-top: 0.25rem; }

.service-cta-wrap { margin-top: 3rem; }

/* "Learn more" link on service cards */
.service-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--kaeus-text-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--kaeus-yellow);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}
.service-more::after { content: " \2192"; }
.service-more:hover { opacity: 0.7; }

/* ---------- Service detail: hero ---------- */
.service-hero .breadcrumb-nav { font-size: 0.9rem; margin-bottom: 1.5rem; color: #999; }
.service-hero .breadcrumb-nav a { color: #bbb; text-decoration: none; transition: color 0.15s ease; }
.service-hero .breadcrumb-nav a:hover { color: #fff; }
.service-hero .breadcrumb-nav .sep { margin: 0 0.5rem; color: #555; }

.service-hero-title {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
}
.service-hero-pitch {
  color: var(--kaeus-yellow);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.service-hero-intro {
  color: #cfcfcf;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 46ch;
}
.service-hero-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ---------- Service detail: problems ---------- */
.problem-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--kaeus-divider-light);
  border-radius: 10px;
}
.problem-card i {
  font-size: 1.7rem;
  color: var(--kaeus-yellow-dim);
  line-height: 1.1;
  flex-shrink: 0;
}
.problem-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--kaeus-text-dark);
  margin-bottom: 0.3rem;
}
.problem-text { font-size: 0.97rem; color: #555; margin: 0; line-height: 1.6; }

/* ---------- Service detail: includes / tech ---------- */
.service-overview { font-size: 1.05rem; line-height: 1.7; color: #444; margin-bottom: 1.1rem; }
.chips-light .chip { color: var(--kaeus-text-dark) !important; border-color: #cccccc !important; }

/* ---------- Service detail: success stories (static cards) ---------- */
.service-detail-cases .case-item,
.case-item:not([data-case]) { cursor: default; }

/* ---------- Service detail: CTA band ---------- */
.service-cta-band .section-title { color: #ffffff; margin-bottom: 0.5rem; }

/* ---------- Service detail: fixes & case detail ---------- */
/* Service detail sections must NOT inherit the home's full-viewport min-height. */
.service-detail-page .section { min-height: 0; }

.service-case .service-case-line {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
  margin: 0.55rem 0 0;
}
.service-case .service-case-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kaeus-yellow-dim);
  margin-right: 0.5rem;
}

.service-case .service-case-client {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kaeus-text-dark);
  margin: 0.15rem 0 0.35rem;
}

/* ---------- Service detail: dark content bands (contrast fixes) ---------- */
.service-band-dark .section-title { color: #ffffff; }
.service-band-dark .service-overview { color: #cfcfcf; }
.service-band-dark .service-list { color: #cfcfcf; }

/* Success-story cards on the dark band */
.service-band-dark .service-case {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  height: 100%;
}
.service-band-dark .service-case .case-sector { color: #9a9a9a; }
.service-band-dark .service-case .service-case-client { color: #ededed; }
.service-band-dark .service-case .case-title { color: #ffffff; }
.service-band-dark .service-case .case-text { color: #cfcfcf; }
.service-band-dark .service-case .service-case-line,
.service-band-dark .service-case .service-case-line span:last-child { color: #bdbdbd; }
.service-band-dark .service-case .service-case-label { color: var(--kaeus-yellow); }

/* "See all projects" link on dark */
.service-band-dark .service-more { color: #ffffff; }

/* Step the CTA band a touch darker so it reads as a distinct close */
.service-cta-band { background: var(--kaeus-bg-darker) !important; }

/* Phase items on a light band (home styles them for dark backgrounds). */
.section-light .phase-text { color: #555555; }
.section-light .phase-title { color: var(--kaeus-text-dark); }
.section-light .phase-num { color: #6b6b6b; }

/* Problem icon: yellow on a dark chip keeps brand accent legible on the light band. */
.problem-card i {
  background: var(--kaeus-bg-dark);
  color: var(--kaeus-yellow);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ---------- Service detail: "How we deliver" method phases ---------- */
.method-phase { text-align: left; }
.method-deliverable {
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--kaeus-divider-light);
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555;
}
.method-deliverable-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 0.2rem;
}

/* Service levels (not sequential phases): each card marked with a brand accent. */
.method-phase {
  padding-top: 1.1rem;
  border-top: 3px solid var(--kaeus-yellow);
}
.section-light .method-phase .phase-title { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.6rem; }

/* ---------- Persistent back-to-home button (service pages) ---------- */
.back-home {
  position: fixed;
  left: 1rem;
  bottom: 1.25rem;
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: var(--kaeus-yellow);
  color: var(--kaeus-text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.back-home i { font-size: 1.15rem; line-height: 1; }
.back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  color: var(--kaeus-text-dark);
}
.back-home:focus-visible { outline: 2px solid var(--kaeus-text-dark); outline-offset: 2px; }
