/* ============================================================
   Ghimire Shree Kanta — Portfolio
   Design system + components.

   Light is the default theme; dark is opt-in via the header
   toggle, which sets [data-theme="dark"] on <html>.
   No keyframe animation anywhere — state changes only.
   ------------------------------------------------------------
   1. Tokens          6. Sectors        11. FAQ
   2. Base            7. About          12. Contact
   3. Layout          8. Process        13. Footer
   4. Header / nav    9. Services       14. Floating UI
   5. Hero           10. Impact         15. Responsive
   ============================================================ */

/* ---------------------------------------------------------- *
 * 1. Tokens
 * ---------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand ------------------------------------------------- */
  --brand-50:  light-dark(#eaf6f3, #0a201d);
  --brand-100: light-dark(#cfeae4, #0d2b27);
  --brand-500: light-dark(#12a08a, #2bc7ac);
  --brand-600: light-dark(#0e7c6b, #16b09a);
  --brand-700: light-dark(#0a5d50, #109083);

  --accent-500: light-dark(#e4572e, #ff7a52);
  --accent-600: light-dark(#c4451f, #e4572e);

  /* Surfaces ---------------------------------------------- */
  --surface:     light-dark(#fbf9f6, #0b0f12);
  --surface-alt: light-dark(#f3efe9, #10161a);
  --card:        light-dark(#ffffff, #151d22);
  --card-2:      light-dark(#fbf9f6, #1b2429);
  --ink-bg:      light-dark(#101a1f, #06090b);
  --ink-bg-2:    light-dark(#182429, #0d1417);

  /* Text -------------------------------------------------- */
  --ink:   light-dark(#111a1f, #eef2f1);
  --ink-2: light-dark(#4c5a63, #a3b1b6);
  --ink-3: light-dark(#77858e, #7f8d94);
  --on-dark:   #f4f7f6;
  --on-dark-2: #9fb0b3;

  /* Lines & effects --------------------------------------- */
  --line:   light-dark(#e6e0d7, #232e34);
  --line-2: light-dark(#d5cdc0, #2f3c43);
  --ring:   light-dark(rgba(14, 124, 107, .3), rgba(43, 199, 172, .4));

  --shadow-sm: 0 1px 2px light-dark(rgba(17, 26, 31, .05), rgba(0, 0, 0, .4)),
               0 2px 8px  light-dark(rgba(17, 26, 31, .04), rgba(0, 0, 0, .3));
  --shadow:    0 2px 4px light-dark(rgba(17, 26, 31, .04), rgba(0, 0, 0, .4)),
               0 12px 28px light-dark(rgba(17, 26, 31, .08), rgba(0, 0, 0, .45));
  --shadow-lg: 0 4px 8px light-dark(rgba(17, 26, 31, .04), rgba(0, 0, 0, .4)),
               0 28px 60px light-dark(rgba(17, 26, 31, .13), rgba(0, 0, 0, .6));
  --shadow-brand: 0 6px 18px light-dark(rgba(14, 124, 107, .24), rgba(0, 0, 0, .5));

  /* Type -------------------------------------------------- */
  --font-sans: "Inter", "Noto Sans JP", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Noto Sans JP", "Noto Sans Devanagari", Georgia, "Times New Roman", serif;
  --display-tracking: -0.022em;
  --display-weight: 600;

  /* Fluid scale (320px → 1280px) -------------------------- */
  --t--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --t-0:  clamp(1.00rem, 0.97rem + 0.14vw, 1.08rem);
  --t-1:  clamp(1.13rem, 1.07rem + 0.28vw, 1.28rem);
  --t-2:  clamp(1.33rem, 1.22rem + 0.55vw, 1.65rem);
  --t-3:  clamp(1.62rem, 1.38rem + 1.15vw, 2.30rem);
  --t-4:  clamp(1.95rem, 1.55rem + 1.95vw, 3.05rem);
  --t-5:  clamp(2.35rem, 1.70rem + 3.15vw, 4.10rem);

  /* Space ------------------------------------------------- */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 7.5rem);

  /* Shape ------------------------------------------------- */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --header-h: 74px;
}

:root[data-theme="dark"] { color-scheme: dark; }

/* Script-specific display faces: Fraunces covers neither CJK nor
   Devanagari, so swap the whole face rather than fall back per glyph. */
:root:lang(ja) {
  --font-display: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --display-tracking: 0;
  --display-weight: 700;
}
:root:lang(ne) {
  --font-display: "Noto Sans Devanagari", "Kohinoor Devanagari", sans-serif;
  --display-tracking: 0;
  --display-weight: 700;
}

/* ---------------------------------------------------------- *
 * 2. Base
 * ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 650; }

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--brand-600);
}
:root:lang(ja) .display em,
:root:lang(ne) .display em { font-style: normal; }

h1.display { font-size: var(--t-5); margin-bottom: var(--sp-5); }
h2.display { font-size: var(--t-4); }

p { text-wrap: pretty; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

strong, b { font-weight: 650; }

::selection { background: var(--brand-600); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 99px;
  border: 3px solid var(--surface-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-600); }

/* Every inline SVG is a stroke icon unless it opts out with fill. */
svg:not([fill="currentColor"]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--brand-600);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------------------------------------------------------- *
 * 3. Layout primitives
 * ---------------------------------------------------------- */
.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-alt); }

.section-dark {
  background: var(--ink-bg);
  color: var(--on-dark);
}
.section-dark .section-sub { color: var(--on-dark-2); }
.section-dark .display em { color: var(--brand-500); }

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  text-align: center;
}

.section-sub {
  color: var(--ink-2);
  font-size: var(--t-1);
  margin-top: var(--sp-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: .4rem .85rem;
  border-radius: 99px;
  margin-bottom: var(--sp-5);
}
.section-dark .eyebrow {
  color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-500) 25%, transparent);
}

.lead {
  font-size: var(--t-1);
  color: var(--ink-2);
  max-width: 34rem;
}
.lead strong { color: var(--ink); }

/* Buttons --------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .8rem 1.35rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 99px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}

.btn-ico { width: 1.05em; height: 1.05em; stroke-width: 2; flex: none; }

.btn-primary {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { --btn-bg: var(--brand-700); }

.btn-accent {
  --btn-bg: var(--accent-500);
  --btn-fg: #fff;
  box-shadow: 0 6px 18px light-dark(rgba(228, 87, 46, .26), rgba(0, 0, 0, .5));
}
.btn-accent:hover { --btn-bg: var(--accent-600); }

.btn-ghost {
  --btn-fg: var(--ink);
  border-color: var(--line-2);
  background: var(--card);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  --btn-fg: var(--surface);
}

.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  transition: color .18s, border-color .18s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--brand-600); border-color: var(--brand-500); }

/* Chips ---------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem .35rem .4rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  font-size: .84rem;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
}
.chip b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: .3rem;
  border-radius: 99px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: .7rem;
  font-weight: 700;
}

/* ---------------------------------------------------------- *
 * 4. Header / navigation
 * ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
/* An open mobile menu needs an opaque header above it. */
.site-header:has(.nav-menu.open) {
  background: var(--surface);
  border-bottom-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.brand-text {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand-text b { font-weight: 700; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-left: auto;
}

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  position: relative;
  display: block;
  padding: .5rem .8rem;
  font-size: .93rem;
  font-weight: 550;
  color: var(--ink-2);
  border-radius: 99px;
  transition: color .18s, background-color .18s;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-links a[aria-current="true"] { color: var(--brand-600); }
.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--brand-500);
}

.nav-tools { display: flex; align-items: center; gap: var(--sp-3); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
}
.lang-switch button {
  padding: .32rem .62rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 99px;
  transition: color .18s, background-color .18s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: var(--brand-600); color: #fff; }

.nav-right { display: flex; align-items: center; gap: var(--sp-3); }

/* Light is the default, so the toggle offers the moon; in dark it
   offers the sun. */
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
}
.nav-toggle span {
  width: 17px;
  height: 1.8px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------------------------------------------------------- *
 * 5. Hero
 * ---------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 5.5rem)) clamp(3.5rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* Dot grid plus two soft colour washes, painted once. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(46vw 46vw at 96% -12%, color-mix(in srgb, var(--brand-500) 24%, transparent), transparent 62%),
    radial-gradient(34vw 34vw at -6% 108%, color-mix(in srgb, var(--accent-500) 14%, transparent), transparent 62%),
    radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
  background-size: auto, auto, 26px 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero-langs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--sp-5);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, .5rem + 3vw, 3rem);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--t-3);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value i { font-style: normal; color: var(--accent-500); }
.stat-label {
  order: -1;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .35rem;
}

/* Portrait -------------------------------------------------- */
.hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}
.portrait {
  position: relative;
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  overflow: hidden;
  background: var(--card-2);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px light-dark(rgba(255, 255, 255, .55), rgba(255, 255, 255, .07));
  background: linear-gradient(to top, color-mix(in srgb, var(--ink-bg) 40%, transparent), transparent 40%);
  pointer-events: none;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
/* Offset outline that echoes the arch. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px -14px 34px -14px;
  border: 1.5px dashed var(--line-2);
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  z-index: -1;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}
.float-card b { display: block; font-size: .85rem; line-height: 1.3; }
.float-card small { display: block; font-size: .74rem; color: var(--ink-3); }
.float-card svg { width: 18px; height: 18px; color: var(--brand-600); stroke-width: 2.4; flex: none; }
.float-card .dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 22%, transparent);
}

.float-card-a { top: 12%; left: -8%; }
.float-card-b { bottom: 8%; right: -6%; }

/* ---------------------------------------------------------- *
 * 6. Sectors
 * ---------------------------------------------------------- */
.sectors {
  background: var(--ink-bg);
  color: var(--on-dark);
  padding-block: clamp(2rem, 1.4rem + 2vw, 2.75rem);
}
.sectors-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, .5rem + 2.5vw, 2.75rem);
}
.sectors-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-500);
  max-width: 11rem;
  line-height: 1.5;
}
.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.sector-list li {
  padding: .45rem .95rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  font-size: .86rem;
  font-weight: 550;
  color: var(--on-dark);
}

/* ---------------------------------------------------------- *
 * 7. About
 * ---------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: start;
}
.about-text h2 { margin-bottom: var(--sp-5); }
.about-text p {
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
  max-width: 40rem;
}
.about-text p strong { color: var(--ink); }

.check-list { display: grid; gap: .8rem; margin-top: var(--sp-6); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 550;
}
.check-list li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .2rem;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.about-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.about-card h3 { font-size: var(--t-1); margin-bottom: var(--sp-5); }

.info-list { display: grid; gap: 1rem; margin-bottom: var(--sp-6); }
.info-list > div { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border: 0; padding-bottom: 0; }
.info-list dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .18rem;
}
.info-list dd { font-weight: 600; font-size: .98rem; }
.info-list a { transition: color .18s; }
.info-list a:hover { color: var(--brand-600); }

.card-actions { display: grid; gap: .6rem; }

/* ---------------------------------------------------------- *
 * 8. Process
 * ---------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}
.step { position: relative; }

/* Dashed rule joining one numbered marker to the next. */
.step::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 66px;
  width: calc(100% + var(--sp-5) - 66px);
  border-top: 1.5px dashed var(--line-2);
}
.step:last-child::after { display: none; }

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--sp-4);
  border: 1.5px solid var(--brand-600);
  border-radius: 50%;
  background: var(--brand-600);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.step h3 { font-size: var(--t-1); margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: .95rem; max-width: 22rem; }

/* ---------------------------------------------------------- *
 * 9. Services
 * ---------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-5);
}

.card {
  padding: clamp(1.5rem, 1rem + 1.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color .18s, box-shadow .18s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--brand-500) 40%, var(--line));
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
}
.card-icon svg { width: 23px; height: 23px; }

.card h3 { font-size: var(--t-1); margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: .95rem; }

/* ---------------------------------------------------------- *
 * 10. Impact
 * ---------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--sp-5);
}

.testimonial {
  position: relative;
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.1rem);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-lg);
  background: var(--ink-bg-2);
  transition: border-color .18s;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: .35rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--brand-500);
  opacity: .22;
}
.testimonial:hover { border-color: color-mix(in srgb, var(--brand-500) 45%, transparent); }
.testimonial blockquote {
  position: relative;
  color: var(--on-dark);
  font-size: 1rem;
  margin-bottom: var(--sp-5);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.testimonial figcaption b { display: block; font-size: .92rem; color: var(--on-dark); }
.testimonial figcaption small { display: block; font-size: .78rem; color: var(--on-dark-2); }

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding: clamp(2rem, 1.2rem + 3vw, 3.2rem);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600) 55%, var(--brand-500));
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .22) 1px, transparent 0);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 62%);
          mask-image: linear-gradient(115deg, #000, transparent 62%);
  opacity: .55;
}
.cta-band > * { position: relative; }
.cta-band h3 { font-size: var(--t-3); color: #fff; max-width: 26rem; }
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: .5rem; font-size: .95rem; }
.cta-band .btn-accent { flex: none; }

/* ---------------------------------------------------------- *
 * 11. Media & FAQ
 * ---------------------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-5);
}

.media-card {
  --brand-color: var(--brand-600);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color .18s, box-shadow .18s;
}
.media-card:hover {
  border-color: color-mix(in srgb, var(--brand-color) 50%, var(--line));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--brand-color) 16%, transparent);
}
.media-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-color) 10%, transparent);
  color: var(--brand-color);
}
.media-icon svg { width: 23px; height: 23px; }
.media-body { flex: 1; min-width: 0; }
.media-body b { display: block; font-size: 1rem; }
.media-body small { display: block; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.media-arrow {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--ink-3);
  transition: color .18s;
}
.media-card:hover .media-arrow { color: var(--brand-color); }

.media-card.brand-yt { --brand-color: #ff0033; }
.media-card.brand-tt { --brand-color: light-dark(#111318, #e9edf2); }
.media-card.brand-fb { --brand-color: #1877f2; }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: start;
}
.faq-head {
  text-align: left;
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.faq-list { display: grid; gap: .75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  transition: border-color .18s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--brand-500) 40%, var(--line)); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-600); }
.faq-item summary i { position: relative; flex: none; width: 16px; height: 16px; }
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.8px;
  border-radius: 2px;
  background: var(--brand-600);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { display: none; }

.faq-answer {
  padding: 0 1.3rem 1.25rem;
  color: var(--ink-2);
  font-size: .96rem;
}

/* ---------------------------------------------------------- *
 * 12. Contact
 * ---------------------------------------------------------- */
.contact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40vw 40vw at -8% 118%, color-mix(in srgb, var(--brand-500) 14%, transparent), transparent 62%),
    var(--surface);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: start;
}

.contact-jp {
  color: var(--ink-2);
  font-size: var(--t-1);
  margin-block: var(--sp-4) var(--sp-6);
  max-width: 30rem;
}
.contact-jp .jp {
  display: block;
  margin-top: .4rem;
  font-size: .92rem;
  color: var(--brand-600);
  font-weight: 550;
}
.contact-jp .jp:empty { display: none; }

.contact-lines { display: grid; gap: .2rem; }
.contact-lines li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--brand-600);
  box-shadow: var(--shadow-sm);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-lines b {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-lines a,
.contact-lines li > span > span { font-weight: 600; font-size: 1rem; }
.contact-lines a { transition: color .18s; }
.contact-lines a:hover { color: var(--brand-600); }

.call-btn { margin-top: var(--sp-6); }

/* Form ------------------------------------------------------ */
.contact-form-card {
  padding: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: var(--t-2); }
.form-intro { color: var(--ink-2); font-size: .93rem; margin-block: .4rem var(--sp-5); }

.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card-2);
  font-size: .95rem;
  resize: vertical;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--ring);
}
.field-error {
  display: none;
  margin-top: .4rem;
  font-size: .8rem;
  font-weight: 550;
  color: var(--accent-600);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--accent-500);
  background: color-mix(in srgb, var(--accent-500) 6%, var(--card));
}
.field.has-error .field-error { display: block; }

.form-note {
  margin-top: var(--sp-4);
  font-size: .82rem;
  color: var(--ink-3);
  text-align: center;
}
.form-note a { color: var(--brand-600); font-weight: 600; }

.form-success { text-align: center; }
.form-success > svg {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--sp-4);
  padding: 10px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  stroke-width: 2.6;
}
.form-success h4 { font-size: var(--t-1); margin-bottom: .4rem; }
.form-success p { color: var(--ink-2); font-size: .95rem; }
.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: var(--sp-5);
}

/* ---------------------------------------------------------- *
 * 13. Footer
 * ---------------------------------------------------------- */
.site-footer {
  background: var(--ink-bg);
  color: var(--on-dark-2);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand .brand-text { color: var(--on-dark); }
.footer-sub {
  margin-top: var(--sp-4);
  max-width: 22rem;
  font-size: .9rem;
  line-height: 1.6;
}
.footer-social { display: flex; gap: .5rem; margin-top: var(--sp-5); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--on-dark-2);
  transition: color .18s, border-color .18s, background-color .18s;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover {
  color: #fff;
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.footer-col h4 {
  color: var(--on-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: grid; gap: .6rem; font-size: .9rem; }
.footer-col a { transition: color .18s; }
.footer-col a:hover { color: var(--brand-500); }

.footer-bottom {
  padding-top: var(--sp-5);
  text-align: center;
  font-size: .82rem;
  color: light-dark(#63737a, #5f6d73);
}

/* ---------------------------------------------------------- *
 * 14. Floating UI
 * ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility .18s, background-color .18s;
}
.back-to-top svg { width: 19px; height: 19px; stroke-width: 2.2; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-700); }

.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 96;
  display: none;
  align-items: stretch;
  gap: .5rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--line);
}
.call-bar-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1rem;
  border-radius: 99px;
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.call-bar-main svg { width: 20px; height: 20px; flex: none; stroke-width: 2; }
.call-bar-main b { display: block; font-size: .9rem; line-height: 1.2; }
.call-bar-main small { display: block; font-size: .75rem; opacity: .85; }
.call-bar-alt {
  display: grid;
  place-items: center;
  padding-inline: 1.2rem;
  border: 1.5px solid var(--line-2);
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
}

/* ---------------------------------------------------------- *
 * 15. Responsive
 * ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: .6rem; font-size: .89rem; }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) 1.25rem var(--sp-5);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: .85rem .4rem; font-size: 1.02rem; border-radius: var(--r-sm); }
  .nav-links a[aria-current="true"]::after { left: auto; right: .6rem; bottom: 50%; margin: 0 0 -2.5px 0; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-tools {
    justify-content: space-between;
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }

  .hero-grid,
  .about-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }

  .hero-media { order: -1; width: min(100%, 340px); }
  .float-card-a { left: -4%; }
  .float-card-b { right: -2%; }

  .sectors-inner { grid-template-columns: minmax(0, 1fr); }
  .sectors-label { max-width: none; }

  .about-card { position: static; }
  .faq-head { position: static; text-align: center; margin-inline: auto; }

  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-6); }
  .step:nth-child(2n)::after { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(1160px, 100% - 2rem); }

  .hero-stats { gap: 1.25rem 2rem; }
  .stat-value { font-size: var(--t-2); }

  .process-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 1.1rem; }
  .step-num { grid-row: 1 / span 2; margin-bottom: 0; }
  .step::after {
    top: 62px;
    left: 26px;
    width: 0;
    height: calc(100% + var(--sp-5) - 62px);
    border-top: 0;
    border-left: 1.5px dashed var(--line-2);
  }
  .step:nth-child(2n)::after { display: block; }
  .step:last-child::after { display: none; }

  .cta-band { text-align: center; justify-content: center; }
  .cta-band h3 { margin-inline: auto; }
  .cta-band .btn { width: 100%; }

  .back-to-top { bottom: 84px; }
  .call-bar { display: flex; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

@media print {
  .site-header, .call-bar, .back-to-top, .sectors,
  .hero-bg, .contact-form-card { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
