/*
 * Attar Group brand layer.
 * Loaded after the site's own stylesheet; it re-points the colour and type tokens at the
 * brand kit (see /brand/brand-kit.html) and styles the blocks attar-enhance.js adds.
 */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/brand/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/brand/fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens: html[class] outranks the generated font classes on <html> ---- */
html[class], :root {
  --attar-blue: #084c7f;        /* the logo colour */
  --attar-navy: #062c4a;
  --attar-ink: #0d1427;
  --attar-sky: #45c0ed;         /* accent */
  --attar-ice: #caf1f8;
  --attar-steel: #c9d6e6;

  --brand: var(--attar-blue);
  --blue: #0b63a5;
  --navy: var(--attar-navy);
  --sky: var(--attar-sky);
  --ice: var(--attar-ice);
  --font-display: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  --display: 'Montserrat', system-ui, sans-serif;
}

/* ---- type: Montserrat is narrower than the old display face, so tighten and re-weight ---- */
.display { font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.title { font-weight: 800; letter-spacing: -0.025em; }
.brand, .ld-word { font-weight: 800; letter-spacing: 0.22em; }
.brand b, .ld-word .b { font-weight: 400; color: var(--attar-sky); }
.menu a { font-weight: 800; letter-spacing: -0.02em; }
.stats b, .post-card h3, .art-hero h1, .prose h2, .prose h3, .prose blockquote { letter-spacing: -0.02em; }
.co-wordmark b { font-weight: 800; letter-spacing: 0; }
.co-wordmark small { font-family: 'Montserrat', sans-serif; font-weight: 400; letter-spacing: 0.22em; }

/* ---- colour: buttons, glows and gradients move to Attar Blue and the sky accent ---- */
/* Highlighted words in headlines: clean colour, no glow. The headline lines animate inside clipping
   masks, which cut a glow off at the line edges and left a visible box behind the words. */
.grad, .grad * { color: #8fdcf7; text-shadow: none !important; }
.btn.primary { background: linear-gradient(120deg, #0f74bf, var(--attar-blue)); box-shadow: 0 10px 40px rgba(8, 76, 127, 0.55); }
.curtain { background: linear-gradient(160deg, var(--attar-blue), #050b16 70%); }
.stats b { background: linear-gradient(180deg, #fff, #8fdcf7); -webkit-background-clip: text; background-clip: text; }
.chips li, .pc-tags span { border-color: rgba(69, 192, 237, 0.35); background: rgba(8, 76, 127, 0.28); }
.co-logo { height: 118px; filter: drop-shadow(0 0 22px rgba(69, 192, 237, 0.25)); }
::selection { background: var(--attar-blue); }

/* Keep scrolling and pointer feedback on the browser's compositor. Full-screen moving noise,
   backdrop blurs over a live WebGL canvas and duplicate cursors were competing for every frame. */
.grain, .warp-lines, .cursor-ring, .cursor-dot, .ax-cursor { display: none !important; }
html, body { cursor: auto !important; }
a, button, [role="button"], summary, select { cursor: pointer !important; }
input, textarea, [contenteditable="true"] { cursor: text !important; }
.glass, .post-card, .menu, .contact-grid > div, .ax-spin-hint {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.glass { background: linear-gradient(160deg, rgba(14, 34, 66, 0.92), rgba(5, 11, 22, 0.88)); }
.post-card { background: linear-gradient(160deg, rgba(14, 34, 66, 0.94), rgba(5, 11, 22, 0.9)); }
.glass, .post-card { will-change: auto; }
.scroll-hint.gone i { animation-play-state: paused; }

/* The original branded opening uses a single translating layer. Navigation stays available. */
.curtain { display: none !important; }
.loader { pointer-events: none; clip-path: none !important; -webkit-clip-path: none !important; contain: paint; }
.ld-mark path { animation: ax-mark-draw 1500ms cubic-bezier(.65,0,.35,1) both, ax-mark-fill 450ms ease-out 1300ms forwards; }
.ld-mark path:nth-child(2) { animation-delay: 140ms, 1440ms; }
.ld-word span { animation: ax-word-in 800ms cubic-bezier(.16,1,.3,1) 250ms both; }
.ld-word span:nth-child(2) { animation-delay: 320ms; }
.ld-num { min-width: 5.5ch; text-align: center; font-variant-numeric: tabular-nums; }
.ld-num::after { content: '%'; margin-left: .2em; }
html.ax-opening-done .loader, html.ax-menu-open .loader { display: none !important; }
html:has(main.home):not(.ax-opening-done) .nav { z-index: 160; }
@keyframes ax-mark-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes ax-mark-fill { to { fill: var(--attar-steel); stroke: transparent; } }
@keyframes ax-word-in { from { transform: translateY(120%); } to { transform: none; } }
@keyframes ax-menu-row { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
html { scrollbar-gutter: stable; }
html.ax-menu-open body { overflow: hidden; }
.menu {
  background: linear-gradient(150deg, #071326, #040a16);
  clip-path: none !important;
  -webkit-clip-path: none !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 160ms ease-out, transform 180ms ease-out, visibility 0s linear 180ms;
}
html.ax-menu-open .menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}
.menu li a, .menu-foot { opacity: 1 !important; transform: none !important; }
html.ax-menu-open .menu li { animation: ax-menu-row 320ms cubic-bezier(.16,1,.3,1) both; animation-delay: var(--ax-delay, 0ms); }
html.ax-menu-open .menu li:nth-child(2) { --ax-delay: 22ms; }
html.ax-menu-open .menu li:nth-child(3) { --ax-delay: 44ms; }
html.ax-menu-open .menu li:nth-child(4) { --ax-delay: 66ms; }
html.ax-menu-open .menu li:nth-child(5) { --ax-delay: 88ms; }
html.ax-menu-open .menu li:nth-child(6) { --ax-delay: 110ms; }
html.ax-menu-open .menu li:nth-child(7) { --ax-delay: 132ms; }
html.ax-menu-open .menu li:nth-child(n+8) { --ax-delay: 140ms; }
html.ax-menu-open .menu-foot { animation: ax-menu-row 320ms ease-out 140ms both; }
html.ax-menu-open .menu-btn i:first-child { transform: translateY(3.75px) rotate(45deg); }
html.ax-menu-open .menu-btn i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 900px) { .scroll-hint { display: none; } }

:focus-visible { outline: 2px solid var(--attar-sky); outline-offset: 4px; border-radius: 4px; }
.btn:focus-visible, .menu-btn:focus-visible, .tour-btn:focus-visible { border-radius: 99px; }

/* ---- "Trusted by" row inside the group panel ---- */
.ax-clients { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
.ax-clients h3 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.ax-clients ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.ax-clients li { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; padding: 6px 11px; border-radius: 6px; color: #e8eef7; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

/* ---- projects band: an opaque strip between two stations, so the photos read cleanly ---- */
.ax-projects { position: relative; z-index: 1; padding: 16vh 8vw 18vh; background: linear-gradient(rgba(5, 11, 22, 0), #050b16 14%, #050b16 86%, rgba(5, 11, 22, 0)); }
.ax-projects .eyebrow { margin-bottom: 18px; }
.ax-projects h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 56px); letter-spacing: -0.03em; line-height: 1.05; max-width: 16em; margin-bottom: 14px; }
.ax-projects > p { color: #b3c2d6; font-weight: 300; font-size: 16px; line-height: 1.7; max-width: 46em; margin-bottom: 40px; }
.ax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ax-grid figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #0a1a33; }
.ax-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ax-grid figure:hover img { transform: scale(1.05); }
.ax-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 15px; background: linear-gradient(rgba(5, 11, 22, 0), rgba(5, 11, 22, 0.92)); }
.ax-grid figcaption b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.ax-grid figcaption span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--attar-sky); }
.ax-projects .ax-more { display: inline-flex; margin-top: 30px; }

/* ---- contact block: details and the enquiry form, inside the finale ---- */
.ax-contact { grid-column: 1 / -1; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; padding: 0 !important; border: 0 !important; background: none !important; backdrop-filter: none !important; }
.ax-card { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(7, 17, 34, 0.88); }
.ax-card h3 { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--attar-sky); margin: 0 0 10px; font-weight: 600; }
.ax-card h3:not(:first-child) { margin-top: 22px; }
.ax-card p, .ax-card a { font-size: 15px; line-height: 1.65; color: #c8d5e6; }
.ax-card a { display: block; border-bottom: 0; }
.ax-card a:hover { color: #fff; }
.ax-badge { display: inline-block; margin-top: 22px; padding: 7px 12px; border-radius: 6px; border: 1px solid rgba(69, 192, 237, 0.4); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: var(--attar-ice); }
.ax-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ax-form .full { grid-column: 1 / -1; }
.ax-form label { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--attar-sky); margin-bottom: 7px; font-weight: 600; }
.ax-form input, .ax-form select, .ax-form textarea { width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 10px; font: inherit; font-size: 16px; color: var(--text); background: rgba(5, 11, 22, 0.7); border: 1px solid rgba(160, 200, 255, 0.25); cursor: text; }
.ax-form select { cursor: pointer; }
.ax-form select option { background: #0a1a33; }
.ax-form textarea { resize: vertical; line-height: 1.5; }
.ax-form input:focus-visible, .ax-form select:focus-visible, .ax-form textarea:focus-visible { outline: none; border-color: var(--attar-sky); box-shadow: 0 0 0 3px rgba(69, 192, 237, 0.25); }
.ax-form [aria-invalid='true'] { border-color: #ff9a8f; }
.ax-error { margin-top: 6px; font-size: 13px; color: #ff9a8f; }
.ax-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ax-foot p { font-size: 14px; color: #ff9a8f; }
.ax-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ax-sent { text-align: center; padding: 30px 10px; }
.ax-sent h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; text-transform: none; color: #fff; margin-bottom: 8px; }

@media (max-width: 900px) {
  .ax-grid, .ax-contact, .ax-form { grid-template-columns: 1fr; }
  .ax-projects { padding: 12vh 6vw 14vh; }
  .co-logo { height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-grid img { transition: none; }
}

/* ---- owner band and the author card under each story ---- */
.ax-founder { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: 6vh 8vw 18vh; background: #050b16; }
.ax-projects + .ax-founder { margin-top: -12vh; }
.ax-founder::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16vh; background: linear-gradient(#050b16, rgba(5, 11, 22, 0)); transform: translateY(100%); pointer-events: none; }
.ax-portrait { width: 100%; aspect-ratio: 1; border-radius: 24px; object-fit: cover; border: 1px solid var(--line); background: linear-gradient(140deg, #0b63a5, #062c4a); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.ax-initials { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 110px); letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.92); }
.ax-founder h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.03em; line-height: 1.05; }
.ax-role { color: var(--attar-sky); font-family: var(--display); font-weight: 600; margin: 10px 0 22px; }
.ax-bio { color: #b9c8dc; font-weight: 300; font-size: 17px; line-height: 1.75; max-width: 42em; white-space: pre-line; }
.ax-links-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.ax-links-row a { color: var(--attar-sky); border-bottom: 1px solid rgba(69, 192, 237, 0.4); padding-bottom: 2px; font-weight: 600; font-size: 15px; }

/* ---- people on the Insights pages: portrait frame, byline, share row, author card, owner feature, profile page ---- */
/* The portrait sits in a thin sky-to-blue ring with a second outline set off behind it. */
.ax-frame { position: relative; isolation: isolate; border-radius: 28px; padding: 1px; background: linear-gradient(150deg, rgba(69, 192, 237, 0.75), rgba(8, 76, 127, 0.25) 45%, rgba(69, 192, 237, 0.4)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 90px rgba(11, 99, 165, 0.28); }
.ax-frame::before { content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid rgba(69, 192, 237, 0.28); border-radius: inherit; z-index: -1; pointer-events: none; }
.ax-frame .ax-portrait { display: block; height: auto; border: 0; border-radius: 27px; box-shadow: none; }
.ax-frame .ax-initials { display: grid; background: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(140deg, #0b63a5, #062c4a); }

.ax-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(200, 225, 255, 0.26); color: #e8f1fb; font: 600 14px/1 var(--font-sans, inherit); letter-spacing: 0.01em; background: rgba(10, 26, 51, 0.5); transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out; touch-action: manipulation; }
.ax-pill:hover { border-color: var(--attar-sky); background: rgba(69, 192, 237, 0.14); }
.ax-pill:active { transform: scale(0.97); }
.ax-pill.primary { border-color: transparent; background: linear-gradient(120deg, #0b63a5, #084c7f); box-shadow: 0 10px 30px rgba(8, 76, 127, 0.45); }
.ax-pill.primary:hover { background: linear-gradient(120deg, #1279c4, #0b63a5); }
.ax-pill:focus-visible, .ax-by:focus-visible { outline: 2px solid var(--attar-sky); outline-offset: 3px; }
.ax-ico { flex: none; }
.ax-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.ax-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(69, 192, 237, 0.55); background: linear-gradient(140deg, #0b63a5, #062c4a); color: #fff; font: 700 14px/1 var(--display); letter-spacing: -0.02em; }
.ax-avatar-mark svg { width: 22px; height: auto; fill: #fff; }

/* Under a story's title: who wrote it, then the date and reading time. */
.art-byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ax-by { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; border-radius: 12px; }
.ax-by b { display: block; font: 700 16px/1.25 var(--display); color: #fff; transition: color 0.2s ease-out; }
.ax-by i { display: block; margin-top: 3px; font-style: normal; font-size: 13px; color: #9fb3cc; }
a.ax-by:hover b { color: var(--attar-sky); }

.ax-share { max-width: 720px; margin: 8vh auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ax-share > span:first-child { margin-right: 8px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #9fb3cc; }

/* The card under a story. */
.ax-author { max-width: 860px; margin: 6vh auto 0; padding: clamp(22px, 3vw, 38px); display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: clamp(26px, 4vw, 52px); align-items: center; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 160% at 0% 0%, rgba(11, 99, 165, 0.3), transparent 62%), rgba(8, 18, 36, 0.78); }
.ax-author .eyebrow { margin-bottom: 10px; }
.ax-author b { display: block; font: 800 clamp(22px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -0.02em; }
.ax-author .ax-role { display: block; margin: 6px 0 12px; font-size: 15px; }
.ax-author p:not(.eyebrow) { color: #b9c8dc; font-weight: 300; font-size: 16px; line-height: 1.7; }
.ax-author .ax-initials { font-size: clamp(34px, 4vw, 56px); }
.ax-author .ax-actions { margin-top: 18px; }

/* The owner, on the Insights index. */
.ax-voice { margin: 0 0 12vh; padding: clamp(26px, 5vw, 72px); display: grid; grid-template-columns: minmax(200px, 380px) 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(110% 150% at 0% 0%, rgba(11, 99, 165, 0.32), transparent 60%), rgba(8, 18, 36, 0.78); }
.ax-voice h2 { font: 800 clamp(34px, 4.4vw, 64px)/1.03 var(--display); letter-spacing: -0.03em; }
.ax-voice .ax-role, .ax-profile .ax-role { margin: 12px 0 22px; font-size: 17px; }
.ax-voice-bio { max-width: 40em; color: #b9c8dc; font-weight: 300; font-size: 17px; line-height: 1.75; }
.ax-voice-bio + .ax-voice-bio { margin-top: 1em; }
.pc-by { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: #c9d6e6; }
.pc-by .ax-avatar { width: 28px; height: 28px; font-size: 10px; }

/* A person's own page. */
.ax-journal .blog-hero.ax-profile { max-width: none; min-height: 0; display: grid; grid-template-columns: 1fr minmax(220px, 420px); gap: clamp(36px, 6vw, 96px); align-items: center; padding: 22vh 0 12vh; }
/* The portrait takes the right-hand side, over the backdrop's particle mark, so the text stays on clear ground. */
.ax-profile .ax-frame { order: 2; }
.ax-journal .ax-profile .display { font-size: clamp(40px, 5.4vw, 88px); line-height: 1; }
.ax-profile-stories { scroll-margin-top: 96px; }
.ax-profile-stories h2 { font: 800 clamp(28px, 3vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 34px; }

/* ---- reading a story: contents list, related stories, the person's quote, email sign-up, WhatsApp ---- */
.ax-read { max-width: 720px; margin: 0 auto; }
.ax-journal .prose h2 { scroll-margin-top: 110px; }
.ax-toc { margin-bottom: 5vh; padding: 6px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8, 18, 36, 0.78); }
.ax-toc summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--attar-sky); list-style: none; }
.ax-toc summary::-webkit-details-marker { display: none; }
.ax-toc summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease-out; }
.ax-toc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.ax-toc summary:focus-visible, .ax-toc a:focus-visible { outline: 2px solid var(--attar-sky); outline-offset: 3px; border-radius: 6px; }
.ax-toc ol { list-style: none; margin: 4px 0 12px; padding: 0; border-left: 1px solid var(--line); }
.ax-toc a { display: flex; align-items: center; min-height: 44px; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; color: #9fb3cc; font-size: 15px; line-height: 1.4; transition: color 0.2s ease-out, border-color 0.2s ease-out; }
.ax-toc a:hover { color: #fff; }
.ax-toc a[aria-current] { color: #fff; border-left-color: var(--attar-sky); font-weight: 600; }
/* Wide screens: the list stays beside the text as you read, and is always open. */
@media (min-width: 1400px) {
  .ax-read.has-toc { max-width: 1240px; display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; column-gap: 48px; align-items: start; }
  .ax-read.has-toc .prose { grid-column: 2; margin: 0; }
  .ax-toc { grid-column: 1; justify-self: end; width: min(220px, 100%); position: sticky; top: 120px; margin: 6px 0 0; padding: 0; border: 0; background: none; }
  .ax-toc summary { min-height: 0; margin-bottom: 14px; pointer-events: none; }
  .ax-toc summary::after { display: none; }
  .ax-toc a { min-height: 0; padding: 7px 0 7px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) { html:has(.ax-toc) { scroll-behavior: smooth; } }

.ax-journal .ax-related { max-width: 1200px; }
.ax-journal .ax-related .blog-grid { margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 384px)); }

.ax-quote { margin: 0 0 24px; padding-left: 22px; border-left: 3px solid var(--attar-sky); }
.ax-quote p { max-width: 24em; font: 700 clamp(20px, 2vw, 28px)/1.32 var(--display); letter-spacing: -0.01em; color: #fff; }
.ax-quote p::before { content: '\201C'; }
.ax-quote p::after { content: '\201D'; }

.ax-subscribe { max-width: 1200px; margin: 10vh auto 8vh; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 160% at 100% 0%, rgba(11, 99, 165, 0.28), transparent 60%), rgba(8, 18, 36, 0.78); }
.ax-subscribe h2 { font: 800 clamp(26px, 2.6vw, 38px)/1.1 var(--display); letter-spacing: -0.02em; }
.ax-subscribe .eyebrow { margin-bottom: 14px; }
.ax-subscribe > div > p:last-child { margin-top: 12px; color: #b9c8dc; font-weight: 300; font-size: 16px; line-height: 1.65; }
.ax-sub-form { position: relative; }
.ax-sub-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #c9d6e6; }
.ax-sub-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ax-sub-row input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(200, 225, 255, 0.34); background: rgba(5, 11, 22, 0.72); color: #fff; font: 400 16px/1 inherit; }
.ax-sub-row input[type=email]::placeholder { color: #8499b3; }
.ax-sub-row input[type=email]:focus-visible { outline: 2px solid var(--attar-sky); outline-offset: 2px; border-color: transparent; }
.ax-sub-row input[aria-invalid=true] { border-color: #ff9d8f; }
.ax-sub-row .ax-pill { min-height: 48px; padding: 0 26px; }
.ax-sub-row .ax-pill[disabled] { opacity: 0.6; }
.ax-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ax-sub-note { min-height: 22px; margin-top: 10px; font-size: 14px; line-height: 1.5; color: #9fd4ff; }
.ax-sub-note.bad { color: #ffb4a8; }
@media (hover: hover) and (pointer: fine) { .ax-journal .ax-sub-row input { cursor: text; } }

.btn.ax-wa { background: #0f7a43; color: #fff; }
.btn.ax-wa span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .ax-subscribe { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-toc a, .ax-toc summary::after { transition: none; }
}

/* A short compositor-only reveal brings the portrait into view. */
html.ax-motion .ax-voice .ax-portrait, html.ax-motion .ax-author .ax-portrait { opacity: 0; transform: translateY(18px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
html.ax-motion .ax-voice.ax-shown .ax-portrait, html.ax-motion .ax-author.ax-shown .ax-portrait,
html.ax-motion-failsafe .ax-voice .ax-portrait, html.ax-motion-failsafe .ax-author .ax-portrait { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ax-voice, .ax-journal .blog-hero.ax-profile { grid-template-columns: 1fr; }
  .ax-voice .ax-frame, .ax-profile .ax-frame { max-width: 240px; }
  .ax-profile .ax-frame { order: 0; }
  .ax-journal .blog-hero.ax-profile { padding: 16vh 0 9vh; }
  .ax-frame::before { inset: 10px -10px -10px 10px; }
}
@media (max-width: 640px) {
  .ax-author { grid-template-columns: 1fr; }
  .ax-author .ax-frame { max-width: 150px; }
  .ax-share .ax-pill { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .ax-share > span:first-child { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-pill, .ax-by b { transition: none; }
  .ax-pill:active { transform: none; }
}
.ax-story { display: flex; }

/* ---- journal pages rendered by the server ---- */
.ax-journal .nav::before { opacity: 1; }
.ax-links { display: flex !important; }
.ax-links a[aria-current] { color: #fff; }
.ax-skip { position: fixed; left: 16px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 10px; background: #fff; color: #06101f; font-weight: 600; }
.ax-skip:focus { top: 16px; }
.ax-journal .post-card { transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ax-journal .art-cover > * { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .ax-founder { grid-template-columns: 1fr; padding: 4vh 6vw 14vh; }
  .ax-founder .ax-portrait { max-width: 220px; }
  .ax-links { gap: 14px; font-size: 11px; letter-spacing: 0.08em; }
  .ax-journal .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-journal .post-card { transition: none; }
}

/* ---- journal motion (journal.js): hidden until animated in; shown anyway if the script never runs ---- */
html.ax-motion .ax-journal .blog-hero > *, html.ax-motion .ax-journal .art-hero > *, html.ax-motion .ax-journal .post-card,
html.ax-motion .ax-journal .prose > *, html.ax-motion .ax-journal .ax-author, html.ax-motion .ax-journal .ax-voice, html.ax-motion .ax-journal .ax-share, html.ax-motion .ax-journal .ax-subscribe, html.ax-motion .ax-journal .next-up, html.ax-motion .ax-journal .art-cover { opacity: 0; }
html.ax-motion-failsafe .ax-journal * { opacity: 1 !important; }
.ax-word { display: inline-block; white-space: nowrap; vertical-align: top; padding-bottom: 0.06em; clip-path: inset(-0.4em -0.3em 0 -0.3em); perspective: 600px; }
.ax-char { display: inline-block; transform-origin: 50% 100%; }
.ax-journal .art-cover { overflow: hidden; }
.ax-journal .art-cover > * { will-change: transform; }
.ax-journal .webgl-wrap canvas { position: absolute; inset: 0; }
html.ax-covering .curtain { clip-path: inset(0 0 0 0); }
html.ax-covering .curtain .c-mark { opacity: 1; }

/* ---- finale spacing and a compact, single-line footer ---- */
.finale .cta-row.center { margin-top: 48px; }
.finale .foot { margin-top: 7vh; }
.foot { padding: 22px 0; align-items: center; gap: 8px 28px; }

/* ---- footer credit ---- */
.ax-credit { margin: 0; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.ax-credit a { color: var(--attar-sky); font-weight: 600; border-bottom: 1px solid rgba(69, 192, 237, 0.35); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.ax-credit a:hover { color: #fff; border-color: #fff; }

/* ---- outlined buttons: the original turned them white on hover but left the text white too ---- */
.btn.ghost:hover, .btn.ghost:focus-visible { color: #06101f; border-color: #fff; }
.btn.ghost:hover span, .btn.ghost:focus-visible span { color: #06101f; }

/* ---- steel building: drag to turn it ---- */
.ax-spin-hint { position: absolute; left: 62%; top: calc(50% + 31vh); display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(160, 200, 255, 0.18); background: rgba(5, 11, 22, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #b9c8dc; pointer-events: none; }
.ax-spin-hint svg { width: 16px; height: 16px; color: var(--attar-sky); }
html.ax-grab body, html.ax-grabbing body { cursor: none; }
html.ax-grab .ax-ring, html.ax-grabbing .ax-ring { border-color: rgba(69, 192, 237, 0.95); background: rgba(69, 192, 237, 0.12); }
html.ax-grabbing { user-select: none; -webkit-user-select: none; }
@media (hover: none), (pointer: coarse), (max-width: 900px) { .ax-spin-hint { display: none; } }

/* ---- draft preview banner on a story page ---- */
.ax-draft-note { align-self: flex-start; padding: 8px 14px; border-radius: 99px; background: rgba(255, 196, 80, 0.14); border: 1px solid rgba(255, 196, 80, 0.45); color: #ffd28a; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.ax-journal .prose img { max-width: 100%; height: auto; }
.ax-journal .prose .ql-align-center { text-align: center; }
.ax-journal .prose .ql-align-right { text-align: right; }
.ax-journal .prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: rgba(10, 26, 51, 0.7); border: 1px solid var(--line); font-size: 15px; }


/* ---- solution and contact pages (search and answer-engine landing pages) ---- */
.ax-about .blog-hero { min-height: 0; padding-top: clamp(120px, 16vh, 170px); padding-bottom: 64px; }
.ax-about .blog-hero .display { max-width: 18ch; font-size: clamp(36px, 6vw, 86px); line-height: 1.08; }
.ax-about .blog-hero .lead { max-width: 64ch; }
.ax-sol .art-hero .eyebrow { margin: 18px 0 10px; }
.ax-sol-answer, .ax-sol-contact, .ax-sol-related, .ax-contact-strip, .ax-contact-help { max-width: 760px; margin-left: auto; margin-right: auto; }
.ax-sol-answer { margin-top: 4vh; padding: 26px 28px; border-radius: 18px; border: 1px solid rgba(95, 180, 255, 0.35); background: linear-gradient(150deg, rgba(26, 95, 168, 0.22), rgba(7, 17, 34, 0.75)); }
.ax-sol-answer p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: #eef4fb; }
.ax-sol-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ax-sol-facts li { padding: 7px 12px; border-radius: 99px; font-size: 13px; color: var(--ice); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.ax-sol-contact { margin-top: 18px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(7, 17, 34, 0.88); }
.ax-sol-contact .eyebrow { margin-bottom: 8px; }
.ax-sol-contact > b { display: block; font-family: var(--display); font-size: 18px; color: #fff; }
.ax-sol-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.ax-sol-actions .btn { padding: 13px 22px; min-height: 44px; }
.ax-sol-addr { margin-top: 8px; font-size: 14px; color: var(--muted); }
.ax-sol-addr a { color: var(--ice); }
.ax-sol .prose h2 { scroll-margin-top: 90px; }
.ax-faq { display: grid; gap: 10px; margin-top: 14px; }
.ax-faq details { border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 26, 51, 0.55); transition: border-color 0.2s; }
.ax-faq details[open] { border-color: rgba(95, 180, 255, 0.4); }
.ax-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary::after { content: '+'; flex: none; color: var(--sky); font-size: 20px; line-height: 1; transition: transform 0.25s; }
.ax-faq details[open] summary::after { transform: rotate(45deg); }
.ax-faq details p { padding: 0 20px 18px; margin: 0; }
.ax-sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.ax-sol-related .ax-sol-grid { padding: 0; margin-top: 14px; }
.ax-sol-related { margin-top: 8vh; }
.ax-sol-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(7, 17, 34, 0.8); color: inherit; text-decoration: none; transition: border-color 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ax-sol-card:hover, .ax-sol-card:focus-visible { border-color: rgba(95, 180, 255, 0.55); transform: translateY(-3px); }
.ax-sol-card h2 { font-family: var(--display); font-size: 19px; line-height: 1.3; color: #fff; margin: 0; }
.ax-sol-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.ax-sol-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--sky); }
.ax-contact-strip { margin-top: 8vh; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(10, 26, 51, 0.6); display: grid; gap: 12px; }
.ax-contact-strip > div { display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.ax-contact-strip b { color: #fff; font-weight: 600; }
.ax-contact-strip a:not(.btn) { color: var(--ice); }
.ax-contact-strip .btn { justify-self: start; padding: 12px 22px; }
.ax-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.ax-contact-grid .ax-sol-contact { margin: 0; max-width: none; }
.ax-contact-help { margin-top: 8vh; }
.ax-foot-contact { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.ax-foot-contact a { color: var(--ice); }
@media (prefers-reduced-motion: reduce) { .ax-sol-card, .ax-faq summary::after { transition: none; } .ax-sol-card:hover { transform: none; } }
.ax-journal .foot { flex-wrap: wrap; }
/* home page: links to every solution page under the contact block */
.ax-sol-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ax-sol-links a { padding: 8px 14px; border-radius: 99px; font-size: 13px; color: var(--ice); text-decoration: none; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.ax-sol-links a:hover, .ax-sol-links a:focus-visible { border-color: rgba(95, 180, 255, 0.6); color: #fff; }

html.ax-grab body { cursor: grab !important; }
html.ax-grabbing body { cursor: grabbing !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader, .curtain, .webgl-wrap canvas, .scroll-hint, .tour-btn { display: none !important; }
  .sec .panel, .sec .glass, .sec .fx, .sec .title, .sec .display, .sec .title *, .sec .display *,
  .sec .chips li, .home-journal .post-card,
  html.ax-motion .ax-journal .blog-hero > *, html.ax-motion .ax-journal .art-hero > *,
  html.ax-motion .ax-journal .post-card, html.ax-motion .ax-journal .prose > *,
  html.ax-motion .ax-journal .ax-author, html.ax-motion .ax-journal .ax-voice,
  html.ax-motion .ax-journal .ax-share, html.ax-motion .ax-journal .ax-subscribe,
  html.ax-motion .ax-journal .next-up, html.ax-motion .ax-journal .art-cover,
  html.ax-motion .ax-voice .ax-portrait, html.ax-motion .ax-author .ax-portrait {
    opacity: 1 !important; transform: none !important; visibility: visible !important; clip-path: none !important;
  }
}
