
html {
  scroll-behavior: smooth;
}
.site-page {
  --bg: var(--bx-bg);
  --frame-max: 1800px;
  --gutter-side: clamp(40px, 8vw, 112px);
  --tile-gap: 16px;
  --r: 22px 0 22px 0;
  --tile-cream: var(--bx-tile-surface);
  --tile-cream-2: var(--bx-tile-surface-2);
  --tile-cream-3: var(--bx-tile-surface-3);
  --tile-peach: #FBDBB3;
  --tile-blue: #4F5BE7;
  --tile-ox: #B42D45;
  --tile-yellow: #F2D24A;
  --paper: var(--bx-paper);
  --ink: var(--bx-ink);
  --ink-2: var(--bx-ink-2);
  --ink-3: var(--bx-ink-3);
  background: var(--bg);
  color: var(--paper);
  min-height: 100vh;
}

/* Nav re-skin */
.site-page .bx-nav {
  background: var(--bx-nav-bg, rgba(15, 13, 10, 0.72)) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 0;
  color: var(--paper);
  padding-left: var(--gutter-side) !important;
  padding-right: var(--gutter-side) !important;
  max-width: var(--frame-max);
  margin: 0 auto;
}
.site-page .bx-nav-links a { color: var(--bx-nav-link-color, rgba(244,236,220,0.65)); }
.site-page .bx-nav-links a:hover,
.site-page .bx-nav-links a[style] { color: var(--paper) !important; }
.site-page .bx-nav .bx-cta {
  color: var(--paper); border-color: var(--bx-cta-border, rgba(244,236,220,0.45));
  border-radius: 999px;
}
.site-page .bx-nav .bx-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Frame */
.sp-frame {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 28px var(--gutter-side) 64px;
}

/* Hero — monumental page title */
.sp-hero {
  padding: 60px 0 64px;
  text-align: center;
}
.sp-hero .crumb {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--bx-fg-dim, rgba(244,236,220,0.55));
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-flex; gap: 10px; align-items: center;
}
.sp-hero .crumb a { color: var(--bx-fg-dim, rgba(244,236,220,0.55)); }
.sp-hero .crumb a:hover { color: var(--paper); }
.sp-hero .crumb .sep { opacity: 0.5; }
.sp-hero .crumb b { color: var(--paper); font-weight: 500; }
.sp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--paper);
  margin: 0 auto;
  max-width: 18ch;
  text-wrap: balance;
  text-transform: none;
}
.sp-hero h1 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--bx-accent-text, var(--tile-yellow)); letter-spacing: -0.02em;
  text-transform: none;
}
.sp-hero .lede {
  margin: 28px auto 0;
  font-size: 18px; line-height: 1.5;
  color: var(--bx-nav-link-color, rgba(244,236,220,0.75));
  max-width: 56ch;
}
.sp-hero .lede b { color: var(--paper); font-weight: 500; }
.sp-hero .lede a {
  color: var(--paper);
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.sp-hero .lede a:hover {
  opacity: 0.85;
}

/* Section header (centered, italic-yellow accents) */
.sp-section { margin-top: 72px; }
.sp-section-head {
  text-align: center;
  margin-bottom: calc(var(--tile-gap) * 2);
}
.sp-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.0; letter-spacing: -0.03em; font-weight: 500;
  margin: 0 auto; max-width: 22ch;
  color: var(--paper);
}
.sp-section-head h2 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--bx-accent-text, var(--tile-yellow)); letter-spacing: -0.02em;
}

/* Pillar-pattern card (number + hrule + headline / body + learn more) */
.sp-card {
  background: var(--tile-cream); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r);
  padding: 36px 38px 38px;
  display: flex; flex-direction: column;
  min-height: 380px;
}
.sp-card .sp-num {
  font-family: var(--font-mono);
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26,24,21,0.14);
}
.sp-card h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 500;
  margin: 0; max-width: 16ch; text-wrap: balance;
}
.sp-card .sp-body {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: space-between;
  margin-top: 24px;
  gap: 28px;
}
.sp-card p {
  font-size: 16px; line-height: 1.5;
  color: var(--bx-tile-ink, var(--ink-2)); margin: 0;
  max-width: 44ch;
}
.sp-card .sp-learn {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bx-tile-ink, var(--ink));
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1), border-bottom-color .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-card .sp-learn:hover { opacity: 0.85; border-bottom-color: currentColor; }

/* Tile color variants */
.sp-card.t-cream-1, .sp-cap-card.t-cream-1 { background: var(--tile-cream-2, #F1F3F5); }
.sp-card.t-cream-2, .sp-cap-card.t-cream-2 { background: var(--tile-cream-3, #E9ECEF); }
.sp-card.t-cream-3, .sp-cap-card.t-cream-3 { background: var(--tile-cream-3, #E9ECEF); }
.sp-card.t-peach   { background: var(--tile-peach); }

/* Services page — phase tiles inside each service card */
.sp-phases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.phase-tile {
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.1); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 10px;
}
.phase-tile .pt-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(26, 24, 21, 0.72);
}
.phase-tile .pt-label {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}

/* Services grid */
.sp-svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--tile-gap);
}
.sp-svc-grid .sp-card { min-height: 460px; }
@media (max-width: 1200px) {
  .sp-svc-grid { grid-template-columns: 1fr; }
  .sp-phases { grid-template-columns: 1fr; }
  .phase-tile { aspect-ratio: auto; padding: 20px; }
  .vr-rec-body { grid-template-columns: 1fr; gap: 28px; }
  .sp-case-body { grid-template-columns: 1fr; gap: 28px; }
  .vrect-recursica, .vrect-cozy, .sp-case-study { padding: 44px 24px 48px; min-height: 360px; }
}

/* Capabilities Section */
.sp-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
  margin-top: var(--tile-gap);
}
.sp-cap-card {
  background: var(--tile-cream);
  color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r);
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-cap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.sp-cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(26, 24, 21, 0.72);
  margin-bottom: 12px;
}
.sp-cap-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.sp-cap-card .cap-focus {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--bx-tile-ink-muted, var(--ink-2));
  margin-bottom: 16px;
  line-height: 1.1;
}
.sp-cap-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--bx-tile-ink, var(--ink));
  opacity: 0.88;
  margin: 0;
  flex: 1;
}

@media (max-width: 1024px) {
  .sp-caps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .sp-caps-grid {
    grid-template-columns: 1fr;
  }
}

/* OSS grid */
.sp-oss-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
}
.sp-oss-grid .sp-card { min-height: 340px; }
@media (max-width: 1100px) { .sp-oss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .sp-oss-grid { grid-template-columns: 1fr; } }

/* Industries — 3 stacked sections, each: text + proof tiles */
.ind-block {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: var(--tile-gap);
  margin-top: var(--tile-gap);
}
.ind-text {
  background: var(--tile-cream); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r); padding: 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 360px;
}
.ind-text .ind-num {
  font-family: var(--font-mono);
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26,24,21,0.14);
  margin-bottom: 22px;
}
.ind-text h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 92px);
  hyphens: auto;
  letter-spacing: -0.045em; line-height: 0.92;
  margin: 0; font-weight: 500;
  max-width: 10ch; text-wrap: balance;
  color: var(--bx-tile-ink, var(--ink));
}
.ind-text h2 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  letter-spacing: -0.02em;
}
.ind-text p {
  margin: 22px 0 0;
  font-size: 16px; line-height: 1.5; color: var(--ink-2);
  max-width: 44ch;
}
.ind-proof {
  display: grid; grid-template-columns: 1fr;
  gap: var(--tile-gap);
  align-content: start;
}
.ind-proof .pcard {
  background: var(--tile-cream-2); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ind-proof .pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Per-industry color: both ind-text and all three pcards share the exact same base color */
.industry-telecom        { --ind-base: #1B3A5C; }
.industry-cybersecurity  { --ind-base: #1F2226; }
.industry-private-equity { --ind-base: #2E4A3A; }

.industry-telecom .ind-text,
.industry-cybersecurity .ind-text,
.industry-private-equity .ind-text,
.industry-telecom .ind-proof .pcard,
.industry-cybersecurity .ind-proof .pcard,
.industry-private-equity .ind-proof .pcard {
  background: var(--ind-base);
  color: var(--paper);
}

.industry-telecom .ind-text h2,
.industry-cybersecurity .ind-text h2,
.industry-private-equity .ind-text h2 { color: var(--paper); }

.industry-telecom .ind-num,
.industry-cybersecurity .ind-num,
.industry-private-equity .ind-num {
  color: rgba(244,236,220,0.85);
  border-bottom-color: rgba(244,236,220,0.22);
}

.industry-telecom .ind-text p,
.industry-cybersecurity .ind-text p,
.industry-private-equity .ind-text p {
  color: rgba(244,236,220,0.85);
}

/* Light Theme overrides to ensure one cohesive color per industry block in light mode as well */
[data-theme="light"] .industry-telecom        { --ind-base: var(--tile-cream); }
[data-theme="light"] .industry-cybersecurity  { --ind-base: var(--tile-cream); }
[data-theme="light"] .industry-private-equity { --ind-base: var(--tile-cream); }

[data-theme="light"] .industry-telecom .ind-text,
[data-theme="light"] .industry-cybersecurity .ind-text,
[data-theme="light"] .industry-private-equity .ind-text,
[data-theme="light"] .industry-telecom .ind-proof .pcard,
[data-theme="light"] .industry-cybersecurity .ind-proof .pcard,
[data-theme="light"] .industry-private-equity .ind-proof .pcard {
  background: var(--ind-base);
  color: var(--bx-tile-ink);
}

[data-theme="light"] .industry-telecom .ind-text h2,
[data-theme="light"] .industry-cybersecurity .ind-text h2,
[data-theme="light"] .industry-private-equity .ind-text h2 {
  color: var(--bx-tile-ink);
}

[data-theme="light"] .industry-telecom .ind-num,
[data-theme="light"] .industry-cybersecurity .ind-num,
[data-theme="light"] .industry-private-equity .ind-num {
  color: var(--bx-tile-ink);
  border-bottom-color: rgba(28,30,35,0.14);
}

[data-theme="light"] .industry-telecom .ind-text p,
[data-theme="light"] .industry-cybersecurity .ind-text p,
[data-theme="light"] .industry-private-equity .ind-text p {
  color: var(--bx-tile-ink);
  opacity: 0.8;
}
.ind-proof .pcard.peach { background: var(--tile-peach); }
.ind-proof .pcard.yellow { background: var(--tile-yellow); }
.ind-proof .pcard.blue   { background: var(--tile-blue); color: var(--paper); }
.ind-proof .pcard .k {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.ind-proof .pcard .v {
  font-family: var(--font-sans); font-size: 16px;
  margin-top: 14px; line-height: 1.5; opacity: 0.88;
}
@media (max-width: 1280px) {
  .ind-block { grid-template-columns: 1fr; }
  .ind-text { min-height: 0; padding: 28px; }
}

/* Stories / posts */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
}
.post-card {
  background: var(--tile-cream); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r); padding: 32px;
  display: flex; flex-direction: column;
  min-height: 360px;
}
/* Vibrant Category-Based Tile Backgrounds (with HSL parameters strictly satisfying WCAG AA 4.5:1+ contrast against white text) */
.post-card.cat-design {
  --design-bg: #F3F4F6;
  --design-h3: var(--bx-tile-ink, var(--ink));
  --design-p: var(--bx-tile-ink, var(--ink));
  --design-meta: var(--ink-2);
  background: var(--design-bg);
  color: var(--design-p);
}
[data-theme="light"] .post-card.cat-design {
  --design-bg: #1A1815;
  --design-h3: #F4ECDC;
  --design-p: rgba(244, 236, 220, 0.9);
  --design-meta: rgba(244, 236, 220, 0.8);
}
.post-card.cat-design h3 { color: var(--design-h3) !important; }
.post-card.cat-design p, .post-card.cat-design .read { color: var(--design-p) !important; }
.post-card.cat-design .row span { color: var(--design-meta) !important; }
.post-card.cat-culture { background: #C92149; color: #FFFFFF; } /* Deep vibrant magenta */
.post-card.cat-dev     { background: #1A63E0; color: #FFFFFF; } /* Deep electric cobalt blue */
.post-card.cat-art     { background: #C22345; color: #FFFFFF; } /* Deep vibrant cherry */
.post-card.cat-rip     { background: #475569; color: #FFFFFF; } /* Slate grey */
.post-card.cat-w3w     { background: #7C3AED; color: #FFFFFF; } /* Deep vibrant violet */
.post-card.cat-default { background: #0D9488; color: #FFFFFF; } /* Vibrant teal */

/* Text and element color overrides for vibrant categories */
.post-card[class*="cat-"]:not(.cat-design) {
  box-shadow: 0 4px 20px rgba(26, 24, 21, 0.08);
}
.post-card[class*="cat-"]:not(.cat-design) .row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.post-card[class*="cat-"]:not(.cat-design) .row span {
  color: rgba(255, 255, 255, 0.95);
}
.post-card[class*="cat-"]:not(.cat-design) .row .kind {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.post-card[class*="cat-"]:not(.cat-design) .row .kind:hover {
  text-decoration: underline;
}
.post-card[class*="cat-"]:not(.cat-design) p {
  color: rgba(255, 255, 255, 0.88);
}
.post-card[class*="cat-"]:not(.cat-design) .read {
  color: #FFFFFF;
  border-bottom: 1px solid transparent;
}
.post-card[class*="cat-"]:not(.cat-design) .post-card-img-wrap {
  border: none;
  background: rgba(0, 0, 0, 0.1);
}
.post-card .row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26,24,21,0.14);
  margin-bottom: 22px;
}
.post-card .row span { color: var(--ink-2); }
.post-card .row .kind {
  color: currentColor;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(128,128,128,0.3);
}
.post-card .row .kind:hover {
  text-decoration: underline;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 500;
  margin: 0 0 14px 0; max-width: 22ch; text-wrap: balance;
}
.post-title-link {
  color: inherit;
  text-decoration: none;
}
.post-title-link:hover,
.post-card:hover .post-title-link {
  text-decoration: underline;
}
.post-card-img-link {
  display: block;
  text-decoration: none;
}
.post-card .post-body {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.post-card p {
  font-size: 15px; line-height: 1.5;
  color: var(--ink-2); margin: 0;
}
.post-card .read {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bx-tile-ink, var(--ink)); align-self: flex-start;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1), border-bottom-color .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card .read:hover { opacity: 0.85; border-bottom-color: currentColor; }
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card { padding: 24px; }
}
@media (max-width: 720px)  {
  .post-grid { grid-template-columns: 1fr; }
  .post-card { padding: 20px; }
}

/* Featured post — spans 2x2 (the size of 4 standard post blocks) */
.post-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 0;
}
.post-card.featured h3 {
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.post-card.featured p { font-size: 17px; max-width: 50ch; }
.post-card.featured .read { font-size: 13px; }
@media (min-width: 1500px) {
  .post-card.featured h3 { font-size: clamp(44px, 3.8vw, 72px); }
  .post-card.featured p { font-size: 19px; }
}
@media (max-width: 1100px) {
  .post-card.featured { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 720px) {
  .post-card.featured { grid-column: 1; }
}

.post-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 24px;
  border: none;
  background: rgba(26, 24, 21, 0.05);
}
.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover .post-card-img {
  transform: scale(1.05);
}

/* Contact */
.contact-wrap {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--tile-gap);
}
.contact-form {
  background: var(--tile-cream); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r);
  padding: 44px;
  display: flex; flex-direction: column; gap: 24px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bx-tile-ink, var(--ink));
  font-weight: 500;
}
.contact-form input, .contact-form textarea {
  font-family: var(--font-sans); font-size: 17px;
  padding: 10px 0; border: 0;
  border-bottom: 1px solid rgba(26,24,21,0.25);
  background: transparent; outline: none; color: var(--bx-tile-ink, var(--ink));
}
.contact-form textarea { resize: vertical; line-height: 1.5; }
.contact-form input:focus, .contact-form textarea:focus {
  border-bottom-color: var(--bx-tile-ink, var(--ink));
}
.contact-form button {
  align-self: flex-start; margin-top: 8px;
  background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-form button:hover { opacity: 0.85; }
.contact-side {
  display: grid; grid-template-rows: repeat(3, 1fr);
  gap: var(--tile-gap);
}
.contact-side .scard {
  background: var(--tile-cream-2); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r); padding: 28px;
}
.contact-side .scard.peach { background: var(--tile-peach); }
.contact-side .scard.blue  { background: var(--tile-blue); color: var(--paper); }
.contact-side .scard .lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 10px;
}
.contact-side .scard a, .contact-side .scard p {
  font-family: var(--font-mono); font-size: 14px;
  color: inherit; line-height: 1.5; margin: 0;
}
@media (max-width: 880px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-side { grid-template-rows: auto; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .contact-side { grid-template-columns: 1fr; }
}

/* Recursica banner (full-width oxblood) */
.sp-rec-banner {
  margin-top: var(--tile-gap);
  background: var(--tile-ox); color: var(--paper);
  border-radius: var(--r);
  padding: 60px 44px 72px;
  position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column;
}
.sp-rec-banner::after {
  content: ''; position: absolute;
  right: -120px; top: -40px;
  width: 380px; height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(244,236,220,0.18), transparent 60%);
  pointer-events: none;
}
.sp-rec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(244,236,220,0.25);
  margin-bottom: 28px;
}
.sp-rec-head .lbl {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244,236,220,0.85);
}
.sp-rec-swatches { display: flex; gap: 8px; }
.sp-rec-swatches .sw {
  width: 18px; height: 18px; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(244,236,220,0.2);
}
.sp-rec-body {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 80px; align-items: end;
  position: relative; z-index: 1;
  flex: 1; margin-top: auto;
}
.sp-rec-body h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 500;
  margin: 0; max-width: 16ch;
  color: var(--paper);
}
.sp-rec-body h2 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--tile-yellow); letter-spacing: -0.02em;
}
.sp-rec-body p {
  font-size: 16px; line-height: 1.55;
  color: rgba(244,236,220,0.88);
  margin: 0 0 22px; max-width: 44ch;
}
.sp-rec-body p b { color: var(--paper); font-weight: 500; }
.sp-rec-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-rec-banner .sp-rec-cta {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px; border-radius: 999px;
  background: var(--paper); color: var(--ink) !important;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-rec-banner .sp-rec-cta:hover { opacity: 0.85; }
.sp-rec-banner .sp-rec-cta.ghost {
  background: transparent; color: var(--paper) !important;
  border-color: rgba(244,236,220,0.55);
}
@media (max-width: 880px) {
  .sp-rec-body { grid-template-columns: 1fr; gap: 28px; }
  .sp-rec-banner { padding: 44px 24px 48px; min-height: 360px; }
}

/* Legal pages */
.legal-wrap {
  display: grid; grid-template-columns: 340px 1fr;
  gap: var(--tile-gap);
  margin-top: calc(var(--tile-gap) * 2);
}
.legal-toc {
  position: sticky; top: 96px; align-self: start;
  background: var(--tile-cream);
  border-radius: var(--r);
  padding: 36px 32px;
}
.legal-toc .lbl {
  font-family: var(--font-mono); font-size: 12px; color: var(--bx-light-tile-fg-muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.legal-toc .updated {
  font-family: var(--font-mono); font-size: 13px; color: var(--bx-light-tile-fg);
  margin-bottom: 22px;
}
.legal-toc ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.legal-toc ul a {
  font-family: var(--font-mono); font-size: 13px; color: var(--bx-light-tile-fg-muted);
  transition: opacity 0.2s ease, color 0.2s ease;
  opacity: 0.85;
}
.legal-toc ul a:hover { color: var(--bx-light-tile-fg); opacity: 1; }

.legal-body {
  color: var(--bx-fg-body, rgba(244, 236, 220, 0.85));
  padding: 16px var(--tile-gap);
  display: flex; flex-direction: column; gap: 48px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--bx-fg-body, rgba(244, 236, 220, 0.85));
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal-body section {
  scroll-margin-top: 110px;
}
.legal-body section .ord {
  font-family: var(--font-display);
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule, rgba(244,236,220,0.14));
  margin-bottom: 14px;
  color: var(--paper);
}
.legal-body section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.1; letter-spacing: -0.025em;
  font-weight: 500; margin: 0 0 14px; color: var(--paper);
}
.legal-body section p {
  font-size: 16px; line-height: 1.65; color: var(--bx-fg-body, rgba(244, 236, 220, 0.85));
  margin: 0 0 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal-body section ul {
  list-style-type: disc;
  margin: 0 0 14px 20px;
  padding: 0;
}
.legal-body section ol {
  list-style-type: decimal;
  margin: 0 0 14px 20px;
  padding: 0;
}
.legal-body section li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--bx-fg-body, rgba(244, 236, 220, 0.85));
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal-body section a {
  color: var(--bx-accent-text, var(--tile-yellow));
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.15s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal-body section a:hover {
  opacity: 0.85;
  color: var(--paper);
}
@media (max-width: 880px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding: 24px 28px; margin-bottom: 16px; }
  .legal-toc ul a {
    display: block;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .legal-body { padding: 16px 0; }
}

/* Case-study banner */
.sp-case-study {
  margin-top: var(--tile-gap);
  border-radius: var(--r);
  padding: 60px 44px 72px;
  min-height: 480px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.sp-case-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.sp-case-head .lbl {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.sp-case-head .meta {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em;
}
.sp-case-body {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  flex: 1;
  align-items: end;
  position: relative; z-index: 1;
}
.sp-case-text h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 500;
  margin: 0 0 24px; max-width: 14ch;
}
.sp-case-text h2 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  letter-spacing: -0.02em;
}
.sp-case-text p {
  font-size: 16px; line-height: 1.55;
  margin: 0 0 24px; max-width: 44ch;
}
.sp-case-cta {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-case-cta:hover { opacity: 0.85; }
.sp-case-shot {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  position: relative; overflow: hidden;
}
.sp-case-shot::before {
  display: none;
}
.sp-case-shot-label {
  display: none;
}

/* cs-padi (PADI ocean blue) */
.sp-case-study.cs-padi { background: #003B73; color: var(--bx-brand-fg, var(--paper)); }
.sp-case-study.cs-padi::after {
  content: ''; position: absolute;
  right: -120px; top: -40px;
  width: 380px; height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(0,150,214,0.40), transparent 60%);
  pointer-events: none;
}
.sp-case-study.cs-padi .sp-case-head { border-bottom: 1px solid rgba(244,236,220,0.25); }
.sp-case-study.cs-padi .sp-case-head .lbl { color: rgba(244,236,220,0.9); }
.sp-case-study.cs-padi .sp-case-head .meta { color: rgba(244,236,220,0.62); }
.sp-case-study.cs-padi .sp-case-text h2 em { color: #FFD75A; }
.sp-case-study.cs-padi .sp-case-text p { color: rgba(244,236,220,0.86); }
.sp-case-study.cs-padi .sp-case-cta { background: var(--bx-brand-paper, var(--paper)); color: var(--bx-light-tile-fg, var(--ink)); }
.sp-case-study.cs-padi .sp-case-shot {
  background: rgba(244,236,220,0.08) url("../content/posts/from-course-catalog-to-adventure-ecosystem/assets/PADI_Blog_Card.png") no-repeat center;
  background-size: cover;
}

/* cs-cymbiotika (wellness sage green) */
.sp-case-study.cs-cymbiotika { background: #2E4A3A; color: var(--bx-brand-fg, var(--paper)); }
.sp-case-study.cs-cymbiotika::after {
  content: ''; position: absolute;
  right: -120px; top: -40px;
  width: 380px; height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(201,160,99,0.32), transparent 60%);
  pointer-events: none;
}
.sp-case-study.cs-cymbiotika .sp-case-head { border-bottom: 1px solid rgba(201,160,99,0.32); }
.sp-case-study.cs-cymbiotika .sp-case-head .lbl { color: #D4B57A; }
.sp-case-study.cs-cymbiotika .sp-case-head .meta { color: rgba(244,236,220,0.55); }
.sp-case-study.cs-cymbiotika .sp-case-text h2 em { color: #D4B57A; }
.sp-case-study.cs-cymbiotika .sp-case-text p { color: rgba(244,236,220,0.82); }
.sp-case-study.cs-cymbiotika .sp-case-cta { background: #D4B57A; color: var(--bx-light-tile-fg, var(--ink)); }
.sp-case-study.cs-cymbiotika .sp-case-shot {
  background: rgba(212,181,122,0.10) url("../content/posts/unifying-cymbiotikas-digital-experience/assets/unifying-cymbiotikas-digital-experience-hero.png") no-repeat center;
  background-size: cover;
}

/* cs-viasat (cyber black) */
.sp-case-study.cs-viasat { background: #1F2226; color: var(--bx-brand-fg, var(--paper)); }
.sp-case-study.cs-viasat::after {
  content: ''; position: absolute;
  right: -120px; top: -40px;
  width: 380px; height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(0,150,214,0.40), transparent 60%);
  pointer-events: none;
}
.sp-case-study.cs-viasat .sp-case-head { border-bottom: 1px solid rgba(244,236,220,0.18); }
.sp-case-study.cs-viasat .sp-case-head .lbl { color: rgba(244,236,220,0.85); }
.sp-case-study.cs-viasat .sp-case-head .meta { color: rgba(244,236,220,0.5); }
.sp-case-study.cs-viasat .sp-case-text h2 em { color: #00C2E0; }
.sp-case-study.cs-viasat .sp-case-text p { color: rgba(244,236,220,0.82); }
.sp-case-study.cs-viasat .sp-case-cta { background: var(--bx-brand-paper, var(--paper)); color: var(--bx-light-tile-fg, var(--ink)); }
.sp-case-study.cs-viasat .sp-case-shot { background: rgba(244,236,220,0.06); }

/* cs-dark (used by /careers "Open positions" block) */
.sp-case-study.cs-dark { background: #1F2226; color: var(--bx-brand-fg, var(--paper)); }
.sp-case-study.cs-dark::after {
  content: ''; position: absolute;
  right: -120px; top: -40px;
  width: 380px; height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(242,210,74,0.28), transparent 60%);
  pointer-events: none;
}
.sp-case-study.cs-dark .sp-case-head { border-bottom: 1px solid rgba(244,236,220,0.18); }
.sp-case-study.cs-dark .sp-case-head .lbl { color: rgba(244,236,220,0.85); }
.sp-case-study.cs-dark .sp-case-head .meta { color: rgba(244,236,220,0.5); }
.sp-case-study.cs-dark .sp-case-text h2 em { color: var(--tile-yellow); }
.sp-case-study.cs-dark .sp-case-text p { color: rgba(244,236,220,0.78); }
.sp-case-study.cs-dark .sp-case-cta { background: var(--tile-yellow); color: var(--bx-light-tile-fg, var(--ink)); }
#careers-open .sp-case-body {
  grid-template-columns: 1fr;
}
#careers-open .sp-case-text {
  max-width: 60ch;
}

@media (max-width: 1200px) {
  .sp-case-body { grid-template-columns: 1fr; gap: 28px; }
  .sp-case-study { padding: 44px 24px 48px; min-height: 360px; }
}

/* Narrative block — wide, short, long-form paragraph */
.sp-narrative {
  margin-top: var(--tile-gap);
  background: var(--tile-cream);
  color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r);
  padding: 44px 48px;
}
.sp-narrative.cream-2 { background: var(--tile-cream-2); }
.sp-narrative.cream-3 { background: var(--tile-cream-3); }
.sp-narrative.peach   { background: var(--tile-peach); }
.sp-narrative p {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
  max-width: 70ch;
}
.sp-narrative p + p { margin-top: 18px; }
.sp-narrative p b { color: var(--bx-tile-ink, var(--ink)); font-weight: 500; }
@media (max-width: 880px) {
  .sp-narrative { padding: 32px 28px; }
  .sp-narrative p { font-size: 17px; }
}

/* Careers perks (3-up small cards) */
.sp-perks {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
}
.sp-perks .sp-card { min-height: 280px; }
.sp-perks .sp-card h3 { max-width: 18ch; }
@media (max-width: 880px) {
  .sp-perks { grid-template-columns: 1fr; }
}

/* Bento grid — 3-up tall pillar cards (used on About + Careers) */
.sp-bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--tile-gap);
  margin-top: var(--tile-gap);
}
.sp-values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--tile-gap);
  margin-top: var(--tile-gap);
}
@media (max-width: 880px) {
  .sp-values-grid { grid-template-columns: 1fr; }
}

/* Graphical and Colorful Value Statement Cards (Strictly Solid Colors, No Borders) */
.sp-value-card-1 {
  background: #1b4d3e !important;
  border: none !important;
  box-shadow: 0 10px 30px -10px rgba(27, 77, 62, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sp-value-card-1:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 40px -10px rgba(27, 77, 62, 0.6), 0 0 25px rgba(27, 77, 62, 0.35) !important;
}

.sp-value-card-1 h3 {
  color: #ffffff !important;
}

.sp-value-card-1 h3 em {
  font-family: "Instrument Serif", serif !important;
  font-style: italic !important;
  color: var(--tile-yellow) !important;
}

.sp-value-card-2 {
  background: #164e5c !important;
  border: none !important;
  box-shadow: 0 10px 30px -10px rgba(22, 78, 92, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sp-value-card-2:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 40px -10px rgba(22, 78, 92, 0.6), 0 0 25px rgba(22, 78, 92, 0.35) !important;
}

.sp-value-card-2 h3 {
  color: #ffffff !important;
}

.sp-value-card-2 h3 em {
  font-family: "Instrument Serif", serif !important;
  font-style: italic !important;
  color: var(--tile-yellow) !important;
}

/* Case-study detail hero */
.cs-detail-hero {
  margin-top: var(--tile-gap);
  border-radius: var(--r);
  padding: 60px 44px 64px;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cs-detail-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid currentColor;
  border-bottom-color: var(--bx-foot-border, rgba(244,236,220,0.22));
  margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.cs-detail-eyebrow a { color: inherit; opacity: 0.7; }
.cs-detail-eyebrow a:hover { opacity: 1; }
.cs-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 104px);
  line-height: 0.92; letter-spacing: -0.045em; font-weight: 500;
  margin: 0; max-width: 22ch; text-wrap: balance;
}
.cs-detail-hero h1 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  letter-spacing: -0.02em;
}
.cs-detail-meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 28px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.78;
}
.cs-detail-hero.cs-padi h1 em { color: #FFD75A; }
.cs-detail-hero.cs-cymbiotika h1 em { color: #D4B57A; }
.cs-detail-hero.cs-viasat h1 em { color: #00C2E0; }

/* Case-study long-form sections */
.cs-long {
  margin-top: calc(var(--tile-gap) * 2);
  max-width: 72ch;
  margin-left: auto; margin-right: auto;
  padding: 0 16px;
}
.cs-long h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.0; letter-spacing: -0.03em; font-weight: 500;
  margin: 0 0 22px;
  color: var(--paper);
}
.cs-long p {
  font-size: 18px; line-height: 1.6;
  color: var(--bx-tile-ink, var(--ink-2));
  margin: 0 0 18px;
}
.cs-pull {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15; letter-spacing: -0.015em;
  color: var(--tile-yellow);
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--tile-yellow);
  max-width: 28ch;
}

/* Case-study gallery */
.cs-gallery {
  margin-top: calc(var(--tile-gap) * 2);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--tile-gap);
}
.cs-shot-large {
  aspect-ratio: 4 / 3;
  background: var(--bx-foot-border, rgba(244,236,220,0.06));
  border-radius: var(--r);
  position: relative; overflow: hidden;
}
.cs-shot-large::before {
  content: ''; position: absolute; inset: 18px;
  border-radius: 4px;
  border: 1px dashed var(--bx-cta-border, rgba(244,236,220,0.25));
}
.cs-shot-large .cs-shot-label {
  position: absolute; top: 28px; left: 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--bx-nav-link-color, rgba(244,236,220,0.6));
  letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 1;
}
@media (max-width: 880px) { .cs-gallery { grid-template-columns: 1fr; } }

/* Case-study stats */
.cs-stats {
  margin-top: calc(var(--tile-gap) * 2);
  background: var(--tile-cream); color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r);
  padding: 40px 44px 44px;
}
.cs-stats-head {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(26,24,21,0.14);
  margin-bottom: 28px;
}
.cs-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tile-gap);
}
.cs-stat-k {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1; letter-spacing: -0.04em; font-weight: 500;
}
.cs-stat-v {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); margin-top: 14px;
  letter-spacing: 0.06em; line-height: 1.4;
}
@media (max-width: 880px) { .cs-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Blog article hero */
/* Blog article hero split columns and layouts */
.art-hero {
  margin-top: calc(var(--tile-gap) * 2);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0 64px;
  border-bottom: 1px solid var(--bx-foot-border, rgba(244, 236, 220, 0.14));
}
@media (max-width: 1024px) {
  .art-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 44px;
  }
}
.art-hero-left {
  display: flex; flex-direction: column;
}
.art-back-link {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--bx-nav-link-color, rgba(244, 236, 220, 0.6)) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.art-back-link:hover {
  color: var(--paper) !important;
  border-bottom-color: currentColor;
}
.art-eyebrow {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bx-nav-link-color, rgba(244,236,220,0.6));
  margin-bottom: 24px;
}
.art-eyebrow .kind { color: var(--tile-yellow); }
.art-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 68px);
  line-height: 1.0; letter-spacing: -0.04em; font-weight: 500;
  margin: 18px 0 0; color: var(--paper);
  text-wrap: balance;
}
.art-hero h1 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--tile-yellow);
}
.art-deck {
  font-size: 18px; line-height: 1.5;
  color: var(--bx-nav-link-color, rgba(244,236,220,0.8));
  margin: 20px 0 0; max-width: 44ch;
}

/* Author bio card on the author page */
.art-author-card-page {
  margin: 24px auto 48px;
  background: rgba(244, 236, 220, 0.03);
  border: 1px solid rgba(244, 236, 220, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  max-width: 300px;
}
.art-author-card-page h2 {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--bx-paper, #F4ECDC);
}
.art-author-card-page p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(244, 236, 220, 0.7);
  line-height: 1.5;
  max-width: 60ch;
}
[data-theme="light"] .art-author-card-page {
  background: rgba(26, 24, 21, 0.03);
  border: 1px solid rgba(26, 24, 21, 0.08);
}
[data-theme="light"] .art-author-card-page p {
  color: rgba(26, 24, 21, 0.7);
}

/* Author info card inside hero */
.art-author-card {
  display: flex; align-items: center; gap: 16px;
  margin-top: 36px;
  padding: 16px;
  background: var(--bx-foot-border, rgba(244, 236, 220, 0.04));
  border: 1px solid var(--bx-cta-border, rgba(244, 236, 220, 0.08));
  border-radius: 12px;
  max-width: 380px;
}
.art-author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-deep);
  border: 1px solid var(--bx-cta-border, rgba(244, 236, 220, 0.2));
}
.art-author-meta {
  display: flex; flex-direction: column; gap: 3px;
}
.art-author-name {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--paper);
}
.art-author-name a {
  color: inherit; text-decoration: none;
}
.art-author-name a:hover {
  text-decoration: underline;
}
.art-author-role {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--bx-nav-link-color, rgba(244, 236, 220, 0.6));
}
.art-meta-row {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--bx-fg-dim, rgba(244, 236, 220, 0.45));
  margin-top: 2px;
}

/* Right hero frame */
.art-hero-right {
  width: 100%;
}
.art-hero-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bx-foot-border, rgba(244, 236, 220, 0.03));
  border: 1px solid var(--bx-cta-border, rgba(244, 236, 220, 0.1));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}
.art-hero-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-hero-frame:hover img {
  transform: scale(1.03);
}
.art-hero-frame.empty {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(244, 236, 220, 0.04) 14px 15px), rgba(244, 236, 220, 0.02);
}
.art-placeholder-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--bx-fg-dim, rgba(244, 236, 220, 0.35));
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px dashed var(--bx-cta-border, rgba(244, 236, 220, 0.2));
  padding: 12px 20px; border-radius: 4px;
}

/* Inline content shots */
.art-inline-shot {
  margin: 8px 0;
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
}
.art-inline-shot .art-img-link {
  display: block;
  padding: 16px 32px 0 32px;
}
.art-inline-shot img {
  width: 100%; display: block; height: auto;
  border-radius: var(--r);
}
.art-inline-caption {
  padding: 8px 32px 16px 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: #1C1E23;
  border-top: none;
  background: rgba(28, 30, 35, 0.02);
}
[data-theme="light"] .art-inline-shot {
  background: #0D1017;
  border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .art-inline-caption {
  color: #ffffff;
  border-top: none;
  background: rgba(255, 255, 255, 0.04);
}
.art-body p:empty {
  display: none;
}

/* Bottom author bio card signature */
.art-signature-card {
  display: flex; gap: 28px;
  max-width: 64ch;
  margin: 64px auto;
  padding: 32px;
  background: rgba(244, 236, 220, 0.03);
  border: 1px solid rgba(244, 236, 220, 0.08);
  border-radius: var(--r);
}
@media (max-width: 640px) {
  .art-signature-card {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
}
.art-sig-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-deep);
  border: 1px solid rgba(244, 236, 220, 0.2);
  flex-shrink: 0;
}
.art-sig-body {
  display: flex; flex-direction: column;
}
.art-sig-body h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  color: var(--paper); margin: 0 0 4px;
}
.art-sig-body h3 a {
  color: inherit; text-decoration: none;
}
.art-sig-body h3 a:hover {
  text-decoration: underline;
}
.art-sig-role {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--tile-yellow); font-weight: 500;
  margin: 0 0 14px;
}
.art-sig-bio {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  color: rgba(244, 236, 220, 0.76); margin: 0 0 20px;
}
.art-sig-link {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--paper); text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid rgba(244, 236, 220, 0.3);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}
.art-sig-link:hover {
  border-bottom-color: var(--paper);
}

/* Blog article body */
.art-body {
  margin: calc(var(--tile-gap) * 2) auto 0;
  max-width: 64ch;
  padding: 0 16px;
}
.art-body h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 500;
  margin: 44px 0 18px;
  color: var(--paper);
}
.art-body p {
  font-size: 19px; line-height: 1.6;
  color: rgba(244,236,220,0.85);
  margin: 0 0 20px;
}
.art-body blockquote {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.18; letter-spacing: -0.015em;
  color: var(--tile-yellow);
  margin: 36px 0;
  padding-left: 24px;
  border-left: 2px solid var(--tile-yellow);
  max-width: 30ch;
}

/* Article related */
.art-related {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--tile-gap);
}
.art-related-card {
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--r);
  padding: 32px 36px 36px;
  min-height: 240px;
  text-decoration: none;
  transition: transform .2s ease;
}
.art-related-card:hover { transform: translateY(-2px); }
.art-related-card.cs-padi       { background: #003B73; color: var(--bx-brand-fg, var(--paper)); }
.art-related-card.cs-cymbiotika { background: #2E4A3A; color: var(--bx-brand-fg, var(--paper)); }
.art-related-card.cs-viasat     { background: #1F2226; color: var(--bx-brand-fg, var(--paper)); }
.art-related-lbl {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7;
  padding-bottom: 18px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 18px;
  opacity: 0.85;
}
.art-related-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 500;
  max-width: 18ch;
}
.art-related-title em {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--tile-yellow); letter-spacing: -0.02em;
}
.art-related-arrow {
  margin-top: 28px;
  font-family: var(--font-mono); font-size: 22px;
  align-self: flex-end;
}
@media (max-width: 880px) { .art-related { grid-template-columns: 1fr; } }
.sp-bento-grid .sp-card {
  min-height: 520px;
  padding: 36px 38px 38px;
}
.sp-bento-grid .sp-card h3 {
  font-size: clamp(36px, 3.4vw, 60px);
  line-height: 0.98; letter-spacing: -0.04em;
  max-width: 10ch;
}
.sp-bento-grid .sp-card p {
  font-size: 17px; line-height: 1.5;
  max-width: 32ch;
}
@media (max-width: 880px) {
  .sp-bento-grid { grid-template-columns: 1fr; }
  .sp-bento-grid .sp-card { min-height: 360px; }
}
@media (min-width: 1500px) {
  .sp-bento-grid .sp-card { min-height: 640px; padding: 44px 46px 46px; }
  .sp-bento-grid .sp-card h3 { font-size: clamp(48px, 4.2vw, 84px); }
  .sp-bento-grid .sp-card p { font-size: 19px; }
}

/* Footer */
.site-page .bx-foot {
  border-top: 0;
  background: var(--bg);
  color: var(--bx-foot-fg, rgba(244,236,220,0.6));
  max-width: var(--frame-max); margin: 0 auto;
  padding: 60px var(--gutter-side) 32px;
  margin-top: 64px;
}
.site-page .bx-foot h4 { color: var(--paper); }
.site-page .bx-foot-bottom { border-top-color: var(--bx-foot-border, rgba(244,236,220,0.18)); }
.site-page .bx-foot a:hover { color: var(--paper); }

/* ── Wide screens ─────────────────────────────────────────────────────── */
@media (min-width: 1500px) {
  .site-page {
    --frame-max: 2000px;
    --gutter-side: 128px;
    --tile-gap: 20px;
    --r: 26px 0 26px 0;
  }
  .sp-hero { padding: 80px 0 96px; }
  .sp-hero h1 { font-size: clamp(80px, 8vw, 184px); }
  .sp-hero .lede { font-size: 20px; }
  .sp-section { margin-top: 88px; }
  .sp-section-head h2 { font-size: clamp(40px, 3.4vw, 60px); }
  .sp-card { min-height: 460px; padding: 44px 46px 46px; }
  .sp-card h3 { font-size: clamp(36px, 2.8vw, 52px); }
  .sp-card p { font-size: 18px; }
  .sp-card .sp-num { font-size: 26px; }
  .sp-svc-grid .sp-card { min-height: 560px; }
  .sp-oss-grid .sp-card { min-height: 400px; }
  .ind-text { padding: 56px; min-height: 460px; }
  .ind-text h2 { font-size: clamp(64px, 5.2vw, 108px); }
  .ind-text p { font-size: 18px; }
  .ind-proof .pcard { padding: 32px; }
  .ind-proof .pcard .k { font-size: clamp(24px, 1.8vw, 32px); }
  .ind-proof .pcard .v { font-size: 18px; }
  .post-card { min-height: 420px; padding: 38px; }
  .post-card h3 { font-size: clamp(24px, 1.9vw, 32px); }
  .post-card p { font-size: 16px; }
  .contact-form { padding: 56px; }
  .contact-form input, .contact-form textarea { font-size: 19px; }
  .contact-side .scard { padding: 32px; }
  .contact-side .scard a, .contact-side .scard p { font-size: 15px; }
  .sp-rec-banner { padding: 80px 56px 96px; min-height: 640px; }
  .sp-rec-body h2 { font-size: clamp(56px, 5.2vw, 104px); }
  .sp-rec-body p { font-size: 18px; }
}

/* ── Full-width Recursica banner ─────────────────────────────────────────── */
.vrect-recursica {
  margin-top: var(--tile-gap);
  background-color: #A82141;
  color: var(--bx-brand-paper, var(--paper));
  border-radius: var(--r);
  padding: 60px 44px 72px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column;
}
.vrect-recursica::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("../assets/background-recursica-banner.svg");
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.vrect-recursica .vr-rec-eyebrow-row,
.vrect-recursica .vr-rec-body { position: relative; z-index: 1; }
.vrect-recursica .vr-rec-eyebrow-row { border-bottom: 0; padding-bottom: 8px; margin-bottom: 8px; }
.recursica-logo-inline {
  display: inline-block;
  height: 40px; aspect-ratio: 235 / 32;
  background-color: var(--bx-brand-paper, var(--paper));
  mask-image: url("../assets/logo-recursica.svg");
  -webkit-mask-image: url("../assets/logo-recursica.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center left;
  -webkit-mask-position: center left;
}
.vr-rec-eyebrow-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(244,236,220,0.25);
  margin-bottom: 28px;
}
.vr-rec-eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244,236,220,0.85);
}
.vr-rec-swatches { display: flex; gap: 8px; }
.vr-rec-swatches .sw {
  width: 18px; height: 18px; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(244,236,220,0.2);
}
.vr-rec-body {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 80px; align-items: end;
  position: relative; z-index: 1;
  flex: 1;
  margin-top: auto;
}
.vr-rec-body h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 500;
  margin: 0; max-width: 16ch;
  color: var(--bx-brand-paper, var(--paper));
}
.vr-rec-body h2 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--tile-yellow); letter-spacing: -0.02em;
}
.vr-rec-right p {
  font-size: 16.5px; line-height: 1.55;
  color: var(--bx-brand-paper, var(--paper));
  margin: 0 0 22px; max-width: 44ch;
}
.vr-rec-right p b { color: var(--bx-brand-paper, var(--paper)); font-weight: 500; }
.vr-rec-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vrect-recursica .vr-rec-cta {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px; border-radius: 999px;
  background: var(--bx-tile-surface, #FFFFFF); color: var(--bx-light-tile-fg, #1C1E23) !important;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.vrect-recursica .vr-rec-cta:hover { opacity: 0.85; }
.vr-rec-cta.ghost {
  background: transparent; color: var(--bx-brand-paper, var(--paper)) !important;
  border-color: rgba(244,236,220,0.55);
}
.vr-rec-body, .vr-rec-eyebrow-row { position: relative; z-index: 1; }

@media (max-width: 1200px) {
  .vr-rec-body { grid-template-columns: 1fr; gap: 28px; }
  .vrect-recursica { padding: 44px 24px 48px; min-height: 360px; }
}

/* Cozy banner (marketing sub-brand) */
.vrect-cozy {
  margin-top: var(--tile-gap);
  background: var(--tile-peach);
  color: var(--bx-brand-ink, var(--ink));
  border-radius: var(--r);
  padding: 60px 44px 72px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column;
}
.cozy-mark {
  position: absolute;
  right: 6%; bottom: -6%;
  width: 42%; aspect-ratio: 292 / 200;
  background-color: var(--bx-brand-ink, var(--ink));
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  mask-image: url("../assets/logo-cozy.svg");
  -webkit-mask-image: url("../assets/logo-cozy.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}
.cozy-shapes {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cs-shape {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.2;
}
.cs-jacks-a {
  width: 460px; height: 460px;
  top: -8%; left: -6%;
  background-image: url("../assets/pattern-cozy-jacks.svg");
}
.cs-triangles-a {
  width: 540px; height: 540px;
  top: -14%; right: 22%;
  background-image: url("../assets/pattern-cozy-triangles.svg");
}
.cs-circle {
  width: 520px; height: 520px;
  bottom: -18%; right: -10%;
  background-image: url("../assets/pattern-cozy-circle.svg");
}
.cs-squiggle {
  width: 1080px; height: 400px;
  top: 40%; left: 18%;
  background-image: url("../assets/pattern-cozy-squiggle.svg");
}
.cozy-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
}
.cozy-logo-inline {
  display: inline-block;
  width: 112px; aspect-ratio: 292 / 200;
  background-color: currentColor;
  mask-image: url("../assets/logo-cozy.svg");
  -webkit-mask-image: url("../assets/logo-cozy.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center left;
  -webkit-mask-position: center left;
}
.vrect-cozy .vr-rec-eyebrow-row,
.vrect-cozy .vr-rec-body { position: relative; z-index: 1; }
.vrect-cozy::after { display: none; }
.vrect-cozy .cozy-eyebrow-row {
  border-bottom: 0;
  padding-bottom: 0;
}
.vrect-cozy .vr-rec-eyebrow {
  color: rgba(26,24,21,0.7);
}
.vrect-cozy .vr-rec-swatches .sw {
  box-shadow: 0 0 0 1px rgba(26,24,21,0.18);
}
.vrect-cozy .vr-rec-body h2 {
  color: var(--bx-brand-ink, var(--ink));
}
.vrect-cozy .vr-rec-body h2 em {
  color: var(--tile-ox);
}
.vrect-cozy .vr-rec-right p {
  color: var(--bx-brand-ink, var(--ink));
}
.vrect-cozy .vr-rec-right p b {
  color: var(--bx-brand-ink, var(--ink));
}
.vr-rec-cta.cozy {
  background: var(--bx-brand-ink, var(--ink)); color: var(--bx-brand-paper, var(--paper)) !important;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.vr-rec-cta.cozy:hover { opacity: 0.85; }
.vr-rec-cta.cozy.ghost {
  background: transparent; color: var(--bx-brand-ink, var(--ink)) !important;
  border-color: var(--bx-brand-ink, var(--ink));
}
@media (max-width: 1200px) {
  .vrect-cozy { padding: 44px 24px 48px; min-height: 360px; }
}

@media (min-width: 1500px) {
  .vrect-recursica { padding: 80px 56px 96px; min-height: 640px; }
  .vrect-cozy { padding: 80px 56px 96px; min-height: 640px; }
  .vrect-cozy .vr-rec-body h2 { font-size: clamp(56px, 5.2vw, 104px); }
  .vrect-cozy .vr-rec-right p { font-size: 18px; }
  .vr-rec-body h2 { font-size: clamp(48px, 5vw, 96px); }
  .vr-rec-eyebrow { font-size: 13px; }
}

/* Contact page states */
.contact-success-wrap {
  background: var(--tile-cream);
  color: var(--bx-tile-ink, var(--ink));
  border-radius: var(--r);
  padding: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 480px;
  animation: fadeIn 0.4s ease forwards;
}
.contact-success-wrap h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 500;
  margin: 24px 0 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.contact-success-wrap p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
  margin: 0 0 32px 0;
}
.contact-success-wrap .success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,24,21,0.06);
  border-radius: 50%;
  animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.contact-success-wrap .reset-btn {
  background: transparent;
  color: var(--bx-tile-ink, var(--ink));
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(26,24,21,0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}
.contact-success-wrap .reset-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--bx-tile-ink, var(--ink));
}
.contact-error-msg {
  background: rgba(230, 70, 70, 0.08);
  color: #c62828;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
  border: 1px solid rgba(230, 70, 70, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease forwards;
}
.recaptcha-container-wrap {
  margin-top: 8px;
  min-height: 78px;
  display: flex;
  justify-content: flex-start;
}
.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.contact-form button .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--paper);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cookie Consent Banner & Preferences */
.bx-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 440px;
  max-width: calc(100vw - 48px);
  background: rgba(26, 24, 21, 0.96);
  border: 1px solid rgba(244, 236, 220, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  padding: 28px;
  z-index: 999999;
  font-family: var(--font-sans), sans-serif;
  color: var(--paper);
  animation: bx-cookie-slideup 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@keyframes bx-cookie-slideup {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.bx-cookie-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 26px;
  color: var(--tile-yellow);
  margin: 0 0 12px 0;
  line-height: 1.1;
}
.bx-cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 236, 220, 0.8);
  margin: 0 0 20px 0;
}
.bx-cookie-text a {
  color: var(--paper);
  text-decoration: underline;
}
.bx-cookie-text a:hover {
  opacity: 0.85;
}
.bx-cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bx-cookie-btn {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.bx-cookie-btn.primary {
  background: var(--paper);
  color: var(--ink);
}
.bx-cookie-btn.primary:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}
.bx-cookie-btn.secondary {
  background: rgba(244, 236, 220, 0.08);
  border-color: rgba(244, 236, 220, 0.15);
  color: var(--paper);
}
.bx-cookie-btn.secondary:hover {
  background: rgba(244, 236, 220, 0.15);
  transform: translateY(-1px);
}
.bx-cookie-btn.text {
  background: transparent;
  color: rgba(244, 236, 220, 0.7);
  text-decoration: underline;
  padding: 10px 8px;
}
.bx-cookie-btn.text:hover {
  color: var(--paper);
}

.bx-cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(244, 236, 220, 0.1);
  padding-top: 16px;
}
.bx-cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.bx-cookie-toggle-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bx-cookie-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bx-cookie-toggle-badge {
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  background: rgba(244, 236, 220, 0.1);
  color: rgba(244, 236, 220, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.bx-cookie-toggle-badge.active {
  background: rgba(255, 230, 0, 0.12);
  color: var(--tile-yellow);
}
.bx-cookie-toggle-desc {
  font-size: 12px;
  color: rgba(244, 236, 220, 0.65);
  line-height: 1.4;
}

.bx-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}
.bx-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bx-cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(244, 236, 220, 0.15);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  border: 1px solid rgba(244, 236, 220, 0.1);
}
.bx-cookie-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--paper);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}
input:checked + .bx-cookie-slider {
  background-color: var(--tile-yellow);
}
input:checked + .bx-cookie-slider:before {
  transform: translateX(22px);
  background-color: var(--bx-tile-ink, var(--ink));
}
input:disabled + .bx-cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .bx-cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    padding: 20px;
    border-radius: 12px;
  }
}



        /* 2-Column Vertical Layout */
        .art-main-split {
          display: flex;
          gap: 64px;
          max-width: var(--frame-max);
          margin: 0 auto;
          padding: 140px var(--gutter-side) 80px;
          align-items: flex-start;
          justify-content: center;
        }
        .art-cover-aside {
          flex-shrink: 0;
          width: 380px;
          position: sticky;
          top: 120px;
          display: flex;
          flex-direction: column;
        }
        .art-vertical-body {
          flex: 1;
          max-width: 800px;
          display: flex;
          flex-direction: column;
          gap: 48px;
        }
        .art-section-col {
          display: flex;
          flex-direction: column;
        }

        /* Markdown Styles */
        .art-markdown {
          display: flex;
          flex-direction: column;
          gap: 24px;
          font-size: 18px;
          line-height: 1.65;
          color: var(--bx-fg-body, rgba(244,236,220,0.85));
        }
        .art-markdown p { margin: 0; }
        .art-markdown h2 {
          font-family: var(--font-display);
          font-size: 28px;
          font-weight: 500;
          margin: 40px 0 0;
          color: var(--paper);
          line-height: 1.15;
        }
        .art-markdown h3 {
          font-size: 20px;
          font-weight: 500;
          margin: 24px 0 0;
          color: var(--paper);
        }
        .art-markdown ul, .art-markdown ol {
          margin: 0;
          padding-left: 24px;
        }
        .art-markdown li {
          margin-bottom: 8px;
        }
        .art-markdown blockquote {
          margin: 24px 0;
          padding-left: 20px;
          border-left: 4px solid var(--bx-accent-text, var(--tile-yellow));
          font-style: italic;
          font-size: 20px;
          color: var(--paper);
        }
        .art-markdown img {
          width: 100%;
          border-radius: var(--r);
          border: 1px solid var(--bx-foot-border, rgba(244,236,220,0.1));
          margin: 24px 0;
          display: block;
        }
        .art-markdown a {
          color: var(--bx-accent-text, var(--tile-yellow));
          text-decoration: underline;
        }
        .art-markdown a:hover {
          color: var(--paper);
        }
        .art-markdown a.art-img-link {
          text-decoration: none;
          color: inherit;
          display: block;
        }
        
        /* Responsive stack for mobile */
        @media (max-width: 1024px) {
          .art-main-split {
            flex-direction: column;
            padding: 32px var(--gutter-side) 60px;
            gap: 40px;
          }
          .art-cover-aside {
            width: 100%;
            position: relative;
            top: 0;
          }
          .art-vertical-body {
            max-width: 100%;
          }
          .art-markdown {
            line-height: 1.5;
          }
          .art-markdown h2 {
            line-height: 1.1;
          }
        }
      


        .err-hero {
          padding: 160px var(--gutter-side) 80px;
          text-align: center;
          position: relative;
          z-index: 5;
        }
        .err-title {
          font-family: "Instrument Serif", serif;
          font-size: clamp(54px, 8vw, 110px);
          line-height: 1.1;
          font-style: italic;
          color: var(--bx-accent-text, var(--tile-yellow));
          margin: 0 auto 12px !important;
          letter-spacing: -0.01em;
          width: 100% !important;
          max-width: 100% !important;
          text-align: center !important;
          display: block !important;
        }
        .err-subtitle {
          font-family: var(--font-mono);
          font-size: 13px;
          color: rgba(244, 236, 220, 0.6);
          margin: 12px auto 24px !important;
          letter-spacing: 0.12em;
          text-transform: uppercase;
          width: 100% !important;
          max-width: 100% !important;
          text-align: center !important;
          display: block !important;
        }
        .err-btn {
          background: transparent;
          border: 1px solid rgba(244, 236, 220, 0.25);
          color: var(--paper);
          padding: 12px 28px;
          border-radius: 99px;
          font-family: var(--font-mono);
          font-size: 13px;
          cursor: pointer;
          transition: all 0.3s ease;
          display: inline-block;
          text-decoration: none;
        }
        .err-btn:hover {
          border-color: var(--paper);
          background: rgba(244, 236, 220, 0.08);
          transform: translateY(-2px);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }
        .err-btn.primary {
          background: var(--paper);
          color: var(--ink);
          border-color: var(--paper);
        }
        .err-btn.primary:hover {
          background: transparent;
          color: var(--paper);
        }
        
        /* Drifting Stars Background */
        .stars-bg {
          position: absolute;
          top: 0; left: 0; right: 0; bottom: 0;
          overflow: hidden;
          pointer-events: none;
          z-index: 1;
        }
        
        .confetti {
          position: absolute;
          opacity: 0.4;
          pointer-events: auto;
          transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
          animation: drift-animation var(--drift-speed) infinite ease-in-out alternate;
        }
        .confetti:hover {
          opacity: 0.95;
          filter: brightness(1.3) drop-shadow(0 0 8px currentColor);
          transform: scale(1.8) rotate(15deg) !important;
          z-index: 10;
        }
        
        /* Shape styles using clip-path and properties */
        .confetti.shape-circle {
          border-radius: 50%;
        }
        .confetti.shape-square {
          border-radius: 2px;
        }
        .confetti.shape-diamond {
          transform: rotate(45deg);
        }
        .confetti.shape-triangle {
          clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        }
        .confetti.shape-star {
          clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        }
        
        @keyframes drift-animation {
          0% {
            transform: translate3d(0, 0, 0) rotate(0deg);
          }
          100% {
            transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(var(--tilt));
          }
        }

@media (max-width: 480px) {
  .recursica-logo-inline {
    height: 30px;
  }
}

      