/* Header menu used on every live page: Services (opens a panel of three cards on hover or click), Work, About.
   The panel spans the page under the header; the CRM card takes half the width, the other two a quarter each. */
/* the same header on every page: logo left, menu centred, actions right, pill button.
   The home and CRM pages get this from v2.css; .hdr gives it to the contact, work and case study pages. */
.hdr{display:grid;grid-template-columns:1fr auto 1fr}
.hdr .nav{margin:0}
.hdr .header-actions{justify-content:flex-end}
.hdr .btn{border-radius:999px;font-weight:500}
.hdr .btn-sm{padding:0 18px}
@media (max-width:1120px){.hdr{display:flex;justify-content:space-between}}
@media (max-width:560px){.hdr .btn-sm{padding:0 12px}}

.menu-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;font:inherit;font-size:15px;color:var(--ink-2);background:none;border:0;cursor:pointer;transition:color .18s,background-color .18s}
.menu-btn:hover,.menu-btn[aria-expanded="true"]{color:var(--ink);background:var(--wash)}
.menu-btn svg{width:10px;height:10px;transition:transform .3s var(--ease)}
.menu-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.v3 .site-header.is-over-brand .menu-btn{color:rgb(255 255 255 / .74)}
.v3 .site-header.is-over-brand .menu-btn:hover,.v3 .site-header.is-over-brand .menu-btn[aria-expanded="true"]{color:#fff;background:rgb(255 255 255 / .12)}

/* while the panel is open the whole header goes dark, so header and panel read as one surface */
.site-header{transition:background-color .28s var(--ease),border-color .3s,color .28s var(--ease)}
/* neutral blacks in both themes: no green tint */
:root{--m-bg:#0e0e0e;--m-card-h:#1e1e1e;--m-line:rgb(255 255 255 / .12)}
.site-header.is-menu-open,.v3 .site-header.is-menu-open{background:var(--m-bg);border-bottom-color:transparent;color:#fff}
.site-header.is-menu-open .nav-list>li>a,.site-header.is-menu-open .menu-btn,.site-header.is-menu-open .theme-toggle{color:rgb(255 255 255 / .72)}
.site-header.is-menu-open .nav-list>li>a:hover,.site-header.is-menu-open .theme-toggle:hover,.site-header.is-menu-open .menu-btn:hover,.site-header.is-menu-open .menu-btn[aria-expanded="true"]{color:#fff;background:rgb(255 255 255 / .1)}
.site-header.is-menu-open .btn{background:#fff;color:#0d1211}
.site-header.is-menu-open .btn:hover{background:#e8eae7}
.site-header.is-menu-open :focus-visible{outline-color:#fff}

.menu-panel{position:absolute;left:0;right:0;top:100%;padding:0;background:var(--m-bg);color:#fff;box-shadow:0 30px 60px -30px rgb(13 18 17 / .55);opacity:0;transform:translateY(-8px);transition:opacity .22s var(--ease),transform .3s var(--ease)}
.menu-panel[hidden]{display:none}
.menu-panel:not(.is-open){pointer-events:none}
.menu-panel.is-open{opacity:1;transform:none}
/* one block across the whole width of the window: three columns divided by hairlines, not three separate cards */
.menu-grid{display:grid;grid-template-columns:2fr 1fr 1fr;width:100%;border-top:1px solid var(--m-line)}
.menu-card{display:flex;flex-direction:column;position:relative;min-height:clamp(160px,14vw,196px);padding:clamp(20px,2.2vw,32px) clamp(20px,2.6vw,40px);border-radius:0;background:transparent;color:#fff;opacity:0;transform:translateY(10px);transition:background-color .2s,opacity .35s var(--ease),transform .45s var(--ease);transition-delay:0s,calc(var(--i)*60ms + 60ms),calc(var(--i)*60ms + 60ms)}
.menu-panel.is-open .menu-card{opacity:1;transform:none}
.menu-card+.menu-card{border-left:1px solid var(--m-line)}
.menu-card:hover{background:var(--m-card-h)}
.menu-card svg{width:26px;height:26px;fill:none;stroke:rgb(255 255 255 / .9);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.menu-card b{margin-top:auto;font-family:var(--display);font-weight:500;font-size:clamp(1.3rem,1.7vw,1.55rem);line-height:1.1;letter-spacing:-.02em}
.menu-card span:not(.sec-label){margin-top:8px;max-width:34ch;font-size:15px;line-height:1.45;color:rgb(255 255 255 / .68)}
@media (prefers-reduced-motion:reduce){.menu-panel,.menu-card{transition:none;transform:none}}
@media (max-width:900px){.menu-panel{display:none}}
/* tags sit top right on the cards, so the page tag at the left edge (H-2 Hero) does not cover M-1 */
.menu-card .sec-label{left:auto;right:0;border-radius:0 0 0 6px}

/* dark mode: the header menu reads in white, not grey */
:root[data-theme="dark"] .site-header .nav-list>li>a,:root[data-theme="dark"] .site-header .menu-btn{color:#fff}

/* The closing block and the footer together fill exactly one screen under the header: scrolled to the bottom,
   nothing of the section above is left showing. --footer-h is measured by menu.js. */
.hpage .close,.v4 .close{display:grid;align-items:center;min-height:calc(100svh - var(--header) - var(--footer-h,340px));padding-block:clamp(32px,min(6vw,5svh),88px)}

/* Closing block and footer are one dark surface. One hairline separates them, the width of the content (never
   edge to edge), identical in light and dark mode; no seam where the two blocks meet.
   The header over the coloured brand section uses the same neutral black. */
.footer-grid::before,.footer-base::before{background:rgb(255 255 255 / .16)}
.footer{box-shadow:0 -1px 0 var(--deep)}
:root[data-theme="dark"] .hpage .close,:root[data-theme="dark"] .v4 .close{border-top:0}
.v3 .site-header.is-over-brand{background:#0e0e0e}

/* ════ 02/12, second batch ════ */

/* ── Buttons are pills, on every live page (house rule) ── */
.btn:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *){border-radius:999px;font-weight:500}

/* ── Theme switch: no button shape under the pointer. The moon (or the sun) fills in instead. ── */
.theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *):hover,.site-header.is-menu-open .theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *):hover,.site-header.is-dark .theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *):hover,.v3 .site-header.is-over-brand .theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *):hover{background:none}
/* the icon is always filled, with the fill fully clear; the pointer fades it in (a fill of "none" cannot fade) */
.theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *){transition:color .45s,background-color .18s}
.theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *) .i{fill:currentColor;fill-opacity:0;transition:opacity .25s,transform .5s var(--ease),fill-opacity .55s ease}
.theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *):hover .i,.theme-toggle:not([data-view="home"] *):not([data-view="v2"] *):not([data-view="v3"] *):focus-visible .i{fill-opacity:1}

/* ── Closing block (H-9, V4-10): the sentence on top, the promise in a quieter white, then the button with one line
   beside it. In the markup the paragraph comes first so its tag keeps its number; on screen the button leads. ── */
.close-stack h2{font-size:clamp(2.2rem,4.9vw,4.4rem);line-height:1.02}
.close-stack h2 span{display:block;margin-top:.16em;line-height:1.2}
.close-stack h2 mark{background:#fff;color:#0e0e0e;padding:.02em .16em .08em;margin-inline:-.04em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.close-act{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px;margin-top:clamp(30px,4.2vw,60px)}
.close-act .btn{order:-1}
.close-act p{max-width:30ch;font-size:16px;line-height:1.45;color:rgb(255 255 255 / .72)}
@media (max-width:560px){.close-act p{max-width:none}}

/* ── Footer: where else to find us. An outlined grey icon; under the pointer it fades to the opposite, a white
   disc with a black icon. Black and white only, and nothing moves. ── */
.footer-social{display:flex;gap:10px;margin-top:22px}
.footer-social a{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background-color:rgb(255 255 255 / 0);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .22);color:rgb(255 255 255 / .66);transition:background-color .45s ease,color .45s ease,box-shadow .45s ease}
.footer-social svg{width:20px;height:20px;fill:currentColor}
/* the WhatsApp mark carries a tail at its lower left: nudged so that its round bubble sits in the middle of the disc */
.footer-social .is-wa svg{translate:.7px -.7px}
.footer-social a:hover,.footer-social a:focus-visible{background-color:#fff;color:#0e0e0e;box-shadow:inset 0 0 0 1px #fff}
@media (prefers-reduced-motion:reduce){.footer-social a{transition:none}}

/* ── One line above the footer, the width of the content, in light and in dark mode: the full-width border that
   v2.css gives the footer showed in dark mode only ── */
.hpage .footer,.v4 .footer{border-top:0}

/* ── TEMPORARY (review): a footer button that plays the home page's loading screen again.
   To remove: this rule, the buttons marked data-intro-replay in home.html, v4.html and contact.html, the handler
   in menu.js, window.arkonIntro in home.html and .hp-hero.is-reset in home.css. ── */
.intro-replay{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 12px;border-radius:999px;box-shadow:inset 0 0 0 1px rgb(255 255 255 / .22);font-size:13.5px;line-height:1.2;color:rgb(255 255 255 / .82);transition:color .18s,background-color .18s,box-shadow .18s}
.intro-replay::before{content:"";width:0;height:0;border-left:8px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}
.intro-replay:hover{color:#0d1211;background:#fff;box-shadow:inset 0 0 0 1px #fff}

/* ════ Phones and tablets ════ */

/* The top menu is hidden below 1120px. A button opens the same destinations in a sheet under the header
   (built by menu.js). While it is open the header goes dark, like the Services panel on a large screen. */
.mnav-btn{display:none;place-items:center;flex:none;width:40px;height:40px;margin-left:2px;border-radius:50%;color:inherit}
.mnav-btn span,.mnav-btn span::before,.mnav-btn span::after{display:block;width:20px;height:1.75px;border-radius:2px;background:currentColor;transition:translate .3s var(--ease),rotate .3s var(--ease),background-color .2s}
.mnav-btn span{position:relative}
.mnav-btn span::before,.mnav-btn span::after{content:"";position:absolute;left:0;top:0}
.mnav-btn span::before{translate:0 -6px}
.mnav-btn span::after{translate:0 6px}
.mnav-btn[aria-expanded="true"] span{background:rgb(255 255 255 / 0)}
.mnav-btn[aria-expanded="true"] span::before{translate:0 0;rotate:45deg}
.mnav-btn[aria-expanded="true"] span::after{translate:0 0;rotate:-45deg}
.mnav{display:none}
@media (max-width:1120px){
  .mnav-btn{display:grid}
  .mnav{display:block;position:absolute;left:0;right:0;top:100%;height:calc(100dvh - var(--header));overflow:auto;overscroll-behavior:contain;background:var(--m-bg);color:#fff;opacity:0;translate:0 -10px;transition:opacity .25s var(--ease),translate .35s var(--ease)}
  .mnav[hidden]{display:none}
  .is-mnav-open .mnav{opacity:1;translate:none}
  .mnav-in{display:flex;flex-direction:column;min-height:100%;padding:6px var(--gutter) calc(22px + env(safe-area-inset-bottom))}
  .mnav-k{padding:14px 0 8px;font-size:13.5px;color:rgb(255 255 255 / .56)}
  .mnav-svc{display:block;padding:17px 0;border-top:1px solid var(--m-line)}
  .mnav-svc b{display:block;font-family:var(--display);font-weight:500;font-size:1.55rem;line-height:1.1;letter-spacing:-.02em}
  .mnav-svc span{display:block;margin-top:6px;max-width:36ch;font-size:15px;line-height:1.4;color:rgb(255 255 255 / .66)}
  .mnav-links{display:grid;margin-bottom:28px;border-top:1px solid var(--m-line)}
  .mnav-links a{padding:17px 0;border-bottom:1px solid var(--m-line);font-family:var(--display);font-weight:500;font-size:1.55rem;line-height:1.1;letter-spacing:-.02em}
  .mnav-cta{flex:none;width:100%;height:54px;margin-top:auto;font-size:16.5px}
  .mnav-in>*{opacity:0;translate:0 12px;transition:opacity .4s var(--ease),translate .5s var(--ease);transition-delay:calc(var(--i,0)*45ms + 40ms)}
  .is-mnav-open .mnav-in>*{opacity:1;translate:none}
  html.mnav-lock,html.mnav-lock body{overflow:hidden}
  @media (prefers-reduced-motion:reduce){.mnav,.mnav-in>*,.mnav-btn span,.mnav-btn span::before,.mnav-btn span::after{transition:none}}
}
/* a very narrow phone: the menu button and Contact Us keep their room, the light/dark switch gives way */
@media (max-width:350px){.site-header .theme-toggle{display:none}}

/* on a phone the small footer and band links get a taller touch area */
@media (max-width:720px){
  .intro-replay{padding-block:10px}
  .footer .versions a{padding:8px 13px}
  .wk-logos-all{padding-block:8px 6px}
  .footer nav a{padding:7px 0}
}
