/* ==========================================================================
   Duoc Khang Studio — theme
   Light clinical design system. Replaces the old template stylesheets.
   ========================================================================== */

:root {
  --ink:        #0b2b26;
  --ink-2:      #40605a;
  --ink-3:      #7d9691;
  --teal:       #0f9d76;
  --teal-dark:  #08795a;
  --teal-soft:  #e7f6f1;
  --sky:        #1d6fd0;
  --sky-soft:   #e8f1fd;
  --sand:       #fdf3e3;
  --coral:      #e2685c;
  --bg:         #ffffff;
  --bg-soft:    #f5faf8;
  --line:       #e3ede9;
  --line-2:     #cfe0da;
  --shadow-sm:  0 1px 2px rgba(11,43,38,.05), 0 4px 14px rgba(11,43,38,.05);
  --shadow-md:  0 10px 30px rgba(11,43,38,.08);
  --shadow-lg:  0 24px 60px rgba(11,43,38,.12);
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 .6em;
}

a { color: var(--teal-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal); text-decoration: none; }

p { margin: 0 0 1.1rem; }

img { max-width: 100%; }

::selection { background: var(--teal-soft); color: var(--ink); }

.section { padding: 110px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.eyebrow.centered { justify-content: center; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 42px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin-bottom: 0; }

/* ---- buttons ---------------------------------------------------------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-solid {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(8,121,90,.25);
}
.btn-solid:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(11,43,38,.22); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { color: var(--teal-dark); border-color: var(--teal); transform: translateY(-2px); }

/* ---- navbar ----------------------------------------------------------- */
.site-nav {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  transition: box-shadow .25s ease;
}
.site-nav.top-nav-collapse { box-shadow: var(--shadow-sm); }

.brand { display: inline-flex; align-items: center; gap: 12px; padding: 0; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 19px;
  box-shadow: 0 6px 14px rgba(8,121,90,.3);
  flex: none;
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.site-nav .navbar-nav .nav-link {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.site-nav .navbar-nav .nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav .navbar-nav .nav-item.active .nav-link { color: var(--teal-dark); background: var(--teal-soft); }
.site-nav .nav-cta { margin-left: 10px; }
.navbar-toggler {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  padding: 6px 11px;
  font-size: 19px;
  background: #fff;
}
.navbar-toggler:focus { outline: none; }

/* ---- hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--teal-soft) 0%, rgba(231,246,241,0) 62%),
    radial-gradient(700px 400px at -6% 12%, var(--sky-soft) 0%, rgba(232,241,253,0) 60%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.pill-badge b {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 { font-size: 60px; margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  color: var(--teal-dark);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: var(--teal-soft);
  border-radius: 6px;
  z-index: -1;
}
.hero-lead { font-size: 19px; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero-note i { color: var(--teal); font-size: 17px; }

/* hero phone mock */
.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  background: #0b2b26;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11,43,38,.06);
}
.phone-screen {
  position: relative;
  background: var(--bg-soft);
  border-radius: 36px;
  overflow: hidden;
  padding-bottom: 6px;
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #0b2b26;
  border-radius: 0 0 14px 14px;
  z-index: 4;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.status-bar .sig { display: flex; align-items: center; gap: 5px; }
.status-bar .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.status-bar .bars i {
  width: 3px;
  background: var(--ink);
  border-radius: 1px;
  display: block;
}
.status-bar .bars i:nth-child(1) { height: 4px; }
.status-bar .bars i:nth-child(2) { height: 6px; }
.status-bar .bars i:nth-child(3) { height: 8px; }
.status-bar .bars i:nth-child(4) { height: 10px; }
.status-bar .batt {
  width: 21px; height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  position: relative;
  display: inline-block;
}
.status-bar .batt::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  right: 6px;
  background: var(--ink);
  border-radius: 1px;
}
.status-bar .batt::after {
  content: '';
  position: absolute;
  right: -4px; top: 3px;
  width: 2px; height: 4px;
  background: var(--ink);
  border-radius: 0 2px 2px 0;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 6px;
}
.app-bar small {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
}
.app-bar strong {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
  display: block;
  line-height: 1.25;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid; place-items: center;
  font-size: 15px;
  flex: none;
}

.app-hero {
  margin: 12px 16px 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--teal) 0%, var(--teal-dark) 70%, #0b6a51 100%);
  color: rgba(255,255,255,.85);
  box-shadow: 0 10px 22px rgba(8,121,90,.28);
}
.app-hero span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.app-hero b {
  display: block;
  font-family: var(--serif);
  font-size: 31px;
  color: #fff;
  line-height: 1.1;
  margin: 5px 0 12px;
}
.app-progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
}
.app-progress i { display: block; height: 100%; width: 68%; background: #fff; border-radius: 99px; }
.app-hero em { font-style: normal; font-size: 11.5px; display: block; margin-top: 9px; }

.app-list { padding: 16px 16px 8px; }
.app-list .cap-row {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
  padding-left: 2px;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
  margin-bottom: 8px;
}
.app-row .ri {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 15px;
  flex: none;
}
.app-row .rb { flex: 1; min-width: 0; }
.app-row .rb b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.app-row .rb small { font-size: 11.5px; color: var(--ink-3); }
.app-row .rv { font-size: 12px; font-weight: 700; color: var(--teal-dark); flex: none; }

.tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 11px 6px 9px;
  margin-top: 4px;
}
.tab-bar a {
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1;
}
.tab-bar a span { font-size: 9.5px; font-weight: 600; letter-spacing: .02em; }
.tab-bar a.on { color: var(--teal-dark); }
.home-bar {
  width: 104px; height: 4px;
  border-radius: 99px;
  background: var(--line-2);
  margin: 7px auto 8px;
}

.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 5;
}
.float-chip small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.float-chip.c-1 { top: 210px; left: -46px; }
.float-chip.c-2 { bottom: 120px; right: -42px; }

/* ---- trust strip ------------------------------------------------------ */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 34px 0;
}
.trust-item { text-align: center; padding: 10px 0; }
.trust-item .n {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.trust-item .n span { color: var(--teal); }
.trust-item .l {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 8px;
}

/* ---- app cards -------------------------------------------------------- */
.app-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.app-card .ico {
  width: 56px; height: 56px;
  border-radius: 17px;
  display: grid; place-items: center;
  font-size: 25px;
  margin-bottom: 22px;
}
.app-card h3 { font-size: 24px; margin-bottom: 10px; }
.app-card p { font-size: 15px; margin-bottom: 20px; }
.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
}
.chip-teal  { background: var(--teal-soft); color: var(--teal-dark); }
.chip-sky   { background: var(--sky-soft);  color: var(--sky); }
.chip-sand  { background: var(--sand);      color: #a9711c; }

/* ---- capability list -------------------------------------------------- */
.cap {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  padding-top: 4px;
  flex: none;
  width: 34px;
}
.cap h4 { font-size: 21px; margin-bottom: 8px; }
.cap p { font-size: 15px; margin-bottom: 0; }

.sticky-head { position: sticky; top: 110px; }

/* ---- about ------------------------------------------------------------ */
.quote-card {
  background: var(--ink);
  color: #bfd6d0;
  border-radius: var(--r-lg);
  padding: 46px 42px;
  position: relative;
  overflow: hidden;
}
.quote-card::after {
  content: '';
  position: absolute;
  right: -70px; bottom: -90px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(15,157,118,.18);
}
.quote-card blockquote {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 26px;
  position: relative;
  z-index: 2;
}
.quote-card .by { font-size: 14px; position: relative; z-index: 2; }
.quote-card .by b { color: #fff; display: block; font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 15.5px;
}
.check-list li:last-child { border-bottom: 0; }
.check-list i {
  color: var(--teal);
  font-size: 15px;
  margin-top: 5px;
  flex: none;
}
.check-list b { color: var(--ink); font-weight: 600; }

/* ---- CTA -------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0b6a51 55%, var(--ink) 100%);
  border-radius: var(--r-lg);
  padding: 66px 56px;
  color: rgba(255,255,255,.82);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -120px; right: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.06);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: 40px; }
.cta-band p { font-size: 17px; margin-bottom: 0; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--sand); color: var(--ink); }

/* ---- page header (inner pages) ---------------------------------------- */
.page-head {
  padding: 140px 0 62px;
  background:
    radial-gradient(700px 320px at 78% 0%, var(--teal-soft) 0%, rgba(231,246,241,0) 65%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-head h1 { font-size: 46px; margin-bottom: 14px; }
.page-head p { font-size: 17.5px; max-width: 600px; margin: 0 auto; }

/* ---- legal prose ------------------------------------------------------ */
.prose-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 54px 52px;
  box-shadow: var(--shadow-sm);
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 30px;
}
.stamp i { color: var(--teal); }
.prose-card h2 {
  font-size: 25px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose-card h2:first-of-type { margin-top: 26px; }
.prose-card p { font-size: 15.5px; }
.prose-card ul { padding-left: 0; list-style: none; margin: 0 0 1.2rem; }
.prose-card ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 15.5px;
}
.prose-card ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.callout {
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 26px;
}

/* ---- contact ---------------------------------------------------------- */
.mail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 46px 44px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.mail-card .ico {
  width: 66px; height: 66px;
  border-radius: 20px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid; place-items: center;
  font-size: 28px;
  margin: 0 auto 24px;
}
.mail-addr {
  display: inline-block;
  font-family: var(--serif);
  font-size: 25px;
  color: var(--ink);
  margin-bottom: 26px;
  word-break: break-all;
}
.mail-meta {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.topic-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.topic-card i { font-size: 21px; color: var(--teal-dark); margin-bottom: 13px; display: block; }
.topic-card b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 5px; font-family: var(--serif); font-weight: 600; }
.topic-card span { font-size: 13.5px; color: var(--ink-2); }

/* ---- footer ----------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 76px 0 0;
}
.site-footer .blurb { font-size: 15px; max-width: 320px; margin-top: 18px; }
.foot-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { margin-bottom: 12px; font-size: 15px; }
.foot-list a, .foot-list span { color: var(--ink-2); display: inline-flex; align-items: flex-start; gap: 10px; }
.foot-list a:hover { color: var(--teal-dark); }
.foot-list i { color: var(--teal); font-size: 15px; margin-top: 4px; }

.foot-bottom {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.foot-bottom p { margin: 0; }
.foot-bottom .made { text-align: right; }

/* ---- back to top ------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 17px;
  box-shadow: var(--shadow-md);
  z-index: 900;
}
.back-to-top:hover { background: var(--teal-dark); color: #fff; }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 991px) {
  .section { padding: 84px 0; }
  .hero { padding: 128px 0 84px; }
  .hero h1 { font-size: 46px; }
  .section-head h2 { font-size: 34px; }
  .cta-band { padding: 48px 36px; text-align: center; }
  .cta-band h2 { font-size: 32px; }
  .sticky-head { position: static; margin-bottom: 26px; }
  .phone { margin-top: 56px; }
  .site-nav .navbar-nav { padding: 14px 0 6px; }
  .site-nav .nav-cta { margin: 10px 0 0 16px; }
  .foot-bottom .made { text-align: left; margin-top: 8px; }
}

@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .section { padding: 68px 0; }
  .hero { padding: 116px 0 70px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 17px; }
  .hero h1 em { white-space: normal; }
  .page-head { padding: 116px 0 52px; }
  .page-head h1 { font-size: 33px; }
  .section-head h2 { font-size: 29px; }
  .prose-card, .mail-card { padding: 32px 24px; }
  .quote-card { padding: 34px 28px; }
  .quote-card blockquote { font-size: 21px; }
  .cta-band { padding: 40px 26px; }
  .phone { width: 274px; }
  .float-chip.c-1 { left: -14px; top: 190px; }
  .float-chip.c-2 { right: -12px; bottom: 112px; }
  .trust-item .n { font-size: 31px; }
  .btn-pill { padding: 12px 22px; font-size: 14.5px; }
}

/* keep in-page anchors clear of the fixed navbar */
section[id], header[id] { scroll-margin-top: 92px; }

/* ---- bento grid (what we do) ------------------------------------------ */
.bento-row { margin-left: -10px; margin-right: -10px; }
.bento-row > [class*="col-"] { padding-left: 10px; padding-right: 10px; margin-bottom: 20px; }

.bento {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 30px 32px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bento:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.bento .ico-sq {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 21px;
  margin-bottom: 20px;
}
.bento .idx {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  opacity: .5;
}
.bento h4 { font-size: 20px; margin-bottom: 9px; }
.bento p  { font-size: 15px; margin-bottom: 0; }

/* the wide lead tile */
.bento-lead {
  background: linear-gradient(150deg, #ffffff 0%, var(--teal-soft) 135%);
}
.bento-lead h4 { font-size: 27px; }
.bento-lead p  { font-size: 16.5px; max-width: 560px; }
.bento-lead .ico-sq { width: 58px; height: 58px; font-size: 25px; border-radius: 18px; }
.bento-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.bento-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 13px;
}

/* the closing dark tile */
.bento-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #bfd6d0;
}
.bento-dark:hover { border-color: var(--ink); }
.bento-dark h4 { color: #fff; }
.bento-dark .idx { color: #7fae9f; }
.bento-dark .ico-sq { background: rgba(15,157,118,.22); color: #6fe0b6; margin-bottom: 0; }
.bento-dark p { color: #a9c7bf; }

@media (max-width: 991px) {
  .bento { padding: 26px 24px 28px; }
  .bento-lead h4 { font-size: 23px; }
}
@media (max-width: 767px) {
  .bento h4 { font-size: 18.5px; }
  .bento .idx { top: 22px; right: 22px; }
}
