/*
 * Gravity X Technology — semantic design system
 * Inspired by shadcn/ui token conventions; adapted to the existing PHP/CSS codebase.
 * The animated .hero component is intentionally preserved and scoped separately below.
 */
:root {
  --ds-background: #f8f9fb;
  --ds-foreground: #171a21;
  --ds-card: #ffffff;
  --ds-card-foreground: #171a21;
  --ds-muted: #f0f2f5;
  --ds-muted-foreground: #687080;
  --ds-primary: #2859d6;
  --ds-primary-foreground: #ffffff;
  --ds-border: #e2e5eb;
  --ds-input: #d7dce5;
  --ds-ring: #7396f2;
  --ds-radius: 14px;
  --ds-radius-sm: 8px;
  --ds-radius-lg: 20px;
  --ds-shadow-sm: 0 1px 2px rgba(18, 25, 38, .04);
  --ds-shadow-md: 0 8px 28px rgba(18, 25, 38, .07);
  --ds-container: 1160px;
  --ds-section-space: clamp(4.25rem, 8vw, 7.25rem);
  --ds-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[data-theme="dark"] {
  --ds-background: #111318;
  --ds-foreground: #f1f3f7;
  --ds-card: #191c23;
  --ds-card-foreground: #f1f3f7;
  --ds-muted: #20242d;
  --ds-muted-foreground: #a0a8b8;
  --ds-primary: #8aa8ff;
  --ds-primary-foreground: #111318;
  --ds-border: #2b303b;
  --ds-input: #3a414e;
  --ds-ring: #8aa8ff;
  --ds-shadow-sm: 0 1px 2px rgba(0,0,0,.16);
  --ds-shadow-md: 0 8px 28px rgba(0,0,0,.22);
}
html { scroll-padding-top: 88px; }
body {
  font-family: var(--ds-font);
  color: var(--ds-foreground);
  background: var(--ds-background);
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
.container { width: min(100% - 48px, var(--ds-container)); padding-inline: 0; }
.section { padding-block: var(--ds-section-space); }
.section-title, .section__title {
  max-width: 760px;
  color: var(--ds-foreground);
  font-family: var(--ds-font);
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.section-description, .section__subtitle {
  max-width: 660px;
  color: var(--ds-muted-foreground);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
  margin: 0;
}
.section-heading { max-width: 760px; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.eyebrow {
  display: block;
  color: var(--ds-primary);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  padding: .78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 .92rem/1.2 var(--ds-font);
  text-decoration: none;
  box-shadow: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button--primary, .btn--primary { background: var(--ds-primary); color: var(--ds-primary-foreground); border-color: var(--ds-primary); }
.button--primary:hover, .btn--primary:hover { transform: translateY(-1px); filter: brightness(.97); box-shadow: none; }
.button--secondary { background: var(--ds-card); color: var(--ds-foreground); border-color: var(--ds-border); }
.button--secondary:hover { background: var(--ds-muted); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ds-primary); font-size: .9rem; font-weight: 600; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translate(2px, -2px); }

/* Navbar: transparent over the untouched hero, solid surface on scroll and inner pages. */
.navbar {
  height: 78px;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.navbar__inner { max-width: var(--ds-container); gap: 1.5rem; }
.navbar__logo-img { height: 76px; max-width: 240px; margin-block: 0; object-fit: contain; filter: none; }
.navbar__logo:hover .navbar__logo-img { transform: none; }
.navbar__menu { gap: .2rem; }
.navbar__link {
  padding: .65rem .75rem;
  color: #f3f5f8;
  font-size: .87rem;
  font-weight: 500;
  text-shadow: none;
  border-radius: 8px;
}
.navbar__link::after { display: none; }
.navbar__link:hover, .navbar__link--active { color: #fff; background: rgba(255,255,255,.12); }
.navbar__actions { display: flex; align-items: center; gap: .65rem; }
.navbar__contact { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .6rem .9rem; border-radius: 9px; background: #fff; color: #151922; font-size: .86rem; font-weight: 600; }
.navbar__contact:hover { background: #e9edf5; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; color: #fff; background: rgba(255,255,255,.08); font-size: 1.25rem; }
.theme-toggle__icon { display: none; line-height: 1; }
html[data-theme="light"] .theme-toggle__icon--moon, html[data-theme="dark"] .theme-toggle__icon--sun { display: inline; }
.navbar__item--mobile-cta { display: none; }
.navbar--scrolled { background: color-mix(in srgb, var(--ds-background) 94%, transparent); border-bottom-color: var(--ds-border); box-shadow: var(--ds-shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.navbar--scrolled .navbar__link { color: var(--ds-foreground); }
.navbar--scrolled .navbar__link:hover, .navbar--scrolled .navbar__link--active { color: var(--ds-primary); background: var(--ds-muted); }
.navbar--scrolled .theme-toggle { color: var(--ds-foreground); border-color: var(--ds-border); background: var(--ds-card); }
.navbar--scrolled .navbar__contact { background: var(--ds-primary); color: var(--ds-primary-foreground); }
body:not(:has(.hero)) .navbar { background: var(--ds-background); border-bottom-color: var(--ds-border); }
body:not(:has(.hero)) .navbar__link { color: var(--ds-foreground); }
body:not(:has(.hero)) .navbar__link:hover, body:not(:has(.hero)) .navbar__link--active { color: var(--ds-primary); background: var(--ds-muted); }
body:not(:has(.hero)) .theme-toggle { color: var(--ds-foreground); border-color: var(--ds-border); background: var(--ds-card); }
body:not(:has(.hero)) .navbar__contact { background: var(--ds-primary); color: var(--ds-primary-foreground); }

/* Services */
.services { background: var(--ds-background); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card {
  display: flex; flex-direction: column; align-items: flex-start; min-height: 245px;
  padding: clamp(1.35rem, 2.4vw, 1.85rem); background: var(--ds-card); color: var(--ds-card-foreground);
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.service-card:hover { border-color: color-mix(in srgb, var(--ds-primary) 38%, var(--ds-border)); box-shadow: var(--ds-shadow-md); transform: translateY(-2px); }
.service-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.4rem; border-radius: 10px; background: var(--ds-muted); color: var(--ds-primary); }
.service-card__icon svg { width: 21px; height: 21px; }
.service-card h3 { margin: 0 0 .65rem; font-size: 1.08rem; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
.service-card p { margin: 0 0 1.4rem; color: var(--ds-muted-foreground); font-size: .91rem; line-height: 1.75; }
.service-card .text-link { margin-top: auto; }

/* Product feature */
.product-section { background: var(--ds-muted); }
.product-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 7vw, 6.5rem); }
.product-copy .section-title { max-width: 520px; }
.product-copy .section-description { margin-bottom: 1.8rem; }
.product-panel { overflow: hidden; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-card); box-shadow: var(--ds-shadow-md); }
.product-panel__top { display: flex; align-items: center; gap: .85rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--ds-border); }
.product-panel__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--ds-primary); color: var(--ds-primary-foreground); font-size: .9rem; font-weight: 700; letter-spacing: -.04em; }
.product-panel__top strong, .product-panel__top span { display: block; }
.product-panel__top strong { font-size: .96rem; font-weight: 600; }
.product-panel__top div span { color: var(--ds-muted-foreground); font-size: .82rem; margin-top: .12rem; }
.product-panel__body { padding: .35rem 1.5rem; }
.product-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--ds-border); }
.product-row:last-child { border-bottom: 0; }
.product-row__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--ds-border); border-radius: 9px; color: var(--ds-primary); font-size: .74rem; font-weight: 600; }
.product-row strong { display: block; margin: .1rem 0 .3rem; font-size: .92rem; font-weight: 600; }
.product-row p { margin: 0; color: var(--ds-muted-foreground); font-size: .85rem; }
.product-panel__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: var(--ds-muted); color: var(--ds-muted-foreground); font-size: .8rem; }
.product-panel__footer a { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ds-border); border-radius: 8px; color: var(--ds-foreground); background: var(--ds-card); }

/* About and contact */
.about { background: var(--ds-background); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: start; }
.about__intro .section-title { max-width: 500px; }
.about__text p { color: var(--ds-muted-foreground); font-size: 1rem; line-height: 1.9; margin: 0 0 1rem; }
.about__text .text-link { margin-top: .45rem; }
.about-bottom { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 2rem; margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 2rem; border-top: 1px solid var(--ds-border); }
.about-bottom__label { display: block; margin-bottom: .6rem; color: var(--ds-muted-foreground); font-size: .82rem; }
.about-bottom h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.04em; font-weight: 600; }
.about-bottom p { margin: 0; color: var(--ds-muted-foreground); line-height: 1.8; }
.contact { background: var(--ds-muted); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2.5rem, 8vw, 7rem); align-items: start; }
.contact__intro .section-title { max-width: 520px; }
.contact__intro .section-description { margin-bottom: 1.8rem; }
.contact-email { display: inline-flex; align-items: center; gap: .6rem; color: var(--ds-primary); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; overflow-wrap: anywhere; }
.contact__details { border-top: 1px solid var(--ds-border); }
.contact-detail { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ds-border); }
.contact-detail > span { color: var(--ds-muted-foreground); font-size: .82rem; }
.contact-detail a, .contact-detail p { margin: 0; color: var(--ds-foreground); font-size: .96rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-detail a:hover { color: var(--ds-primary); }

/* Inner pages */
.inner-page { min-height: 70vh; padding: clamp(7rem, 12vw, 9rem) 0 var(--ds-section-space); background: var(--ds-background); }
.inner-page__container { max-width: 900px; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2.5rem; color: var(--ds-muted-foreground); font-size: .9rem; font-weight: 500; }
.back-link:hover { color: var(--ds-primary); }
.inner-page__heading { margin-bottom: 2.5rem; }
.inner-page__heading .section-title { max-width: 780px; }
.detail-intro { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-card); box-shadow: var(--ds-shadow-sm); }
.detail-intro p { max-width: 760px; margin: 0 0 1.4rem; color: var(--ds-muted-foreground); font-size: 1.04rem; line-height: 1.9; }
.detail-intro p:last-child { margin-bottom: 0; }
.detail-features { margin-top: 3.5rem; }
.detail-features > h2, .policy-content h2 { margin: 0 0 1.2rem; color: var(--ds-foreground); font-size: 1.3rem; font-weight: 600; letter-spacing: -.03em; }
.detail-features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail-feature { min-height: 150px; padding: 1.25rem; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-card); }
.detail-feature__number { display: block; margin-bottom: 1.4rem; color: var(--ds-primary); font-size: .78rem; font-weight: 600; }
.detail-feature h3 { margin: 0; font-size: .98rem; font-weight: 500; line-height: 1.6; }
.detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3.5rem; padding: 1.75rem 0; border-top: 1px solid var(--ds-border); }
.detail-cta h2 { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; }
.detail-cta p { margin: 0; color: var(--ds-muted-foreground); }
.policy-content { padding: clamp(1.35rem, 4vw, 2.5rem); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-card); }
.policy-content section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--ds-border); }
.policy-content p, .policy-content li { color: var(--ds-muted-foreground); line-height: 1.85; }
.policy-content p { margin: 0 0 .85rem; }
.policy-content ul { padding-left: 1.25rem; margin: .8rem 0 0; }
.policy-content li + li { margin-top: .45rem; }
.policy-content a { color: var(--ds-primary); font-weight: 600; overflow-wrap: anywhere; }
.policy-content .policy-updated { margin-top: 1.25rem; font-size: .82rem; }

/* Footer */
.footer { padding: 2.5rem 0 1.5rem; background: var(--ds-card); border-top: 1px solid var(--ds-border); color: var(--ds-foreground); }
.footer__main { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 2rem; }
.footer__brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer__logo { width: auto; height: 48px; max-width: 200px; object-fit: contain; }
.footer__brand span { color: var(--ds-muted-foreground); font-size: .82rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.footer__nav a { color: var(--ds-muted-foreground); font-size: .86rem; }
.footer__nav a:hover, .footer__bottom a:hover { color: var(--ds-primary); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--ds-border); }
.footer__bottom p, .footer__bottom a { margin: 0; color: var(--ds-muted-foreground); font-size: .8rem; }

/* Legacy components not used by the new markup are neutralized to prevent accidental reuse. */
.card, .stat { background: var(--ds-card); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-sm); backdrop-filter: none; -webkit-backdrop-filter: none; }
.card::before { display: none; }
.card:hover { transform: translateY(-2px); border-color: var(--ds-border); background: var(--ds-card); box-shadow: var(--ds-shadow-md); }
.card__title { font-family: var(--ds-font); font-size: 1.1rem; letter-spacing: -.02em; }
.card__text { color: var(--ds-muted-foreground); }
.card__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--ds-muted); color: var(--ds-primary); }
.card__icon svg { width: 21px; height: 21px; }
.card--featured { background: var(--ds-card); border-color: var(--ds-border); }
.section__badge, .card__tag { display: none; }

/* Keep the original animated opening's dark palette and motion intact. */
.hero {
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-secondary: #2563eb;
  --accent-tertiary: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #2563eb, #38bdf8);
  --navbar-text-shadow: 0 1px 12px rgba(0, 0, 0, .9);
  --bg-primary: #05070c;
  --bg-card: rgba(13, 18, 30, .85);
  --border-color: rgba(59, 130, 246, .18);
  --hero-overlay: rgba(5, 7, 12, .3);
  background: #05070c;
}
.hero .btn { min-height: 0; padding: .875rem 1.75rem; border-radius: 9999px; font-size: .9rem; font-weight: 600; }
.hero .btn--neutral { background: #ffffff; color: #05070c; border: 2px solid #ffffff; }
.hero .btn--outline { background: rgba(13, 18, 30, .85); color: #ffffff; border: 2px solid rgba(59, 130, 246, .18); backdrop-filter: blur(8px); }

:focus-visible { outline: 3px solid var(--ds-ring); outline-offset: 3px; }
@media (max-width: 980px) {
  .container { width: min(100% - 40px, var(--ds-container)); }
  .navbar__logo-img { max-width: 190px; height: 66px; }
  .navbar__menu { gap: 0; }
  .navbar__link { padding-inline: .55rem; font-size: .82rem; }
  .navbar__contact { display: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { gap: 2.5rem; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, var(--ds-container)); }
  .navbar { height: 70px; }
  .navbar__inner { gap: .75rem; }
  .navbar__logo-img { max-width: 170px; height: 60px; }
  .navbar__actions { margin-left: auto; }
  .navbar__toggle { display: flex; order: 3; position: relative; z-index: 1002; padding: 8px; }
  .navbar__toggle span { background: #fff; }
  .navbar--scrolled .navbar__toggle span, body:not(:has(.hero)) .navbar__toggle span { background: var(--ds-foreground); }
  .navbar__menu { position: fixed; inset: 0 0 0 auto; z-index: 1001; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .35rem; width: min(360px, 88vw); height: 100dvh; padding: 6.5rem 1.25rem 2rem; background: var(--ds-background); border-left: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-md); transform: translateX(102%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
  .navbar__menu--open { right: 0; transform: translateX(0); visibility: visible; }
  .navbar__link, .navbar--scrolled .navbar__link, body:not(:has(.hero)) .navbar__link { display: block; padding: .9rem 1rem; border-radius: 9px; color: var(--ds-foreground); font-size: .98rem; }
  .navbar__link:hover, .navbar__link--active { background: var(--ds-muted); color: var(--ds-primary); }
  .navbar__item--mobile-cta { display: block; margin-top: .5rem; }
  .navbar__item--mobile-cta .navbar__link { background: var(--ds-primary); color: var(--ds-primary-foreground); }
  .theme-toggle, .navbar--scrolled .theme-toggle { width: 36px; height: 36px; color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
  .navbar--scrolled .theme-toggle, body:not(:has(.hero)) .theme-toggle { color: var(--ds-foreground); border-color: var(--ds-border); background: var(--ds-card); }
  .product-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .product-copy .section-title, .about__intro .section-title, .contact__intro .section-title { max-width: 680px; }
  .about-bottom { grid-template-columns: 1fr; gap: 1rem; }
  .detail-features__grid { grid-template-columns: 1fr; }
  .detail-feature { min-height: auto; }
  .detail-feature__number { margin-bottom: .65rem; }
  .footer__main { align-items: flex-start; flex-direction: column; }
  .footer__nav { gap: .75rem 1rem; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 32px, var(--ds-container)); }
  .section { padding-block: 4rem; }
  .section-title, .section__title { font-size: clamp(1.85rem, 8vw, 2.45rem); letter-spacing: -.045em; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 1.3rem; }
  .service-card__icon { margin-bottom: 1rem; }
  .product-panel__top, .product-panel__body { padding-inline: 1rem; }
  .product-panel__footer { padding-inline: 1rem; }
  .detail-cta { align-items: flex-start; flex-direction: column; }
  .detail-cta .button { width: 100%; }
  .footer__bottom { align-items: flex-start; flex-direction: column; }
  .navbar__logo-img { max-width: 145px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Portfolio and refined product section — shared token system */
.product-summary { overflow: hidden; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-card); box-shadow: var(--ds-shadow-sm); }
.product-summary__heading { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid var(--ds-border); }
.product-summary__mark { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--ds-muted); color: var(--ds-primary); font-size: .95rem; font-weight: 700; }
.product-summary__heading h3 { margin: 0; color: var(--ds-foreground); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.product-summary__heading p { margin: .2rem 0 0; color: var(--ds-muted-foreground); font-size: .86rem; }
.product-summary__list { display: grid; gap: 0; margin: 0; padding: .35rem 1.5rem; list-style: none; }
.product-summary__list li { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--ds-border); color: var(--ds-muted-foreground); font-size: .92rem; }
.product-summary__list li:last-child { border-bottom: 0; }
.product-summary__list li > span { color: var(--ds-primary); font-weight: 700; }
.product-summary__link { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: var(--ds-muted); color: var(--ds-foreground); font-size: .9rem; font-weight: 600; }
.product-summary__link:hover { color: var(--ds-primary); }
.portfolio { background: var(--ds-background); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portfolio-card { display: flex; align-items: flex-start; gap: 1.25rem; min-height: 190px; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-card); color: var(--ds-foreground); text-decoration: none; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.portfolio-card:hover { border-color: color-mix(in srgb, var(--ds-primary) 42%, var(--ds-border)); transform: translateY(-2px); }
.portfolio-card__number { flex: 0 0 auto; color: var(--ds-muted-foreground); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.portfolio-card__content { display: flex; flex-direction: column; align-items: flex-start; min-height: 145px; }
.portfolio-card h3 { margin: -.2rem 0 .45rem; color: var(--ds-foreground); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.35; }
.portfolio-card p { margin: 0 0 1.4rem; color: var(--ds-muted-foreground); font-size: .92rem; line-height: 1.65; }
.portfolio-card__url { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; color: var(--ds-primary); font-size: .87rem; font-weight: 600; }
.services-grid--capabilities .service-card { min-height: 255px; }
.service-card--closing { background: var(--ds-muted); }
.navbar__contact { white-space: nowrap; }
@media (min-width: 981px) { .navbar__contact { min-height: 42px; padding-inline: 1rem; } }
@media (max-width: 760px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 0; }
  .portfolio-card__content { min-height: 130px; }
  .services-grid--capabilities .service-card { min-height: 0; }
}
