/*
Theme Name: benwebsite
Theme URI: https://example.com/benwebsite
Author: Ben
Description: A focused personal site for an independent web maker.
Version: 5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: benwebsite
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --primary: #164080;
    --primary-dark: #224b94;
    --bg: #f8fafc;
    --text: #1e293b;
  }
  
  body {
    @apply bg-[#f8fafc] text-[#1e293b] font-sans antialiased;
    font-family: 'PingFang SC', Inter, system-ui, -apple-system, sans-serif;
  }

  a {
    @apply transition-all duration-200;
  }

  /* Handle images overflow */
  img {
    @apply max-w-full h-auto block;
  }

  /* Handle long code blocks and tables */
  pre {
    @apply overflow-x-auto max-w-full whitespace-pre-wrap break-words;
  }
  
  table {
    @apply block overflow-x-auto max-w-full;
  }
}

@layer components {
  /* WordPress Pagination Styles */
  .pagination .nav-links {
    @apply flex items-center gap-2;
  }
  
  .pagination .page-numbers {
    @apply inline-flex items-center justify-center w-10 h-10 rounded-xl border border-slate-200 text-sm font-bold text-slate-500 transition-all hover:bg-[#164080] hover:text-white hover:border-[#164080] hover:-translate-y-1;
  }
  
  .pagination .page-numbers.current {
    @apply bg-[#164080] text-white border-[#164080];
  }

  .pagination .page-numbers.dots {
    @apply border-transparent hover:bg-transparent hover:text-slate-500 hover:translate-y-0;
  }

  /* WordPress Comment List Styles */
  .comment-list .comment {
    @apply bg-white p-6 md:p-8 rounded-3xl border border-slate-100 shadow-sm transition-all duration-300;
  }
  
  .comment-list .comment-body {
    @apply relative flex flex-col;
  }
  
  .comment-list .comment-author {
    @apply flex items-center gap-4 mb-2;
  }
  
  .comment-list .avatar {
    @apply rounded-full border-2 border-white shadow-md;
  }
  
  .comment-list .fn {
    @apply font-bold text-slate-900 not-italic;
  }
  
  .comment-list .comment-meta {
    @apply text-[10px] font-bold uppercase tracking-widest text-slate-400 mb-4;
  }
  
  .comment-list .comment-content {
    @apply text-slate-600 leading-relaxed text-sm;
  }
  
  .comment-list .reply {
    @apply mt-6 flex justify-end;
  }
  
  .comment-list .comment-reply-link {
    @apply text-[10px] font-bold uppercase tracking-widest text-[#164080] bg-blue-50 px-4 py-2 rounded-full hover:bg-[#164080] hover:text-white transition-all;
  }
  
  .comment-list .children {
    @apply mt-6 ml-6 md:ml-12 border-l border-slate-100 pl-6 md:pl-12 space-y-6;
  }

  /* Navigation Menu */
  #primary-menu .menu-item a {
    @apply relative py-2 transition-all hover:text-[#164080];
  }
  
  #primary-menu .current-menu-item a {
    @apply text-[#164080];
  }
  
  #primary-menu .current-menu-item a::after {
    content: '';
    @apply absolute bottom-0 left-0 w-full h-0.5 bg-[#164080] rounded-full;
  }
}

/* Mobile navigation toggle. The Tailwind `hidden` utility needs an explicit
 * open-state override because the menu is rendered hidden by default. */
@media (max-width: 767px) {
  .main-navigation.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  }

  .main-navigation > ul,
  .main-navigation .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .main-navigation li a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .main-navigation #primary-menu .current-menu-item a::after {
    display: none;
  }
}

/* 2.5 visual system ------------------------------------------------------- */
:root {
  --ben-blue: #164080;
  --ben-blue-bright: #2f6fd0;
  --ben-ink: #0b1324;
  --ben-paper: #f5f7fb;
  --ben-line: rgba(15, 23, 42, 0.11);
}

html { scroll-behavior: smooth; }
body { background: var(--ben-paper); }
::selection { color: #fff; background: var(--ben-blue); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--ben-ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(160%);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .07);
}
.brand-mark {
  position: relative;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  overflow: hidden;
  border-radius: .7rem;
  color: #fff;
  background: var(--ben-blue);
  box-shadow: 0 8px 18px rgba(22, 64, 128, .22);
  transform: rotate(-5deg);
  transition: transform .25s ease;
}
.brand:hover .brand-mark { transform: rotate(0deg) scale(1.05); }
.brand-mark span { color: #8ebaff; font-size: .7em; }
.menu-toggle { border-radius: .75rem; background: #f1f5f9; }

.hero--redesign {
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 5%, rgba(47,111,208,.12), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f5f7fb 100%);
}
.hero--redesign::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background-image: linear-gradient(rgba(22,64,128,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(22,64,128,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .8rem;
  border: 1px solid rgba(22, 64, 128, .14);
  border-radius: 999px;
  color: #475569;
  background: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.status-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22,163,74,.12);
}
.hero-banner__copy .display { max-width: 9ch; font-size: clamp(3.7rem, 7vw, 6.6rem); }
.hero-banner__copy .display em { position: relative; display: inline-block; }
.hero-banner__copy .display em::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -.09em;
  left: 0;
  height: .08em;
  border-radius: 99px;
  background: #8ebaff;
  transform: rotate(-2deg);
}
.hero-copy { max-width: 36rem; }
.button { position: relative; overflow: hidden; }
.button:focus-visible, .closing-cta__link:focus-visible, .footer-links a:focus-visible { outline: 3px solid #8ebaff; outline-offset: 4px; }
.hero-banner__panel { isolation: isolate; overflow: hidden; transform: rotate(1.25deg); background: linear-gradient(145deg, #1c4f9d, #10336a 76%); }
.hero-banner__panel::after {
  content: '';
  position: absolute;
  right: -18%;
  bottom: -22%;
  z-index: -1;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(255,255,255,.04), 0 0 0 5rem rgba(255,255,255,.03);
}
.panel-grid { position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg,#fff 1px, transparent 1px); background-size: 44px 44px; }
.hero-banner__statement { font-size: clamp(3.75rem, 7vw, 6rem); text-shadow: 0 12px 30px rgba(4,16,39,.18); }

.home-services { padding: 6.5rem 0; background: #fff; }
.home-services__heading { margin-bottom: 3.5rem; }
.home-services__heading .eyebrow { margin-bottom: 1rem; color: var(--ben-blue); font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.home-services__heading h2 { color: var(--ben-ink); font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 880; line-height: .98; letter-spacing: -.055em; }
.home-services__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.service-card { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem,4vw,3.5rem); border: 1px solid var(--ben-line); border-radius: 1.75rem; background: var(--ben-paper); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { box-shadow: 0 28px 60px rgba(15,35,70,.12); transform: translateY(-6px); }
.service-card::after { content: ''; position: absolute; z-index: -1; width: 14rem; height: 14rem; right: -7rem; top: -7rem; border-radius: 50%; background: rgba(47,111,208,.08); box-shadow: 0 0 0 2.5rem rgba(47,111,208,.035); }
.service-card--company { color: #fff; border-color: transparent; background: linear-gradient(145deg,#17498f,#0d2854); }
.service-card--company::after { background: rgba(255,255,255,.07); box-shadow: 0 0 0 2.5rem rgba(255,255,255,.025); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; color: var(--ben-blue); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .67rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.service-card__top b { padding: .4rem .65rem; border: 1px solid rgba(22,64,128,.15); border-radius: 999px; }
.service-card--company .service-card__top { color: #93c5fd; }
.service-card--company .service-card__top b { border-color: rgba(255,255,255,.16); }
.service-card__icon { display: flex; width: 4.25rem; height: 4.25rem; align-items: flex-end; justify-content: center; gap: .28rem; margin-bottom: 2rem; padding: .8rem; border-radius: 1.1rem; color: #fff; background: var(--ben-blue); box-shadow: 0 12px 25px rgba(22,64,128,.2); }
.service-card__icon span { display: block; width: .45rem; border-radius: 3px 3px 0 0; background: currentColor; }
.service-card__icon span:nth-child(1) { height: 45%; }.service-card__icon span:nth-child(2) { height: 80%; }.service-card__icon span:nth-child(3) { height: 62%; }
.service-card--company .service-card__icon { color: var(--ben-blue); background: #fff; box-shadow: 0 12px 25px rgba(0,0,0,.15); }
.service-card--company .service-card__icon span { height: 65%; border-radius: 1px; }
.service-card h3 { margin-bottom: 1rem; color: var(--ben-ink); font-size: clamp(2rem,4vw,3.25rem); font-weight: 880; line-height: 1.05; letter-spacing: -.045em; }
.service-card > p { max-width: 34rem; color: #64748b; line-height: 1.75; }
.service-card > a { display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem; color: var(--ben-blue); font-size: .78rem; font-weight: 800; }
.service-card > a span { transition: transform .2s ease; }.service-card > a:hover span { transform: translate(.2rem,-.2rem); }
.service-card--company h3 { color: #fff; }.service-card--company > p { color: #b7c4d8; }.service-card--company > a { color: #fff; }

.section--ink { position: relative; overflow: hidden; background: var(--ben-ink); }
.section--ink::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #3b82f6, transparent); }
.post-card, .article-row, .work-card, .category-filter, .contact-form { border-color: var(--ben-line) !important; }
.post-card { position: relative; overflow: hidden; }
.post-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--ben-blue), #71a4f0); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.post-card:hover::before { transform: scaleX(1); }
.closing-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #17498f, #0b1e42 72%);
  box-shadow: 0 30px 70px rgba(15, 36, 75, .2);
}
.closing-cta__inner .eyebrow { margin-bottom: 1rem; color: #8ebaff; font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.closing-cta__inner h2 { font-size: clamp(2.1rem, 5vw, 4.25rem); font-weight: 850; line-height: .98; letter-spacing: -.055em; }
.closing-cta__link { display: flex; min-width: 14rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.closing-cta__link:hover { color: var(--ben-ink); background: #fff; transform: translateY(-3px); }
.closing-cta__link b { font-size: 1.1rem; transition: transform .2s ease; }
.closing-cta__link:hover b { transform: translate(.15rem,-.15rem); }

.site-footer { background: #fff; }
.footer-signoff { display: flex; flex-direction: column; gap: .25rem; }
.footer-signoff strong { color: var(--ben-ink); font-size: .95rem; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; font-weight: 700; }
.footer-links a:hover { color: var(--ben-blue); }
.footer-contact { padding: .65rem 1rem; border-radius: 999px; color: #fff !important; background: var(--ben-ink); }
.footer-contact:hover { background: var(--ben-blue); transform: translateY(-2px); }

.single-article__content { font-size: 1.08rem; }
.single-article__content > p:first-child { font-size: 1.22rem; line-height: 1.8; color: #334155; }
.article-row, .work-card { box-shadow: 0 1px 2px rgba(15,23,42,.02), 0 10px 32px rgba(15,23,42,.035); }
input, textarea { caret-color: var(--ben-blue); }

/* Reliable WordPress content styles, independent of Tailwind plugins. */
#primary-menu, .main-navigation .menu { display: flex; align-items: center; gap: 2rem; }
#primary-menu a, .main-navigation .menu a { position: relative; display: inline-block; padding: .65rem 0; }
#primary-menu a::before, .main-navigation .menu a::before { content: ''; position: absolute; right: 0; bottom: .35rem; left: 0; height: 2px; border-radius: 99px; background: var(--ben-blue); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
#primary-menu a:hover::before, #primary-menu .current-menu-item a::before, .main-navigation .menu a:hover::before, .main-navigation .current-menu-item a::before { transform: scaleX(1); transform-origin: left; }

.single-article__content { color: #475569; line-height: 1.82; }
.single-article__content > * + * { margin-top: 1.45em; }
.single-article__content h2, .single-article__content h3, .single-article__content h4 { margin-top: 2em; color: var(--ben-ink); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.single-article__content h2 { font-size: 2rem; }
.single-article__content h3 { font-size: 1.5rem; }
.single-article__content h4 { font-size: 1.2rem; }
.single-article__content a { color: var(--ben-blue); text-decoration: underline; text-decoration-color: #8ebaff; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.single-article__content a:hover { text-decoration-color: var(--ben-blue); }
.wp-block-file a.wp-block-file__button,
.wp-block-file a.wp-element-button,
.wp-block-file__button,
.wp-block-file__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  margin-left: .75rem;
  padding: .65rem 1rem;
  border: 1px solid #cddff2 !important;
  border-radius: 999px;
  color: #164080 !important;
  background: #eef5fc !important;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(22, 64, 128, .07) !important;
}
.wp-block-file a.wp-block-file__button:hover,
.wp-block-file a.wp-block-file__button:focus-visible,
.wp-block-file a.wp-element-button:hover,
.wp-block-file a.wp-element-button:focus-visible,
.wp-block-file__button:hover,
.wp-block-file__button:focus-visible {
  border-color: #aac7e8 !important;
  color: #10366d !important;
  background: #dceafb !important;
  box-shadow: 0 8px 20px rgba(22, 64, 128, .12) !important;
  transform: translateY(-1px);
}
.single-article__content ul, .single-article__content ol { padding-left: 1.4rem; }
.single-article__content ul { list-style: disc; }
.single-article__content ol { list-style: decimal; }
.single-article__content li { padding-left: .35rem; }
.single-article__content li + li { margin-top: .55rem; }
.single-article__content blockquote { margin: 2.2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--ben-blue); border-radius: 0 1rem 1rem 0; color: #334155; background: #eef4fd; font-size: 1.12rem; font-style: italic; }
.single-article__content pre { margin: 2rem 0; padding: 1.5rem; border-radius: 1rem; color: #dbeafe; background: var(--ben-ink); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.single-article__content :not(pre) > code { padding: .15em .38em; border-radius: .35rem; color: #164080; background: #e8effa; font-size: .88em; }
.single-article__content img { margin: 2rem auto; border-radius: 1.25rem; box-shadow: 0 22px 50px rgba(15,23,42,.13); }
.single-article__content figcaption { margin-top: -.9rem; color: #94a3b8; font-size: .82rem; text-align: center; }
.single-article__content hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--ben-line); }

.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pagination .page-numbers { display: inline-grid; min-width: 2.6rem; height: 2.6rem; padding: 0 .75rem; place-items: center; border: 1px solid #dbe2ea; border-radius: .8rem; color: #64748b; background: #fff; font-size: .8rem; font-weight: 800; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { border-color: var(--ben-blue); color: #fff; background: var(--ben-blue); transform: translateY(-2px); }

.comment-list { display: grid; gap: 1rem; }
.comment-list .comment { padding: 1.5rem; border: 1px solid var(--ben-line); border-radius: 1.25rem; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.035); }
.comment-list .comment-author { display: flex; align-items: center; gap: .8rem; color: var(--ben-ink); font-weight: 800; }
.comment-list .avatar { border-radius: 50%; }
.comment-list .comment-meta { margin: .35rem 0 1rem; color: #94a3b8; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.comment-list .comment-content { color: #475569; line-height: 1.7; }
.comment-list .reply { margin-top: 1rem; }
.comment-reply-link { display: inline-flex; padding: .45rem .75rem; border-radius: 999px; color: var(--ben-blue); background: #eff6ff; font-size: .7rem; font-weight: 800; }
.comment-list .children { display: grid; gap: 1rem; margin: 1rem 0 0 1.2rem; padding-left: 1rem; border-left: 2px solid #dbeafe; }
.comment-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.comment-form label { display: block; margin-bottom: .4rem; color: #64748b; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.comment-form input:not([type='submit']), .comment-form textarea { width: 100%; padding: .9rem 1rem; border: 1px solid #dbe2ea; border-radius: .9rem; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: 3px solid rgba(47,111,208,.15); border-color: var(--ben-blue); }
.comment-form .submit { padding: .85rem 1.35rem; border: 0; border-radius: 999px; color: #fff; background: var(--ben-blue); font-size: .8rem; font-weight: 800; cursor: pointer; }
.comment-form .submit:hover { background: var(--ben-ink); transform: translateY(-2px); }

/* Paper library ---------------------------------------------------------- */
.paper-hero { position: relative; overflow: hidden; padding: 6.5rem 0 5.5rem; color: #fff; background: var(--ben-ink); }
.paper-hero::after { content: 'P/'; position: absolute; right: -1vw; bottom: -7vw; color: rgba(255,255,255,.035); font-size: clamp(14rem, 33vw, 31rem); font-weight: 900; line-height: .75; letter-spacing: -.12em; pointer-events: none; }
.paper-hero .eyebrow, .paper-library .eyebrow { margin-bottom: 1rem; color: #71a4f0; font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.paper-hero__row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 4rem; }
.paper-hero h1 { color: #fff; font-size: clamp(4rem, 9vw, 8rem); font-weight: 900; line-height: .75; letter-spacing: -.075em; }
.paper-hero h1 em { color: #71a4f0; font-style: normal; }
.paper-hero__row > p { max-width: 28rem; color: #94a3b8; font-size: 1rem; line-height: 1.75; }
.paper-library__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ben-line); }
.paper-library__heading .eyebrow { margin-bottom: .35rem; color: var(--ben-blue); }
.paper-library__heading h2 { color: var(--ben-ink); font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; }
.paper-library__heading > span { color: #94a3b8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.paper-card { overflow: hidden; border: 1px solid var(--ben-line); border-radius: 1.5rem; background: #fff; box-shadow: 0 12px 35px rgba(15,23,42,.045); transition: transform .3s ease, box-shadow .3s ease; }
.paper-card:hover { box-shadow: 0 25px 55px rgba(15,35,70,.12); transform: translateY(-6px); }
.paper-card > a { display: grid; height: 100%; grid-template-columns: minmax(9rem, 36%) 1fr; }
.paper-card__visual { position: relative; display: grid; min-height: 19rem; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, #1c4f9d, #0e2b59); }
.paper-card__visual::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 32px 32px; }
.paper-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.paper-card:hover .paper-card__visual img { transform: scale(1.04); }
.paper-card__monogram { position: relative; font-size: 4.5rem; font-weight: 900; letter-spacing: -.12em; transform: rotate(-5deg); }
.paper-card__monogram span { color: #71a4f0; font-size: .7em; }
.paper-card__count { position: absolute; right: .75rem; bottom: .75rem; padding: .4rem .65rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; background: rgba(4,16,39,.45); backdrop-filter: blur(8px); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.paper-card__body { display: flex; flex-direction: column; padding: 2rem; }
.paper-card__meta { display: flex; justify-content: space-between; margin-bottom: 1.5rem; color: var(--ben-blue) !important; font-size: .63rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.paper-card__body h2 { margin-bottom: .9rem; color: var(--ben-ink); font-size: 1.75rem; font-weight: 850; line-height: 1.12; letter-spacing: -.035em; transition: color .2s ease; }
.paper-card:hover h2 { color: var(--ben-blue); }
.paper-card__body > p { color: #64748b; font-size: .85rem; line-height: 1.7; }
.paper-card__body strong { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.5rem; color: var(--ben-ink); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.paper-card__body strong span { transition: transform .2s ease; }
.paper-card:hover strong span { transform: translate(.2rem,-.2rem); }
.paper-empty { padding: 5rem 2rem; border: 1px dashed #cbd5e1; border-radius: 1.5rem; text-align: center; background: #fff; }
.paper-empty > span { color: #cbd5e1; font-size: 4rem; font-weight: 900; letter-spacing: -.1em; }
.paper-empty h2 { margin: 1rem 0 .35rem; color: var(--ben-ink); font-size: 1.75rem; font-weight: 800; }
.paper-empty p { color: #64748b; }

.paper-single__hero { position: relative; overflow: hidden; padding: 4.5rem 0 6rem; color: #fff; background: linear-gradient(135deg, #0b1324, #102d5f); }
.paper-single__hero::after { content: ''; position: absolute; top: -18rem; right: -13rem; width: 34rem; height: 34rem; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(255,255,255,.025), 0 0 0 8rem rgba(255,255,255,.018); }
.paper-back { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 4rem; color: #93c5fd; font-size: .78rem; font-weight: 800; }
.paper-back:hover { color: #fff; transform: translateX(-3px); }
.paper-single__meta { position: relative; z-index: 1; display: flex; gap: 1rem; margin-bottom: 1.25rem; color: #71a4f0; font-size: .67rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.paper-single__meta span::after { content: '·'; margin-left: 1rem; color: #64748b; }
.paper-single__hero h1 { position: relative; z-index: 1; max-width: 13ch; font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 900; line-height: .92; letter-spacing: -.06em; }
.paper-single__intro { position: relative; z-index: 1; max-width: 48rem; margin-top: 2rem; color: #b7c4d8; font-size: 1.2rem; line-height: 1.7; }
.paper-single__layout { padding-top: 4.5rem; padding-bottom: 6.5rem; }
.paper-single__layout.has-paper-content { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: start; gap: clamp(2.5rem,6vw,5rem); }
.paper-single__content { min-width: 0; }
.paper-single__layout:not(.has-paper-content) .paper-downloads { max-width: 50rem; margin-right: auto; margin-left: auto; }
.paper-downloads { min-width: 0; padding: 2rem; border: 1px solid var(--ben-line); border-radius: 1.5rem; background: #f8fafc; }
.paper-downloads__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.paper-downloads__heading p { margin-bottom: .35rem; color: var(--ben-blue); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.paper-downloads__heading h2 { color: var(--ben-ink); font-size: 1.8rem; font-weight: 850; letter-spacing: -.035em; }
.paper-downloads__heading > span { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; color: var(--ben-blue); background: #e8effa; font-weight: 900; }
.paper-file-list { display: grid; gap: .75rem; }
.paper-file { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--ben-line); border-radius: 1.15rem; background: #fff; box-shadow: 0 6px 22px rgba(15,23,42,.03); transition: border-color .2s ease, transform .2s ease; }
.paper-file:hover { border-color: rgba(22,64,128,.28); transform: translateY(-2px); }
.paper-file__type { display: grid; width: 3.5rem; height: 4rem; place-items: center; border-radius: .65rem; color: #fff; background: var(--ben-blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; font-weight: 900; letter-spacing: .05em; }
.paper-file__copy { min-width: 0; overflow-wrap: anywhere; }
.paper-file__copy h3 { color: var(--ben-ink); font-size: 1.05rem; font-weight: 800; }
.paper-file__copy p { margin-top: .3rem; color: #64748b; font-size: .82rem; line-height: 1.55; }
.paper-file__copy small { display: block; margin-top: .45rem; color: #94a3b8; font-size: .63rem; font-weight: 800; letter-spacing: .08em; }
.paper-file__actions { display: flex; gap: .5rem; }
.paper-file__actions a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .7rem .95rem; border: 1px solid #dbe2ea; border-radius: 999px; color: #475569; font-size: .7rem; font-weight: 800; }
.paper-file__actions a:hover { border-color: var(--ben-blue); color: var(--ben-blue); }
.paper-file__actions a.is-download,
.paper-file__actions a.is-download:visited {
  border-color: #cddff2 !important;
  color: #164080 !important;
  background-color: #eef5fc !important;
  box-shadow: 0 5px 14px rgba(22, 64, 128, .07);
}
.paper-file__actions a.is-download:hover,
.paper-file__actions a.is-download:focus-visible,
.paper-file__actions a.is-download:active {
  border-color: #aac7e8 !important;
  color: #10366d !important;
  background-color: #dceafb !important;
  box-shadow: 0 8px 20px rgba(22, 64, 128, .12);
  transform: translateY(-1px);
}
.paper-downloads__empty { padding: 2rem; border-radius: 1rem; color: #64748b; background: #f1f5f9; text-align: center; }

@media (max-width: 767px) {
  .header-inner { height: 4.5rem; }
  .main-navigation.is-open { border-bottom: 0; background: rgba(255,255,255,.98); box-shadow: 0 22px 30px rgba(15,23,42,.12); }
  .main-navigation.is-open #primary-menu, .main-navigation.is-open .menu { align-items: stretch; gap: .25rem; }
  .main-navigation.is-open a { width: 100%; padding: .8rem 1rem; border-radius: .7rem; }
  .main-navigation.is-open a:hover, .main-navigation.is-open .current-menu-item a { color: var(--ben-blue); background: #eff6ff; }
  .main-navigation.is-open a::before { display: none; }
  .hero--redesign { padding-top: 4.5rem; padding-bottom: 5rem; }
  .hero-banner { gap: 3.5rem; }
  .hero-banner__copy .display { font-size: clamp(3.2rem, 16vw, 4.6rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; text-align: center; }
  .hero-banner__panel { min-height: 24rem; padding: 2rem; transform: none; }
  .hero-banner__statement { font-size: clamp(3.2rem, 17vw, 5rem); }
  .home-services { padding: 5rem 0; }
  .home-services__heading { margin-bottom: 2.5rem; }
  .home-services__grid { grid-template-columns: 1fr; }
  .service-card__top { margin-bottom: 2rem; }
  .closing-cta__inner { align-items: stretch; flex-direction: column; }
  .closing-cta__link { min-width: 0; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-signoff { align-items: center; text-align: center; }
  .category-filter { position: static !important; }
  .single-article__content { font-size: 1rem; }
  .single-article__content > p:first-child { font-size: 1.1rem; }
  .single-article__content h2 { font-size: 1.65rem; }
  .paper-hero { padding: 5rem 0 4rem; }
  .paper-hero__row { align-items: flex-start; flex-direction: column; gap: 2.5rem; }
  .paper-hero h1 { font-size: 4.4rem; }
  .paper-library__heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .paper-grid { grid-template-columns: 1fr; }
  .paper-card > a { grid-template-columns: 1fr; }
  .paper-card__visual { min-height: 12rem; }
  .paper-single__hero { padding: 3rem 0 4.5rem; }
  .paper-back { margin-bottom: 3rem; }
  .paper-single__hero h1 { max-width: 100%; font-size: clamp(2.75rem,13vw,4.2rem); overflow-wrap: anywhere; }
  .paper-single__intro { font-size: 1.05rem; }
  .paper-single__layout { padding-top: 2.5rem; padding-bottom: 4.5rem; }
  .paper-single__layout.has-paper-content { display: block; }
  .paper-single__content { margin-bottom: 2.5rem; }
  .paper-downloads { padding: 1.15rem; border-radius: 1.2rem; }
  .paper-downloads__heading { align-items: center; }
  .paper-downloads__heading h2 { font-size: 1.35rem; }
  .paper-file { grid-template-columns: auto 1fr; }
  .paper-file__actions { grid-column: 1 / -1; }
  .paper-file__actions a { flex: 1; text-align: center; }
}

@media (max-width: 420px) {
  .paper-single__meta { flex-wrap: wrap; gap: .45rem; }
  .paper-file { grid-template-columns: 1fr; padding: 1rem; }
  .paper-file__type { width: 3rem; height: 3.4rem; }
  .paper-file__actions { grid-column: auto; }
}

/* WebGL home ------------------------------------------------------------- */
.ben-front-page .site-header {
  border-color: rgba(148, 190, 255, .12);
  color: #fff;
  background: rgba(5, 14, 31, .78);
}
.ben-front-page .site-header.is-scrolled { background: rgba(5, 14, 31, .94); box-shadow: 0 12px 36px rgba(0, 0, 0, .22); }
.ben-front-page .site-header .brand { color: #fff; }
.ben-front-page .site-header .brand-mark { color: #061020; background: #96c6ff; box-shadow: 0 8px 28px rgba(76, 150, 255, .32); }
.ben-front-page .site-header .brand-mark span { color: #164080; }
.ben-front-page .site-header .main-navigation { color: #c8d8ee; }
.ben-front-page #primary-menu a::before, .ben-front-page .main-navigation .menu a::before { background: #91c4ff; }
.ben-front-page #primary-menu .current-menu-item a, .ben-front-page .main-navigation .current-menu-item a { color: #fff; }
.ben-front-page .menu-toggle { color: #d7e8ff; background: rgba(255,255,255,.08); }

.webgl-hero {
  position: relative;
  min-height: calc(100svh - 5rem);
  overflow: hidden;
  color: #fff;
  background: #050e1f;
  isolation: isolate;
}
.webgl-hero__canvas { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; }
.webgl-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4,12,28,.98) 0%, rgba(4,12,28,.82) 38%, rgba(4,12,28,.2) 68%, rgba(4,12,28,.44) 100%),
    linear-gradient(180deg, rgba(4,12,28,.14), rgba(4,12,28,.56));
}
.webgl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .2;
  background-image: linear-gradient(rgba(165,202,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(165,202,255,.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.webgl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 -120px 150px rgba(1,7,18,.36);
}
.webgl-hero.is-fractal-hit::after {
  background: radial-gradient(circle at var(--impact-x, 50%) var(--impact-y, 50%), rgba(145,196,255,.3) 0, rgba(145,196,255,.08) 8%, transparent 22%);
  animation: webgl-impact .72s cubic-bezier(.18,.72,.2,1) both;
}
.webgl-unavailable { background: radial-gradient(circle at 74% 48%, #175293, #071329 34%, #050e1f 66%); }
.webgl-hero__inner {
  position: relative;
  display: grid;
  min-height: calc(100svh - 5rem);
  grid-template-columns: minmax(0, .92fr) minmax(24rem, .68fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.webgl-hero__copy { position: relative; z-index: 3; }
.webgl-kicker, .webgl-service__type, .webgl-section-head, .webgl-hero__label, .webgl-hero__scroll, .webgl-closing__copy > p {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.webgl-kicker { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; color: #b9cce4; text-transform: uppercase; }
.webgl-kicker span { width: .48rem; height: .48rem; border-radius: 50%; background: #70b7ff; box-shadow: 0 0 0 .3rem rgba(112,183,255,.13), 0 0 1.25rem #70b7ff; animation: webgl-pulse 2.2s ease-in-out infinite; }
.webgl-hero h1 { max-width: 10ch; font-size: clamp(4rem, 7.8vw, 7.6rem); font-weight: 880; line-height: .86; letter-spacing: -.07em; }
.webgl-hero h1 em { display: inline-block; color: #9bcaff; font-style: normal; text-shadow: 0 0 45px rgba(95,167,255,.22); }
.webgl-hero__intro { max-width: 36rem; margin-top: 2.25rem; color: #a8b9ce; font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.8; }
.webgl-hero__actions { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.webgl-button { display: flex; min-height: 3.65rem; align-items: center; justify-content: space-between; gap: 2.5rem; padding: 0 1.35rem; border: 1px solid rgba(168,206,255,.2); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.webgl-button--primary { min-width: 14rem; color: #061020; border-color: #9bcaff; background: #9bcaff; box-shadow: 0 18px 45px rgba(52,121,210,.22); }
.webgl-button--primary:hover { color: #061020; background: #fff; border-color: #fff; transform: translateY(-3px); }
.webgl-button--primary b { font-size: 1.05rem; transition: transform .2s ease; }
.webgl-button--primary:hover b { transform: translate(.15rem,-.15rem); }
.webgl-button--ghost { color: #dceaff; background: rgba(255,255,255,.025); backdrop-filter: blur(12px); }
.webgl-button--ghost:hover { color: #fff; border-color: rgba(168,206,255,.45); background: rgba(255,255,255,.08); }
.webgl-hero__visual { position: relative; z-index: 2; height: min(64vh, 43rem); min-height: 31rem; border: 1px solid rgba(176,210,255,.2); border-radius: 50%; box-shadow: 0 0 0 1.6rem rgba(120,175,255,.025), inset 0 0 80px rgba(44,109,191,.08); }
.webgl-hero__visual::before, .webgl-hero__visual::after { content: ''; position: absolute; background: rgba(181,214,255,.24); }
.webgl-hero__visual::before { top: 50%; left: -13%; width: 126%; height: 1px; }
.webgl-hero__visual::after { top: -10%; left: 50%; width: 1px; height: 120%; }
.webgl-hero__reticle { position: absolute; top: 50%; left: 50%; width: 1.25rem; height: 1.25rem; border: 1px solid rgba(202,227,255,.65); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 18px rgba(145,196,255,.7); }
.webgl-hero__reticle::before, .webgl-hero__reticle::after { content: ''; position: absolute; background: #b9dcff; }
.webgl-hero__reticle::before { top: 50%; left: -1rem; width: 3.1rem; height: 1px; }
.webgl-hero__reticle::after { top: -1rem; left: 50%; width: 1px; height: 3.1rem; }
.webgl-hero__label { position: absolute; right: 7%; left: 7%; display: flex; justify-content: space-between; color: #a9bdd5; }
.webgl-hero__label b { color: #e5f1ff; font-weight: 700; }
.webgl-hero__label--top { top: 10%; }
.webgl-hero__label--bottom { bottom: 10%; }
.webgl-hero__orbit { position: absolute; z-index: -1; border: 1px solid rgba(144,192,255,.12); border-radius: 50%; pointer-events: none; }
.webgl-hero__orbit--one { top: 9%; right: -8rem; width: 31rem; height: 31rem; animation: webgl-drift 16s ease-in-out infinite alternate; }
.webgl-hero__orbit--two { right: 14%; bottom: -17rem; width: 37rem; height: 37rem; animation: webgl-drift 21s ease-in-out -5s infinite alternate-reverse; }
.webgl-hero__scroll { position: absolute; bottom: 1.7rem; left: 1.5rem; display: flex; align-items: center; gap: .8rem; color: #72859e; }
.webgl-hero__scroll span { position: relative; width: 2.4rem; height: 1px; overflow: hidden; background: rgba(166,200,243,.2); }
.webgl-hero__scroll span::after { content: ''; position: absolute; inset: 0; background: #8fc2ff; animation: webgl-scroll 2s ease-in-out infinite; }

.webgl-services { padding: clamp(5rem, 9vw, 8.5rem) 0; color: #0b1324; background: #eef3f8; }
.webgl-section-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; color: #5d6f84; }
.webgl-section-head p { display: flex; align-items: center; gap: .75rem; text-transform: uppercase; }
.webgl-section-head p span { color: #164080; }
.webgl-section-head i { height: 1px; flex: 1; background: #cbd6e2; }
.webgl-section-head b { font-weight: 700; }
.webgl-services__grid { display: grid; grid-template-columns: 1.16fr .84fr; grid-template-rows: repeat(2, minmax(20rem, 1fr)); gap: 1rem; }
.webgl-service { position: relative; display: flex; min-width: 0; overflow: hidden; border-radius: 1.4rem; transition: transform .35s ease, box-shadow .35s ease; }
.webgl-service:hover { z-index: 2; box-shadow: 0 28px 65px rgba(7,28,59,.16); transform: translateY(-6px); }
.webgl-service__body { position: relative; z-index: 2; display: flex; width: 100%; flex-direction: column; padding: clamp(2rem, 4vw, 3.6rem); }
.webgl-service__number { position: absolute; top: 1.6rem; right: 1.7rem; z-index: 3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; font-weight: 800; letter-spacing: .14em; opacity: .52; }
.webgl-service__type { margin-bottom: auto; padding-bottom: 2.5rem; }
.webgl-service h2 { max-width: 10ch; font-size: clamp(2.45rem, 4.6vw, 4.8rem); font-weight: 880; line-height: .92; letter-spacing: -.058em; }
.webgl-service__body > p:not(.webgl-service__type) { max-width: 34rem; margin-top: 1.5rem; font-size: .92rem; line-height: 1.75; opacity: .68; }
.webgl-service__body > a { display: inline-flex; align-items: center; gap: .65rem; align-self: flex-start; margin-top: 2rem; font-size: .75rem; font-weight: 800; }
.webgl-service__body > a span { transition: transform .2s ease; }
.webgl-service:hover .webgl-service__body > a span { transform: translate(.2rem,-.1rem); }
.webgl-service--featured { grid-row: 1 / 3; min-height: 41rem; color: #fff; background: linear-gradient(145deg, #0a1a34, #071124 67%); }
.webgl-service--featured::after { content: ''; position: absolute; right: -22%; bottom: -26%; width: 72%; aspect-ratio: 1; border: 1px solid rgba(142,191,255,.22); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(83,147,231,.035), 0 0 0 6rem rgba(83,147,231,.02); }
.webgl-service--featured .webgl-service__type, .webgl-service--featured a { color: #91c4ff; }
.webgl-service__mesh { position: absolute; inset: 0; opacity: .75; background: radial-gradient(circle at 74% 22%, rgba(47,130,228,.4), transparent 27%); }
.webgl-service__mesh::before { content: ''; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(150,197,255,.2) 1px, transparent 1px), linear-gradient(90deg,rgba(150,197,255,.2) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 72% 22%, #000, transparent 55%); }
.webgl-service__mesh span { position: absolute; top: 25%; right: 23%; width: .28rem; height: .28rem; border-radius: 50%; background: #a7d2ff; box-shadow: 0 0 1.2rem #7cb9ff; }
.webgl-service__mesh span:nth-child(2) { top: 12%; right: 11%; opacity: .5; }
.webgl-service__mesh span:nth-child(3) { top: 39%; right: 8%; opacity: .75; }
.webgl-service__mesh span:nth-child(4) { top: 8%; right: 39%; opacity: .35; }
.webgl-service__mesh span:nth-child(5) { top: 48%; right: 34%; opacity: .5; }
.webgl-service--light { color: #0b182b; border: 1px solid rgba(15,40,75,.1); background: #fff; }
.webgl-service--light .webgl-service__type, .webgl-service--light a { color: #164080; }
.webgl-service--blue { color: #fff; background: linear-gradient(135deg, #205ca9, #12386e); }
.webgl-service--blue .webgl-service__type { color: #b8d9ff; }
.webgl-service__glyph { position: absolute; top: 2.6rem; right: 3rem; display: grid; width: 4.5rem; height: 4.5rem; place-items: center; border-radius: 50%; opacity: .16; }
.webgl-service__glyph--bars { display: flex; align-items: flex-end; justify-content: center; gap: .28rem; background: #164080; }
.webgl-service__glyph--bars i { width: .33rem; height: 30%; background: #fff; }
.webgl-service__glyph--bars i:nth-child(2) { height: 60%; }.webgl-service__glyph--bars i:nth-child(3) { height: 44%; }
.webgl-service__glyph--grid { grid-template-columns: repeat(2, .7rem); gap: .25rem; border: 1px solid #fff; }
.webgl-service__glyph--grid i { aspect-ratio: 1; border: 1px solid #fff; }

.webgl-closing { padding: 0 0 clamp(5rem, 9vw, 8.5rem); background: #eef3f8; }
.webgl-closing__panel { position: relative; display: grid; min-height: 34rem; grid-template-columns: minmax(0,.82fr) minmax(23rem,1.18fr); align-items: center; gap: clamp(2.5rem,5vw,5.5rem); overflow: hidden; padding: clamp(1.2rem,2.5vw,2rem); padding-left: clamp(2.25rem,6vw,5.5rem); border-radius: 1.5rem; color: #fff; background: #050e1f; }
.webgl-closing__panel::before { content: ''; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(145,196,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(145,196,255,.18) 1px, transparent 1px); background-size: 54px 54px; }
.webgl-closing__copy { position: relative; z-index: 2; padding: 2rem 0; }
.webgl-closing__copy > p { margin-bottom: 1.2rem; color: #86baff; }
.webgl-closing h2 { max-width: 9ch; font-size: clamp(3rem, 5.8vw, 5.8rem); font-weight: 880; line-height: .9; letter-spacing: -.065em; }
.webgl-closing__link { position: relative; z-index: 2; display: flex; width: min(100%,15rem); align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; padding: 1.1rem 1.35rem; border: 1px solid rgba(164,205,255,.32); border-radius: 999px; color: #fff; font-size: .76rem; font-weight: 800; backdrop-filter: blur(8px); }
.webgl-closing__link:hover { color: #061020; border-color: #9bcaff; background: #9bcaff; transform: translateY(-3px); }
.webgl-closing__media { position: relative; z-index: 2; height: 100%; min-height: 29rem; overflow: hidden; border: 1px solid rgba(179,211,249,.18); border-radius: 1.1rem; background: #14233a; box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.webgl-closing__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,14,31,.2), transparent 35%), linear-gradient(180deg, transparent 64%, rgba(5,14,31,.18)); }
.webgl-closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.webgl-closing__panel:hover .webgl-closing__media img { transform: scale(1.025); }

@keyframes webgl-pulse { 50% { opacity: .55; box-shadow: 0 0 0 .5rem rgba(112,183,255,.07), 0 0 1.7rem #70b7ff; } }
@keyframes webgl-drift { to { transform: translate3d(-2rem, 2rem, 0) scale(1.06); } }
@keyframes webgl-scroll { 0% { transform: translateX(-110%); } 55%,100% { transform: translateX(110%); } }
@keyframes webgl-impact { from { opacity: 1; transform: scale(.72); } to { opacity: 0; transform: scale(1.12); } }

@media (max-width: 1023px) {
  .webgl-hero__inner { grid-template-columns: 1fr; padding-top: 6rem; padding-bottom: 7rem; }
  .webgl-hero__copy { max-width: 44rem; }
  .webgl-hero__visual { position: absolute; right: -17rem; bottom: -8rem; width: 40rem; height: 40rem; min-height: 0; opacity: .55; }
  .webgl-hero__veil { background: linear-gradient(90deg, rgba(4,12,28,.98) 0%, rgba(4,12,28,.82) 58%, rgba(4,12,28,.35) 100%); }
}

@media (max-width: 767px) {
  .ben-front-page .main-navigation.is-open { background: rgba(5,14,31,.98); }
  .ben-front-page .main-navigation.is-open a:hover, .ben-front-page .main-navigation.is-open .current-menu-item a { color: #fff; background: rgba(145,196,255,.12); }
  .webgl-hero { min-height: calc(100svh - 4.5rem); }
  .webgl-hero__inner { min-height: calc(100svh - 4.5rem); padding-top: 4.5rem; padding-bottom: 6rem; }
  .webgl-hero__veil { background: linear-gradient(180deg, rgba(4,12,28,.58), rgba(4,12,28,.94) 66%, #040c1c); }
  .webgl-hero::before { background-size: 42px 42px; mask-image: linear-gradient(#000, transparent 92%); }
  .webgl-kicker { margin-bottom: 1.5rem; }
  .webgl-hero h1 { max-width: 9ch; font-size: clamp(3.65rem, 18vw, 5.6rem); }
  .webgl-hero__intro { margin-top: 1.75rem; }
  .webgl-hero__actions { align-items: stretch; flex-direction: column; }
  .webgl-button { width: 100%; }
  .webgl-button--ghost { justify-content: center; }
  .webgl-hero__visual { top: -7rem; right: -16rem; bottom: auto; width: 34rem; height: 34rem; opacity: .45; }
  .webgl-hero__scroll { left: 1rem; }
  .webgl-section-head b { display: none; }
  .webgl-services__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .webgl-service--featured { grid-row: auto; min-height: 34rem; }
  .webgl-service { min-height: 28rem; }
  .webgl-service h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .webgl-closing__panel { min-height: 0; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.15rem; }
  .webgl-closing__copy { padding: 2.25rem 1.1rem .75rem; }
  .webgl-closing__link { min-width: 0; }
  .webgl-closing__media { min-height: 20rem; }
}

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

/* WebGL home — unified continuum ---------------------------------------- */
.webgl-home {
  --field-x: 72%;
  --field-y: 22%;
  position: relative;
  overflow: clip;
  color: #fff;
  background:
    radial-gradient(circle at 12% 48%, rgba(19, 67, 132, .18), transparent 30rem),
    linear-gradient(180deg, #050e1f 0%, #071429 55%, #050e1f 100%);
  isolation: isolate;
}
.webgl-home__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 34rem at var(--field-x) var(--field-y), rgba(55, 139, 239, .13), transparent 70%),
    linear-gradient(rgba(145, 196, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 196, 255, .035) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 8%, #000 25%, #000 92%, transparent);
  transition: background-position .12s linear;
}
.webgl-hero,
.webgl-services,
.webgl-closing { position: relative; z-index: 1; background: transparent; }
.webgl-hero { border-bottom: 1px solid rgba(146, 191, 247, .1); }
.webgl-hero__veil {
  background:
    linear-gradient(90deg, rgba(4,12,28,.98) 0%, rgba(4,12,28,.82) 38%, rgba(4,12,28,.18) 70%, rgba(4,12,28,.48) 100%),
    linear-gradient(180deg, rgba(4,12,28,.08), rgba(4,12,28,.38) 72%, #050e1f 100%);
}
.webgl-hero::after { box-shadow: inset 0 -90px 120px rgba(1,7,18,.28); }

.webgl-services { padding: clamp(6rem, 10vw, 10rem) 0 clamp(5rem, 8vw, 8rem); color: #fff; }
.webgl-section-head { margin-bottom: clamp(3.5rem, 6vw, 6rem); color: #7f93ad; }
.webgl-section-head p span { color: #91c4ff; }
.webgl-section-head i { background: rgba(160, 197, 241, .15); }
.webgl-section-head b { color: #52677f; }
.webgl-services__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .72fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 9rem);
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
}
.webgl-services__intro h2 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7.2vw, 7rem);
  font-weight: 880;
  line-height: .88;
  letter-spacing: -.07em;
}
.webgl-services__intro h2 em { color: #9bcaff; font-style: normal; }
.webgl-services__intro > p { max-width: 34rem; color: #91a4bc; font-size: clamp(.98rem, 1.25vw, 1.12rem); line-height: 1.85; }

.webgl-services__grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(20rem, .84fr);
  grid-template-rows: repeat(2, minmax(21rem, 1fr));
  gap: 1rem;
}
.webgl-service {
  border: 1px solid rgba(158, 199, 249, .14);
  border-radius: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(15, 36, 67, .78), rgba(7, 22, 45, .88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}
.webgl-service::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 88% 6%, rgba(91, 164, 255, .12), transparent 32%);
  opacity: .6;
  transition: opacity .35s ease;
}
.webgl-service:hover { border-color: rgba(151, 200, 255, .28); box-shadow: 0 30px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06); }
.webgl-service:hover::before { opacity: 1; }
.webgl-service__number { color: #8fa8c5; }
.webgl-service__type { color: #8dbfff; }
.webgl-service h3 { max-width: 10ch; font-size: clamp(2.45rem, 4.6vw, 4.8rem); font-weight: 880; line-height: .92; letter-spacing: -.058em; }
.webgl-service__body > p:not(.webgl-service__type) { color: #a7b8cc; opacity: 1; }
.webgl-service__body > a { color: #a9d1ff; }
.webgl-service--featured {
  background:
    radial-gradient(circle at 75% 19%, rgba(38, 123, 226, .28), transparent 31%),
    linear-gradient(145deg, rgba(12, 36, 72, .95), rgba(5, 17, 36, .98) 68%);
}
.webgl-service--featured::after { border-color: rgba(142,191,255,.18); }
.webgl-service--field { background: linear-gradient(145deg, rgba(17, 41, 76, .76), rgba(8, 24, 49, .9)); }
.webgl-service--field:nth-child(3) { background: linear-gradient(145deg, rgba(16, 49, 91, .78), rgba(8, 25, 51, .92)); }
.webgl-service__glyph { color: #b9d9ff; border-color: currentColor; background: rgba(120, 180, 255, .34); opacity: .24; }
.webgl-service__glyph--bars { background: rgba(92, 160, 244, .34); }
.webgl-service__glyph--grid { border-color: currentColor; }
.webgl-service__glyph--grid i { border-color: currentColor; }
.webgl-service__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.webgl-service__tags li {
  padding: .42rem .68rem;
  border: 1px solid rgba(157, 202, 255, .16);
  border-radius: 999px;
  color: #8198b4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.webgl-closing { padding: clamp(2rem, 4vw, 4rem) 0 clamp(6rem, 10vw, 10rem); }
.webgl-closing__panel {
  min-height: 38rem;
  border: 1px solid rgba(158, 199, 249, .14);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(15, 37, 70, .82), rgba(6, 18, 38, .94));
  box-shadow: 0 35px 90px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(18px);
}
.webgl-closing__panel::before {
  opacity: .13;
  background-image: linear-gradient(rgba(145,196,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(145,196,255,.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 62%);
}
.webgl-closing__copy > p:first-child { color: #8dbfff; }
.webgl-closing__intro { max-width: 29rem; margin-top: 1.75rem; color: #91a4bc; font-family: inherit; font-size: .98rem; font-weight: 400; line-height: 1.75; letter-spacing: normal; }
.webgl-closing__link { color: #dceaff; background: rgba(255,255,255,.025); }
.webgl-closing__media { min-height: 33rem; border-color: rgba(179,211,249,.16); background: #0c1f3d; }
.webgl-closing__media::after { background: linear-gradient(90deg, rgba(5,14,31,.22), transparent 35%), linear-gradient(180deg, transparent 52%, rgba(5,14,31,.72)); }
.webgl-closing__media figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.4rem;
  left: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}
.webgl-closing__media figcaption span { color: #b9d9ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .6rem; font-weight: 700; letter-spacing: .14em; }
.webgl-closing__media figcaption b { font-size: .78rem; font-weight: 700; }

.has-webgl-motion .webgl-reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.has-webgl-motion .webgl-reveal.is-visible { opacity: 1; transform: translateY(0); }
.has-webgl-motion .webgl-services__grid .webgl-reveal:nth-child(2) { transition-delay: .08s; }
.has-webgl-motion .webgl-services__grid .webgl-reveal:nth-child(3) { transition-delay: .16s; }

@media (max-width: 1023px) {
  .webgl-services__intro { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .webgl-services__intro > p { max-width: 42rem; }
}

@media (max-width: 767px) {
  .webgl-home__field { background-size: auto, 48px 48px, 48px 48px; }
  .webgl-services { padding-top: 5.5rem; }
  .webgl-section-head { margin-bottom: 3rem; }
  .webgl-services__intro { margin-bottom: 3rem; }
  .webgl-services__intro h2 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .webgl-services__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .webgl-service--featured { grid-row: auto; min-height: 34rem; }
  .webgl-service { min-height: 28rem; }
  .webgl-service h3 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .webgl-closing { padding-top: 1rem; }
  .webgl-closing__panel { min-height: 0; grid-template-columns: 1fr; }
  .webgl-closing__media { min-height: 21rem; }
  .webgl-closing__media figcaption { right: 1rem; bottom: 1rem; left: 1rem; }
  .webgl-closing__media figcaption b { display: none; }
}

/* WebGL home — smooth geometric edition -------------------------------- */
.webgl-home {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  background:
    radial-gradient(circle at 78% 8%, rgba(38, 112, 209, .15), transparent 32rem),
    radial-gradient(circle at 12% 62%, rgba(19, 73, 148, .11), transparent 38rem),
    linear-gradient(180deg, #050e1f 0%, #07162d 43%, #07142a 70%, #050e1f 100%);
}
.webgl-home__field {
  background:
    radial-gradient(circle 38rem at var(--field-x) var(--field-y), rgba(66, 146, 238, .12), transparent 72%),
    linear-gradient(rgba(145, 196, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 196, 255, .026) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 22%, #000 90%, transparent);
}
.webgl-hero { border-bottom: 0; }
.webgl-hero::before {
  opacity: .14;
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}
.webgl-hero::after { box-shadow: inset 0 -150px 140px rgba(5,14,31,.52); }
.webgl-hero__veil {
  background:
    linear-gradient(90deg, rgba(4,12,28,.98) 0%, rgba(4,12,28,.84) 41%, rgba(4,12,28,.12) 72%, rgba(4,12,28,.4) 100%),
    linear-gradient(180deg, rgba(4,12,28,.04), rgba(4,12,28,.24) 65%, #050e1f 100%);
}
.webgl-hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(25rem, .76fr);
  gap: clamp(3rem, 6vw, 7rem);
  padding-top: clamp(5rem, 8vw, 7.5rem);
  padding-bottom: clamp(6rem, 9vw, 8rem);
}
.webgl-hero__copy { animation: webgl-copy-in .9s cubic-bezier(.2,.7,.2,1) both; }
.webgl-hero h1 { font-size: clamp(3.8rem, 7.2vw, 7rem); line-height: .89; }
.webgl-hero__intro { max-width: 33rem; color: #9db0c7; }
.webgl-button { transition: color .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.webgl-button--primary { background: linear-gradient(135deg, #b7dcff, #8fc4ff); box-shadow: 0 18px 48px rgba(48, 126, 219, .2); }
.webgl-button--ghost { background: rgba(12, 32, 61, .24); }

.webgl-hero__visual {
  height: min(66vh, 44rem);
  min-height: 32rem;
  overflow: hidden;
  border-color: rgba(176,210,255,.18);
  border-radius: 2.4rem;
  background: linear-gradient(145deg, rgba(113, 178, 255, .025), rgba(4, 14, 31, .14));
  box-shadow: 0 32px 90px rgba(0,0,0,.2), inset 0 0 80px rgba(67,135,220,.05);
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .18s ease-out, border-color .35s ease, box-shadow .35s ease;
}
.webgl-hero__visual::before {
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  border: 1px solid rgba(181,214,255,.11);
  border-radius: 1.75rem;
  background: transparent;
}
.webgl-hero__visual::after {
  top: 50%;
  right: 2.25rem;
  left: 2.25rem;
  width: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181,214,255,.2), transparent);
}
.webgl-hero__reticle { width: 1.15rem; height: 1.15rem; border-radius: .22rem; transform: translate(-50%,-50%) rotate(45deg); }
.webgl-hero__reticle::before { left: -1.1rem; width: 3.2rem; }
.webgl-hero__reticle::after { top: -1.1rem; height: 3.2rem; }
.webgl-hero__label { right: 2.25rem; left: 2.25rem; }
.webgl-hero__orbit { border-radius: 2.5rem; transform: rotate(16deg); }
.webgl-hero__orbit--one { animation: webgl-geometry-drift 18s ease-in-out infinite alternate; }
.webgl-hero__orbit--two { animation: webgl-geometry-drift 24s ease-in-out -6s infinite alternate-reverse; }

.webgl-services {
  padding-top: clamp(6rem, 9vw, 9rem);
}
.webgl-services::before {
  content: '';
  position: absolute;
  top: -8rem;
  right: 0;
  left: 0;
  height: 16rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 22, 45, .5) 55%, transparent);
}
.webgl-section-head { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.webgl-services__intro { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.webgl-services__intro h2 { font-size: clamp(3.2rem, 6.3vw, 6.1rem); line-height: .91; }
.webgl-services__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(34rem, auto);
  gap: 1.1rem;
}
.webgl-service,
.webgl-service--featured {
  grid-row: auto;
  min-height: 34rem;
  border-radius: 2rem;
  background: linear-gradient(155deg, rgba(20, 46, 82, .7), rgba(7, 22, 45, .88));
  box-shadow: 0 16px 45px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.028);
  transition: transform .55s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .55s ease;
}
.webgl-service:nth-child(2) { background: linear-gradient(155deg, rgba(17, 41, 75, .72), rgba(7, 22, 45, .9)); }
.webgl-service:nth-child(3) { background: linear-gradient(155deg, rgba(19, 50, 91, .72), rgba(7, 23, 47, .9)); }
.webgl-service:hover { box-shadow: 0 30px 70px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05); transform: translateY(-5px) scale(1.006); }
.webgl-service__body { padding: clamp(2rem, 3vw, 2.8rem); }
.webgl-service h3 { max-width: 11ch; font-size: clamp(2.15rem, 3vw, 3.35rem); line-height: .96; }
.webgl-service__body > p:not(.webgl-service__type) { font-size: .9rem; line-height: 1.78; }
.webgl-service--featured::after {
  right: -16%;
  bottom: -24%;
  width: 70%;
  border-radius: 2rem;
  box-shadow: 0 0 0 2.5rem rgba(83,147,231,.025), 0 0 0 5rem rgba(83,147,231,.012);
  transform: rotate(18deg);
}
.webgl-service__mesh::before { background-size: 54px 54px; mask-image: linear-gradient(145deg, #000, transparent 62%); }
.webgl-service__glyph { border-radius: 1.2rem; transform: rotate(7deg); }
.webgl-service__body > a { transition: color .3s ease, transform .3s ease; }
.webgl-service:hover .webgl-service__body > a { color: #d6ebff; transform: translateX(.15rem); }

.webgl-closing { padding-top: clamp(3.5rem, 7vw, 7rem); }
.webgl-closing__panel {
  min-height: 36rem;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, rgba(18, 45, 82, .76), rgba(6, 20, 42, .94));
  box-shadow: 0 35px 90px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.035);
}
.webgl-closing__panel::before { background-size: 84px 84px; opacity: .1; }
.webgl-closing__media { min-height: 31rem; border-radius: 1.75rem; box-shadow: 0 24px 65px rgba(0,0,0,.22); }
.webgl-closing__media img { transition-duration: 1s; }
.webgl-closing__panel:hover .webgl-closing__media img { transform: scale(1.018); }
.webgl-closing__link { transition: color .35s ease, background .35s ease, border-color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); }

.has-webgl-motion .webgl-reveal { transform: translateY(1.25rem); transition-duration: .95s; transition-timing-function: cubic-bezier(.16,.68,.2,1); }
.has-webgl-motion .webgl-reveal.is-visible { transform: translateY(0); }

@keyframes webgl-copy-in { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes webgl-geometry-drift { to { transform: translate3d(-1.5rem, 1.25rem, 0) rotate(24deg) scale(1.035); } }

@media (max-width: 1023px) {
  .webgl-hero__inner { grid-template-columns: 1fr; }
  .webgl-hero__visual { right: -10rem; bottom: -6rem; width: 34rem; height: 38rem; border-radius: 2.2rem; }
  .webgl-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .webgl-service:first-child { grid-column: 1 / -1; min-height: 31rem; }
  .webgl-service { min-height: 31rem; }
  .webgl-service:first-child h3 { max-width: 12ch; }
}

@media (max-width: 767px) {
  .webgl-home__field { background-size: auto, 56px 56px, 56px 56px; }
  .webgl-hero__inner { padding-top: 4.5rem; padding-bottom: 6.5rem; }
  .webgl-hero h1 { font-size: clamp(3.45rem, 17vw, 5.2rem); }
  .webgl-hero__visual { top: -4rem; right: -16rem; bottom: auto; width: 31rem; height: 34rem; border-radius: 2rem; opacity: .42; }
  .webgl-hero__label { right: 1.5rem; left: 1.5rem; }
  .webgl-services__grid { grid-template-columns: 1fr; }
  .webgl-service:first-child { grid-column: auto; }
  .webgl-service,
  .webgl-service--featured { min-height: 29rem; border-radius: 1.6rem; }
  .webgl-service h3 { font-size: clamp(2.45rem, 12vw, 3.65rem); }
  .webgl-closing__panel { border-radius: 1.8rem; }
  .webgl-closing__media { border-radius: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .webgl-hero__copy { animation: none; }
  .webgl-hero__visual { transform: none; }
}

/* Scroll-driven fractal morph ------------------------------------------- */
.webgl-hero {
  --scroll-progress: 0;
  min-height: 185svh;
  overflow: clip;
}
.webgl-hero__scene {
  position: sticky;
  top: 5rem;
  z-index: 0;
  height: calc(100svh - 5rem);
  margin-bottom: calc(-100svh + 5rem);
  overflow: hidden;
  background: #050e1f;
  isolation: isolate;
}
.webgl-hero__scene .webgl-hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.webgl-hero__scene .webgl-hero__veil { z-index: 1; }
.webgl-hero__scene .webgl-hero__orbit { z-index: 2; }
.webgl-hero__inner {
  position: sticky;
  top: 5rem;
  z-index: 3;
  height: calc(100svh - 5rem);
  min-height: calc(100svh - 5rem);
}
.webgl-hero.is-fractal-hit::after { background: none; }
.webgl-hero__progress {
  position: absolute;
  top: 25%;
  right: 1rem;
  bottom: 25%;
  width: 1px;
  background: rgba(174, 211, 255, .13);
}
.webgl-hero__progress span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #c3e3ff, #4e9df5);
  box-shadow: 0 0 14px rgba(105, 177, 255, .5);
  transform: scaleY(var(--scroll-progress));
  transform-origin: top;
  transition: transform .12s linear;
}
.webgl-hero__progress b {
  position: absolute;
  top: 50%;
  right: .8rem;
  width: max-content;
  color: #6f88a5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .14em;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
}

@media (max-width: 767px) {
  .webgl-hero { min-height: 165svh; }
  .webgl-hero__scene { top: 4.5rem; height: calc(100svh - 4.5rem); margin-bottom: calc(-100svh + 4.5rem); }
  .webgl-hero__inner { top: 4.5rem; height: calc(100svh - 4.5rem); min-height: calc(100svh - 4.5rem); }
  .webgl-hero__progress { right: .7rem; }
  .webgl-hero__progress b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .webgl-hero { min-height: calc(100svh - 5rem); }
  .webgl-hero__scene { position: absolute; top: 0; height: 100%; margin-bottom: 0; }
  .webgl-hero__inner { position: relative; top: 0; height: auto; }
  .webgl-hero__progress { display: none; }
}

/* Full-page WebGL scroll reveal ----------------------------------------- */
.has-scroll-reveal [data-scroll-reveal] {
  --reveal-opacity: 0;
  --reveal-y: 52px;
  --reveal-scale: .976;
  --reveal-blur: 8px;
  --reveal-clip: 18%;
  --reveal-glow: 0px;
  opacity: var(--reveal-opacity);
  clip-path: inset(0 0 var(--reveal-clip) 0);
  filter: blur(var(--reveal-blur)) drop-shadow(0 0 var(--reveal-glow) rgba(102, 177, 255, .2));
  translate: 0 var(--reveal-y);
  scale: var(--reveal-scale);
  transform-origin: center 72%;
  will-change: opacity, translate, scale, filter, clip-path;
}
.has-scroll-reveal .webgl-hero__copy {
  --hero-copy-opacity: 1;
  --hero-copy-y: 0px;
  --hero-copy-blur: 0px;
  opacity: var(--hero-copy-opacity);
  filter: blur(var(--hero-copy-blur));
  transform: translate3d(0, var(--hero-copy-y), 0);
  animation: none;
  will-change: opacity, filter, transform;
}
.has-scroll-reveal .webgl-hero__scroll {
  opacity: var(--scroll-fade, 1);
  transform: translateY(var(--scroll-offset, 0px));
}
.has-scroll-reveal .webgl-section-head[data-scroll-reveal] {
  transform-origin: left center;
}
.has-scroll-reveal .webgl-service[data-scroll-reveal],
.has-scroll-reveal .webgl-closing__media[data-scroll-reveal] {
  transform-origin: center bottom;
}

@media (max-width: 767px) {
  .has-scroll-reveal [data-scroll-reveal] { --reveal-y: 36px; --reveal-blur: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll-reveal],
  [data-hero-copy] { opacity: 1; clip-path: none; filter: none; translate: none; scale: 1; transform: none; }
}

/* GSAP + WebGL continuous home ----------------------------------------- */
.immersive-home {
  position: relative;
  overflow: clip;
  color: #f7fbff;
  background: #050e1f;
  isolation: isolate;
}
.immersive-visual {
  position: fixed;
  top: 5rem;
  right: 0;
  left: 0;
  z-index: 0;
  height: calc(100svh - 5rem);
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 72% 42%, #123d75, #07162e 43%, #050e1f 76%);
}
.immersive-visual__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.immersive-visual__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,14,31,.97) 0%, rgba(5,14,31,.82) 34%, rgba(5,14,31,.1) 72%, rgba(5,14,31,.34) 100%),
    linear-gradient(180deg, rgba(5,14,31,.08), rgba(5,14,31,.2) 70%, rgba(5,14,31,.68));
}
.immersive-visual__grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(158,202,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(158,202,255,.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}
.immersive-visual__cursor {
  position: absolute;
  top: -.45rem;
  left: -.45rem;
  width: .9rem;
  height: .9rem;
  border: 1px solid rgba(192,224,255,.72);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(102,174,255,.55);
  opacity: .72;
}
.immersive-visual__hud {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  color: #7187a2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.no-webgl .immersive-visual { background: radial-gradient(circle at 72% 42%, #174c8d, #07162e 42%, #050e1f 76%); }
.ben-front-page .site-footer { position: relative; z-index: 3; }

.immersive-progress {
  position: fixed;
  top: 28%;
  right: 1.25rem;
  bottom: 18%;
  z-index: 8;
  width: 1px;
  background: rgba(158,202,255,.14);
  pointer-events: none;
}
.immersive-progress__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #d3ebff, #4f9df6);
  box-shadow: 0 0 14px rgba(88,160,244,.55);
  transform: scaleY(0);
  transform-origin: top;
}
.immersive-progress b {
  position: absolute;
  right: .8rem;
  bottom: 0;
  width: max-content;
  color: #607792;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .55rem;
  letter-spacing: .15em;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

.story-scene { position: relative; z-index: 2; min-height: calc(100svh - 5rem); }
.story-frame { display: flex; min-height: calc(100svh - 5rem); align-items: center; }
.story-scene::before {
  content: '';
  position: absolute;
  inset: -1px 0;
  z-index: -1;
  pointer-events: none;
}
.story-scene--hero::before { background: linear-gradient(180deg, rgba(5,14,31,.04), rgba(5,14,31,.12)); }
.story-scene--services::before { background: linear-gradient(180deg, rgba(5,14,31,.08), rgba(7,22,45,.34) 48%, rgba(5,14,31,.08)); }
.story-scene--closing::before { background: linear-gradient(180deg, rgba(5,14,31,.08), rgba(5,14,31,.6)); }

.story-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .4fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.story-hero__copy { position: relative; max-width: 54rem; }
.story-kicker,
.story-heading,
.service-story-card header,
.immersive-home .story-scroll,
.closing-story__media figcaption {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.story-kicker { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.8rem; color: #a5b9d0; }
.story-kicker > span { width: .48rem; height: .48rem; border-radius: 50%; background: #8cc5ff; box-shadow: 0 0 0 .3rem rgba(113,183,255,.11), 0 0 1.2rem rgba(113,183,255,.9); }
.story-hero h1 { max-width: 10ch; font-size: clamp(4rem, 7.6vw, 7.5rem); font-weight: 880; line-height: .87; letter-spacing: -.07em; }
.story-hero h1 em,
.services-story__intro h2 em,
.closing-story__copy h2 em { color: #9bcaff; font-style: normal; text-shadow: 0 0 42px rgba(89,157,239,.18); }
.story-hero__intro { max-width: 35rem; margin-top: 2rem; color: #9dafc5; font-size: clamp(1rem,1.3vw,1.15rem); line-height: 1.8; }
.story-actions { display: flex; align-items: center; gap: .9rem; margin-top: 2.3rem; }
.story-button { display: inline-flex; min-height: 3.55rem; align-items: center; justify-content: space-between; gap: 2.2rem; padding: 0 1.35rem; border: 1px solid rgba(164,205,255,.2); border-radius: 999px; font-size: .74rem; font-weight: 800; transition: transform .3s ease, border-color .3s ease, background .3s ease, color .3s ease; }
.story-button:hover { transform: translateY(-3px); }
.story-button--primary { min-width: 13.5rem; color: #061020; border-color: #a9d3ff; background: linear-gradient(135deg,#c6e5ff,#91c6ff); box-shadow: 0 18px 46px rgba(53,127,219,.2); }
.story-button--primary:hover { color: #061020; border-color: #fff; background: #fff; }
.story-button--ghost { color: #d5e8ff; background: rgba(12,31,59,.3); backdrop-filter: blur(12px); }
.story-button--ghost:hover { color: #fff; border-color: rgba(169,211,255,.42); background: rgba(255,255,255,.07); }
.story-hero__signal { display: grid; align-self: center; border-top: 1px solid rgba(151,195,247,.17); }
.story-hero__signal > div { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.05rem .2rem; border-bottom: 1px solid rgba(151,195,247,.13); color: #768ca6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .6rem; letter-spacing: .13em; }
.story-hero__signal span { color: #a8cff8; }
.story-hero__signal b { font-weight: 700; }
.story-scroll { position: absolute; bottom: 1.3rem; left: 1.5rem; display: flex; align-items: center; gap: .8rem; color: #657b96; }
.story-scroll span { position: relative; width: 2.5rem; height: 1px; overflow: hidden; background: rgba(155,198,248,.15); }
.story-scroll span::after { content: ''; position: absolute; inset: 0; background: #8fc4ff; animation: immersive-scroll 2s ease-in-out infinite; }

.services-story { width: 100%; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.story-heading { display: flex; align-items: center; gap: 1.2rem; margin-bottom: clamp(2.2rem,4vw,3.5rem); color: #7288a3; }
.story-heading p { display: flex; align-items: center; gap: .75rem; }
.story-heading p span { color: #9dcaff; }
.story-heading i { height: 1px; flex: 1; background: rgba(151,195,247,.15); }
.story-heading > b { color: #536b87; }
.services-story__layout { display: grid; grid-template-columns: minmax(18rem,.72fr) minmax(28rem,1.28fr); align-items: center; gap: clamp(3rem,7vw,8rem); }
.services-story__intro h2 { max-width: 10ch; font-size: clamp(3.3rem,5.5vw,5.8rem); font-weight: 880; line-height: .9; letter-spacing: -.065em; }
.services-story__intro > p { max-width: 30rem; margin-top: 1.7rem; color: #93a6bd; font-size: .96rem; line-height: 1.8; }
.services-story__counter { display: flex; align-items: center; gap: .75rem; width: min(100%,17rem); margin-top: 2.5rem; color: #7e96b1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; letter-spacing: .13em; }
.services-story__counter span { color: #b7d9fc; }
.services-story__counter i { height: 1px; flex: 1; background: rgba(151,195,247,.2); }
.service-deck { position: relative; min-height: clamp(28rem,58vh,34rem); perspective: 1100px; }
.service-story-card {
  display: flex;
  min-height: clamp(28rem,58vh,34rem);
  flex-direction: column;
  overflow: hidden;
  padding: clamp(2rem,3.4vw,3.25rem);
  border: 1px solid rgba(158,202,255,.16);
  border-radius: 2.2rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(69,145,235,.15), transparent 32%),
    linear-gradient(145deg, rgba(17,40,73,.78), rgba(6,20,42,.91));
  box-shadow: 0 30px 80px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(20px);
}
.is-gsap-ready:not(.is-static-ready) .service-story-card { position: absolute; inset: 0; }
.service-story-card header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #82a2c5; }
.service-story-card header span { color: #b9dbff; }
.service-story-card h3 { max-width: 10ch; margin-top: auto; padding-top: 4rem; font-size: clamp(2.6rem,4.3vw,4.7rem); font-weight: 880; line-height: .92; letter-spacing: -.06em; }
.service-story-card > p { max-width: 34rem; margin-top: 1.4rem; color: #a4b6ca; font-size: .92rem; line-height: 1.75; }
.service-story-card ul { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.35rem; padding: 0; list-style: none; }
.service-story-card li { padding: .4rem .65rem; border: 1px solid rgba(155,201,255,.16); border-radius: 999px; color: #7f98b4; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.service-story-card > a { display: inline-flex; align-items: center; gap: .65rem; align-self: flex-start; margin-top: 1.8rem; color: #a9d2ff; font-size: .74rem; font-weight: 800; }
.service-story-card > a:hover { color: #fff; transform: translateX(.2rem); }

.closing-story { display: grid; width: 100%; grid-template-columns: minmax(0,.85fr) minmax(24rem,1.15fr); align-items: center; gap: clamp(3rem,7vw,8rem); padding-top: 3rem; padding-bottom: 3rem; }
.closing-story__copy h2 { max-width: 9ch; font-size: clamp(3.6rem,6.5vw,6.8rem); font-weight: 880; line-height: .88; letter-spacing: -.07em; }
.closing-story__copy > p:not(.story-kicker) { max-width: 30rem; margin-top: 1.8rem; color: #96a9c0; line-height: 1.8; }
.closing-story__copy .story-button { margin-top: 2.2rem; }
.closing-story__media { position: relative; min-height: min(68vh,39rem); overflow: hidden; border: 1px solid rgba(158,202,255,.16); border-radius: 2.3rem; background: #0b1e3b; box-shadow: 0 32px 85px rgba(0,0,0,.26); }
.closing-story__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,14,31,.78)); pointer-events: none; }
.closing-story__media img { width: 100%; height: 100%; object-fit: cover; }
.closing-story__media figcaption { position: absolute; right: 1.6rem; bottom: 1.5rem; left: 1.6rem; z-index: 2; display: flex; justify-content: space-between; gap: 1rem; color: #cce5ff; }
.closing-story__media figcaption b { color: #fff; font-weight: 700; }

@keyframes immersive-scroll { 0% { transform: translateX(-110%); } 55%,100% { transform: translateX(110%); } }

@media (max-width: 1023px) {
  .story-hero { grid-template-columns: minmax(0,1fr) minmax(11rem,.28fr); gap: 3rem; }
  .services-story__layout { grid-template-columns: minmax(16rem,.62fr) minmax(24rem,1.38fr); gap: 3rem; }
  .closing-story { gap: 3rem; }
}

@media (max-width: 767px) {
  .immersive-visual { top: 4.5rem; height: calc(100svh - 4.5rem); }
  .immersive-visual__wash { background: linear-gradient(180deg, rgba(5,14,31,.28), rgba(5,14,31,.78) 62%, rgba(5,14,31,.94)); }
  .immersive-visual__grid { background-size: 52px 52px; mask-image: linear-gradient(#000, transparent 86%); }
  .immersive-visual__cursor, .immersive-progress b { display: none; }
  .immersive-progress { top: 22%; right: .6rem; bottom: 15%; }
  .story-scene, .story-frame { min-height: calc(100svh - 4.5rem); }
  .story-frame { padding: 4.5rem 0; }
  .story-hero { min-height: calc(100svh - 4.5rem); grid-template-columns: 1fr; align-content: center; gap: 2.5rem; padding-top: 4rem; padding-bottom: 5rem; }
  .story-hero h1 { font-size: clamp(3.55rem,17.5vw,5.35rem); }
  .story-hero__signal { display: none; }
  .story-actions { align-items: stretch; flex-direction: column; }
  .story-button { width: 100%; }
  .story-button--ghost { justify-content: center; }
  .story-scroll { left: 1rem; }
  .services-story { padding-top: 1rem; padding-bottom: 1rem; }
  .story-heading > b { display: none; }
  .services-story__layout { grid-template-columns: 1fr; align-items: start; gap: 3rem; }
  .services-story__intro h2 { font-size: clamp(3.2rem,15.5vw,4.9rem); }
  .service-deck { display: grid; min-height: 0; gap: 1rem; perspective: none; }
  .service-story-card { position: relative !important; inset: auto !important; min-height: 29rem; border-radius: 1.6rem; }
  .service-story-card h3 { font-size: clamp(2.55rem,12vw,3.7rem); }
  .closing-story { grid-template-columns: 1fr; align-items: start; gap: 3rem; }
  .closing-story__copy h2 { font-size: clamp(3.35rem,16vw,5rem); }
  .closing-story__media { min-height: 24rem; border-radius: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .immersive-visual__cursor, .story-scroll { display: none; }
  .service-story-card { position: relative !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .service-deck { display: grid; height: auto; gap: 1rem; }
}
