/* =========================================================================
   MKDT — MK DT INFORMATION TECHNOLOGY L.L.C
   Site styles (all pages)
   ========================================================================= */

/* ------------------------------ Tokens --------------------------------- */
:root {
  /* Brand */
  --red: #e60012;
  --red-dark: #c00010;

  /* Greys */
  --grey-10: #fafafa;
  --grey-30: #d1d1d1;
  --grey-40: #b0b0b0;
  --grey-50: #888888;
  --grey-60: #5d5d5d;
  --grey-80: #313131;
  --grey-90: #222222;
  --grey-100: #131212;
  --white: #ffffff;

  /* Semantic */
  --text: var(--grey-100);
  --text-2: var(--grey-60);
  --text-3: var(--grey-50);
  --line: #ececec;

  /* Type */
  --sans: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;

  /* Layout */
  --page: 1440px;
  --pad: 80px;             /* horizontal gutter */
  --content: 1280px;       /* inner content width */
}

/* ------------------------------ Reset ---------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; /* in-page links land below the sticky header */ }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ------------------------------ Helpers -------------------------------- */
.container {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 500; }
.accent  { color: var(--red); }
.muted   { color: var(--text-2); }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-80);
}

/* Section heading (sans, tight tracking) */
.h-section {
  font-weight: 500;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.5;
  letter-spacing: -.02em;
}
.h-mission {
  font-weight: 500;
  font-size: clamp(30px, 6.7vw, 96px);
  line-height: 1.5;
  letter-spacing: -.02em;
}

/* Body copy */
.lead { font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--ghost {                     /* small red-outline pill (Learn more) */
  padding: 9px 18px;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn--ghost:hover { background: var(--red); color: #fff; }

.btn--primary {                   /* solid red pill */
  padding: 14px 26px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  font-size: 15px;
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--white {                     /* header contact */
  height: 46px; min-width: 148px; padding: 0 24px;
  justify-content: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.btn--white:hover { background: #fff; color: var(--grey-100); }

/* Red arrow icon reused */
.arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }
/* Diagonal "opens elsewhere" arrow — nudge up-right instead of right */
.btn:hover .arrow--diag { transform: translate(3px, -3px); }

/* ------------------------------ Logo ----------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .04em;
  line-height: 1;
  gap: 4px;
  flex: 0 0 auto;          /* never let a tight header row shrink the logo */
}
.logo .d-box {
  width: .74em; height: .74em;
  border: 3px dotted var(--red);
  border-radius: 4px;
  display: inline-block;
}
.logo picture { display: block; }
.logo img {
  display: block;
  height: 34px;
  width: auto;
  max-width: none;         /* opt out of the global img max-width so a fixed
                              height can never be paired with a clamped width */
}
/* Taller logo on phones — the mobile variant includes the company tagline */
@media (max-width: 600px) {
  .logo img { height: 50px; }
}
.logo--light { color: #fff; }
.logo--light .d-box { border-color: var(--red); }
.logo--dark { color: var(--grey-80); }

/* ============================== HEADER ================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
}
.site-header .container {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav {
  display: flex;
  gap: 34px;
  margin-inline: auto;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a {
  position: relative;
  white-space: nowrap;      /* never wrap; site.js switches to the hamburger instead */
  opacity: .92;
  padding-bottom: 4px;
  transition: opacity .18s ease, color .18s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { font-weight: 600; opacity: 1; }

/* Services dropdown */
.nav-dd { position: relative; }
.nav-dd__trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd__caret { width: 13px; height: 13px; transition: transform .2s; }
.nav-dd:hover .nav-dd__caret { transform: rotate(180deg); }
.nav-dd__menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(14px);
  min-width: 230px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: rgba(19, 18, 18, .97);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-dd:hover .nav-dd__menu,
.nav-dd:focus-within .nav-dd__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}
/* invisible bridge so hover isn't lost in the gap above the menu */
.nav-dd__menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -16px;
  height: 16px;
}
.nav-dd__menu a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  opacity: 1;
}
.nav-dd__menu a::after { display: none; }
.nav-dd__menu a:hover { background: rgba(255,255,255,.1); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Contact Us inside the hamburger panel — only shown once the header button is
   dropped on narrow phones (see the max-width: 520px block). */
.nav-contact { display: none; }

/* Language dropdown (header) */
.lang-select { position: relative; }
.lang-select__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; min-width: 148px; padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: transparent;
  color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.lang-select__btn:hover { background: rgba(255,255,255,.15); }
.lang-select__btn > svg:first-child { width: 17px; height: 17px; flex: none; }
.lang-select__chev { width: 14px; height: 14px; flex: none; transition: transform .2s; }
.lang-select__btn[aria-expanded="true"] .lang-select__chev { transform: rotate(180deg); }
.lang-select__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px;
  list-style: none; margin: 0; padding: 6px;
  background: #fff; color: var(--grey-90);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
  display: none;
  z-index: 60;
}
.lang-select__menu.open { display: block; }
.lang-select__menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px; border: 0; background: transparent;
  border-radius: 8px;
  font-size: 14px; color: var(--grey-90); cursor: pointer;
}
.lang-select__menu button:hover { background: var(--grey-10); }
.lang-select__menu button.is-active { color: var(--red); font-weight: 600; }

/* Language options inside the mobile hamburger panel */
.nav-langs { display: none; }
.nav-langs__btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent; color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.nav-langs__btn.is-active { border-color: var(--red); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== HERO =================================== */
.hero {
  position: relative;
  /* Follow the screen: never taller than the 16:9 video at this width (56.25vw),
     so wide monitors crop as little of the video as possible. */
  height: min(100vh, 56.25vw);
  height: min(100svh, 56.25vw);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 10%;   /* faces sit in the upper part of every scene — crop the bottom first */
  transform-origin: 50% 10%;  /* intro zoom also keeps the faces in frame */
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.35) 45%, rgba(10,10,12,.6));
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; padding: 0 24px; max-width: 1240px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 7.6vw, 112px);
  line-height: 1.5;
  letter-spacing: .5px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; }
/* CJK headings are split into phrases (.ph) so lines only break between them */
.hero h1 .ph { display: inline-block; }

/* ============ Textured light background (pink + noise) ================= */
.bg-soft {
  position: relative;
  background:
    radial-gradient(60% 60% at 4% 2%, rgba(230,0,18,.16), transparent 60%),
    radial-gradient(55% 55% at 100% 0%, rgba(230,0,18,.13), transparent 55%),
    radial-gradient(70% 60% at 100% 100%, rgba(230,0,18,.10), transparent 60%),
    radial-gradient(60% 55% at 0% 100%, rgba(230,0,18,.10), transparent 60%),
    var(--white);
}
/* subtle film grain overlay */
.bg-soft::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}
.bg-soft > * { position: relative; z-index: 1; }

/* grey grainy band that some sections fade into at the bottom */
.grain-band {
  display: none;
}
.grain-band::after {
  content: "";
  position: absolute; inset: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ============================ WHO ARE WE =============================== */
.section { padding: 120px 0; }

.who { position: relative; overflow: hidden; }
.who .container { position: relative; z-index: 1; }
/* Two-up alternating grid: heading | office photo, then city photo | body copy.
   Each photo sits opposite the text block it pairs with. */
.who__grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 52px 50px;
  align-items: start;
}
.who__head        { grid-column: 1; grid-row: 1; }
.who__media--office { grid-column: 2; grid-row: 1; }
.who__media--city   { grid-column: 1; grid-row: 2; }
.who__body        { grid-column: 2; grid-row: 2; }

.who h2 {
  margin-top: 18px;
  font-weight: 500;
  font-size: clamp(30px, 6.2vw, 80px);
  line-height: 1.5;
  letter-spacing: -.02em;
}
.who h2 .serif-i { font-weight: 500; }

.who__media {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .13);
}
.who__media img { width: 100%; height: 100%; object-fit: cover; }
/* Bottom-aligned with the headline it sits beside. */
.who__media--office { aspect-ratio: 16 / 7; align-self: end; }
/* Stretches to match the height of the paragraph opposite it. The image is
   absolutely positioned so its intrinsic height doesn't drive the row — the
   paragraph does, and the photo crops to whatever height that lands on. */
.who__media--city { align-self: stretch; min-height: 150px; position: relative; }
.who__media--city img { position: absolute; inset: 0; }

.who__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ============================== VALUES ================================= */
.values { position: relative; overflow: hidden; }
.values .container { position: relative; z-index: 1; }
.values h2 {
  font-weight: 500;
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.5;
  letter-spacing: -.02em;
  margin-top: 20px;
}
.values__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}
.values__col .eyebrow { display: block; }
.values__media {
  margin: 44px 0 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.values__media img { width: 100%; height: 100%; object-fit: cover; }

.value-item { padding: 22px 0; border-bottom: 1px solid rgba(230,0,18,.35); display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.value-item:first-child { padding-top: 0; }
.value-item:last-child { border-bottom: 0; }
.value-item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--grey-40);
}
.value-item h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--grey-100);
  letter-spacing: -.01em;
}
.value-item p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* =========================== AI INITIATIVES ============================ */
.ai { padding: 120px 0; }
.ai__head { max-width: 860px; }
.ai__head h2 { margin-top: 20px; font-size: clamp(30px, 6.7vw, 96px); line-height: 1.5; }
.ai__head p { margin-top: 24px; }
.ai__head .btn { margin-top: 28px; }

.ai__grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
}

/* Service card (AI section) */
.svc-card__media {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 620 / 400;
  margin-bottom: 24px;
}
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-card h3 { font-weight: 600; font-size: 30px; letter-spacing: -.02em; }
.svc-card__sub { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* checklist */
.checklist { margin-top: 22px; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; }
.checklist li::before {
  content: "";
  width: 12px; height: 12px;
  margin-top: 5px;
  background: var(--red);
  border-radius: 3px;
}
.svc-card .btn { margin-top: 26px; }

/* ==================== SERVICES & BUSINESS (5 cards) ==================== */
.services5 { position: relative; overflow: hidden; }
.services5 .container { position: relative; z-index: 1; text-align: center; }
.services5 h2 { font-weight: 500; }
.services5 .lead { max-width: 720px; margin: 20px auto 0; text-align: center; }
.mini-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  text-align: left;
}
.mini-card {
  display: block;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease;
}
.mini-card:hover { transform: translateY(-6px); }
.mini-card:hover h3 { color: var(--red); }
.mini-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--red);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: block;
}
.mini-card__icon {
  margin-top: 20px;
  background: #f3f3f3;
  border-radius: 8px;
  aspect-ratio: 236 / 170;
  display: grid;
  place-items: center;
  transition: box-shadow .2s ease;
}
.mini-card:hover .mini-card__icon { box-shadow: 0 12px 28px rgba(230,0,18,.14); }
.mini-card h3 { transition: color .2s ease; }
.mini-card__icon img { width: 58%; height: auto; }
.mini-card h3 { margin-top: 22px; font-size: 18px; font-weight: 600; }
.mini-card p { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

/* ========================= MISSION SECTIONS =========================== */
.mission { padding: 96px 0; }
.mission + .mission { padding-top: 0; }
.mission__head { max-width: 100%; }
.mission__head .eyebrow { display: block; margin-bottom: 16px; }
.mission__head h2 .serif-i { color: var(--red); font-weight: 500; }
.mission__banner {
  margin: 40px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 1;
}
.mission__banner img { width: 100%; height: 100%; object-fit: cover; }
.mission__desc { max-width: 1180px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.mission__head .btn { margin-top: 28px; }

.mission__cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 110px;
  align-items: stretch;
}
.m-card { display: flex; flex-direction: column; }
.mission__cards.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 48px 60px; }

.m-card .num {
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -.02em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-30);
  display: block;
}
.m-card h3 { margin-top: 28px; font-weight: 500; font-size: 30px; letter-spacing: -.02em; }
.m-card__text { margin-top: 18px; margin-bottom: 28px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.m-card .checklist { margin-top: 26px; margin-bottom: 28px; }
.m-card .checklist li { font-size: 15px; color: var(--grey-90); }
.m-card .checklist .lead-label { font-weight: 500; color: var(--grey-100); }
/* push the Read more button to the bottom so buttons align across a row */
.m-card .btn { margin-top: auto; align-self: flex-start; }

/* ============================= CONTACT ================================= */
.contact {
  position: relative;
  overflow: hidden;
  background: url("assets/img/contact-bg.webp") center / cover no-repeat;
}
/* Dark scrim so the white headline reads over the photo. Kept flat rather than
   vignetted: "START YOUR" reaches out to the pale sky on the left, and any
   falloff there costs the red more contrast than the richer corners are worth. */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0,0,0,.76);
}
.contact .container { position: relative; z-index: 1; }
/* Single centred column: eyebrow, headline, then the CTA button. */
.contact__grid {
  display: grid;
  justify-items: center;
  text-align: center;
}
/* CTA replaces the old inline form — button links out to the inquiry page */
.contact__cta { display: flex; margin-top: 56px; }
.contact .eyebrow { color: #fff; }
.contact__title {
  margin-top: 40px;
  width: 100%;                        /* fill the column so long words wrap
                                         instead of overflowing on phones */
  max-width: 1080px;                  /* wraps after "INNOVATION" at desktop */
  font-weight: 500;
  font-size: clamp(30px, 6vw, 80px);
  line-height: 1.5;
  letter-spacing: -.03em;
  color: #fff;
}
.contact__title .dim { color: var(--red); }

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  color: var(--grey-60);
  line-height: 1.45;
  cursor: pointer;
}
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--grey-40); border-radius: 4px; cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ========================= SOLUTIONS BUSINESS ========================= */
.solutions { position: relative; overflow: hidden; }
.solutions .container { position: relative; z-index: 1; }
.solutions .eyebrow { display: block; margin-bottom: 16px; }
.solutions h2 { font-size: clamp(30px, 6.7vw, 96px); line-height: 1.5; }
.solutions h2 .serif-i { color: var(--red); font-weight: 500; }
.sol-list { margin-top: 48px; display: grid; gap: 24px; }
.sol-card {
  background: rgba(244,244,244,.75);
  border-radius: 14px;
  padding: 40px;
  display: grid;
  grid-template-columns: 90px 1fr 320px;
  gap: 40px;
  align-items: center;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(230,0,18,.16); }
.sol-card:hover h3 { color: var(--red); }
.sol-card h3 { transition: color .2s ease; }
.sol-card .num { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 34px; color: var(--grey-80); }
.sol-card h3 { font-weight: 500; font-size: 32px; letter-spacing: -.02em; }
.sol-card p { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 460px; }
.sol-card__media { border-radius: 8px; overflow: hidden; aspect-ratio: 320 / 210; }
.sol-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================== FOOTER ================================= */
.footer { padding: 40px 0 48px; }
.newsletter {
  display: grid;
  grid-template-columns: 1fr 490px;
  gap: 40px;
  align-items: center;
  padding: 40px 0 56px;
  border-bottom: 1px solid rgba(230,0,18,.25);
}
.newsletter h2 {
  font-weight: 500;
  font-size: clamp(26px, 4.4vw, 48px);
  line-height: 1.5;
  letter-spacing: -.02em;
  color: var(--grey-80);
}
.newsletter h2 .serif-i { color: var(--red); font-weight: 500; }
.subscribe .check { color: var(--grey-50); margin-bottom: 20px; }
.subscribe__field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--grey-30);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  background: rgba(255,255,255,.6);
}
.subscribe__field svg { width: 22px; height: 22px; color: var(--grey-50); flex: none; }
.subscribe__field input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; padding: 12px 0; color: var(--grey-90); }
.subscribe__field .btn { padding: 12px 22px; }
.subscribe__field .btn svg { width: 16px; height: 16px; color: #fff; }

.footer__logo { display: grid; place-items: center; padding: 64px 0 24px; }
.footer__logo .logo { font-size: 40px; gap: 10px; }
.footer__logo .logo .d-box { border-width: 4px; border-radius: 6px; }
/* Fixed width, auto height: the asset is 525x161, so staying at/below ~262px
   keeps it inside its native pixels on 2x screens (no upscaling blur), and
   height:auto means the global `img { max-width:100% }` can never squash the
   aspect ratio on narrow phones. */
.footer__logo .logo img { width: 240px; height: auto; }

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;     /* site links | Services (5) | site links */
  align-items: stretch;
  gap: 24px;
  padding: 48px 0;
  font-size: 13px;
  color: var(--grey-90);
}
.footer-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 28px 16px;
}
/* red vertical divider centered in the gap before each column (except the first) */
.footer-col:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px; bottom: 6px;
  width: 1px;
  background: var(--red);
}
.footer-col__title { font-weight: 600; color: var(--grey-100); letter-spacing: .02em; }
/* Services: heading + the five businesses in two columns */
.footer-col__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: center;
  gap: 18px 40px;
  text-align: left;
}
.footer-nav a { transition: color .15s; }
.footer-nav a:hover { color: var(--red); }
.footer__bottom {
  border-top: 1px solid rgba(230,0,18,.25);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--grey-50);
}
.footer__bottom .links { display: flex; gap: 40px; }
.footer__bottom a:hover { color: var(--red); }

/* ============================ RESPONSIVE ============================== */
@media (max-width: 1200px) {
  :root { --pad: 48px; }
  .mini-grid { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .mission__cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
/* ---------------- Compact header (hamburger) ----------------
   Applied via `html.nav-compact`, which site.js sets whenever the full menu
   would not fit on one line (the width depends on the language), and always
   at <=1024px (also set by an inline script in <head> to avoid a flash). */
.nav-compact .nav-toggle { display: flex; margin-right: -10px; }
/* push Contact Us + hamburger to the right edge (aligns with content below) */
.nav-compact .header-actions { margin-left: auto; }
.nav-compact .main-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  margin-inline: 0;
  padding: 8px var(--pad) 20px;
  background: #131212;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}
.nav-compact .site-header.nav-open .main-nav { display: flex; }
.nav-compact .main-nav a { padding: 14px 0; font-size: 18px; white-space: normal; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nav-compact .main-nav a:last-child { border-bottom: 0; }
.nav-compact .main-nav a::after { display: none; }
.nav-compact .main-nav a.is-active { color: var(--red); }

/* Above 520px the panel ends with Blog (Contact Us and the language pills live in
   the header bar there), so drop its bottom line too. */
@media (min-width: 521px) {
  .nav-compact .main-nav > a:has(+ .nav-contact) { border-bottom: 0; }
}

/* Services dropdown: collapsed by default, tap "Services" to expand */
.nav-compact .nav-dd { width: 100%; }
.nav-compact .nav-dd__trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-compact .nav-dd__caret { display: inline-block; width: 16px; height: 16px; }
.nav-compact .nav-dd:hover .nav-dd__caret { transform: none; }
.nav-compact .nav-dd.open .nav-dd__caret { transform: rotate(180deg); }
.nav-compact .nav-dd__menu,
.nav-compact .nav-dd:hover .nav-dd__menu,
.nav-compact .nav-dd:focus-within .nav-dd__menu {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: none;            /* collapsed until the dropdown is opened */
}
.nav-compact .nav-dd.open .nav-dd__menu { display: flex; flex-direction: column; }
.nav-compact .nav-dd__menu a {
  padding: 12px 0 12px 16px;
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-compact .nav-dd__menu a:hover { background: transparent; color: var(--red); }

@media (max-width: 1024px) {
  .contact__title { margin-top: 16px; }
  .contact__cta { margin-top: 36px; }
  .newsletter { grid-template-columns: 1fr; }
  .subscribe { max-width: 460px; }
}
@media (max-width: 820px) {
  :root { --pad: 24px; }
  .section, .ai, .contact { padding: 72px 0; }
  .values__grid { grid-template-columns: 1fr; gap: 36px; }
  .values__media { max-width: 460px; margin-top: 28px; }
  .ai__grid { grid-template-columns: 1fr; gap: 48px; }
  .mission__cards, .mission__cards.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  /* Solutions cards: stacked card with image on top for mobile */
  .sol-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .sol-card__media {
    display: block;
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
  }
  .sol-card .num { font-size: 20px; line-height: 1; }
  .sol-card > div { display: flex; flex-direction: column; }
  .sol-card p { max-width: none; margin-top: 6px; }
  /* Stack and interleave: heading, city photo, body copy, office photo — so the
     two photos never end up adjacent and each one still follows a block of text. */
  .who__grid { grid-template-columns: 1fr; gap: 28px; }
  .who__head,
  .who__media--office,
  .who__media--city,
  .who__body { grid-column: auto; grid-row: auto; }
  .who__head          { order: 1; }
  /* 16/7 is too letterboxed at phone widths — give both photos a fuller crop. */
  .who__media--city   { order: 2; align-self: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .who__body          { order: 3; }
  .who__media--office { order: 4; align-self: auto; aspect-ratio: 16 / 9; }
  /* Two columns of site links, then the Services group across the full width */
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "a c" "s s";
    gap: 14px; font-size: 13px;
  }
  .footer-nav > .footer-col:nth-child(1) { grid-area: a; }
  .footer-nav > .footer-col:nth-child(3) { grid-area: c; }
  .footer-col--services { grid-area: s; border-top: 1px solid rgba(230,0,18,.25); padding-top: 28px; }
  .footer-col { padding: 22px 10px; }
  .footer-col::before { display: none; }
  .footer-col__list { gap: 16px 28px; }
  .mission__banner { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  :root { --pad: 20px; }
  .hero { min-height: 620px; }
  .section, .ai, .contact { padding: 56px 0; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .mini-card__icon { max-width: none; }
  /* The logo + Contact Us pill + hamburger together need ~399px, so on phones
     the pill moves into the hamburger panel and the burger stops being clipped. */
  .site-header .container { gap: 16px; }
  .header-actions .btn--white { display: none; }
  .nav-contact { display: block; }
  /* language options move into the hamburger panel */
  .lang-select { display: none; }
  .nav-langs {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding-top: 18px;               /* the last menu link's bottom border is the divider */
  }
  .svc-card h3, .m-card h3 { font-size: 22px; }
  .sol-card h3 { font-size: 22px; }
  .sol-list { gap: 16px; }
  .sol-card { padding: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom .links { flex-wrap: wrap; gap: 20px; }
}

/* ======================================================================
   SUB PAGES — shared page hero + breadcrumb
   ====================================================================== */
.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 72px;           /* clears the 96px absolute header */
  color: #fff;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.62), rgba(10,10,12,.45) 45%, rgba(10,10,12,.72));
  z-index: 1;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero .eyebrow { color: rgba(255,255,255,.82); }
.page-hero h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: 1.5;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.breadcrumb {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.breadcrumb__sep { color: var(--red); }

/* ======================================================================
   COMPANY PROFILE PAGE (/company_profile/)
   ====================================================================== */
.cp-h2 {
  margin-top: 18px;
  font-weight: 500;
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.5;
  letter-spacing: -.02em;
}
.cp-h2 .serif-i { font-weight: 500; }

/* Two-column block: heading on the left, content on the right */
.cp-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 88px;
  align-items: start;
}

/* Corporate philosophy */
.cp-split__body p { font-size: 16px; line-height: 1.8; color: var(--text-2); }
.cp-split__body p + p { margin-top: 20px; }
.cp-split__body .cp-statement {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(230,0,18,.35);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  color: var(--grey-100);
}

/* Mission */
.cp-mission .container { text-align: center; }
.cp-quote {
  position: relative;
  max-width: 1040px;
  margin: 36px auto 0;
  padding-top: 64px;
}
.cp-quote::before {                /* large red opening quote mark */
  content: "\201C";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--red);
}
.cp-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--grey-100);
}
.cp-mission__text {
  max-width: 760px;
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}
.cp-mission .mission__banner { margin: 64px 0 0; }
.cp-mission .mission__banner img { object-position: center 20%; }  /* keep the on-screen logo and faces in the crop */

/* Company profile table */
.cp-table { margin: 0; border-top: 1px solid var(--grey-100); }
.cp-table__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(230,0,18,.35);
}
.cp-table dt {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--grey-60);
}
.cp-table dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--grey-100);
  overflow-wrap: anywhere;
}
.cp-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}
.cp-map svg { width: 14px; height: 14px; transition: transform .18s; }
.cp-map:hover svg { transform: translate(2px, -2px); }
.cp-table dd > .cp-map { display: flex; width: max-content; }

/* Business activities — reuses .mini-grid / .mini-card */
.cp-business .mini-grid { margin-top: 56px; }

/* Strategic partnership */
.cp-partner-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.cp-partner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
}
.cp-partner__logo {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 2 / 1;
}
.cp-partner__logo img { width: 100%; height: 100%; object-fit: contain; }
.cp-partner__logo--fill { border: 0; }
.cp-partner__logo--fill img { object-fit: cover; }
.cp-partner h3 { font-weight: 600; font-size: 22px; letter-spacing: -.01em; line-height: 1.3; }
.cp-partner p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--text-2); }

@media (max-width: 1200px) {
  .cp-partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .cp-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .page-hero { min-height: 420px; padding: 150px 0 56px; }
  .cp-table__row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .cp-partner { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .cp-partner__logo { max-width: 320px; }
  .cp-mission .mission__banner { margin-top: 44px; }
}
@media (max-width: 520px) {
  .page-hero { min-height: 360px; padding: 130px 0 44px; }
  .cp-quote { padding-top: 48px; }
  .cp-quote::before { font-size: 88px; }
  .cp-table dd { font-size: 16px; }
}

/* ======================================================================
   CONTACT PAGE (/inquiry/)
   ====================================================================== */
.inq__lead { margin-top: 24px; font-size: 16px; line-height: 1.8; color: var(--text-2); }
.inq__note { margin-top: 12px; font-size: 13px; color: var(--grey-50); }
.inq__req { color: var(--red); font-weight: 600; }

.inq__body {
  padding: 48px;
  background: rgba(255,255,255,.82);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.07);
}
.inq-form { display: grid; gap: 26px; }
.inq-form[hidden], .inq-done[hidden] { display: none; }
.inq-field label:not(.check) {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-90);
}
.inq-field input[type="text"],
.inq-field input[type="email"],
.inq-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;                 /* 16px+ prevents iOS zoom on focus */
  color: var(--grey-100);
  background: #fff;
  border: 1px solid var(--grey-30);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inq-field textarea { resize: vertical; min-height: 180px; line-height: 1.6; }
.inq-field input:focus,
.inq-field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,0,18,.12); }
.inq-field .is-invalid { border-color: var(--red); background: #fff7f7; }
.inq-field__error { margin-top: 8px; font-size: 13px; color: var(--red); min-height: 0; }
.inq-field__error:empty { display: none; }

.inq-consent { font-size: 15px; color: var(--grey-80); }
.inq-consent input.is-invalid { border-color: var(--red); }
.inq-consent a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* honeypot — off-screen for people, still in the DOM for bots */
.inq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.inq-turnstile:empty { display: none; }
.inq-actions { display: flex; }
.inq-submit { border: 0; }
.inq-submit:disabled { opacity: .6; cursor: progress; }
.inq-status { font-size: 14px; color: var(--grey-60); }
.inq-status:empty { display: none; }
.inq-status.is-error { color: var(--red); font-weight: 500; }

.inq-done { outline: none; }
.inq-done h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
}
.inq-done p { margin: 16px 0 28px; font-size: 16px; line-height: 1.8; color: var(--text-2); }

/* 404 page */
.page-hero--404 { min-height: 640px; align-items: center; padding-bottom: 96px; }
.page-hero__lead { margin-top: 20px; max-width: 640px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.85); }
.page-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__actions .btn--primary { height: 46px; padding: 0 26px; }

@media (max-width: 820px) {
  .inq__body { padding: 28px 22px; }
  .page-hero--404 { min-height: 520px; }
}
@media (max-width: 520px) {
  .inq__body { padding: 24px 18px; border-radius: 12px; }
}


/* ======================================================================
   MOTION — hero entrance, sub-page hero entrance, scroll reveal
   Hidden states only apply with JS on (html.js); site.js adds .i18n-ready
   after the first translation pass and .reveal / .is-in while scrolling.
   ====================================================================== */
@keyframes hero-in {
  0%   { opacity: 0; transform: translateY(48px) scale(.98); filter: blur(14px); letter-spacing: .14em; }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); letter-spacing: .5px; }
}
@keyframes hero-underline { to { background-size: 100% .07em; } }
@keyframes hero-video-in { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Top page hero */
.js .hero h1 { opacity: 0; }
.js.i18n-ready .hero h1 { animation: hero-in 1.6s cubic-bezier(.16, 1, .3, 1) .15s both; }
.hero h1 em {
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% .07em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .hero h1 em { background-size: 0 .07em; }
.js.i18n-ready .hero h1 em { animation: hero-underline 1s cubic-bezier(.65, 0, .35, 1) 1.25s forwards; }
.js.i18n-ready .hero h1 em + em { animation-delay: 1.5s; }
.js .hero__bg { animation: hero-video-in 2.8s cubic-bezier(.16, 1, .3, 1) both; }

/* Sub-page hero (company profile, contact, 404) */
.js .page-hero__inner > * { opacity: 0; }
.js.i18n-ready .page-hero__inner > * { animation: fade-up .9s cubic-bezier(.16, 1, .3, 1) both; }
.js.i18n-ready .page-hero__inner > :nth-child(1) { animation-delay: .1s; }
.js.i18n-ready .page-hero h1 { animation: hero-in 1.3s cubic-bezier(.16, 1, .3, 1) .2s both; }
.js.i18n-ready .page-hero__inner > :nth-child(3) { animation-delay: .55s; }
.js.i18n-ready .page-hero__inner > :nth-child(4) { animation-delay: .7s; }
.js .page-hero__bg { animation: hero-video-in 2.4s cubic-bezier(.16, 1, .3, 1) both; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
/* Photos: wipe in from the bottom while the image settles from a slight zoom */
.reveal--media { transform: none; clip-path: inset(18% 0 0 0 round 12px); transition-property: opacity, clip-path; transition-duration: 1.1s; }
.reveal--media.is-in { clip-path: inset(0 0 0 0 round 12px); }
.reveal--media img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal--media.is-in img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .hero h1, .js .page-hero__inner > *, .reveal, .reveal--media img {
    opacity: 1 !important; transform: none !important; filter: none !important;
    clip-path: none !important; animation: none !important; transition: none !important;
  }
  .js .hero h1 em { background-size: 100% .07em; animation: none !important; }
  .js .hero__bg, .js .page-hero__bg { animation: none !important; }
}


/* ======================================================================
   STICKY HEADER + BACK-TO-TOP BUTTON
   site.js adds .is-stuck to the header once the page is scrolled (PC menu and
   hamburger alike), and .is-visible to the back-to-top button.
   ====================================================================== */
@keyframes header-drop { from { transform: translateY(-100%); } to { transform: none; } }
.site-header.is-stuck {
  position: fixed;
  background: rgba(19, 18, 18, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  animation: header-drop .35s cubic-bezier(.16, 1, .3, 1) both;
}
.site-header.is-stuck .container { height: 68px; }
.site-header.is-stuck .logo img { height: 30px; }
/* PC menu in the slim bar: slightly smaller pills so the bar stays light */
.site-header.is-stuck .lang-select__btn,
.site-header.is-stuck .btn--white { height: 40px; }
.nav-compact .site-header.is-stuck .main-nav { max-height: calc(100vh - 68px); overflow-y: auto; }
@media (max-width: 600px) {
  .site-header.is-stuck .logo img { height: 40px; }
}

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 45;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(230, 0, 18, .32);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }
.to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--red); }
.to-top svg { width: 20px; height: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .site-header.is-stuck { animation: none; }
}

/* Cursor sparkle layer (PC only, created by site.js) */
.sparkle-layer {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 60;
  pointer-events: none;          /* never blocks clicks or text selection */
}

/* ======================================================================
   POLICY PAGES (/privacy-policy/, /security-policy/)
   ====================================================================== */
.page-hero--legal { min-height: 440px; }
.legal__body {
  max-width: 880px;
  margin-inline: auto;
  padding: 56px 64px;
  background: rgba(255,255,255,.85);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.06);
  font-size: 16px;
  line-height: 1.9;
  color: var(--grey-80);
}
.legal__body p + p { margin-top: 14px; }
.legal__intro { font-size: 17px; color: var(--grey-100); }
.legal__commit { margin: 28px 0 8px; }
.legal__body h2 {
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--grey-100);
}
.legal__body .checklist { margin-top: 20px; }
.legal__body .checklist li { font-size: 16px; line-height: 1.75; }
.legal__list {
  margin: 16px 0 0;
  padding-left: 1.6em;
  list-style: decimal;
  display: grid;
  gap: 8px;
}
.legal__list li::marker { color: var(--red); font-weight: 600; }
.legal__dates {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(230,0,18,.25);
  font-size: 14px;
  color: var(--grey-60);
  text-align: right;
}
.legal__dates p + p { margin-top: 4px; }
@media (max-width: 820px) {
  .page-hero--legal { min-height: 340px; }
  .legal__body { padding: 32px 22px; font-size: 15px; }
  .legal__intro { font-size: 16px; }
  .legal__body h2 { margin-top: 36px; }
}

/* ======================================================================
   OPENING SCREEN (top page) — white screen, logo, falling cherry blossoms.
   Shown only while html.intro is set (once per session, set in <head>).
   The fade-out is pure CSS, so the screen always clears even without JS;
   site.js draws the petals, restarts the video and removes html.intro.
   ====================================================================== */
.intro-screen { display: none; }
html.intro .intro-screen {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  animation: intro-out .7s cubic-bezier(.65, 0, .35, 1) 2s forwards;
}
/* skipped (click / tap / key / scroll): fade out right away */
html.intro.intro-skip .intro-screen { animation: intro-skip-out .35s ease forwards; }
.intro-screen__petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-screen__logo {
  position: relative;
  width: min(320px, 64vw);
  height: auto;
  animation: intro-logo 1.1s cubic-bezier(.16, 1, .3, 1) .2s both;
}
@keyframes intro-logo {
  from { opacity: 0; transform: scale(.94); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-skip-out { to { opacity: 0; visibility: hidden; } }   /* separate name so it restarts */

/* Hero waits for the curtain: video zoom, headline and underlines start later */
.js.intro .hero__bg { animation-delay: 2s; }
.js.i18n-ready.intro .hero h1 { animation-delay: 2.35s; }
.js.i18n-ready.intro .hero h1 em { animation-delay: 3.45s; }
.js.i18n-ready.intro .hero h1 em + em { animation-delay: 3.7s; }
/* …or right away when skipped (site.js restarts these animations) */
.js.intro.intro-skip .hero__bg { animation-delay: 0s; }
.js.i18n-ready.intro.intro-skip .hero h1 { animation-delay: .2s; }
.js.i18n-ready.intro.intro-skip .hero h1 em { animation-delay: 1.3s; }
.js.i18n-ready.intro.intro-skip .hero h1 em + em { animation-delay: 1.55s; }

@media (prefers-reduced-motion: reduce) {
  html.intro .intro-screen { display: none; }
}
