/* ========================================================================
   Konordo Design System
   Minimal · Premium · Trustworthy
   ======================================================================== */

:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #0c0d10;
  --muted: #5c6370;
  --faint: #9ca3af;
  --line: #e6e3de;
  --line-light: #f0ede8;
  --accent: #b45309;
  --accent-soft: #fef3c7;
  --surface-deep: #0f1117;
  --surface-dim: #1a1d25;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --container: min(1180px, calc(100% - 2rem));
  --container-narrow: min(780px, calc(100% - 2rem));
  --transition: 200ms cubic-bezier(0.23, 1, 0.32, 1);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Layout ────────────────────────────────────────────────────────────── */

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  width: var(--container-narrow);
  margin-inline: auto;
}

.site-main {
  min-height: 70vh;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section--tight {
  padding-top: 1.5rem;
  padding-bottom: 0;
}

/* ── Typography ────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
  /* No transform/filter here — would create containing block for fixed children */
}

/* Frosted glass on scroll — backdrop-filter only here so position:fixed children work */
.site-header.is-scrolled {
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
}

/* When mobile overlay is open: header bar floats above dark overlay — MUST clear
   backdrop-filter (even if is-scrolled is also set) otherwise position:fixed children
   are contained within the header element instead of the viewport */
.site-header.is-open {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-header.is-open .brand__name {
  color: #fff;
}

.site-header.is-open .brand__dot {
  color: var(--accent);
}

.site-header.is-open .menu-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.site-header.is-open .menu-toggle__bar {
  background: #fff;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__dot {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Navigation ────────────────────────────────────────────────────────── */

.primary-menu-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu--desktop {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

.primary-menu__item {
  display: flex;
}

.primary-menu__link {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}

.primary-menu__link:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.primary-menu__link.is-active {
  color: var(--ink);
}

/* Nav CTA (last item) */
.primary-menu__item:last-child .primary-menu__link {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.primary-menu__item:last-child .primary-menu__link:hover {
  background: #2a2d35;
  color: #fff;
}

/* ── Mobile Menu ───────────────────────────────────────────────────────── */

.menu-toggle {
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  border-color: #ccc7bf;
}

.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  flex-shrink: 0;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms ease,
              width 200ms ease;
}

.menu-toggle__bar:nth-child(1) {
  margin-bottom: 4px;
}

.menu-toggle__bar:nth-child(2) {
  width: 14px;
  margin-bottom: 4px;
}

.menu-toggle__bar:nth-child(3) {
  /* no extra margin */
}

/* X animation */
.site-header.is-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.is-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Full-screen mobile nav overlay — z-index below header bar (40) so logo+X float above */
.primary-menu--mobile {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: var(--surface-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 280ms ease, transform 280ms ease, visibility 0s linear 280ms;
  list-style: none;
  margin: 0;
  gap: 0;
}

.site-header.is-open .primary-menu--mobile {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 280ms ease, transform 280ms ease, visibility 0s linear 0s;
}

.primary-menu--mobile .primary-menu__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-menu--mobile .primary-menu__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-menu--mobile .primary-menu__link {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-transform: none;
  letter-spacing: -0.02em;
  padding: 0.6em 0;
  transition: color 180ms ease;
}

.primary-menu--mobile .primary-menu__link:hover,
.primary-menu--mobile .primary-menu__link.is-active {
  color: #fff;
}

.primary-menu--mobile .primary-menu__item:last-child .primary-menu__link {
  color: var(--accent);
  background: none;
  text-align: left;
  margin: 0;
  border-radius: 0;
}

.primary-menu--mobile .primary-menu__item:last-child .primary-menu__link:hover {
  color: #f59e0b;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--ink);
  color: #f8f8f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn--solid:hover {
  background: #222530;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.btn--outline:hover {
  border-color: #ccc7bf;
  background: #fafaf8;
  color: var(--ink);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  padding: 0.78rem 0.5rem;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn__arrow {
  transition: transform 200ms ease;
  font-size: 1.1em;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
  position: relative;
}

/* Decorative gradient orbs */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(12, 13, 16, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 720px;
}

/* Decorative floating shapes next to hero */
.hero__decoration {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
}

.hero__deco-ring {
  position: absolute;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  opacity: 0.6;
}

.hero__deco-ring--lg {
  width: 280px;
  height: 280px;
  top: 30px;
  right: 0;
}

.hero__deco-ring--md {
  width: 180px;
  height: 180px;
  top: 80px;
  right: 50px;
  border-color: var(--accent);
  opacity: 0.25;
}

.hero__deco-ring--sm {
  width: 90px;
  height: 90px;
  top: 125px;
  right: 95px;
  background: rgba(180, 83, 9, 0.05);
}

.hero__deco-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__deco-dot--1 { top: 60px; right: 140px; opacity: 0.7; }
.hero__deco-dot--2 { top: 200px; right: 20px; opacity: 0.4; width: 6px; height: 6px; }
.hero__deco-dot--3 { top: 280px; right: 180px; opacity: 0.5; width: 5px; height: 5px; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero__lead {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Products Grid (Homepage) ──────────────────────────────────────────── */

.products-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.products-section__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.products-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.products-section__kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.products-grid {
  display: grid;
  gap: 1rem;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: box-shadow 300ms ease, border-color 300ms ease, transform 300ms ease;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Decorative accent gradient at top of each card */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.product-card:hover {
  border-color: #d4d0c8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  color: var(--ink);
}

.product-card:hover::before {
  opacity: 1;
}

/* Product card icon */
.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.product-card__icon--marketplace {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.product-card__icon--payments {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.product-card__icon--saas {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.product-card__icon svg {
  width: 24px;
  height: 24px;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  width: fit-content;
}

.product-card__badge--marketplace {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #d1fae5;
}

.product-card__badge--payments {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

.product-card__badge--saas {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.product-card__tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.product-card__desc {
  color: #4a4f5c;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.product-card__link span {
  transition: transform 200ms ease;
}

.product-card:hover .product-card__link span {
  transform: translateX(3px);
}

/* ── Credibility Strip ─────────────────────────────────────────────────── */

.credibility {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.credibility__item {
  text-align: center;
  position: relative;
}

.credibility__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.credibility__icon svg {
  width: 20px;
  height: 20px;
  color: #92400e;
}

.credibility__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}

.credibility__label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── CTA Section ───────────────────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(160deg, #0f1117 0%, #1a1f2e 50%, #0f1117 100%);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow */
.cta-section::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(180, 83, 9, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #f1f2f6;
  margin-bottom: 0.75rem;
}

.cta-section__text {
  color: #9ca3b0;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn--light:hover {
  background: #f5f5f3;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ── Page Templates (Products, About, Contact) ─────────────────────────── */

.page-header {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-header__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-header__kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.page-header h1 {
  max-width: 14ch;
}

.page-header__lead {
  margin: 1rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}

/* Product detail sections on Products page */
.product-detail {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.product-detail__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.product-detail__header {
  max-width: 520px;
}

.product-detail__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.product-detail__desc {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.product-detail__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.product-detail__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #3a3f4a;
}

.product-detail__features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.product-detail__tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ── About Page ────────────────────────────────────────────────────────── */

.about-content {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.about-block {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 0.8rem;
}

.about-block p {
  color: #3a3f4a;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.company-details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
}

.company-details__grid {
  display: grid;
  gap: 1rem;
}

.company-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.company-details dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ── Contact Page ──────────────────────────────────────────────────────── */

.contact-content {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.contact-block {
  max-width: 520px;
}

.contact-block p {
  color: #3a3f4a;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 80px;
  padding-top: 0.15rem;
}

.contact-item__value {
  font-size: 1rem;
  color: var(--ink);
}

.contact-item__value a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.contact-item__value a:hover {
  border-color: var(--accent);
}

/* ── Blog / Content ────────────────────────────────────────────────────── */

.subheader {
  padding-top: 1.5rem;
}

.breadcrumb-wrap {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb-wrap a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-wrap a:hover {
  color: var(--ink);
}

.page-hero {
  padding-top: 1rem;
}

.page-hero__inner {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}

.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.layout {
  display: grid;
  gap: 1.5rem;
}

.layout__aside > * {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.content-prose > * {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.content-prose h1,
.content-prose h2,
.content-prose h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  margin-top: 0;
}

.content-prose h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.content-prose h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
}

.content-prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.content-prose p,
.content-prose li {
  color: #3a3f4a;
}

.content-prose article + article,
.content-prose .views-row + .views-row {
  margin-top: 1rem;
}

.content-prose article[data-history-node-id] {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.content-prose article[data-history-node-id]:hover {
  border-color: #d4d0c8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.content-prose article[data-history-node-id] h2 {
  margin-bottom: 0.4rem;
}

.content-prose article[data-history-node-id] h2 a {
  text-decoration: none;
  color: var(--ink);
}

.content-prose article[data-history-node-id] h2 a:hover {
  color: var(--accent);
}

.content-prose article footer {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.3rem;
}

.content-prose ul.links.inline {
  margin: 0.85rem 0 0;
  list-style: none;
  padding: 0;
}

.content-prose ul.links.inline a {
  text-decoration: none;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  transition: border-color var(--transition), color var(--transition);
}

.content-prose ul.links.inline a:hover {
  border-color: #c4bfb5;
  color: var(--ink);
}

.content-prose blockquote {
  margin: 1.5rem 0;
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  color: #4a4f5c;
}

.content-prose pre {
  background: var(--surface-deep);
  color: #e2e5ed;
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  overflow: auto;
  font-size: 0.88rem;
}

.content-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.content-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ── Pager ─────────────────────────────────────────────────────────────── */

.pager {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.pager__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.pager__item {
  margin: 0;
}

.pager__item > a,
.pager__item.is-active > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  padding: 0 0.5rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 180ms ease;
}

.pager__item > a {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.pager__item > a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.pager__item.is-active > a {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}

/* Ellipsis */
.pager__item--ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

/* Nav arrows: Previous / Next */
.pager__item--previous > a,
.pager__item--next > a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  gap: 0.4rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
}

.pager__item--previous > a:hover,
.pager__item--next > a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Hide First / Last — keep just Previous / Next + numbers */
.pager__item--first,
.pager__item--last {
  display: none;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 0;
  background: var(--surface-deep);
  color: #c4c9d4;
}

.site-footer__top {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.site-footer__brand-dot {
  color: var(--accent);
}

.site-footer__text {
  margin: 0;
  color: #8a919e;
  font-size: 0.92rem;
  max-width: 36ch;
  line-height: 1.7;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-footer__nav-group h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6370;
  margin: 0 0 0.75rem;
}

.site-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav-list li + li {
  margin-top: 0.4rem;
}

.site-footer__nav-list a {
  color: #9ca3b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.site-footer__nav-list a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid #252832;
}

.site-footer__bottom-inner {
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #5c6370;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  gap: 1rem;
}

/* ── Utility ───────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 0.8rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Portfolio ──────────────────────────────────────────────────────────── */

.portfolio-section {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}

.portfolio-item {
  border-top: 1px solid var(--line);
}

.portfolio-item__inner {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.portfolio-item__content {
  max-width: 640px;
}

.portfolio-item__category {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.portfolio-item__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.75rem;
}

.portfolio-item__desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

.portfolio-item__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.portfolio-item__detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.15rem;
}

.portfolio-item__detail-value {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.portfolio-item__link {
  margin-top: 0.5rem;
}

/* ── Node Meta ─────────────────────────────────────────────────────────── */

.node__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0.5rem 0 1.2rem;
  padding: 0;
  border: none;
  background: none;
}

.node__links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
}

.node-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

/* ── Portfolio Archive Grid ────────────────────────────────────────────── */

.portfolio-featured {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.portfolio-archive {
  padding: 4rem 0;
}

.portfolio-archive__header {
  margin-bottom: 2.5rem;
}

.portfolio-archive__header h2 {
  margin: 0.25rem 0 0.5rem;
}

.portfolio-archive__lead {
  color: var(--muted);
  margin: 0;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* Drupal view renders: .views-element-container > div[js-view-dom-id-*] > div.views-row */
.portfolio-grid .views-element-container > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.portfolio-grid .views-row {
  display: flex;
}

/* Portfolio card */
.portfolio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.portfolio-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.portfolio-card__link {
  display: block;
  text-decoration: none;
}

.portfolio-card__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.portfolio-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  display: block;
}

.portfolio-card:hover .portfolio-card__image-wrap img {
  transform: scale(1.04);
}

.portfolio-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
}

.portfolio-card__body {
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
}

.portfolio-card__year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 0.3rem;
}

.portfolio-card__title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.portfolio-card__title a {
  text-decoration: none;
  color: var(--ink);
  transition: color 180ms;
}

.portfolio-card__title a:hover {
  color: var(--accent);
}

/* Drupal image field wrapper inside card */
.portfolio-card__image-wrap .field--name-field-portfolio-image {
  width: 100%;
  height: 100%;
}

.portfolio-card__image-wrap .field--name-field-portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Portfolio Full Page ───────────────────────────────────────────────── */

.portfolio-page-content {
  padding: 3rem 0 4rem;
}

.portfolio-full__hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.portfolio-full__hero img,
.portfolio-full__hero .field--name-field-portfolio-image img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-full__hero .field--name-field-portfolio-image {
  line-height: 0;
}

.portfolio-full__body {
  max-width: 680px;
}

.portfolio-full__meta {
  margin-bottom: 0.5rem;
}

.portfolio-full__year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.portfolio-full__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.portfolio-full__desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.portfolio-full__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  margin-top: 1rem;
}

/* ── Animations ────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1),
              opacity 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .hero__decoration {
    display: block;
  }

  .credibility__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .company-details__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid .views-element-container > div {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .credibility__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .menu-toggle,
  .primary-menu--mobile {
    display: none !important;
  }

  .primary-menu--desktop {
    display: flex;
  }

  .layout--sidebar-left,
  .layout--sidebar-right {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
  }

  .layout--sidebar-left .layout__aside {
    order: -1;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
