/*
Theme Name: AarthoNIC
Theme URI: https://aarthonic.com
Author: AarthoNIC LLP
Author URI: https://aarthonic.com
Description: The AarthoNIC website as a WordPress theme: AI-powered products and digital services studio. Floating pill header with Services and Products mega menus, the animated Opptas hero, and a one-click importer that creates every page (Services and six service pages, Products, Opptas, How We Work, About, Contact, Privacy, Terms), a styled blog with 10 sample posts, the menus and the front page.
Version: 1.3.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aarthonic
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

:root {
  --an-ink: #0B0B12;
  --an-ink-2: #07070C;
  --an-panel: #111827;
  --an-line: rgba(255, 255, 255, .08);
  --an-text: #FFFFFF;
  --an-soft: #E5E7EB;
  --an-muted: #9CA3AF;
  --an-plum: #701A75;
  --an-violet: #A21CAF;
  --an-magenta: #D946EF;
  --an-pink: #EC4899;
  --an-lilac: #F0ABFC;
  --an-grad: linear-gradient(90deg, #D946EF, #EC4899);
  --an-display: Sora, system-ui, sans-serif;
  --an-body: Geist, system-ui, sans-serif;
  --an-gutter: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--an-ink);
  color: var(--an-text);
  font-family: var(--an-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--an-lilac); text-decoration: none; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--an-magenta); outline-offset: 3px; }
details summary { cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
button, input, select, textarea { font: inherit; }

.screen-reader-text, .an-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto; clip-path: none; padding: 12px 18px; border-radius: 999px; background: #FFFFFF; color: var(--an-ink); }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 1320px; margin-inline: auto; }
.alignfull { max-width: none; }
.wp-caption, .gallery-caption { max-width: 100%; font-size: 13px; color: var(--an-muted); }
.sticky, .bypostauthor { display: block; }

/* =========================================================================
   Header - floating pill
   ====================================================================== */

.an-header {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 clamp(12px, 2vw, 24px);
  transition: top .3s ease;
}
.admin-bar .an-header { top: 50px; }
.an-header__bar {
  width: 100%; max-width: 1320px; height: 64px;
  padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: max-width .35s ease, background .35s ease, border-color .35s ease;
}
.an-header--transparent:not(.is-scrolled) .an-header__bar { background: rgba(17, 24, 39, 0); border-color: rgba(255, 255, 255, 0); -webkit-backdrop-filter: none; backdrop-filter: none; }
.an-header.is-scrolled { top: 12px; }
.admin-bar .an-header.is-scrolled { top: 44px; }
.an-header.is-scrolled .an-header__bar,
.an-header.is-scrolled .an-mega { max-width: 1100px; }

.an-brand { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--an-display); letter-spacing: -.02em; color: #FFFFFF; white-space: nowrap; }
.an-brand:hover { color: #FFFFFF; }
.an-brand__orb { width: 26px; height: 26px; flex: none; background: url('assets/img/brand/mark.svg') center / contain no-repeat; }
.an-brand__nic { background: linear-gradient(90deg, #F0ABFC, #D946EF, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-brand .custom-logo { max-height: 36px; width: auto; display: block; }

.an-nav { margin-left: auto; }
.an-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.an-nav a { display: flex; align-items: center; gap: 5px; padding: 22px 0; font: 500 14px/1 var(--an-body); color: var(--an-soft); }
.an-nav a:hover, .an-nav .current-menu-item > a, .an-nav .current-page-ancestor > a, .an-nav a[aria-expanded="true"] { color: var(--an-lilac); }
.an-nav__caret { font-size: 10px; opacity: .7; transition: transform .25s ease; }
.an-nav a[aria-expanded="true"] .an-nav__caret { transform: rotate(180deg); }

.an-cta { height: 44px; padding: 0 20px; border-radius: 999px; background: var(--an-grad); color: #FFFFFF; display: inline-flex; align-items: center; font: 600 14px/1 var(--an-body); white-space: nowrap; transition: box-shadow .2s ease; }
.an-cta:hover { color: #FFFFFF; box-shadow: 0 0 24px rgba(217, 70, 239, .55); }
.an-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #FFFFFF; cursor: pointer; font: 500 18px/1 var(--an-body); }

/* Mega menus */
.an-mega {
  width: 100%; max-width: 1320px; margin-top: 10px;
  padding: clamp(16px, 2vw, 24px); border-radius: 28px;
  background: rgba(13, 13, 22, .95); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 70px -30px rgba(217, 70, 239, .55);
  display: none; grid-template-columns: 1.4fr 1fr; gap: 16px;
  transition: max-width .35s ease;
}
.an-mega.is-open { display: grid; }
.an-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
.an-mega__item { padding: 16px; border-radius: 18px; display: flex; gap: 14px; align-items: flex-start; color: #FFFFFF; transition: background .2s ease; }
.an-mega__item:hover { background: rgba(217, 70, 239, .1); color: #FFFFFF; }
.an-mega__num { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--an-display); color: #FFFFFF; }
.an-mega__txt { display: flex; flex-direction: column; gap: 6px; }
.an-mega__title { font: 700 16px/1.2 var(--an-display); }
.an-mega__desc { font: 400 13px/1.45 var(--an-body); color: var(--an-muted); }
.an-mega__promo { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: linear-gradient(150deg, #3B0A45, #701A75 55%, #A21CAF); color: #FFFFFF; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 230px; transition: box-shadow .2s ease; }
.an-mega__promo:hover { color: #FFFFFF; box-shadow: 0 0 40px rgba(217, 70, 239, .45); }
.an-mega__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }
.an-mega__ring--a { right: -60px; top: -60px; width: 210px; height: 210px; }
.an-mega__ring--b { right: -15px; top: -15px; width: 120px; height: 120px; }
.an-mega__dot { position: absolute; right: 30px; top: 30px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #F5D0FE, #D946EF); box-shadow: 0 0 24px rgba(245, 208, 254, .9); }
.an-mega__kicker { font: 600 11px/1 var(--an-body); letter-spacing: .16em; color: #FCE7F3; }
.an-mega__big { font: 800 24px/1.1 var(--an-display); letter-spacing: -.02em; }
.an-mega__link { font: 600 14px/1 var(--an-body); }
.an-mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px 2px; border-top: 1px solid var(--an-line); font: 400 13px/1.4 var(--an-body); color: var(--an-muted); }
.an-mega__foot a:first-child { font: 600 14px/1 var(--an-body); }
.an-mega__product { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid var(--an-line); color: #FFFFFF; transition: border-color .2s ease; }
.an-mega__product::before, .an-mega__product::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(217, 70, 239, .35); pointer-events: none; }
.an-mega__product::before { right: -60px; top: -60px; width: 220px; height: 220px; }
.an-mega__product::after { right: -20px; top: -20px; width: 140px; height: 140px; }
.an-mega__shot, .an-mega__pbody { position: relative; }
.an-mega__dot { display: none !important; }
.an-mega__product:hover { border-color: rgba(217, 70, 239, .55); color: #FFFFFF; }
.an-mega__shot { aspect-ratio: 16 / 10; border-radius: 14px; background-color: var(--an-panel); background-size: cover; background-position: 62% 50%; }
.an-mega__pbody { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.an-pill { padding: 5px 10px; border-radius: 999px; background: rgba(236, 72, 153, .18); border: 1px solid rgba(236, 72, 153, .5); font: 600 10px/1 var(--an-body); letter-spacing: .14em; color: #F9A8D4; }
.an-mega__pname { font: 800 28px/1 var(--an-display); letter-spacing: -.03em; }
.an-mega__soonlist { display: flex; flex-direction: column; gap: 8px; }
.an-mega__label { padding: 4px 4px 6px; font: 600 11px/1 var(--an-body); letter-spacing: .16em; color: var(--an-muted); }
.an-mega__soon { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.an-mega__orb { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.an-mega__next { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .2); color: #FFFFFF; font: 600 14px/1.3 var(--an-body); }
.an-mega__next:hover { border-color: var(--an-magenta); color: #FFFFFF; }
.an-mega__plus { width: 34px; height: 34px; border-radius: 50%; flex: none; border: 1px dashed rgba(240, 171, 252, .6); display: flex; align-items: center; justify-content: center; font: 500 18px/1 var(--an-body); color: var(--an-lilac); }

/* Mobile menu */
.an-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(11, 11, 18, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.an-drawer[hidden] { display: none; }
.admin-bar .an-drawer { top: 46px; }
.an-drawer__head { display: flex; justify-content: space-between; align-items: center; height: 56px; margin-bottom: 26px; }
.an-drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #FFFFFF; cursor: pointer; font: 500 18px/1 var(--an-body); }
.an-drawer ul { list-style: none; margin: 0; padding: 0; }
.an-drawer li a { display: block; padding: 16px 0; border-top: 1px solid var(--an-line); font: 800 34px/1 var(--an-display); letter-spacing: -.03em; color: #FFFFFF; }
.an-drawer li.current-menu-item a { color: var(--an-lilac); }
.an-drawer .an-cta { margin-top: auto; height: 58px; justify-content: center; font-size: 16px; }

@media (max-width: 1099px) {
  .an-nav, .an-header__bar > .an-cta { display: none; }
  .an-burger { display: inline-flex; align-items: center; justify-content: center; }
  .an-mega { display: none !important; }
}

/* =========================================================================
   Footer
   ====================================================================== */

.an-footer { background: var(--an-ink-2); border-top: 1px solid var(--an-line); padding: clamp(56px, 7vw, 90px) var(--an-gutter) 30px; }
.an-footer__in { max-width: 1320px; margin: 0 auto; }
.an-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px; padding-bottom: 44px; border-bottom: 1px solid var(--an-line); }
.an-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.an-footer__brand .an-brand { font-size: 22px; }
.an-footer__tag { font: 400 15px/1.5 var(--an-body); color: var(--an-muted); max-width: 28ch; margin: 0; }
.an-footer__col { display: flex; flex-direction: column; gap: 12px; }
.an-footer__title { font: 600 12px/1 var(--an-body); letter-spacing: .16em; color: var(--an-muted); margin: 0 0 4px; }
.an-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.an-footer__col a { font: 400 15px/1.2 var(--an-body); color: var(--an-soft); }
.an-footer__col a:hover { color: var(--an-lilac); }
.an-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font: 400 14px/1.5 var(--an-body); color: var(--an-muted); }
.an-footer__bar a { color: var(--an-muted); }
.an-footer__bar a:hover { color: #FFFFFF; }
.an-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================================
   Page content
   ====================================================================== */

.an-main { display: block; min-height: 60vh; }
.an-page { width: 100%; }
/* Converted design sections keep their own inline styles; these rules only
   add responsive safety nets on top. */
.an-main section { max-width: 100%; }
.an-main table { width: 100%; border-collapse: collapse; }
.an-stage { display: grid; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 759px) { .an-stage { grid-template-columns: 1fr; } }

/* Standard pages and posts written in the block editor */
.an-standard { max-width: 820px; margin: 0 auto; padding: clamp(120px, 12vw, 150px) var(--an-gutter) clamp(60px, 8vw, 100px); }
.an-standard__title { margin: 0 0 24px; font: 800 clamp(38px, 5vw, 64px)/1 var(--an-display); letter-spacing: -.04em; }
.an-standard__meta { font: 500 13px/1 var(--an-body); letter-spacing: .12em; text-transform: uppercase; color: var(--an-muted); margin-bottom: 18px; display: block; }
.an-entry { font-size: 17px; line-height: 1.75; color: var(--an-soft); }
.an-entry h2, .an-entry h3, .an-entry h4 { font-family: var(--an-display); color: #FFFFFF; letter-spacing: -.02em; line-height: 1.15; margin: 1.6em 0 .6em; }
.an-entry h2 { font-size: clamp(26px, 3vw, 36px); }
.an-entry h3 { font-size: 22px; }
.an-entry p, .an-entry ul, .an-entry ol { margin: 0 0 1.2em; }
.an-entry img { border-radius: 18px; }
.an-entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--an-magenta); color: #FFFFFF; font-family: var(--an-display); font-size: 20px; }
.an-entry code { padding: 2px 6px; border-radius: 6px; background: var(--an-panel); font-size: .9em; }
.an-entry .wp-block-button__link { border-radius: 999px; background: var(--an-grad); color: #FFFFFF; font-weight: 600; }
.an-entry .wp-block-separator { border-color: var(--an-line); }
.an-post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; margin-top: 30px; }
.an-post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--an-panel); border: 1px solid var(--an-line); color: #FFFFFF; }
.an-post-card:hover { border-color: rgba(217, 70, 239, .5); color: #FFFFFF; }
.an-post-card h2 { margin: 0; font: 700 22px/1.2 var(--an-display); }
.an-post-card p { margin: 0; color: var(--an-muted); font-size: 15px; }
.an-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.an-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--an-line); color: #FFFFFF; }
.an-pagination .current { background: var(--an-grad); border-color: transparent; }

/* Forms (contact form and plugin forms) */
.an-main input[type="text"], .an-main input[type="email"], .an-main input[type="tel"], .an-main input[type="url"], .an-main select, .an-main textarea { max-width: 100%; }
.an-form-note { font: 400 13px/1.4 var(--an-body); color: var(--an-muted); }
.an-form-error { font: 500 14px/1.4 var(--an-body); color: #FCA5A5; }
.an-hp { position: absolute !important; left: -9999px !important; }
.wpcf7 input, .wpcf7 select, .wpcf7 textarea, .wpforms-container input, .wpforms-container select, .wpforms-container textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .15); background: #0B0B12; color: #FFFFFF; }
.wpcf7 input[type="submit"], .wpforms-submit { width: auto; height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--an-grad); color: #FFFFFF; font-weight: 600; cursor: pointer; }

/* 404 */
.an-404 { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 140px var(--an-gutter) 80px; }
.an-404__code { font: 800 clamp(90px, 16vw, 200px)/.9 var(--an-display); letter-spacing: -.06em; background: linear-gradient(90deg, #F0ABFC, #D946EF, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

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


/* =========================================================================
   Blog: index, archives, search, single post
   ====================================================================== */

.an-wrap { max-width: 1320px; margin: 0 auto; }
.an-grad-text { background: linear-gradient(90deg, #F0ABFC, #D946EF, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-bhero { padding: clamp(112px, 11vw, 140px) var(--an-gutter) clamp(36px, 5vw, 64px); background: radial-gradient(ellipse at 80% 20%, rgba(162, 28, 175, .25), transparent 55%); }
.an-bhero .an-wrap { display: flex; flex-direction: column; gap: 22px; }
.an-crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font: 500 13px/1.3 var(--an-body); }
.an-crumbs li { display: flex; align-items: center; gap: 8px; color: var(--an-lilac); font-weight: 600; }
.an-crumbs a { color: var(--an-muted); font-weight: 500; }
.an-crumbs a:hover { color: var(--an-lilac); }
.an-crumbs span { color: #4B5563; }
.an-bhero__title { margin: 0; font: 800 clamp(44px, 6.4vw, 96px)/.95 var(--an-display); letter-spacing: -.05em; }
.an-bhero__text { margin: 0; max-width: 60ch; font: 400 clamp(17px, 1.4vw, 20px)/1.6 var(--an-body); color: var(--an-soft); }

.an-bsec { padding: clamp(50px, 6vw, 90px) var(--an-gutter); }
.an-bsec--flush { padding-top: 0; }
.an-bsec--light { background: #F8FAFC; color: var(--an-ink); }
.an-kicker { display: block; font: 600 12px/1 var(--an-body); letter-spacing: .16em; color: var(--an-lilac); }
.an-kicker--dark { color: var(--an-violet); }
.an-kicker--muted { color: var(--an-muted); }
.an-shead { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.an-shead h2 { margin: 0; font: 800 clamp(30px, 4vw, 56px)/1 var(--an-display); letter-spacing: -.04em; }
.an-shead p { margin: 0; font-size: 17px; color: #374151; max-width: 40ch; }
.an-shead--row { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.an-shead--row a { font: 600 15px/1 var(--an-body); }

.an-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border-radius: 28px; overflow: hidden; background: var(--an-panel); border: 1px solid var(--an-line); color: #FFFFFF; transition: border-color .2s ease; }
.an-feature:hover { border-color: rgba(217, 70, 239, .55); color: #FFFFFF; }
.an-feature__art { min-height: 320px; margin: 10px; border-radius: 20px; background-color: #1F0A24; background-size: cover; background-position: center; }
.an-feature__body { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.an-feature__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font: 600 12px/1 var(--an-body); letter-spacing: .14em; color: var(--an-muted); }
.an-feature__title { font: 800 clamp(28px, 3.2vw, 44px)/1.05 var(--an-display); letter-spacing: -.035em; }
.an-feature__text { font-size: 17px; color: var(--an-muted); }
.an-feature__link { font: 600 15px/1 var(--an-body); color: var(--an-lilac); }

.an-btools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.an-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.an-chips--top { margin-bottom: 28px; }
.an-chip { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); display: inline-flex; align-items: center; font: 600 14px/1 var(--an-body); color: var(--an-soft); }
.an-chip:hover { border-color: var(--an-magenta); color: #FFFFFF; }
.an-chip.is-on { background: var(--an-grad); border-color: transparent; color: #FFFFFF; }
.an-bsearch { flex: 0 1 300px; min-width: 220px; }
.an-bsearch--wide { max-width: 560px; margin-bottom: 28px; flex: none; }
.an-bsearch input { width: 100%; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: var(--an-panel); color: #FFFFFF; font: 400 15px/1 var(--an-body); }

.an-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.an-bgrid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.an-bcard { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--an-panel); border: 1px solid var(--an-line); color: #FFFFFF; transition: border-color .2s ease; }
.an-bcard:hover { border-color: rgba(217, 70, 239, .55); color: #FFFFFF; }
.an-bcard__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.an-bcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-bcard__ring { display: none; }
.an-bcard__art::before, .an-bcard__art::after, .an-feature::before, .an-feature::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; z-index: 1; }
.an-bcard__art::before, .an-feature::before { right: -60px; top: -60px; width: 220px; height: 220px; }
.an-bcard__art::after, .an-feature::after { right: -20px; top: -20px; width: 140px; height: 140px; }
.an-feature { position: relative; }
.an-feature::before, .an-feature::after { border-color: rgba(217, 70, 239, .35); z-index: 0; }
.an-feature__art, .an-feature__body { position: relative; z-index: 1; }
.an-bcard__mark { position: absolute; left: 22px; bottom: 18px; font: 800 44px/1 var(--an-display); letter-spacing: -.04em; color: rgba(255, 255, 255, .9); }
.an-bcard__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.an-bcard__meta { display: flex; justify-content: space-between; gap: 10px; font: 600 11px/1 var(--an-body); letter-spacing: .14em; color: var(--an-muted); }
.an-bcard__meta span:first-child { color: var(--an-lilac); }
.an-bcard__title { font: 700 21px/1.2 var(--an-display); letter-spacing: -.02em; }
.an-bcard__text { font-size: 15px; line-height: 1.55; color: var(--an-muted); flex: 1; }
.an-bcard__date { font: 500 13px/1 var(--an-body); color: #6B7280; }
.an-bempty { text-align: center; color: var(--an-muted); }

.an-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(30px, 5vw, 70px); align-items: start; }
.an-poplist { margin: 0; padding: 0; list-style: none; }
.an-poplist li { border-top: 1px solid #E5E7EB; }
.an-poplist a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: baseline; padding: 20px 0; color: var(--an-ink); }
.an-poplist a:hover { color: var(--an-violet); }
.an-poplist__n { font: 800 28px/1 var(--an-display); background: var(--an-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-poplist__t { display: block; font: 700 19px/1.25 var(--an-display); }
.an-poplist__m { display: block; margin-top: 6px; font: 600 11px/1 var(--an-body); letter-spacing: .14em; color: #6B7280; }

.an-tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.an-topic { padding: 26px; border-radius: 22px; background: var(--an-panel); border: 1px solid var(--an-line); color: #FFFFFF; display: flex; flex-direction: column; gap: 12px; min-height: 200px; transition: border-color .2s ease; }
.an-topic:hover { border-color: rgba(217, 70, 239, .55); color: #FFFFFF; }
.an-topic__ico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--an-display); }
.an-topic__name { font: 700 22px/1.15 var(--an-display); }
.an-topic__text { font-size: 15px; line-height: 1.5; color: var(--an-muted); flex: 1; }
.an-topic__foot { display: flex; justify-content: space-between; gap: 10px; font: 600 13px/1 var(--an-body); color: var(--an-muted); }
.an-topic__go { color: var(--an-lilac); }

.an-rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.an-res { padding: 28px; border-radius: 24px; background: var(--an-panel); border: 1px solid var(--an-line); display: flex; flex-direction: column; gap: 14px; }
.an-res--hi { background: linear-gradient(150deg, #1F0A24, #3B0A45); border-color: rgba(217, 70, 239, .35); }
.an-res__type { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font: 600 11px/1 var(--an-body); letter-spacing: .14em; color: #FCE7F3; }
.an-res__title { font: 800 24px/1.12 var(--an-display); letter-spacing: -.02em; }
.an-res__text { font-size: 15px; line-height: 1.55; color: var(--an-muted); flex: 1; }
.an-res__btn { align-self: flex-start; height: 46px; padding: 0 20px; border-radius: 999px; background: #FFFFFF; color: var(--an-ink); display: inline-flex; align-items: center; font: 600 14px/1 var(--an-body); }
.an-res__btn:hover { color: var(--an-plum); }

.an-news { padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: linear-gradient(150deg, #3B0A45, #701A75 55%, #A21CAF); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: center; }
.an-news h2 { margin: 0 0 10px; font: 800 clamp(28px, 3.4vw, 46px)/1.02 var(--an-display); letter-spacing: -.04em; }
.an-news p { margin: 0; font-size: 17px; color: #FCE7F3; }
.an-news__btn { justify-self: start; height: 52px; padding: 0 26px; border-radius: 999px; background: #FFFFFF; color: var(--an-ink); display: inline-flex; align-items: center; font: 600 15px/1 var(--an-body); }

/* Single post */
.an-progress { position: fixed; left: 0; top: 0; z-index: 70; height: 3px; width: 0; background: var(--an-grad); }
.admin-bar .an-progress { top: 32px; }
.an-post__title { margin: 0; max-width: 22ch; font: 800 clamp(36px, 5.4vw, 78px)/1 var(--an-display); letter-spacing: -.045em; }
.an-post__by { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--an-line); }
.an-post__author { display: flex; align-items: center; gap: 12px; }
.an-post__orb { width: 44px; height: 44px; }
.an-post__name { display: block; font: 600 15px/1 var(--an-body); }
.an-post__date { display: block; margin-top: 4px; font-size: 13px; color: var(--an-muted); }
.an-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.an-share__label { font: 600 12px/1 var(--an-body); letter-spacing: .14em; color: var(--an-muted); margin-right: 4px; }
.an-share a, .an-share__copy { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--an-body); color: #FFFFFF; cursor: pointer; }
.an-share a:hover, .an-share__copy:hover { border-color: var(--an-magenta); color: #FFFFFF; }
.an-post__hero { margin: 0 auto; padding: 0 var(--an-gutter); display: flex; flex-direction: column; gap: 12px; box-sizing: content-box; }
.an-post__hero img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 28px; border: 1px solid var(--an-line); display: block; }
.an-post__hero figcaption { font-size: 13px; color: var(--an-muted); }
.an-post__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.an-post__grid--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.an-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.an-toc ol { margin: 0; padding: 0; list-style: none; }
.an-toc a { display: block; padding: 9px 0 9px 14px; border-left: 2px solid rgba(255, 255, 255, .1); font: 500 15px/1.35 var(--an-body); color: var(--an-muted); }
.an-toc a:hover, .an-toc a.is-on { color: #FFFFFF; border-left-color: var(--an-magenta); }
.an-post__body { max-width: 720px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.an-entry--post { font-size: 18px; }
.an-entry--post > p:first-child { font-size: 20px; color: #FFFFFF; }
.an-entry--post h2 { scroll-margin-top: 110px; }
.an-entry--post blockquote, .an-entry--post .wp-block-quote { padding: 24px 28px; border-radius: 22px; border-left: 3px solid var(--an-magenta); background: linear-gradient(150deg, #1F0A24, #3B0A45); }
.an-entry--post blockquote p { margin: 0; }
.an-post__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.an-post__tags a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); font: 500 13px/1 var(--an-body); color: var(--an-soft); }
.an-post__cta { padding: 26px; border-radius: 24px; background: linear-gradient(150deg, #3B0A45, #701A75 55%, #A21CAF); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.an-post__cta-t { display: block; font: 800 24px/1.1 var(--an-display); }
.an-post__cta-s { display: block; margin-top: 6px; font-size: 15px; color: #FCE7F3; }
.an-post__cta a { height: 50px; padding: 0 24px; border-radius: 999px; background: #FFFFFF; color: var(--an-ink); display: inline-flex; align-items: center; font: 600 15px/1 var(--an-body); }
.an-post__cta a:hover { color: var(--an-plum); }

@media (max-width: 999px) {
  .an-post__grid { grid-template-columns: minmax(0, 1fr); }
  .an-toc { position: static; }
}
@media (max-width: 599px) {
  .an-poplist a { grid-template-columns: 40px 1fr auto; }
  .an-feature__art { min-height: 220px; }
}

/* Brand rings on feature panels */
.an-news, .an-post__cta { position: relative; overflow: hidden; }
.an-news::before, .an-news::after, .an-post__cta::before, .an-post__cta::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }
.an-news::before, .an-post__cta::before { right: -60px; top: -60px; width: 220px; height: 220px; }
.an-news::after, .an-post__cta::after { right: -20px; top: -20px; width: 140px; height: 140px; }
.an-news > *, .an-post__cta > * { position: relative; }
