/* ==========================================================================================================
   الكرم بلس الرقمية — website styles («الأضلاع الستة»). Contract: platform/themes/apexa/DESIGN.md
   Phone first. Logical properties; direction comes from body[dir]. Motion is gated by html.ak-motion (set before
   paint when motion is allowed) and, for anything the script reveals, html.ak-ready (set by js/alkaram.js).
   ========================================================================================================== */

/* 1. Face ------------------------------------------------------------------------------------------------- */
@font-face {
    font-family: 'SaudiWeb';
    src: url('../fonts/saudiweb/SaudiWeb-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SaudiWeb';
    src: url('../fonts/saudiweb/SaudiWeb-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 2. Tokens ----------------------------------------------------------------------------------------------- */
:root {
    --ak-black: #000000;
    --ak-night: #0A0A0A;
    --ak-coal: #141414;
    --ak-line: rgba(255, 255, 255, .10);
    --ak-line-strong: rgba(255, 255, 255, .22);
    --ak-ink: #FFFFFF;
    --ak-text: #E6E6E6;
    --ak-muted: #A8A8A8;
    --ak-faint: #7C7C7C;
    --ak-yellow: #FCBE0B;
    --ak-yellow-hi: #FFD24A;
    --ak-yellow-soft: rgba(252, 190, 11, .12);
    --ak-font: 'SaudiWeb', Tahoma, 'Segoe UI', sans-serif;
    --ak-ease: cubic-bezier(.2, 0, 0, 1);
    --ak-ease-out: cubic-bezier(.16, 1, .3, 1);
    --ak-gutter: 20px;
    --ak-section: clamp(72px, 9vw, 136px);
    --ak-radius: 12px;
    --ak-hexagon: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
@media (min-width: 768px) { :root { --ak-gutter: 32px; } }

/* 3. Base ------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ak-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--ak-black);
    color: var(--ak-text);
    font-family: var(--ak-font);
    font-size: 16px;
    line-height: 1.95;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 17px; } }
h1, h2, h3, h4, h5, h6 { font-family: var(--ak-font); font-weight: 700; color: var(--ak-ink); line-height: 1.38; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ak-yellow); color: #000; }
:focus-visible { outline: 2px solid var(--ak-yellow); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.preloader, #preloader, .preloader-wrap { display: none !important; }

.ak-skip {
    position: fixed; z-index: 100; inset-block-start: 8px; inset-inline-start: 8px;
    padding: 10px 16px; background: var(--ak-yellow); color: #000; font-weight: 700; text-decoration: none;
    border-radius: 8px; transform: translateY(-160%);
}
.ak-skip:focus { transform: none; }

.ak-container { width: 100%; max-width: calc(1240px + var(--ak-gutter) * 2); margin-inline: auto; padding-inline: var(--ak-gutter); }
.ak-main { display: block; padding-top: var(--ak-header-h); outline: none; }
.ak-icon { width: 22px; height: 22px; flex: none; }

/* 4. Buttons, chips, links, fields ------------------------------------------------------------------------ */
/* The hex-pill: an elongated hexagon drawn on ::before (so the element keeps a visible focus ring). */
.ak-btn {
    --tip: 14px;
    --btn-bg: var(--ak-yellow);
    --btn-ink: #000;
    --btn-ground: var(--ak-black);
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 calc(var(--tip) + 20px);
    font: 700 16px/1.2 var(--ak-font); color: var(--btn-ink); text-decoration: none; text-align: center;
    background: none; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; user-select: none;
    transition: transform .2s var(--ak-ease), color .2s var(--ak-ease);
}
.ak-btn::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: var(--btn-bg);
    clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
    transition: background-color .2s var(--ak-ease);
}
.ak-btn > span { display: inline-flex; align-items: center; gap: 10px; }
.ak-btn .ak-icon { width: 20px; height: 20px; }
.ak-btn:active { transform: scale(.97); }
.ak-btn:focus-visible { outline-offset: 4px; }
.ak-btn--lg { min-height: 56px; font-size: 17px; --tip: 16px; padding: 0 calc(var(--tip) + 26px); }
.ak-btn--block { display: flex; width: 100%; }
.ak-btn--yellow { --btn-bg: var(--ak-yellow); --btn-ink: #000; }
.ak-btn--black { --btn-bg: #000; --btn-ink: var(--ak-yellow); }
.ak-btn--black:focus-visible { outline-color: #000; }
/* Outlined: the line is the ::before hexagon, the ground an inner hexagon on ::after. */
.ak-btn--line { --btn-bg: var(--ak-line-strong); --btn-ink: var(--ak-ink); }
.ak-btn--line::after {
    content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--btn-ground);
    clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
}
@media (hover: hover) {
    .ak-btn--yellow:hover { --btn-bg: var(--ak-yellow-hi); }
    .ak-btn--black:hover { --btn-bg: #1a1a1a; }
    .ak-btn--line:hover { --btn-bg: var(--ak-yellow); color: var(--ak-yellow); }
}
.ak-btn--yellow:active { --btn-bg: var(--ak-yellow-hi); }

.ak-chip {
    --tip: 10px;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 calc(var(--tip) + 14px);
    font: 700 14.5px/1.3 var(--ak-font); color: var(--ak-text); text-decoration: none; white-space: nowrap;
    background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .2s var(--ak-ease), transform .2s var(--ak-ease);
}
.ak-chip::before, .ak-chip::after {
    content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ak-line-strong);
    clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
    transition: background-color .2s var(--ak-ease);
}
.ak-chip::after { inset: 1.5px; z-index: -1; background: var(--chip-ground, var(--ak-black)); }
.ak-chip small { font-size: 12px; color: var(--ak-faint); margin-inline-start: 6px; font-weight: 700; }
.ak-chip:active { transform: scale(.97); }
.ak-chip[aria-pressed="true"], .ak-chip[aria-current], .ak-chip--on { color: #000; }
.ak-chip[aria-pressed="true"]::after, .ak-chip[aria-current]::after, .ak-chip--on::after { background: var(--ak-yellow); }
.ak-chip[aria-pressed="true"] small, .ak-chip[aria-current] small { color: rgba(0, 0, 0, .6); }
@media (hover: hover) {
    .ak-chip:hover { color: var(--ak-yellow); }
    .ak-chip:hover::before { background: var(--ak-yellow); }
    .ak-chip[aria-pressed="true"]:hover, .ak-chip[aria-current]:hover { color: #000; }
}
.ak-chip--sm { min-height: 32px; font-size: 13px; --tip: 8px; padding: 0 calc(var(--tip) + 10px); }

.ak-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    color: var(--ak-yellow); font-weight: 700; text-decoration: none;
}
.ak-link::after {
    content: ""; width: 9px; height: 10px; background: currentColor; clip-path: var(--ak-hexagon);
    transition: transform .25s var(--ak-ease);
}
@media (hover: hover) { .ak-link:hover { text-decoration: underline; text-underline-offset: 6px; } .ak-link:hover::after { transform: rotate(30deg); } }

.ak-field, .ak-contact__form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), .ak-contact__form textarea, .ak-contact__form select {
    width: 100%; min-height: 52px; padding: 12px 14px;
    background: var(--ak-black); color: var(--ak-ink); font: 400 16px/1.6 var(--ak-font);
    border: 1px solid var(--ak-line-strong); border-radius: 10px; outline: none;
    transition: border-color .2s var(--ak-ease), box-shadow .2s var(--ak-ease);
    -webkit-appearance: none; appearance: none;
}
textarea.ak-field, .ak-contact__form textarea { min-height: 132px; resize: vertical; }
.ak-field::placeholder, .ak-contact__form ::placeholder { color: var(--ak-faint); opacity: 1; }
.ak-field:focus, .ak-contact__form input:focus, .ak-contact__form textarea:focus, .ak-contact__form select:focus {
    border-color: var(--ak-yellow); box-shadow: 0 0 0 3px rgba(252, 190, 11, .22);
}

/* 5. Header and menu -------------------------------------------------------------------------------------- */
/* --ak-header-h is the whole space the floating bar takes (offset + bar + air); everything below uses it. */
:root { --ak-bar-h: 58px; --ak-header-top: 10px; --ak-header-h: calc(var(--ak-header-top) + var(--ak-bar-h) + 10px); }
@media (min-width: 1100px) { :root { --ak-bar-h: 66px; --ak-header-top: 16px; } }
.ak-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ak-header {
    position: fixed; z-index: 70; top: var(--ak-header-top); inset-inline: 0; pointer-events: none;
    transition: transform .5s var(--ak-ease);
}
.ak-header.is-hidden { transform: translateY(calc(-100% - var(--ak-header-top) - 12px)); }
.ak-header__bar {
    --tip: 16px;
    pointer-events: auto; position: relative; isolation: isolate;
    width: min(1240px, calc(100% - 20px)); height: var(--ak-bar-h); margin-inline: auto;
    display: flex; align-items: center; gap: 14px; padding-inline: calc(var(--tip) + 10px);
    transition: height .4s var(--ak-ease), width .4s var(--ak-ease);
}
/* the hex-pill: a hairline layer and a frosted fill inset by 1px */
.ak-header__bar::before, .ak-header__bar::after {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: rgba(255, 255, 255, .13);
    clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
}
.ak-header__bar::after {
    inset: 1px; z-index: -1; background: rgba(6, 6, 6, .74);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
@media (min-width: 1100px) {
    .ak-header__bar { --tip: 22px; width: min(1240px, calc(100% - 64px)); gap: 18px; }
    .ak-header.is-compact .ak-header__bar { height: calc(var(--ak-bar-h) - 8px); width: min(1120px, calc(100% - 64px)); }
}
.ak-header__progress { position: absolute; inset-inline: calc(var(--tip) + 2px); bottom: 0; height: 2px; overflow: hidden; pointer-events: none; }
.ak-header__progress i { display: block; height: 100%; background: var(--ak-yellow); transform: scaleX(var(--ak-p, 0)); transform-origin: right; }
body:not([dir="rtl"]) .ak-header__progress i { transform-origin: left; }

/* logo: the two pieces part and lock again on hover / focus */
.ak-brand { display: inline-flex; align-items: center; gap: 9px; flex: none; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ak-brand__mark { position: relative; display: block; height: 34px; aspect-ratio: 820 / 600; }
.ak-brand__piece { position: absolute; inset: 0; width: 100%; height: 100%; }
.ak-brand__word { display: block; height: 25px; width: auto; }
@media (min-width: 1100px) { .ak-brand__mark { height: 40px; } .ak-brand__word { height: 29px; } }
.ak-motion .ak-brand:hover .ak-brand__piece--y, .ak-motion .ak-brand:focus-visible .ak-brand__piece--y { animation: ak-unlock-y .8s var(--ak-ease); }
.ak-motion .ak-brand:hover .ak-brand__piece--w, .ak-motion .ak-brand:focus-visible .ak-brand__piece--w { animation: ak-unlock-w .8s var(--ak-ease); }
@keyframes ak-unlock-y { 40% { transform: translate(-16%, -8%) rotate(-10deg); } 100% { transform: none; } }
@keyframes ak-unlock-w { 40% { transform: translate(16%, 8%) rotate(10deg); } 100% { transform: none; } }

/* links with the sliding yellow block */
.ak-nav { display: none; position: relative; margin-inline: auto; }
.ak-nav__list { position: relative; z-index: 1; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ak-nav__list a {
    position: relative; display: block; padding: 10px 16px; border-radius: 6px;
    font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ak-text); text-decoration: none;
    transition: color .3s var(--ak-ease);
}
.ak-nav__list a[aria-current] { color: var(--ak-ink); }
.ak-nav__list a.is-under { color: #000; }
.ak-nav__blob {
    --tip: 11px;
    position: absolute; z-index: 0; top: 50%; left: 0; height: 40px; width: var(--bw, 0px); pointer-events: none;
    background: var(--ak-yellow); opacity: 0;
    clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
    transform: translate(var(--bx, 0px), -50%);
    transition: transform .55s cubic-bezier(.3, 1.35, .45, 1), width .55s cubic-bezier(.3, 1.35, .45, 1), opacity .3s var(--ak-ease);
}
.ak-nav.has-blob .ak-nav__blob { opacity: 1; }
/* without the script the current page is marked by a small hexagon under it */
html:not(.ak-ready) .ak-nav__list a[aria-current]::after {
    content: ""; position: absolute; left: 50%; bottom: -2px; width: 8px; height: 9px;
    background: var(--ak-yellow); clip-path: var(--ak-hexagon); transform: translateX(-50%);
}
@media (hover: hover) { .ak-nav__list a:hover:not(.is-under) { color: var(--ak-yellow); } }

.ak-header__cta { display: none; min-height: 44px; font-size: 14.5px; --tip: 12px; padding: 0 calc(var(--tip) + 16px); }
.ak-header__cta .ak-icon { width: 18px; height: 18px; }

/* the hexagon menu button (phones and tablets) */
.ak-burger {
    position: relative; isolation: isolate; flex: none; margin-inline-start: auto;
    width: 44px; height: 48px; display: grid; place-items: center;
    background: none; border: 0; color: var(--ak-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .3s var(--ak-ease), transform .2s var(--ak-ease);
}
.ak-burger::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .09);
    clip-path: var(--ak-hexagon); transition: background-color .3s var(--ak-ease), transform .5s var(--ak-ease);
}
.ak-burger:active { transform: scale(.94); }
.ak-burger__lines { position: relative; display: block; width: 18px; height: 12px; }
.ak-burger__lines i {
    position: absolute; inset-inline-start: 0; display: block; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .45s var(--ak-ease), top .45s var(--ak-ease), width .45s var(--ak-ease);
}
.ak-burger__lines i:first-child { top: 0; width: 100%; }
.ak-burger__lines i:last-child { top: 10px; width: 62%; }
.ak-burger[aria-expanded="true"] { color: #000; }
.ak-burger[aria-expanded="true"]::before { background: var(--ak-yellow); transform: rotate(30deg); }
.ak-burger[aria-expanded="true"] .ak-burger__lines i:first-child { top: 5px; transform: rotate(45deg); }
.ak-burger[aria-expanded="true"] .ak-burger__lines i:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }

@media (min-width: 768px) {
    .ak-header__cta { display: inline-flex; margin-inline-start: auto; }
    .ak-header__cta + .ak-burger { margin-inline-start: 0; }
}
@media (min-width: 1100px) {
    .ak-nav { display: block; }
    .ak-header__cta { margin-inline-start: 0; }
    .ak-burger { display: none; }
}

/* phone menu: a hexagon growing from the menu button (js sets --cx/--cy), over a faint honeycomb */
@property --ak-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.ak-menu {
    --cx: 85%; --cy: 40px; --ak-r: 0px;
    position: fixed; z-index: 60; inset: 0; overflow-y: auto; overscroll-behavior: contain;
    background:
        radial-gradient(ellipse 80% 45% at 50% 0%, rgba(252, 190, 11, .12), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72' viewBox='0 0 42 72'%3E%3Cpath d='M21 0L42 12V36L21 48L0 36V12Z M21 48V72' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E") 0 0 / 42px 72px,
        #050505;
    clip-path: polygon(var(--cx) calc(var(--cy) - var(--ak-r)), calc(var(--cx) + var(--ak-r) * .866) calc(var(--cy) - var(--ak-r) * .5), calc(var(--cx) + var(--ak-r) * .866) calc(var(--cy) + var(--ak-r) * .5), var(--cx) calc(var(--cy) + var(--ak-r)), calc(var(--cx) - var(--ak-r) * .866) calc(var(--cy) + var(--ak-r) * .5), calc(var(--cx) - var(--ak-r) * .866) calc(var(--cy) - var(--ak-r) * .5));
    transition: --ak-r .75s cubic-bezier(.7, 0, .2, 1);
}
.ak-menu.is-open { --ak-r: 260vmax; }
html:not(.ak-motion) .ak-menu { clip-path: none; }
.ak-menu__panel { min-height: 100%; display: flex; flex-direction: column; padding-top: calc(var(--ak-header-h) + 6px); }
.ak-menu__list { list-style: none; margin: 0; padding: 0; }
.ak-menu__list a {
    display: flex; align-items: center; gap: 16px; padding: 14px 0;
    font-size: clamp(28px, 8.4vw, 42px); font-weight: 700; line-height: 1.45; color: var(--ak-ink); text-decoration: none;
    border-bottom: 1px solid var(--ak-line);
}
.ak-menu__list a::before {
    content: ""; flex: none; width: 13px; height: 15px; background: var(--ak-line-strong); clip-path: var(--ak-hexagon);
    transition: background-color .3s var(--ak-ease), transform .4s var(--ak-ease);
}
.ak-menu__list a[aria-current] { color: var(--ak-yellow); }
.ak-menu__list a[aria-current]::before, .ak-menu__list a:active::before { background: var(--ak-yellow); transform: rotate(30deg) scale(1.2); }
.ak-menu__foot { margin-top: auto; display: grid; gap: 12px; padding-block: 28px calc(26px + env(safe-area-inset-bottom)); }
.ak-menu__slogan { color: var(--ak-muted); font-size: 15px; }
.ak-menu__social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; color: var(--ak-muted); text-decoration: none; font-weight: 700; }
.ak-motion .ak-menu.is-open .ak-menu__list li, .ak-motion .ak-menu.is-open .ak-menu__foot > * { animation: ak-menu-in .6s var(--ak-ease-out) both; }
.ak-motion .ak-menu.is-open .ak-menu__list li:nth-child(1) { animation-delay: .16s; }
.ak-motion .ak-menu.is-open .ak-menu__list li:nth-child(2) { animation-delay: .21s; }
.ak-motion .ak-menu.is-open .ak-menu__list li:nth-child(3) { animation-delay: .26s; }
.ak-motion .ak-menu.is-open .ak-menu__list li:nth-child(4) { animation-delay: .31s; }
.ak-motion .ak-menu.is-open .ak-menu__list li:nth-child(5) { animation-delay: .36s; }
.ak-motion .ak-menu.is-open .ak-menu__list li:nth-child(n+6) { animation-delay: .41s; }
.ak-motion .ak-menu.is-open .ak-menu__foot > * { animation-delay: .46s; }
@keyframes ak-menu-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
html.ak-menu-open { overflow: hidden; }
html.ak-menu-open .ak-header { transform: none; }

/* 6. Sections and headings -------------------------------------------------------------------------------- */
.ak-section { padding-block: var(--ak-section); }
.ak-section--tight { padding-block: clamp(48px, 6vw, 88px); }
.ak-section + .ak-section { padding-top: 0; }
.ak-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 46rem; }
.ak-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.ak-head--row > div { max-width: 46rem; }
.ak-head__title { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.32; }
.ak-head__lead { margin-top: 14px; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.9; color: var(--ak-muted); }
.ak-motion.ak-ready [data-ak-reveal]:not(.is-in) .ak-head { opacity: 0; transform: translateY(18px); }
.ak-motion.ak-ready [data-ak-reveal] .ak-head { transition: opacity .8s var(--ak-ease-out), transform .8s var(--ak-ease-out); }

/* 7. Hexagon outline (partials/alkaram/hex) --------------------------------------------------------------- */
.ak-hex { display: block; overflow: visible; }
.ak-hex__edge {
    fill: none; stroke: var(--ak-line-strong); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
    transition: stroke .4s var(--ak-ease), stroke-width .4s var(--ak-ease);
}
.ak-hex__edge.is-lit { stroke: var(--ak-yellow); }

/* 8. Hero «الخلية» ---------------------------------------------------------------------------------------- */
.ak-hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: calc(var(--ak-header-h) * -1);
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--ak-header-h) + 2px) 0 26px;
    background: #000;
}
.ak-hive { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.ak-hero__shade {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 62% 40% at 50% 27%, rgba(252, 190, 11, .11), transparent 72%),
        radial-gradient(ellipse 95% 38% at 50% 70%, rgba(0, 0, 0, .82), transparent 78%),
        linear-gradient(to bottom, transparent 64%, #000 100%);
}
.ak-hero__inner { display: grid; grid-template-areas: "stage" "copy"; gap: 6px; align-items: center; }
.ak-hero__stage { grid-area: stage; justify-self: center; width: min(54vw, 212px); perspective: 900px; }
.ak-hero__copy { grid-area: copy; text-align: center; }
@media (min-width: 992px) {
    .ak-hero { padding-bottom: 44px; }
    .ak-hero__shade {
        background:
            radial-gradient(ellipse 30% 46% at 27% 50%, rgba(252, 190, 11, .13), transparent 72%),
            radial-gradient(ellipse 46% 64% at 73% 50%, rgba(0, 0, 0, .78), transparent 76%),
            linear-gradient(to bottom, transparent 72%, #000 100%);
    }
    .ak-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "copy stage"; gap: 48px; }
    .ak-hero__stage { width: min(100%, 520px); perspective: 1500px; }
    .ak-hero__copy { text-align: start; }
}

/* the solid mark: each piece = its face + layers of a darker copy behind it (thickness), leaning (--rx/--ry, js)
   and parting as the hero scrolls away (--sep, js) */
.ak-logo3d {
    --d: -1.9px;
    position: relative; aspect-ratio: 820 / 600; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 11deg)) rotateY(var(--ry, -22deg));
    transition: transform .9s var(--ak-ease-out);
}
@media (min-width: 992px) { .ak-logo3d { --d: -3.4px; } }
.ak-logo3d__glow {
    position: absolute; inset: -34%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(252, 190, 11, .24), rgba(252, 190, 11, 0) 62%);
    transform: translateZ(-80px);
}
.ak-logo3d__float, .ak-logo3d__piece, .ak-logo3d__in { position: absolute; inset: 0; transform-style: preserve-3d; }
/* how far the pieces part (--sep 0→1): sideways on phones (room on both sides), more upward/downward beside the copy */
.ak-logo3d { --sx: 24%; --sy: 5%; }
@media (min-width: 992px) { .ak-logo3d { --sx: 11%; --sy: 11%; } }
.ak-logo3d__piece--y { transform: translate(calc(var(--sep, 0) * var(--sx) * -1), calc(var(--sep, 0) * var(--sy) * -1)) rotateZ(calc(var(--sep, 0) * -10deg)); }
.ak-logo3d__piece--w { transform: translate(calc(var(--sep, 0) * var(--sx)), calc(var(--sep, 0) * var(--sy))) rotateZ(calc(var(--sep, 0) * 10deg)); }
.ak-logo3d__in img { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--k) * var(--d))); }
.ak-logo3d__flash {
    position: absolute; left: 50%; top: 50%; width: 118%; height: auto; aspect-ratio: 1; overflow: visible; pointer-events: none;
    opacity: 0; transform: translate(-50%, -50%) translateZ(40px) scale(.5);
}
.ak-logo3d__flash polygon { fill: none; stroke: var(--ak-yellow); stroke-width: 1.1; stroke-linejoin: round; }
.ak-motion .ak-logo3d__piece--y .ak-logo3d__in { animation: ak-p3-y 1.35s cubic-bezier(.2, .85, .25, 1) .12s both; }
.ak-motion .ak-logo3d__piece--w .ak-logo3d__in { animation: ak-p3-w 1.35s cubic-bezier(.2, .85, .25, 1) .12s both; }
.ak-motion .ak-logo3d__flash { animation: ak-flash 1.1s cubic-bezier(.2, .7, .3, 1) 1.32s both; }
.ak-motion .ak-logo3d__glow { animation: ak-glow 1.6s var(--ak-ease-out) 1.2s both; }
.ak-motion .ak-logo3d__float { animation: ak-float 8s ease-in-out 2s infinite; }
/* no opacity in these: an opacity animation makes Chrome flatten the layers (the thickness disappears) */
@keyframes ak-p3-y {
    0% { transform: translate3d(-150%, -50%, -520px) rotateY(-82deg) rotateZ(-26deg); }
    80% { transform: translate3d(3.2%, 1.1%, 0) rotateY(0) rotateZ(0); }
    100% { transform: none; }
}
@keyframes ak-p3-w {
    0% { transform: translate3d(150%, 50%, -520px) rotateY(82deg) rotateZ(26deg); }
    80% { transform: translate3d(-3.2%, -1.1%, 0) rotateY(0) rotateZ(0); }
    100% { transform: none; }
}
@keyframes ak-flash {
    0% { opacity: 0; transform: translate(-50%, -50%) translateZ(40px) scale(.5); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) translateZ(40px) scale(2); }
}
@keyframes ak-glow { from { opacity: 0; transform: translateZ(-80px) scale(.5); } to { opacity: 1; transform: translateZ(-80px) scale(1); } }
@keyframes ak-float { 0%, 100% { transform: translateY(0) rotateZ(0); } 50% { transform: translateY(-4%) rotateZ(-1.6deg); } }

/* the copy */
.ak-hero__title { font-size: clamp(38px, 10.4vw, 98px); line-height: 1.18; }
.ak-word { display: inline-block; }
.ak-hero__key { display: block; color: var(--ak-yellow); }
.ak-motion .ak-hero__key {
    background: linear-gradient(100deg, var(--ak-yellow) 0 40%, #FFF3BF 50%, var(--ak-yellow) 60% 100%) 100% 0 / 300% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ak-motion .ak-hero .ak-word { animation: ak-rise .8s var(--ak-ease-out) calc(.5s + var(--i, 0) * .1s) both; }
.ak-motion .ak-hero__key { animation: ak-rise .8s var(--ak-ease-out) calc(.5s + var(--i, 0) * .1s) both, ak-gloss 1.5s ease-in-out 1.5s both; }
@keyframes ak-gloss { from { background-position: 100% 0; } to { background-position: 0 0; } }
.ak-hero__ticker {
    margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .3em;
    font-size: clamp(19px, 2.3vw, 30px); font-weight: 700; line-height: 1.55; color: var(--ak-ink);
}
.ak-type { display: inline-flex; align-items: center; color: var(--ak-yellow); white-space: nowrap; }
.ak-type__caret {
    display: inline-block; flex: none; width: .42em; height: .48em; margin-inline-start: .16em;
    background: var(--ak-yellow); clip-path: var(--ak-hexagon);
}
.ak-motion .ak-type__caret { animation: ak-caret 1s steps(1) infinite; }
@keyframes ak-caret { 50% { opacity: 0; } }
.ak-hero__lead { margin: 10px auto 0; max-width: 34em; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.8; color: var(--ak-muted); }
.ak-hero__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ak-hero__actions { gap: 10px; }
.ak-hero__actions .ak-btn { flex: 1 1 auto; }
/* phones: both buttons on one row when they fit (they wrap otherwise) */
@media (max-width: 559px) { .ak-hero__actions .ak-btn { --tip: 14px; padding: 0 calc(var(--tip) + 12px); font-size: 15.5px; } }
@media (min-width: 560px) { .ak-hero__actions { gap: 12px; } .ak-hero__actions .ak-btn { flex: 0 0 auto; } }
.ak-hero__stats {
    list-style: none; margin: clamp(24px, 4vh, 44px) 0 0; padding: 18px 0 0; border-top: 1px solid var(--ak-line);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center;
}
.ak-hero__stats b { display: block; font-size: clamp(24px, 3vw, 40px); line-height: 1.25; color: var(--ak-ink); }
.ak-hero__stats li > span { display: block; font-size: 13px; line-height: 1.6; color: var(--ak-muted); }
@media (min-width: 992px) {
    .ak-hero__ticker { justify-content: flex-start; }
    .ak-hero__lead { margin-inline: 0; }
    .ak-hero__actions { justify-content: flex-start; }
    .ak-hero__stats { display: flex; gap: 56px; text-align: start; }
}
.ak-motion .ak-hero__ticker { animation: ak-rise .8s var(--ak-ease-out) .95s both; }
.ak-motion .ak-hero__lead { animation: ak-rise .8s var(--ak-ease-out) 1.08s both; }
.ak-motion .ak-hero__actions { animation: ak-rise .8s var(--ak-ease-out) 1.2s both; }
.ak-motion .ak-hero__stats { animation: ak-rise .8s var(--ak-ease-out) 1.4s both; }

/* tablets held upright: room for a bigger mark and a wider ring */
@media (min-width: 600px) and (max-width: 991px) {
    .ak-hero__stage { width: 300px; }
    .ak-orbit { --R: 200px; --count: 8; }
    .ak-orbit__chip:nth-child(n+7) { display: block; }
    .ak-orbit__face { font-size: 11.5px; }
}

/* short phones (iPhone SE in Safari ≈ 375×548 visible): a smaller mark and type so both buttons stay on screen */
@media (max-width: 600px) and (max-height: 620px) {
    .ak-hero__stage { width: min(44vw, 160px); }
    .ak-orbit { --R: 118px; }
    .ak-hero__title { font-size: 33px; }
    .ak-hero__ticker { font-size: 17px; margin-top: 8px; }
    .ak-hero__lead { font-size: 14px; line-height: 1.7; margin-top: 8px; }
    .ak-hero__prompt { margin-bottom: 8px; font-size: 12.5px; }
    .ak-hero__actions { margin-top: 12px; }
}

/* scroll cue (wide screens with room) */
.ak-hero__cue {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: none; flex-direction: column; align-items: center; gap: 6px;
    color: var(--ak-faint); font-size: 12.5px; text-decoration: none;
}
.ak-hero__cue i { position: relative; width: 24px; height: 28px; background: var(--ak-line-strong); clip-path: var(--ak-hexagon); }
.ak-hero__cue i::after { content: ""; position: absolute; inset: 1.5px; background: #000; clip-path: var(--ak-hexagon); }
.ak-hero__cue i::before {
    content: ""; position: absolute; z-index: 1; left: 50%; top: 7px; width: 4px; height: 6px; margin-left: -2px; border-radius: 2px;
    background: var(--ak-yellow);
}
.ak-motion .ak-hero__cue i::before { animation: ak-cue 1.8s ease-in-out infinite; }
@keyframes ak-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 992px) and (min-height: 760px) { .ak-hero__cue { display: flex; } }
@media (hover: hover) { .ak-hero__cue:hover { color: var(--ak-yellow); } }

/* buttons: a light sweep across the main yellow buttons; a magnetic pull on pointer devices (js sets --mx/--my) */
.ak-btn--shine::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .62) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat;
}
.ak-motion .ak-btn--shine::after { animation: ak-shine 6.5s ease-in-out 2.4s infinite; }
@keyframes ak-shine { 0% { background-position: 160% 0; } 20%, 100% { background-position: -60% 0; } }
[data-ak-magnet] { translate: var(--mx, 0px) var(--my, 0px); transition: translate .35s var(--ak-ease-out), transform .2s var(--ak-ease), color .2s var(--ak-ease); }

/* 8b. Hero — the tech layer: the terminal prompt, the stack riding around the mark, the live code editor ------- */
.ak-hero__inner { grid-template-areas: "stage" "copy" "code"; }
@media (min-width: 992px) {
    .ak-hero__inner { grid-template-areas: "copy stage"; }
    .ak-hero__stage { width: min(100%, 560px); align-self: start; padding-top: 2%; }
    .ak-hero__stage .ak-logo3d { width: 74%; margin-inline: auto; }
}

.ak-hero__prompt {
    display: inline-flex; align-items: center; gap: .65em; margin: 0 0 10px; padding: 4px 12px 5px;
    font-size: 13.5px; line-height: 1.6; color: var(--ak-text);
    border: 1px solid rgba(252, 190, 11, .32); border-radius: 8px; background: rgba(252, 190, 11, .06);
}
.ak-hero__prompt code { font: 700 12.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; color: var(--ak-yellow); }
.ak-motion .ak-hero__prompt { animation: ak-rise .7s var(--ak-ease-out) .3s both; }

/* the stack rides a tilted ring around the mark (same 3D space, so it passes in front of and behind the mark);
   each chip counter-turns so it always faces the viewer */
.ak-orbit { --R: 152px; --tilt: 80deg; --count: 6; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
@media (min-width: 992px) { .ak-orbit { --R: 272px; --tilt: 78deg; --count: 8; } }
.ak-orbit__chip:nth-child(n+7) { display: none; }
@media (min-width: 992px) { .ak-orbit__chip:nth-child(n+7) { display: block; } }
.ak-orbit__ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt)); }
.ak-orbit__chip { --a: calc(var(--i) * 360deg / var(--count)); position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateZ(var(--a)) translateX(var(--R)) rotateZ(calc(var(--a) * -1)); }
.ak-orbit__face {
    position: absolute; left: 0; top: 0; display: block; white-space: nowrap;
    padding: 3px 8px 4px; border-radius: 6px;
    font: 700 10.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; color: var(--ak-yellow);
    background: rgba(12, 12, 12, .92); border: 1px solid rgba(252, 190, 11, .42);
    transform: translate(-50%, -50%) rotateX(calc(var(--tilt) * -1));
}
@media (min-width: 992px) { .ak-orbit__face { font-size: 12px; padding: 4px 10px 5px; } }
.ak-motion .ak-orbit__ring { animation: ak-orbit 36s linear infinite; }
.ak-motion .ak-orbit__face { animation: ak-orbit-face 36s linear infinite, ak-chip-in .7s var(--ak-ease-out) calc(1.45s + var(--i) * .08s) both; }
@keyframes ak-orbit { from { transform: rotateX(var(--tilt)) rotateZ(0deg); } to { transform: rotateX(var(--tilt)) rotateZ(360deg); } }
@keyframes ak-orbit-face {
    from { transform: translate(-50%, -50%) rotateZ(0deg) rotateX(calc(var(--tilt) * -1)); }
    to { transform: translate(-50%, -50%) rotateZ(-360deg) rotateX(calc(var(--tilt) * -1)); }
}
@keyframes ak-chip-in { from { opacity: 0; } to { opacity: 1; } }

/* the live code editor (types the code for each typed word; js: data-ak-code) */
.ak-code {
    grid-area: code; position: relative; z-index: 2; justify-self: center; width: min(100%, 420px); margin-top: 26px;
    font: 500 12px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; color: #EDEDED; text-align: left;
    background: rgba(9, 9, 9, .9); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(252, 190, 11, .05);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ak-code__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.ak-code__dots { display: flex; gap: 6px; }
.ak-code__dots i { display: block; width: 10px; height: 11px; clip-path: var(--ak-hexagon); background: #3a3a3a; }
.ak-code__dots i:first-child { background: var(--ak-yellow); }
.ak-code__dots i:nth-child(2) { background: #fff; }
.ak-code__file { color: #cfcfcf; font-size: 11.5px; }
.ak-code__live { margin-left: auto; padding: 1px 6px; border-radius: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: #000; background: var(--ak-yellow); }
.ak-code__body { margin: 0; padding: 12px 14px 10px 0; min-height: calc(7 * 1.75em + 22px); font: inherit; color: inherit; white-space: pre; overflow: hidden; counter-reset: ln; }
.ak-code__line { display: block; min-height: 1.75em; }
.ak-code__line::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.7em; padding-right: 1.1em; text-align: right; color: #4a4a4a; }
.ak-code__line.is-typing::after {
    content: ""; display: inline-block; width: .55em; height: 1.15em; margin-left: 1px; vertical-align: -.22em; background: var(--ak-yellow);
}
.ak-motion .ak-code__line.is-typing::after { animation: ak-caret 1s steps(1) infinite; }
.t-k { color: var(--ak-yellow); }
.t-s { color: #FFE29A; }
.t-c { color: #6b6b6b; font-style: italic; }
.t-t { color: #7FE0C8; }
.t-f { color: #FFFFFF; font-weight: 700; }
.t-n { color: #FFB46B; }
.t-a { color: #A9C7FF; }
.t-p { color: #8a8a8a; }
.t-ar { font-family: var(--ak-font); font-size: 1.12em; font-style: normal; }
.ak-code__status { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 12px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11px; color: #8f8f8f; }
.ak-code__status i { display: block; width: 8px; height: 9px; clip-path: var(--ak-hexagon); background: #3a3a3a; }
.ak-code.is-done .ak-code__status { color: var(--ak-yellow); }
.ak-code.is-done .ak-code__status i { background: var(--ak-yellow); }
.ak-motion .ak-code.is-done .ak-code__status i { animation: ak-pulse 1.6s ease-in-out infinite; }
@keyframes ak-pulse { 50% { opacity: .3; } }
.ak-motion .ak-code { animation: ak-rise .9s var(--ak-ease-out) 1.25s both; }
@media (min-width: 992px) {
    .ak-code {
        grid-area: stage; align-self: end; justify-self: end; width: min(78%, 390px); margin: 0 0 -4px;
        transform: perspective(1200px) rotateY(11deg) rotateX(2deg); transform-origin: left center;
    }
    .ak-motion .ak-code { animation-name: ak-rise-code; }
}
@keyframes ak-rise-code {
    from { opacity: 0; transform: perspective(1200px) rotateY(11deg) rotateX(2deg) translateY(24px); }
    to { opacity: 1; transform: perspective(1200px) rotateY(11deg) rotateX(2deg); }
}

/* 9. Six sides -------------------------------------------------------------------------------------------- */
.ak-sides__stage { display: none; }
.ak-sides__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ak-side { background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: var(--ak-radius); padding: 22px 20px; }
.ak-side__head { display: flex; align-items: center; gap: 14px; }
.ak-side__hex { width: 46px; height: 46px; flex: none; }
.ak-side__hex .ak-hex__edge { stroke-width: 2.5; }
.ak-side__hex .ak-hex__edge.is-lit { stroke-width: 4; }
.ak-side__title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; }
.ak-side__title a { text-decoration: none; }
@media (hover: hover) { .ak-side__title a:hover { color: var(--ak-yellow); } }
.ak-side__text { margin-top: 12px; color: var(--ak-muted); max-width: 38em; }
.ak-side__services { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ak-side__services .ak-chip { --chip-ground: var(--ak-night); }
.ak-side__works { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ak-side__works a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--ak-line); aspect-ratio: 16 / 10; background: #111; }
.ak-side__works img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ak-ease); }
@media (hover: hover) { .ak-side__works a:hover img { transform: scale(1.05); } }
@media (min-width: 992px) {
    .ak-sides__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "list stage"; gap: 56px; }
    .ak-sides__list { grid-area: list; gap: 0; }
    .ak-sides__stage { grid-area: stage; display: block; position: sticky; top: calc(var(--ak-header-h) + 6vh); align-self: start; padding-inline: 72px; }
    .ak-side {
        background: none; border: 0; border-radius: 0; padding: 48px 0 48px; border-top: 1px solid var(--ak-line);
        min-height: 40vh; position: relative;
    }
    .ak-side:last-child { min-height: 0; }
    .ak-side::before {
        content: ""; position: absolute; inset-inline-start: -28px; top: 54px; width: 3px; height: 48px;
        background: var(--ak-yellow); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ak-ease);
    }
    .ak-side.is-current::before { transform: none; }
    .ak-side__hex { width: 38px; height: 38px; }
}
.ak-sides__diagram { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.ak-sides__hex { position: absolute; inset: 0; width: 100%; height: 100%; }
.ak-sides__hex .ak-hex__edge { stroke-width: 3; }
.ak-sides__hex .ak-hex__edge.is-lit { stroke-width: 6; }
.ak-sides__hex .ak-hex__edge.is-current { stroke-width: 9; }
.ak-sides__label {
    position: absolute; left: var(--x); top: var(--y); transform: translate(0, -50%);
    font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ak-faint); white-space: nowrap;
    transition: color .35s var(--ak-ease);
}
.ak-sides__label.is-end { transform: translate(-100%, -50%); }
.ak-sides__label.is-lit { color: var(--ak-ink); }
.ak-sides__label.is-current { color: var(--ak-yellow); }
.ak-sides__center { position: absolute; inset: 24%; display: grid; place-items: center; text-align: center; }
.ak-sides__count, .ak-sides__done { grid-area: 1 / 1; display: grid; justify-items: center; gap: 2px; transition: opacity .45s var(--ak-ease), transform .45s var(--ak-ease); }
.ak-sides__count b { font-size: 72px; line-height: 1.1; color: var(--ak-ink); font-variant-numeric: tabular-nums; }
.ak-sides__count span { color: var(--ak-muted); font-size: 15px; }
.ak-sides__done { opacity: 0; transform: scale(.85); }
.ak-sides__done img { width: 78%; }
.ak-sides__done b { color: var(--ak-yellow); font-size: 18px; }
.ak-sides__diagram.is-complete .ak-sides__count { opacity: 0; transform: scale(.85); }
.ak-sides__diagram.is-complete .ak-sides__done { opacity: 1; transform: none; }
/* Without the script the shape simply stands complete. */
html:not(.ak-ready) .ak-sides__hex .ak-hex__edge { stroke: var(--ak-yellow); stroke-width: 6; }
html:not(.ak-ready) .ak-sides__label { color: var(--ak-ink); }
html:not(.ak-ready) .ak-sides__count { opacity: 0; }
html:not(.ak-ready) .ak-sides__done { opacity: 1; transform: none; }

/* 10. Works ----------------------------------------------------------------------------------------------- */
.ak-filters {
    display: flex; gap: 8px; margin: 0 calc(var(--ak-gutter) * -1) 26px; padding: 2px var(--ak-gutter) 8px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ak-filters::-webkit-scrollbar { display: none; }
.ak-filters .ak-chip { flex: none; }
@media (min-width: 768px) { .ak-filters { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.ak-works__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .ak-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ak-works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.ak-works__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ak-work__link {
    display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none;
    background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: var(--ak-radius); overflow: hidden;
    transition: border-color .3s var(--ak-ease), transform .2s var(--ak-ease); -webkit-tap-highlight-color: transparent;
}
.ak-work__frame { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.ak-work__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ak-ease); }
.ak-work__body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.ak-work__kind { color: var(--ak-yellow); font-size: 13px; font-weight: 700; }
.ak-work__title { font-size: 19px; line-height: 1.5; }
.ak-work__text { color: var(--ak-muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-work__link:active { transform: scale(.99); }
@media (hover: hover) {
    .ak-work__link:hover { border-color: rgba(252, 190, 11, .55); }
    .ak-work__link:hover img { transform: scale(1.04); }
}
.ak-motion .ak-work.is-shown { animation: ak-rise .5s var(--ak-ease-out) both; }

/* 11. Process --------------------------------------------------------------------------------------------- */
/* Each step draws the segment to the next one (a grey track with a yellow fill), so the line ends on the last node. */
.ak-process__steps { --node: 48px; --gap: 32px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.ak-step { position: relative; padding-inline-start: calc(var(--node) + 18px); min-height: var(--node); }
.ak-step:not(:last-child)::before, .ak-step:not(:last-child)::after {
    content: ""; position: absolute; inset-inline-start: calc(var(--node) / 2 - 1px);
    top: calc(var(--node) * 1.04); bottom: calc(var(--gap) * -1 - 2px); width: 2px; background: var(--ak-line-strong);
}
.ak-step:not(:last-child)::after { background: var(--ak-yellow); transform-origin: top; }
.ak-step__node { position: absolute; inset-inline-start: 0; top: -2px; width: var(--node); height: calc(var(--node) * 1.08); display: grid; place-items: center; z-index: 1; }
.ak-step__node svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ak-step__node polygon { fill: var(--ak-yellow); stroke: var(--ak-yellow); stroke-width: 3; vector-effect: non-scaling-stroke; transition: fill .4s var(--ak-ease), stroke .4s var(--ak-ease); }
.ak-step__node b { position: relative; font-size: 19px; line-height: 1; color: #000; transition: color .4s var(--ak-ease); }
.ak-step__title { font-size: 21px; line-height: 1.45; padding-top: 6px; }
.ak-step__text { margin-top: 6px; color: var(--ak-muted); }
.ak-motion.ak-ready .ak-step::after { transform: scaleY(0); transition: transform .45s var(--ak-ease) calc(var(--i) * .3s + .3s); }
.ak-motion.ak-ready .ak-process.is-in .ak-step::after { transform: none; }
.ak-motion.ak-ready .ak-process:not(.is-in) .ak-step__node polygon { fill: var(--ak-black); stroke: var(--ak-line-strong); }
.ak-motion.ak-ready .ak-process:not(.is-in) .ak-step__node b { color: var(--ak-ink); }
.ak-motion.ak-ready .ak-process .ak-step__node polygon, .ak-motion.ak-ready .ak-process .ak-step__node b { transition-delay: calc(var(--i) * .3s); }
@media (min-width: 992px) {
    .ak-process__steps { --gap: 28px; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
    .ak-step { padding-inline-start: 0; padding-top: calc(var(--node) + 22px); }
    .ak-step__node { top: 0; }
    .ak-step:not(:last-child)::before, .ak-step:not(:last-child)::after {
        top: calc(var(--node) * .54 - 1px); bottom: auto; height: 2px; width: auto;
        inset-inline-start: calc(var(--node) + 4px); inset-inline-end: calc(var(--gap) * -1 - 4px);
    }
    body[dir="rtl"] .ak-step::after { transform-origin: right; }
    body:not([dir="rtl"]) .ak-step::after { transform-origin: left; }
    .ak-motion.ak-ready .ak-step::after { transform: scaleX(0); }
}

/* 12. Partners -------------------------------------------------------------------------------------------- */
.ak-lane { overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to left, transparent, #000 7%, #000 93%, transparent); }
.ak-lane__track { display: flex; width: max-content; }
.ak-lane__list { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.ak-lane__list img { display: block; height: 76px; width: auto; }
.ak-lane__list a { display: block; border-radius: 40px; }
.ak-motion.ak-ready .ak-lane__track { animation: ak-lane calc(var(--n) * 4.5s) linear infinite; }
.ak-lane:hover .ak-lane__track, .ak-lane:focus-within .ak-lane__track { animation-play-state: paused; }
@keyframes ak-lane { to { transform: translateX(50%); } }
body:not([dir="rtl"]) .ak-lane__track { animation-direction: reverse; }
html:not(.ak-motion) .ak-lane, html:not(.ak-ready) .ak-lane { -webkit-mask-image: none; mask-image: none; }
html:not(.ak-motion) .ak-lane__track, html:not(.ak-ready) .ak-lane__track { width: auto; justify-content: center; }
html:not(.ak-motion) .ak-lane__list, html:not(.ak-ready) .ak-lane__list { flex-wrap: wrap; justify-content: center; padding-inline: var(--ak-gutter); }
html:not(.ak-motion) .ak-lane__list[aria-hidden], html:not(.ak-ready) .ak-lane__list[aria-hidden] { display: none; }

/* 13. Articles -------------------------------------------------------------------------------------------- */
.ak-posts__strip {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
    margin-inline: calc(var(--ak-gutter) * -1); padding: 2px var(--ak-gutter) 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ak-posts__strip::-webkit-scrollbar { display: none; }
.ak-posts__strip > * { scroll-snap-align: start; }
@media (min-width: 768px) {
    .ak-posts__strip { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; gap: 22px; }
}
.ak-posts__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .ak-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ak-posts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.ak-post__link {
    display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none;
    background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: var(--ak-radius); overflow: hidden;
    transition: border-color .3s var(--ak-ease), transform .2s var(--ak-ease); -webkit-tap-highlight-color: transparent;
}
.ak-post__frame { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #111; }
.ak-post__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ak-ease); }
.ak-post__body { display: grid; gap: 10px; padding: 16px 18px 20px; }
.ak-post__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ak-faint); }
.ak-post__cat { color: var(--ak-yellow); font-weight: 700; }
.ak-post__title { font-size: 18px; line-height: 1.65; }
.ak-post__link:active { transform: scale(.99); }
@media (hover: hover) { .ak-post__link:hover { border-color: rgba(252, 190, 11, .55); } .ak-post__link:hover img { transform: scale(1.04); } }

/* 14. FAQ ------------------------------------------------------------------------------------------------- */
.ak-faq__grid { display: grid; gap: 28px; }
.ak-faq__side .ak-head { margin-bottom: 0; }
.ak-ask { margin-top: 22px; display: grid; gap: 12px; padding: 20px; background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: 14px; }
.ak-ask__label { font-weight: 700; color: var(--ak-ink); }
.ak-ask .ak-btn { justify-self: start; }
.ak-fold { border-bottom: 1px solid var(--ak-line); }
.ak-fold:first-child { border-top: 1px solid var(--ak-line); }
.ak-fold summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0;
    list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--ak-ink);
    -webkit-tap-highlight-color: transparent;
}
.ak-fold summary::-webkit-details-marker { display: none; }
.ak-fold summary i {
    position: relative; isolation: isolate; flex: none; width: 36px; height: 38px; display: grid; place-items: center; color: var(--ak-yellow);
}
.ak-fold summary i::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ak-yellow-soft); clip-path: var(--ak-hexagon); transition: background-color .25s var(--ak-ease); }
.ak-fold summary i .ak-icon { width: 18px; height: 18px; }
.ak-fold .ak-icon__v { transition: transform .3s var(--ak-ease); transform-origin: center; transform-box: fill-box; }
.ak-fold[open] .ak-icon__v { transform: scaleY(0); }
.ak-fold[open] summary i { color: #000; }
.ak-fold[open] summary i::before { background: var(--ak-yellow); }
@media (hover: hover) { .ak-fold summary:hover { color: var(--ak-yellow); } }
.ak-fold__body { padding: 0 0 22px; color: var(--ak-muted); line-height: 2; max-width: 44em; }
.ak-fold__body p + p { margin-top: .8em; }
@media (min-width: 992px) {
    .ak-faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
    .ak-faq__side { position: sticky; top: calc(var(--ak-header-h) + 32px); align-self: start; }
}

/* 15. Closing band ---------------------------------------------------------------------------------------- */
.ak-cta { position: relative; overflow: hidden; background: var(--ak-yellow); color: #000; padding-block: clamp(64px, 9vw, 120px); }
.ak-cta__art { position: absolute; top: 50%; inset-inline-end: -10%; width: min(70vw, 600px); transform: translateY(-50%); pointer-events: none; }
.ak-cta__hex .ak-hex__edge, .ak-cta__hex .ak-hex__edge.is-lit { stroke: rgba(0, 0, 0, .14); stroke-width: .6; vector-effect: none; }
.ak-cta__inner { position: relative; max-width: 860px; text-align: center; }
.ak-cta__title { color: #000; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.3; }
.ak-cta__lead { margin: 14px auto 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: rgba(0, 0, 0, .78); }
.ak-cta__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.ak-cta__link { display: inline-flex; align-items: center; min-height: 44px; color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.ak-cta :focus-visible { outline-color: #000; }
.ak-motion.ak-ready .ak-cta__hex .ak-hex__edge { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ak-ease); }
.ak-motion.ak-ready .ak-cta.is-in .ak-hex__edge { stroke-dashoffset: 0; }
.ak-motion.ak-ready .ak-cta.is-in .ak-hex__edge:nth-child(2) { transition-delay: .1s; }
.ak-motion.ak-ready .ak-cta.is-in .ak-hex__edge:nth-child(3) { transition-delay: .2s; }
.ak-motion.ak-ready .ak-cta.is-in .ak-hex__edge:nth-child(4) { transition-delay: .3s; }
.ak-motion.ak-ready .ak-cta.is-in .ak-hex__edge:nth-child(5) { transition-delay: .4s; }
.ak-motion.ak-ready .ak-cta.is-in .ak-hex__edge:nth-child(6) { transition-delay: .5s; }

/* 16. About ----------------------------------------------------------------------------------------------- */
.ak-about__statement { font-size: clamp(25px, 3.3vw, 46px); line-height: 1.65; font-weight: 700; color: var(--ak-ink); max-width: 24em; margin-bottom: clamp(48px, 7vw, 96px); }
.ak-about__story { display: grid; gap: 56px; align-items: center; }
.ak-about__pieces { position: relative; width: min(100%, 440px); aspect-ratio: 820 / 600; margin: 0 auto 2.4em; }
.ak-about__piece { position: absolute; inset: 0; margin: 0; transition: transform 1.1s var(--ak-ease-out); }
.ak-about__piece img { display: block; width: 100%; height: auto; }
.ak-about__piece figcaption { position: absolute; bottom: -2.4em; font-weight: 700; font-size: 17px; }
.ak-about__piece--y figcaption { left: 10%; color: var(--ak-yellow); }
.ak-about__piece--w figcaption { right: 10%; color: var(--ak-ink); }
.ak-motion.ak-ready .ak-about:not(.is-in) .ak-about__piece--y { transform: translateX(-20%) rotate(-6deg); }
.ak-motion.ak-ready .ak-about:not(.is-in) .ak-about__piece--w { transform: translateX(20%) rotate(6deg); }
.ak-about__text { display: grid; gap: 16px; }
.ak-about__text p { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 2.05; }
@media (min-width: 992px) { .ak-about__story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } .ak-about__text { grid-row: 1; } }
.ak-values { margin-top: clamp(64px, 8vw, 112px); }
.ak-values__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .ak-values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ak-values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.ak-value { padding: 22px; background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: var(--ak-radius); }
.ak-value__hex { width: 40px; height: 40px; }
.ak-value__hex .ak-hex__edge { stroke-width: 2.5; }
.ak-value__hex .ak-hex__edge.is-lit { stroke-width: 4; }
.ak-value h3 { margin-top: 14px; font-size: 19px; }
.ak-value p { margin-top: 6px; color: var(--ak-muted); font-size: 15.5px; line-height: 1.9; }

/* 17. Contact --------------------------------------------------------------------------------------------- */
.ak-contact__grid { display: grid; gap: 40px; }
@media (min-width: 992px) { .ak-contact__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.ak-channels { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ak-channel {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value"; column-gap: 14px; align-items: center;
    padding: 16px 18px; background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: var(--ak-radius);
    color: var(--ak-ink); text-decoration: none; transition: border-color .25s var(--ak-ease), transform .2s var(--ak-ease);
}
.ak-channel .ak-icon { grid-area: icon; width: 30px; height: 30px; color: var(--ak-yellow); }
.ak-channel__label { grid-area: label; font-weight: 700; line-height: 1.5; }
.ak-channel__label small { display: inline-block; margin-inline-start: 6px; padding: 1px 9px; border-radius: 99px; background: var(--ak-yellow); color: #000; font-size: 11.5px; vertical-align: 2px; }
.ak-channel__value { grid-area: value; justify-self: start; color: var(--ak-muted); font-size: 15px; }
.ak-channel--wa { border-color: rgba(252, 190, 11, .5); }
.ak-channel:active { transform: scale(.99); }
@media (hover: hover) { .ak-channel:hover { border-color: var(--ak-yellow); } }
.ak-contact__place { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ak-muted); }
.ak-contact__place .ak-icon { width: 18px; height: 18px; color: var(--ak-yellow); }
.ak-after { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ak-after li { position: relative; display: grid; gap: 2px; padding-inline-start: 32px; }
.ak-after li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 16px; height: 18px; background: var(--ak-yellow); clip-path: var(--ak-hexagon); }
.ak-after b { color: var(--ak-ink); }
.ak-after span { color: var(--ak-muted); font-size: 15px; }
.ak-contact__form { padding: clamp(20px, 3vw, 36px); background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: 16px; }
.ak-contact__form-title { font-size: 24px; margin-bottom: 18px; }
.ak-contact__form-desc { color: var(--ak-muted); margin: -8px 0 18px; }
.ak-contact__form form { display: grid; gap: 16px; }
.ak-contact__form .row { display: grid; gap: 16px; margin: 0; }
/* the contact plugin's own css sizes its columns at 50% — inside our grid they must fill their cell */
.ak-contact__form .row > * { width: auto !important; max-width: none !important; flex: none !important; float: none !important; padding: 0 !important; margin: 0 !important; }
@media (min-width: 640px) { .ak-contact__form .row:has(> .col-md-6) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-contact__form label, .ak-label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 700; color: var(--ak-ink); }
.ak-contact__form .ak-form-row, .ak-contact__form .form-group, .ak-contact__form .mb-3 { margin: 0; }
.ak-contact__form .text-danger, .ak-contact__form .invalid-feedback { color: #ff8a80; font-size: 14px; }
.ak-contact__form .ak-btn--submit, .ak-contact__form button[type="submit"] { justify-self: start; }
.ak-contact__form .form-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; font-weight: 400; color: var(--ak-text); cursor: pointer; }
.ak-contact__form input[type="checkbox"], .ak-contact__form input[type="checkbox"].ak-field {
    flex: none; width: 22px !important; height: 22px; min-height: 0; margin: 4px 0 0; padding: 0; float: none;
    -webkit-appearance: auto; appearance: auto; accent-color: var(--ak-yellow); border-radius: 4px; background: none; box-shadow: none; cursor: pointer;
}
.ak-contact__form .contact-message {
    margin-top: 6px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.8;
    background: var(--ak-coal) !important; color: var(--ak-ink) !important; border: 1px solid var(--ak-line-strong) !important;
    border-inline-start: 4px solid var(--ak-yellow) !important;
}
.ak-contact__form .contact-error-message { border-inline-start-color: #ff8a80 !important; }
.ajax-response:empty { display: none; }
.ajax-response { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--ak-coal); color: var(--ak-ink); }
.ajax-response .text-success, .contact-success-message { color: var(--ak-yellow); }

/* 18. Page header ----------------------------------------------------------------------------------------- */
.ak-pagehead {
    position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 84px) clamp(32px, 5vw, 64px);
    border-bottom: 1px solid var(--ak-line);
    background: radial-gradient(ellipse 45% 70% at 12% 50%, rgba(252, 190, 11, .07), transparent 70%), var(--ak-black);
}
/* Phones: the outline would cross the title and lead, so it only appears from tablets up. */
.ak-pagehead__art { display: none; position: absolute; top: 50%; inset-inline-end: -4%; width: min(46vw, 470px); transform: translateY(-50%); pointer-events: none; }
@media (min-width: 768px) { .ak-pagehead__art { display: block; } .ak-pagehead__inner { max-width: 62%; } }
@media (min-width: 1100px) { .ak-pagehead__inner { max-width: 66%; } }
.ak-pagehead__hex .ak-hex__edge { stroke: rgba(255, 255, 255, .09); stroke-width: .7; vector-effect: none; }
.ak-pagehead__hex .ak-hex__edge.is-lit { stroke: var(--ak-yellow); stroke-width: 1.15; }
.ak-motion .ak-pagehead__hex .ak-hex__edge.is-lit { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ak-draw .7s var(--ak-ease) .25s forwards; }
.ak-pagehead__inner { position: relative; }
.ak-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; padding: 0; font-size: 13.5px; color: var(--ak-faint); }
.ak-crumbs li + li::before { content: "/"; margin-inline-end: 10px; color: var(--ak-line-strong); }
.ak-crumbs a { color: var(--ak-muted); text-decoration: none; }
@media (hover: hover) { .ak-crumbs a:hover { color: var(--ak-yellow); } }
.ak-pagehead__title { font-size: clamp(30px, 4.6vw, 62px); line-height: 1.35; max-width: 19em; }
.ak-pagehead__lead { margin-top: 14px; max-width: 40em; font-size: clamp(16.5px, 1.6vw, 20px); line-height: 1.9; color: var(--ak-muted); }
.ak-pagehead__meta { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 20px 0 0; padding: 0; font-size: 14.5px; color: var(--ak-faint); }
.ak-motion .ak-pagehead__title, .ak-motion .ak-pagehead__lead, .ak-motion .ak-pagehead__meta { animation: ak-rise .7s var(--ak-ease-out) both; }
.ak-motion .ak-pagehead__lead { animation-delay: .08s; }
.ak-motion .ak-pagehead__meta { animation-delay: .14s; }

/* 19. Prose: posts, services, project stories ------------------------------------------------------------- */
.ak-prose { color: var(--ak-text); font-size: 17px; line-height: 2.05; max-width: 46rem; overflow-wrap: anywhere; }
@media (min-width: 768px) { .ak-prose { font-size: 18px; } }
.ak-prose > * { margin: 0; }
.ak-prose > * + * { margin-top: 1.05em; }
.ak-prose h2, .ak-prose h3, .ak-prose h4 { color: var(--ak-ink); }
.ak-prose h2 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.5; margin-top: 1.8em; }
.ak-prose h3 { font-size: clamp(19.5px, 1.9vw, 23px); line-height: 1.55; margin-top: 1.6em; }
.ak-prose h4 { font-size: 18px; margin-top: 1.4em; }
.ak-prose > h2:first-child, .ak-prose > h3:first-child { margin-top: 0; }
.ak-prose h2::before {
    content: ""; display: inline-block; width: .5em; height: .56em; margin-inline-end: .45em; vertical-align: .05em;
    background: var(--ak-yellow); clip-path: var(--ak-hexagon);
}
.ak-prose a { color: var(--ak-yellow); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ak-prose strong, .ak-prose b { color: var(--ak-ink); }
.ak-prose ul { list-style: none; padding: 0; }
.ak-prose ul > li { position: relative; padding-inline-start: 1.4em; }
.ak-prose ul > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .82em; width: .48em; height: .54em; background: var(--ak-yellow); clip-path: var(--ak-hexagon); }
.ak-prose ol { padding-inline-start: 1.4em; }
.ak-prose ol > li::marker { color: var(--ak-yellow); font-weight: 700; }
.ak-prose li + li { margin-top: .45em; }
.ak-prose li > p { margin: 0; }
.ak-prose li > ul, .ak-prose li > ol { margin-top: .45em; }
.ak-prose blockquote { margin-inline: 0; padding: 4px 20px; border-inline-start: 3px solid var(--ak-yellow); color: var(--ak-ink); }
.ak-prose hr { border: 0; height: 1px; background: var(--ak-line); margin-block: 2em; }
.ak-prose img { display: block; border-radius: 10px; }
.ak-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.ak-prose th, .ak-prose td { padding: 10px 12px; border: 1px solid var(--ak-line); text-align: start; vertical-align: top; }
.ak-prose th { background: var(--ak-night); color: var(--ak-ink); }
.ak-prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--ak-coal); }

/* 20. Post page ------------------------------------------------------------------------------------------- */
.ak-article { padding-top: clamp(28px, 4vw, 56px); }
.ak-article__cover { margin: 0 auto clamp(28px, 4vw, 52px); max-width: 980px; overflow: hidden; border: 1px solid var(--ak-line); border-radius: 14px; }
.ak-article__cover img { display: block; width: 100%; height: auto; }
.ak-article__body { margin-inline: auto; }
.ak-share { max-width: 46rem; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--ak-line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ak-share__label { font-weight: 700; color: var(--ak-ink); margin-inline-end: 6px; }
.ak-share__btn {
    width: 46px; height: 46px; display: grid; place-items: center; color: var(--ak-ink);
    background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: 10px; cursor: pointer; transition: color .2s, border-color .2s;
}
.ak-share__btn .ak-icon { width: 20px; height: 20px; }
@media (hover: hover) { .ak-share__btn:hover { color: var(--ak-yellow); border-color: var(--ak-yellow); } }
.ak-share__done { color: var(--ak-yellow); font-size: 14px; }

/* 21. Work page ------------------------------------------------------------------------------------------- */
.ak-project__grid { display: grid; gap: 28px; }
.ak-project__gallery { display: grid; gap: 16px; }
.ak-shot { margin: 0; overflow: hidden; border: 1px solid var(--ak-line); border-radius: 14px; background: #0d0d0d; }
.ak-shot img { display: block; width: 100%; height: auto; }
.ak-project__aside { display: grid; gap: 22px; align-content: start; }
.ak-project__story { font-size: 16.5px; }
.ak-project__story h3 { font-size: 19px; margin-top: 1.3em; }
@media (min-width: 992px) {
    .ak-project__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: start; }
    .ak-project__aside { position: sticky; top: calc(var(--ak-header-h) + 24px); max-height: calc(100vh - var(--ak-header-h) - 48px); overflow-y: auto; padding-inline-end: 4px; scrollbar-width: thin; }
}

/* 22. Service page and cards ------------------------------------------------------------------------------ */
.ak-service__grid { display: grid; gap: 32px; }
@media (min-width: 992px) {
    .ak-service__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
    .ak-service__aside { position: sticky; top: calc(var(--ak-header-h) + 24px); }
}
.ak-card { display: grid; gap: 16px; padding: 22px; background: var(--ak-night); border: 1px solid var(--ak-line); border-radius: 14px; }
.ak-card__head { display: flex; align-items: center; gap: 14px; }
.ak-card__head p { color: var(--ak-muted); line-height: 1.7; }
.ak-card__head b { display: block; color: var(--ak-ink); font-size: 18px; }
.ak-card__hex { width: 54px; height: 54px; flex: none; }
.ak-card__hex .ak-hex__edge { stroke-width: 2.5; }
.ak-card__hex .ak-hex__edge.is-lit { stroke-width: 4.5; }
.ak-card__links { list-style: none; margin: 0; padding: 0; }
.ak-card__links a { display: block; padding: 11px 0; color: var(--ak-ink); text-decoration: none; border-bottom: 1px solid var(--ak-line); }
@media (hover: hover) { .ak-card__links a:hover { color: var(--ak-yellow); } }
.ak-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .ak-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ak-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.ak-card--link { height: 100%; color: inherit; text-decoration: none; transition: border-color .25s var(--ak-ease); align-content: start; }
.ak-card--link p { color: var(--ak-muted); }
.ak-card__title { font-size: 21px; }
@media (hover: hover) { .ak-card--link:hover { border-color: rgba(252, 190, 11, .55); } }

/* 23. Blog list, pager, empty ----------------------------------------------------------------------------- */
.ak-bloglist .ak-filters { margin-bottom: 28px; }
.ak-pager { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.ak-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ak-pager__page, .ak-pager__step, .ak-pager__gap {
    min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center;
    border: 1px solid var(--ak-line); border-radius: 10px; color: var(--ak-ink); text-decoration: none; font-weight: 700;
}
.ak-pager__gap { border-color: transparent; color: var(--ak-faint); }
.ak-pager__page[aria-current] { background: var(--ak-yellow); border-color: var(--ak-yellow); color: #000; }
.ak-pager__step.is-off { opacity: .4; }
@media (hover: hover) { a.ak-pager__page:hover, a.ak-pager__step:hover { border-color: var(--ak-yellow); color: var(--ak-yellow); } }
.ak-empty { display: grid; justify-items: center; gap: 14px; padding: 48px 0; text-align: center; color: var(--ak-muted); }
.ak-empty__hex { width: 120px; height: 120px; }

/* 24. 404 ------------------------------------------------------------------------------------------------- */
.ak-404__inner { display: grid; gap: 28px; justify-items: center; text-align: center; min-height: 56vh; align-content: center; }
.ak-404__hex { width: min(58vw, 300px); height: auto; }
.ak-404__hex .ak-hex__edge { stroke-width: 7; }
.ak-404__code { font-size: 15px; letter-spacing: .3em; color: var(--ak-faint); }
.ak-404__title { font-size: clamp(30px, 4.2vw, 54px); margin-top: 6px; }
.ak-404__lead { margin-top: 12px; color: var(--ak-muted); max-width: 32em; }
.ak-404__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 992px) {
    .ak-404__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); text-align: start; justify-items: start; gap: 72px; }
    .ak-404__actions { justify-content: flex-start; }
}

/* 25. Footer ---------------------------------------------------------------------------------------------- */
.ak-footer { border-top: 1px solid var(--ak-line); padding-top: clamp(48px, 7vw, 88px); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.ak-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
.ak-footer__brand { grid-column: 1 / -1; display: grid; gap: 16px; justify-items: start; align-content: start; }
.ak-footer__slogan { color: var(--ak-muted); font-size: 16.5px; }
.ak-footer__col:last-child { grid-column: 1 / -1; }
.ak-footer__title { font-size: 15px; margin-bottom: 10px; color: var(--ak-ink); }
.ak-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ak-footer__col a { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; color: var(--ak-muted); text-decoration: none; line-height: 1.5; }
.ak-footer__col a[aria-current] { color: var(--ak-ink); }
@media (hover: hover) { .ak-footer__col a:hover { color: var(--ak-yellow); } }
.ak-footer__contact .ak-icon { width: 18px; height: 18px; color: var(--ak-yellow); }
.ak-footer__place { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; color: var(--ak-muted); }
.ak-footer__bottom {
    margin-top: clamp(36px, 5vw, 56px); padding-top: 18px; border-top: 1px solid var(--ak-line);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--ak-faint);
}
.ak-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.ak-footer__legal a, .ak-footer__top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ak-muted); text-decoration: none; }
.ak-footer__top .ak-icon { width: 18px; height: 18px; }
@media (hover: hover) { .ak-footer__legal a:hover, .ak-footer__top:hover { color: var(--ak-yellow); } }
@media (min-width: 1100px) {
    .ak-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; }
    .ak-footer__brand, .ak-footer__col:last-child { grid-column: auto; }
}

/* 26. Floating WhatsApp ----------------------------------------------------------------------------------- */
.ak-float {
    position: fixed; z-index: 40; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    width: 58px; height: 62px; display: grid; place-items: center; isolation: isolate; color: #000;
    transition: opacity .3s var(--ak-ease), transform .3s var(--ak-ease); -webkit-tap-highlight-color: transparent;
}
.ak-float::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ak-yellow); clip-path: var(--ak-hexagon); }
.ak-float .ak-icon { width: 28px; height: 28px; }
.ak-float:active { transform: scale(.94); }
.ak-float.is-away { opacity: 0; transform: translateY(18px) scale(.9); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }
@media (min-width: 768px) { .ak-float { inset-inline-end: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); } }

/* 27. Plugin output: the cookie notice (a compact card; on the home page it waits until the visitor leaves the
   hero — js adds html.ak-hold-notice there) ------------------------------------------------------------------ */
.site-notice {
    font-family: var(--ak-font) !important; z-index: 45 !important;
    transition: transform .4s var(--ak-ease), opacity .4s var(--ak-ease);
}
.site-notice.site-notice-minimal {
    inset-inline: 12px auto !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important; max-width: min(420px, calc(100vw - 24px - 70px)) !important;
    background: var(--ak-coal) !important; color: var(--ak-text) !important;
    border: 1px solid var(--ak-line-strong); border-radius: 14px !important; box-shadow: none !important;
}
.site-notice .site-notice-body { max-width: none !important; margin: 0 !important; box-shadow: none !important; }
.site-notice .site-notice__inner { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 12px !important; padding: 12px 14px !important; }
.site-notice .site-notice__message { flex: 1 1 auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; font-size: 13.5px !important; line-height: 1.7 !important; color: var(--ak-text) !important; text-align: start !important; }
.site-notice .site-notice__message a { color: var(--ak-yellow) !important; }
.site-notice .site-notice__actions { flex: none; display: flex !important; gap: 8px; margin: 0 !important; padding: 0 !important; width: auto !important; }
.site-notice .site-notice__actions button, .site-notice .site-notice__agree {
    min-height: 40px; padding: 6px 16px !important; margin: 0 !important; width: auto !important;
    background: var(--ak-yellow) !important; color: #000 !important; border: 0 !important; border-radius: 9px !important;
    font: 700 14px/1.2 var(--ak-font) !important;
}
.site-notice .site-notice__agree::before { display: none !important; }
html.ak-hold-notice .site-notice { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* 28. Reduced motion -------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
