/* Adams Apple Electrical — site styles.
   Type scale follows the big sites (Google, YouTube, Microsoft, Stripe all use a 16 px root): text 16 px on every screen,
   page titles 28 px on phones up to 44 px on computers. The layout fills the screen at every width, as Airbnb's and
   Microsoft's do: more cards to a row and bigger photos on wider screens, and on wide screens a text page's sections side
   by side, so the lines stay readable and nothing sits in a narrow column in the middle. */
:root{
  --ink:#172019; --ink-2:#4b5a50; --ink-3:#6b786f;
  --paper:#ffffff; --paper-2:#f3f7ee; --paper-3:#fafcf7;
  --line:#d9e3d3;
  --green:#3e7d33; --green-dark:#2c5c24; --green-soft:#e1efd7;
  --gold:#ffd84d; --gold-deep:#e6b91c;
  --cc-deep:#3a2a6e; --cc-acc:#5a3fb0; --cc-acc-dark:#47318f; --cc-tint:#f1edfb; --cc-edge:#e4dcf7;
  --acc:var(--green); --acc-dark:var(--green-dark); --acc-tint:var(--green-soft);
  --display:"Inter","WenKai","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  --body:"Inter","WenKai",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --radius:.75rem; --gutter:1.1rem; --shadow:0 .1rem .35rem rgba(23,32,25,.06),0 .6rem 1.6rem rgba(23,32,25,.07);
}
.s-client-check{ --acc:var(--cc-acc); --acc-dark:var(--cc-acc-dark); --acc-tint:var(--cc-tint); }

html{ font-size:16px; -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (min-width:760px){ :root{ --gutter:1.6rem; } }
@media (min-width:1100px){ :root{ --gutter:clamp(2rem, 3.5vw, 6rem); } }   /* 39 px at 1100 wide, 67 at 1920, 90 at 2560 */
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } *,*::before,*::after{ transition:none !important; } }

*,*::before,*::after{ box-sizing:border-box; }
body{ margin:0; font-family:var(--body); color:var(--ink); background:var(--paper); line-height:1.6; font-size:1rem; }
/* a short page (an album with a few photos, the 404) still has its footer at the bottom of the window */
body:not(.adm){ min-height:100vh; display:flex; flex-direction:column; }
body:not(.adm) > main{ flex:1 0 auto; }
img{ max-width:100%; height:auto; display:block; }
[hidden]{ display:none !important; }
a{ color:var(--acc-dark); text-underline-offset:.15em; }
a:hover{ color:var(--acc); }
:focus-visible{ outline:3px solid var(--gold-deep); outline-offset:2px; border-radius:4px; }
h1,h2,h3,h4{ font-family:var(--display); line-height:1.2; color:var(--ink); letter-spacing:-.01em; }
h1{ font-size:clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); margin:.2em 0 .35em; font-weight:800; }
/* headings, questions and intros wrap into even lines, so no word is left alone on the last one */
h1,h2,h3,.faq-item summary,.lede{ text-wrap:balance; }
p,li{ text-wrap:pretty; }
/* Chinese headings and intros break at spaces and punctuation first, inside a word only when a line cannot hold it */
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3,:lang(zh) .lede{ word-break:keep-all; overflow-wrap:anywhere; }
/* Latin words in a Chinese heading would look much heavier at 800 than 霞鹜文楷 Bold beside them */
h1:lang(zh),h2:lang(zh),h3:lang(zh){ font-weight:700; }
/* Chinese: 霞鹜文楷's thin strokes read a size smaller than Inter, so the small Chinese labels are 14–15 px, not 12–13 */
.crumbs ol:lang(zh),.eyebrow:lang(zh),.toc-h:lang(zh),.meta:lang(zh),.small:lang(zh),figcaption:lang(zh),.ftr-legal:lang(zh),
.menu-btn:lang(zh){ font-size:.875rem; }
.toc a:lang(zh){ font-size:.9375rem; }
.brand small:lang(zh){ font-size:.8125rem; }
h2{ font-size:clamp(1.375rem, 1.1rem + .7vw, 1.875rem); margin:2.2rem 0 .7rem; font-weight:750; }
h3{ font-size:1.15rem; margin:1.6rem 0 .45rem; font-weight:700; }
h4{ font-size:1rem; margin:1.2rem 0 .3rem; }
p,ul,ol{ margin:0 0 1rem; }
ul,ol{ padding-left:1.25rem; }
li{ margin:.25rem 0; }
strong{ font-weight:700; }
.wrap{ width:calc(100% - 2*var(--gutter)); margin-inline:auto; }
.skip{ position:absolute; left:-9999px; top:0; background:var(--gold); color:var(--ink); padding:.5rem .8rem; z-index:100; }
.skip:focus{ left:.5rem; top:.5rem; }
/* for screen readers and search engines only: the heading a hub's cards sit under (build.py md_to_html LISTED) */
.vh{ position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.preview-bar{ background:var(--gold); color:var(--ink); text-align:center; font-size:.8rem; padding:.3rem .6rem; font-weight:600; }

/* ---------- header ---------- */
/* 2026-11-08: a taller row (80 px on computers) with the menu in the middle of the screen and only the account on the
   right: Log in, Sign up and the round avatar (signed in: the avatar alone). Phones and iPads in portrait: the brand,
   the avatar and the Menu button; Log in and Sign up are in the avatar's menu there. */
.hdr{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.96); backdrop-filter:saturate(1.4) blur(8px); border-bottom:1px solid var(--line); }
.hdr-in{ display:flex; align-items:center; gap:.6rem; min-height:4rem; }
.brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none; color:var(--ink); margin-right:auto; min-width:0; }
.brand img{ width:auto; height:2.4rem; }
.brand strong{ display:block; font-size:1rem; line-height:1.1; letter-spacing:-.01em; }
.brand small{ display:block; font-size:.75rem; color:var(--ink-2); }
.menu-btn{ display:inline-flex; align-items:center; gap:.45rem; border:1px solid var(--line); background:var(--paper); color:var(--ink); border-radius:999px; padding:.45rem .85rem; font:inherit; font-size:.85rem; cursor:pointer; }
.menu-btn .i,.menu-btn .i::before,.menu-btn .i::after{ display:block; width:1rem; height:2px; background:currentColor; position:relative; content:""; }
.menu-btn .i::before{ position:absolute; top:-5px; } .menu-btn .i::after{ position:absolute; top:5px; }
/* phones (up to the largest iPhones, 440 px): the menu button shows its icon only, so the brand, the avatar and the
   button fit on one row with room between them */
@media (max-width:440px){
  .hdr-in{ gap:.45rem; }
  .brand strong{ font-size:.92rem; }
  .menu-btn{ padding:0; min-width:2.6rem; min-height:2.6rem; justify-content:center; }
  .menu-btn .t{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
}
/* the menu folds away behind its button only when JavaScript runs (html.js, set first thing in the page head); without
   it the button could not open it, so the menu stays open under the header and the button is not shown */
@media (max-width:1099px){
  html:not(.js) .hdr-in{ flex-wrap:wrap; }
  html:not(.js) .menu-btn{ display:none; }
  html:not(.js) .nav{ order:9; flex-basis:100%; padding:0 0 1rem; }
}
.js .nav{ display:none; }
.js .nav.open{ display:block; position:absolute; left:0; right:0; top:100%; background:var(--paper); border-bottom:1px solid var(--line); box-shadow:var(--shadow); max-height:calc(100vh - 4rem); max-height:calc(100dvh - 4rem); overflow:auto; padding:.5rem var(--gutter) 1.2rem; } /* dvh: the visible height on phones, so the end of the open menu is not under the browser's toolbar */
.nav-list{ list-style:none; margin:0; padding:0; }
.nav-list > li{ margin:0; }
.nav-list > li > a{ display:block; padding:.7rem 0; font-weight:650; text-decoration:none; color:var(--ink); border-bottom:1px solid var(--line); }
.sub{ display:none; padding:.3rem 0 .8rem; }
.has-sub.open > .sub{ display:block; }
/* a menu item with a panel carries a small chevron, pointing up while its panel is open: after the word on computers,
   at the end of the row in the phone and iPad menu */
.has-sub > a::after,.fly-btn::after{ content:""; display:inline-block; flex:none; width:.8em; height:.8em; margin-left:.15em; vertical-align:-.1em; background:currentColor; opacity:.8; transition:transform .15s;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.25 6 7.75l3.5-3.5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.25 6 7.75l3.5-3.5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.has-sub > a:lang(zh)::after{ vertical-align:-.03em; }   /* level with the middle of 霞鹜文楷's taller characters */
.has-sub.open > a::after,.fly-g.open > .fly-btn::after{ transform:rotate(180deg); }
/* Esc closed the panel: it stays closed while the focus is still on its menu item (site.js) */
.has-sub.shut > .sub{ display:none !important; }
@media (max-width:1099px){
  .nav-list > .has-sub > a{ display:flex; align-items:center; justify-content:space-between; }
  html:not(.js) .has-sub > a::after,html:not(.js) .fly-btn::after{ display:none; }   /* without JavaScript the menu is shown in full and its groups do not open */
}
@media (forced-colors:active){ .has-sub > a::after,.fly-btn::after{ forced-color-adjust:none; background:LinkText; opacity:1; } }
.sub ul{ list-style:none; margin:0; padding:0; }
.sub li{ margin:0; }
.sub li a{ display:block; padding:.35rem 0; color:var(--ink-2); text-decoration:none; font-size:.92rem; }
.sub-all{ display:inline-block; margin-top:.4rem; font-weight:650; font-size:.9rem; text-decoration:none; }
/* Services: the six groups (build.py GROUPS), each opening its services. In the phone and iPad
   menu a group opens downwards under its name; on computers to the right of the panel (below). */
.fly-btn{ display:flex; width:100%; align-items:center; justify-content:space-between; gap:1rem; padding:.55rem 0; border:0; background:transparent; font:inherit; font-weight:650; font-size:.95rem; color:var(--ink); text-align:left; cursor:pointer; }
.fly-2{ display:none; padding:0 0 .5rem .9rem !important; }
.fly-g.open > .fly-2{ display:block; }
html:not(.js) .fly-2{ display:block; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.4rem; border-radius:999px; padding:.7rem 1.2rem; font-weight:700; text-decoration:none; font-size:.95rem; line-height:1.2; border:2px solid transparent; transition:background .15s, color .15s, border-color .15s; }
/* a <button> takes the browser's own button font unless told otherwise: 提交 came out in the system Hei font (2026-11-13) */
.btn,.hero-arrow,.lang-hint button{ font-family:inherit; }
.btn-pri{ background:var(--acc); color:#fff; }
.btn-pri:hover{ background:var(--acc-dark); color:#fff; }
.btn-ghost{ border-color:var(--acc); color:var(--acc-dark); background:transparent; }
.btn-ghost:hover{ background:var(--acc-tint); color:var(--acc-dark); }
.btns{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.2rem; }
/* phones: buttons that wrap fill the width, so a pair never stacks at two different widths */
@media (max-width:560px){ .btns .btn{ flex:1 1 auto; } }
.brand strong,.brand small,.nav-list > li > a,.fly-btn,.acct-in,.menu-btn,.btn{ white-space:nowrap; }
/* phones under 360 px: with the avatar and the menu button beside it, the name may take two lines and the line under it
   is left out (the page's heading says it), so nothing runs under the buttons */
@media (max-width:389px){ .brand small{ display:none; } }
@media (max-width:359px){
  .brand img{ height:2.1rem; }
  .brand strong{ white-space:normal; line-height:1.15; }
}

/* the account: Log in and Sign up (computers), the avatar (everywhere), the Menu button (phones, iPads in portrait) */
.acct-area{ display:flex; align-items:center; gap:.5rem; flex:none; }
.acct-in,.acct-up{ display:none; }
.acct-in{ align-items:center; font-weight:650; font-size:.95rem; color:var(--ink); text-decoration:none; padding:.55rem .75rem; border-radius:999px; }
.acct-in:hover{ background:var(--paper-2); color:var(--ink); }
.acct-up{ padding:.55rem 1.1rem; }
.av-wrap{ position:relative; }
/* phones and iPads in portrait: the menu hangs from the header's right edge, not from the avatar (the Menu button is to
   its right), so it never runs off the left of a narrow screen */
@media (max-width:1099px){
  .av-wrap{ position:static; }
  .acct-area .acct-menu{ right:var(--gutter); }
}
.av{ width:2.75rem; height:2.75rem; flex:none; border-radius:50%; border:0; padding:0; display:grid; place-items:center; cursor:pointer; background:#eceeec; color:#5d6a61; font:inherit; font-weight:750; font-size:1.15rem; line-height:1; }
.av:hover{ background:#e1e5e1; }
.av .av-i{ width:1.5rem; height:1.5rem; fill:currentColor; }
.av.is-user,.av-big{ background:var(--green); color:#fff; }
.av.is-user{ box-shadow:0 0 0 2px var(--paper), 0 0 0 4px rgba(62,125,51,.35); }
.av.is-user:hover{ background:var(--green-dark); }
.av.is-user .av-i{ display:none; }
.av[aria-expanded="true"]{ box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--green); }
.av-big{ width:2.6rem; height:2.6rem; cursor:default; }
.acct-menu{ position:absolute; right:0; top:calc(100% + .55rem); width:min(19rem, calc(100vw - 2 * var(--gutter))); background:var(--paper); border:1px solid var(--line); border-radius:1rem; box-shadow:0 1.2rem 2.6rem rgba(23,32,25,.18); padding:.45rem; z-index:60; }
.acct-menu > a{ display:flex; align-items:center; gap:.7rem; padding:.62rem .75rem; border-radius:.6rem; color:var(--ink); text-decoration:none; font-weight:550; }
.acct-menu > a:hover{ background:var(--paper-2); color:var(--ink); }
.acct-menu > a img{ width:1.5rem; height:1.5rem; border-radius:.35rem; }
.acct-menu .acct-i{ width:1.5rem; height:1.5rem; padding:.1rem; fill:var(--ink-2); flex:none; }
.acct-who{ display:flex; align-items:center; gap:.75rem; padding:.55rem .75rem .8rem; border-bottom:1px solid var(--line); margin-bottom:.35rem; }
.acct-who p{ margin:0; line-height:1.3; min-width:0; }
.acct-who strong{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acct-who small{ color:var(--ink-3); font-size:.85rem; }
.acct-lang{ display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.55rem .75rem; margin:.3rem 0; border-bottom:1px solid var(--line); }
.acct-menu.is-user .acct-lang{ border-top:1px solid var(--line); }
.seg{ display:inline-flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; font-size:.88rem; }
.seg > *{ padding:.3rem .8rem; text-decoration:none; color:var(--ink); }
.seg > [aria-current]{ background:var(--ink); color:#fff; }
.seg > a:hover{ background:var(--paper-2); color:var(--ink); }

/* computers and iPads in landscape: the row needs about 1000 px (brand, five menu items, Log in, Sign up and the avatar);
   the menu sits in the middle of the screen */
@media (min-width:1100px){
  .hdr-in{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:1.2rem; min-height:5rem; }
  .brand{ justify-self:start; margin-right:0; flex-shrink:0; }
  .acct-area{ justify-self:end; }
  .acct-in,.acct-up{ display:inline-flex; }
  .menu-btn{ display:none; }
  .nav{ display:block !important; position:static !important; box-shadow:none !important; border:0 !important; padding:0 !important; max-height:none !important; overflow:visible !important; }
  .nav-list{ display:flex; gap:.2rem; }
  .nav-list > li{ position:relative; }
  .nav-list > li > a{ display:flex; align-items:center; border:0; padding:.6rem .85rem; border-radius:.6rem; font-size:.98rem; }
  .nav-list > li > a:lang(zh){ font-size:1rem; }
  .nav-list > li > a:hover,.has-sub.open > a{ background:var(--paper-2); }
  .sub{ position:absolute; top:calc(100% + .5rem); left:-.4rem; min-width:15rem; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 1.2rem 2.6rem rgba(23,32,25,.16); padding:.9rem 1.1rem; }
  .sub::before{ content:""; position:absolute; left:0; right:0; top:-.6rem; height:.6rem; }   /* bridges the gap under the menu item */
  .sub-short{ min-width:14rem; }
  .has-sub:focus-within > .sub,.has-sub.open > .sub{ display:block; }
  .has-sub:focus-within > a::after{ transform:rotate(180deg); }
  /* Services: the groups in the panel, a group's services to the right of it, level with the panel's top */
  .sub-fly{ padding:.45rem; min-width:16rem; }
  .fly-g{ position:static; }
  .fly-btn{ padding:.68rem .85rem; border-radius:.55rem; font-weight:600; }
  .fly-btn::after{ transform:rotate(-90deg); }
  .fly-g.open > .fly-btn{ background:var(--green-soft); color:var(--green-dark); }
  .fly-g.open > .fly-btn::after{ transform:rotate(-90deg); }
  .fly-2{ position:absolute; left:calc(100% - 1px); top:-1px; min-width:17rem; min-height:calc(100% + 2px); background:var(--paper); border:1px solid var(--line); border-radius:0 var(--radius) var(--radius) 0; box-shadow:0 1.2rem 2.6rem rgba(23,32,25,.12); padding:.45rem !important; margin:0; }
  .fly-2 li a{ padding:.58rem .85rem; border-radius:.55rem; color:var(--ink); font-size:.95rem; white-space:nowrap; }
  .fly-2{ width:max-content; }
  .fly-2 li a:hover{ background:var(--paper-2); }
  .sub-fly .sub-all{ display:block; margin:.3rem 0 0; padding:.7rem .85rem .5rem; border-top:1px solid var(--line); }
  html:not(.js) .fly-2{ display:none; }
  html:not(.js) .fly-g:hover > .fly-2,html:not(.js) .fly-g:focus-within > .fly-2{ display:block; }
}
/* without JavaScript a mouse opens the panels by pointing at them; with it site.js opens them after a short pause and
   closes them half a second after the pointer leaves, so a panel does not flash open on the way past */
@media (min-width:1100px) and (hover:hover){
  html:not(.js) .has-sub:hover > .sub{ display:block; }
}
@media (min-width:1100px) and (max-width:1299px){ .nav-list > li > a{ padding-inline:.6rem; } }
/* touch screens (phones, iPads): the controls in the header and the menu, and the banner's buttons (with the banner), are
   at least 44 px tall, the smallest target Apple and Google give for a finger */
@media (pointer:coarse){
  .menu-btn,.acct-in,.acct-up,.av,.seg > *{ min-height:44px; }
  .seg > *{ display:inline-flex; align-items:center; }
  .menu-btn{ min-width:44px; }
  .av{ min-width:44px; }
  .sub li a,.sub-all,.fly-btn,.acct-menu > a{ padding-block:.68rem; }
}
@media (pointer:coarse) and (min-width:1100px){
  .nav-list > li > a{ padding-block:.75rem; }
}

/* the apps' own row on the apps' pages: the menu row above is for the electrical business */
.apps-nav{ background:var(--cc-tint); border-bottom:1px solid var(--cc-edge); }
.apps-nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:.2rem; overflow-x:auto; scrollbar-width:none; }
.apps-nav ul::-webkit-scrollbar{ display:none; }
.apps-nav li{ margin:0; flex:none; }
.apps-nav a{ display:block; padding:.62rem .8rem; white-space:nowrap; text-decoration:none; color:var(--cc-deep); font-weight:600; font-size:.92rem; border-bottom:2px solid transparent; }
.apps-nav a:hover{ color:var(--cc-acc); }
.apps-nav a.on{ border-bottom-color:var(--cc-acc); color:var(--cc-acc-dark); }
/* narrow screens: the row scrolls sideways; its right edge fades so it shows there is more */
/* narrow screens: the row scrolls sideways; its right edge fades only while more items lie beyond it (site.js sets
   .more, and brings the current item into view) */
@media (max-width:899px){ .apps-nav ul.more,html:not(.js) .apps-nav ul{ -webkit-mask-image:linear-gradient(90deg, #000 85%, transparent); mask-image:linear-gradient(90deg, #000 85%, transparent); } }
@media (pointer:coarse){ .apps-nav a{ padding-block:.8rem; } }

/* a browser set to Chinese, on an English page: a one-time note that there is a Chinese version (site.js) */
.lang-hint{ background:var(--gold); color:var(--ink); }
.lang-hint .wrap{ display:flex; align-items:center; justify-content:center; gap:.6rem; padding:.4rem 0; font-size:.95rem; }
.lang-hint a{ color:var(--ink); font-weight:700; }
.lang-hint button{ border:0; background:transparent; color:var(--ink); font-size:1.35rem; line-height:1; cursor:pointer; padding:.15rem .5rem; border-radius:.4rem; }
@media (pointer:coarse){ .lang-hint button{ min-width:44px; min-height:44px; } }

/* ---------- breadcrumbs ---------- */
.crumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:.3rem; padding:0; margin:.9rem auto 0; font-size:.8rem; color:var(--ink-3); }
.crumbs li+li::before{ content:"›"; margin-right:.3rem; color:var(--ink-3); }
.crumbs a{ color:var(--ink-2); text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }
/* touch screens (phones, iPads): each link at least 24 px tall, WCAG 2.2's smallest target (2026-11-13, SEO audit 05
   F17). Padding on an inline link only widens the area a finger can hit: no line moves. Whole pixels, so the text is
   drawn on the same pixels as before (4.8 px drew it one pixel lower). Computers are unchanged. */
@media (pointer:coarse){ .crumbs a{ padding-block:5px; } }

/* ---------- hero ---------- */
.hero{ background:linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom:1px solid var(--line); margin-top:.6rem; }
.s-client-check .hero{ background:linear-gradient(180deg, var(--cc-tint), var(--paper)); border-color:var(--cc-edge); }
.t-home .hero{ margin-top:0; }   /* no breadcrumbs above it on the home page, so no white strip under the header */
.hero-in{ display:grid; gap:1.6rem; padding:2rem 0 2.4rem; align-items:center; }
.hero-text{ max-width:44rem; }
.eyebrow{ margin:0; font-size:.8rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.eyebrow a{ text-decoration:none; color:var(--acc-dark); }
.lede{ font-size:1.12rem; color:var(--ink-2); max-width:42rem; }
@media (min-width:1100px){ .lede{ font-size:1.25rem; } }
.meta{ font-size:.85rem; color:var(--ink-3); }
.hero-photo img{ width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow); }
.t-home .hero-photo img{ aspect-ratio:4/3; }
.hero-photo-full{ display:flex; justify-content:center; }
.hero-photo-full img{ width:auto; max-width:calc(100% * var(--w, 1)); max-height:calc(min(30rem, 66vh) * var(--w, 1)); aspect-ratio:auto; object-fit:contain; } /* --w: the size set in the back office */
.hero-phone{ display:none; }
@media (min-width:760px){
  .hero-phone{ display:flex; justify-content:center; }
  .hero-phone img{ height:min(28rem, 68vh); width:auto; aspect-ratio:auto; border-radius:1.4rem; border:.35rem solid #1d2420; box-shadow:var(--shadow); }
}
.hero-photo.rotating{ position:relative; }
.hero-photo.rotating img{ transition:opacity .6s; }
.hero-photo.rotating img:not(.on){ position:absolute; inset:0; opacity:0; }
.hero-arrow,.hero-toggle{ position:absolute; width:2.4rem; height:2.4rem; border-radius:50%; border:0; background:rgba(255,255,255,.85); color:var(--ink); cursor:pointer; box-shadow:var(--shadow); }
.hero-arrow{ top:50%; transform:translateY(-50%); font-size:1.4rem; line-height:1; }
@media (hover:hover){ .hero-arrow:hover,.hero-toggle:hover{ background:#fff; } }
/* the focus ring shows on any photo, the gold-lit ones too: a dark band inside the gold */
.hero-arrow:focus-visible,.hero-toggle:focus-visible{ box-shadow:0 0 0 2px var(--ink), var(--shadow); }
.hero-prev{ left:.6rem; } .hero-next{ right:.6rem; }
/* pause / play, in the bottom right corner (the back office's ✎ sits top left) */
.hero-toggle{ right:.6rem; bottom:.6rem; display:grid; place-items:center; padding:0; }
.hero-toggle svg{ width:1rem; height:1rem; fill:currentColor; }
@media (pointer:coarse){ .hero-arrow,.hero-toggle{ width:44px; height:44px; } }
@media (min-width:900px){
  .hero-photo-on .hero-in{ grid-template-columns:1.05fr .95fr; padding:2.6rem 0 3rem; }
  /* the home page: the heading, intro and buttons sit at the top of the band, level with the top of the photo; the
     space under them is kept free */
  .t-home .hero-in{ align-items:start; }
  .t-home .hero-text > :first-child{ margin-top:0; }
}
/* wide screens: the photo takes the larger share of the band and keeps its shape, so a photo framed in the back office
   shows the same crop on every screen; on a short, wide window it narrows (to the right edge) rather than run taller than
   about 72 % of the window. The business card and the phone screenshot grow with the screen. */
.hero-phone img + img{ display:none; }   /* an app page's second and third screens, shown from 1600 px */
@media (min-width:1600px){
  .hero-photo-on .hero-in{ grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); column-gap:3rem; }
  .hero-photo:not(.hero-photo-full):not(.hero-phone){ justify-self:end; width:100%; max-width:calc(72vh * 1.6); }
  .t-home .hero-photo:not(.hero-photo-full):not(.hero-phone){ max-width:calc(72vh * 4 / 3); }
  .hero-photo-full img{ max-height:calc(min(max(30rem, 28vw), 70vh) * var(--w, 1)); }
  .hero-phone{ gap:1.5rem; }
  .hero-phone img + img{ display:block; }
  .hero-phone img{ height:min(max(28rem, 24vw), 66vh); }
}

/* the home page (2026-11-08): the photo fills the width of the screen, cropped to the band and never stretched (the back
   office's framing decides the crop); the heading and buttons sit over its darker lower left, the photo controls in the
   bottom right corner. The band stops short of the window's bottom so the apps band under it shows on the first screen. */
.t-home .hero-full{ position:relative; margin:0; border:0; background:#0e1712; color:#fff; overflow:hidden; isolation:isolate; }
/* layers: the photos, the shade over them, the text, and the photo controls on top (the band makes no layer of its own,
   so its buttons can sit above the shade) */
.t-home .hero-full .hero-photo.hero-bg{ position:absolute; inset:0; z-index:auto; width:auto; max-width:none; justify-self:auto; border-radius:0; box-shadow:none; overflow:hidden; }
.hero-full .hero-arrow,.hero-full .hero-toggle{ z-index:3; }
.t-home .hero-full .hero-in{ position:relative; z-index:2; }
/* no object-fit here: .hero-photo img fills (cover) an unframed photo, and a framed band places its photos from
   "contain" (.framed > img), which this rule must not override */
.t-home .hero-full .hero-bg > img,.t-home .hero-full .hero-bg > picture > img{ width:100%; height:100%; aspect-ratio:auto; border-radius:0; box-shadow:none; }
.t-home .hero-full .hero-bg.framed{ background:#0e1712; }
/* the band's first photo as built (build.py home_hero): a <picture> that shows an entry's uncropped photo on a narrow
   screen (the same query as site.js NARROW). It takes no room of its own. On a phone, where the band is taller than
   wide, --sop puts the photo where its framing for a tall band does until site.js frames it (position only); a wider
   narrow band (an upright iPad) shows it centred, as site.js does there */
.t-home .hero-full .hero-bg > picture{ display:contents; }
@media (max-aspect-ratio:7/5) and (max-width:639px){
  .t-home .hero-full .hero-bg:not(.framed) > picture > img{ object-position:var(--sop, 50% 50%); }
}
/* the shade under the text: from the left and the bottom where text and photo sit side by side, from the bottom only on
   phones and iPads in portrait, where the text runs the full width and the top of the photo stays bright */
.hero-shade{ position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(0deg, rgba(3,8,6,.84) 0%, rgba(3,8,6,.62) 38%, rgba(3,8,6,.18) 68%, rgba(3,8,6,0) 85%); }
@media (min-width:900px){
  .hero-shade{ background:linear-gradient(90deg, rgba(5,11,8,.74) 0%, rgba(5,11,8,.48) 36%, rgba(5,11,8,0) 64%), linear-gradient(0deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,0) 52%); }
}
.t-home .hero-full .hero-in{ display:flex; align-items:flex-end; min-height:min(40rem, calc(100vh - 9rem)); min-height:min(40rem, calc(100svh - 9rem)); padding:6rem 0 5.6rem; }
.hero-full .hero-text{ max-width:46rem; }
.hero-full .hero-text > :first-child{ margin-top:0; }
.hero-full .eyebrow{ color:var(--gold); }
.hero-full h1{ color:#fff; font-size:clamp(2.1rem, 1.3rem + 2.7vw, 4rem); line-height:1.06; letter-spacing:-.02em; margin:.55rem 0 .9rem; text-shadow:0 1px 18px rgba(0,0,0,.28); }
.hero-full .lede{ color:#eef2ee; font-size:clamp(1.05rem, .95rem + .35vw, 1.3rem); }
.hero-full .btn-pri{ background:var(--gold); color:var(--ink); } .hero-full .btn-pri:hover{ background:#fff; color:var(--ink); }
.hero-full .btn-ghost{ border-color:rgba(255,255,255,.9); color:#fff; } .hero-full .btn-ghost:hover{ background:rgba(255,255,255,.14); color:#fff; }
.hero-full .hero-arrow{ top:auto; bottom:1.4rem; transform:none; }
.hero-full .hero-prev{ left:auto; right:calc(var(--gutter) + 6.2rem); }
.hero-full .hero-next{ right:calc(var(--gutter) + 3.1rem); }
.hero-full .hero-toggle{ right:var(--gutter); bottom:1.4rem; }
@media (min-width:1100px){
  .t-home .hero-full .hero-in{ min-height:min(56rem, calc(100vh - 10.5rem)); min-height:min(56rem, calc(100svh - 10.5rem)); padding-bottom:4.6rem; }
}
/* the quote form on the home hero (2026-11-09, Adam: 「enquiry要做到主页 hero照片上」, then 「不能一直放在hero图片上,要做
   一个明显的按钮,客人点了之后才出现卡片」; build.py enquiry_form hero, site.js): a card that its button opens, from
   1100px beside the heading over the photo, narrower (phones, iPads in portrait) right under the photo, on the hero's
   dark ground. The hero is a one-column grid: the photos and their shade cover its first row only (an absolutely placed
   grid item takes its grid area as its box), the card its second row; from 1100px the card floats (below) */
.t-home .hero-has-enq{ display:grid; grid-template-columns:minmax(0,1fr); }
.t-home .hero-has-enq > .hero-in{ grid-row:1; grid-column:1; }
/* both ends given: for an absolutely placed item an "auto" end is the grid container's own edge, not the next line */
.t-home .hero-has-enq > .hero-bg,.t-home .hero-has-enq > .hero-shade{ grid-row:1 / 2; grid-column:1 / 2; }
.t-home .hero-has-enq > .hero-enq{ grid-row:2; grid-column:1; position:relative; z-index:2; padding:1.4rem var(--gutter) 2.2rem; scroll-margin-top:4.5rem; }
.hero-enq[hidden]{ display:none; }
/* the card in the button's style (Adam: 「整张卡片都做成按钮的风格」): a dark panel inside a thin gold edge, both cut at the
   top right and bottom left like the button, with corner brackets, faint scan lines and a glow; gold for the fields'
   focus, the ticked choices and Submit (cut and lit like the button). The edge is the outer box's gold showing round
   the inner panel, so the cut corners keep it; the glow is a drop shadow on the wrapper, as a clip cuts box shadows */
.hero-enq{ filter:drop-shadow(0 0 1.1rem rgba(255,216,77,.22)) drop-shadow(0 .8rem 1.6rem rgba(0,0,0,.45)); }
.enq-card{ --cut:1.3rem; position:relative; max-width:34rem; margin:0 auto; padding:2px; color:#eef2ee;
  background:linear-gradient(135deg, #ffe774, var(--gold) 38%, rgba(255,216,77,.4) 68%, var(--gold));
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  animation:enq-in .32s cubic-bezier(.2,.8,.2,1); }
.enq-panel{ position:relative; padding:1.3rem 1.2rem 1.2rem; background-color:#0a100c;
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px), radial-gradient(120% 70% at 100% 0%, rgba(255,216,77,.12), transparent 60%);
  clip-path:polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px)); }
.enq-panel::before,.enq-panel::after{ content:""; position:absolute; width:.8rem; height:.8rem; pointer-events:none; }
.enq-panel::before{ left:.45rem; top:.45rem; border-left:2px solid var(--gold); border-top:2px solid var(--gold); }
.enq-panel::after{ right:.45rem; bottom:.45rem; border-right:2px solid var(--gold); border-bottom:2px solid var(--gold); }
@keyframes enq-in{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
@keyframes enq-in-side{ from{ opacity:0; transform:translateX(22px); } to{ opacity:1; transform:none; } }
.enq-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; padding-bottom:.75rem; border-bottom:1px solid rgba(255,216,77,.3); }
.enq-card h2{ color:#fff; font-size:1.2rem; line-height:1.2; margin:.15rem 0 0; letter-spacing:.08em; text-transform:uppercase; text-shadow:0 0 .9rem rgba(255,216,77,.4); }
html[lang^="zh"] .enq-card h2{ font-size:1.35rem; letter-spacing:.12em; text-transform:none; }
.enq-card h2:focus{ outline:none; }
.enq-x{ flex:none; display:grid; place-items:center; width:2.2rem; height:2.2rem; margin:-.3rem -.3rem 0 0; padding:0; border:1px solid rgba(255,216,77,.5); border-radius:0; background:transparent; color:var(--gold); cursor:pointer; }
.enq-x:hover{ background:rgba(255,216,77,.16); color:#fff; }
.enq-x:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.enq-x svg{ width:1rem; height:1rem; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:square; }
@media (pointer:coarse){ .enq-x{ width:44px; height:44px; } }
.enq-card .enq{ max-width:none; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:none; color:#eef2ee; }
.enq-card .enq fieldset,.enq-card .enq .fld[data-f="message"]{ margin-top:1rem; }
.enq-card .fld label,.enq-card .enq legend{ color:#e6ece4; font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
html[lang^="zh"] .enq-card .fld label,html[lang^="zh"] .enq-card .enq legend{ font-size:.95rem; letter-spacing:.06em; text-transform:none; }
.enq-card .req{ color:var(--gold); }
.enq-card .opt,.enq-card .hint,.enq-card .enq-act .small{ color:#97a99b; text-transform:none; letter-spacing:normal; }
/* edges of the fields and choices at 4:1 or more against the panel (WCAG's 3:1 for a field's edge) */
.enq-card .fld input,.enq-card .fld textarea{ background:#0f1712; color:#f2f5f0; border:1px solid rgba(255,216,77,.5); border-radius:0; }
.enq-card .fld input:focus,.enq-card .fld textarea:focus{ border-color:var(--gold); box-shadow:0 0 0 3px rgba(255,216,77,.22), 0 0 1rem rgba(255,216,77,.2); }
.enq-card .fld textarea{ min-height:5.5rem; }
.enq-card .fld.bad input,.enq-card .fld.bad textarea{ border-color:#ff7a6e; }
.enq-card .fld-err{ color:#ffa59b; }
.enq-card .chip span{ background:#0f1712; color:#e6ece4; border:1px solid rgba(255,216,77,.5); border-radius:0; }
.enq-card .chip span::before{ background:#0a100c; border-color:rgba(255,216,77,.65); border-radius:0; }
.enq-card .chip input:checked + span{ border-color:var(--gold); background:rgba(255,216,77,.14); color:var(--gold); }
.enq-card .chip input:checked + span::before{ background:var(--gold); border-color:var(--gold); box-shadow:inset 0 0 0 2.5px #0a100c; }
.enq-card .chip input:focus-visible + span{ outline:2px solid var(--gold); outline-offset:2px; }
.enq-card .enq-act{ margin-top:1.1rem; }
.enq-card .enq-act .btn-pri{ border:0; border-radius:0; color:#0b0f0c; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  background:linear-gradient(100deg, #ffe774 0%, var(--gold) 52%, #f2c230 100%);
  clip-path:polygon(0 0, calc(100% - .8rem) 0, 100% .8rem, 100% 100%, .8rem 100%, 0 calc(100% - .8rem)); }
html[lang^="zh"] .enq-card .enq-act .btn-pri{ letter-spacing:.16em; text-transform:none; }
.enq-card .enq-act .btn-pri:hover{ background:#fff; color:#0b0f0c; }
/* a clip would cut an outline off: the focus ring sits inside */
.enq-card .enq-act .btn-pri:focus-visible{ outline:none; box-shadow:inset 0 0 0 3px #0b0f0c; }
.enq-card .enq-act .small a,.enq-card .hint a{ color:var(--gold); }
.enq-card .enq-sum{ background:rgba(180,35,24,.22); border:1px solid #ff7a6e; border-radius:0; }
.enq-card .enq-sum > p,.enq-card .enq-sum a{ color:#ffcbc4; }
.enq-card .enq-done{ margin:0; background:rgba(255,216,77,.08); border:1px solid rgba(255,216,77,.4); border-left:3px solid var(--gold); border-radius:0; color:#eef2ee; }
.enq-card .enq-done h3{ color:var(--gold); }
/* From 1100px the card floats over the photo beside the heading, out of the layout, and stays inside the photo: opening
   it moves nothing (the photo keeps its crop, the buttons stay put) and covers nothing beyond the photo. Where the photo
   is shorter than the form (most laptops) the fields scroll inside the card between its heading and its Submit row
   (2026-11-09 reviews). While it is open (site.js marks the hero enq-open) the heading makes room for it: from 1100 to
   about 1330px wide it wraps a line more, upwards, and site.js keeps the hero at its closed height; closed, the hero is
   as it was before the card. The photo's arrows and pause button move out from under it, to its left */
@media (min-width:1100px){
  .t-home .hero-has-enq > .hero-enq{ position:absolute; grid-row:auto; grid-column:auto; top:2rem; right:var(--gutter); z-index:4; width:min(28rem, 34vw);
    max-height:calc(100% - 3.2rem); display:flex; flex-direction:column; padding:0; margin:0; scroll-margin-top:6rem; }
  .t-home .hero-has-enq .enq-card{ display:flex; flex-direction:column; min-height:0; max-width:none; animation-name:enq-in-side; }
  .t-home .hero-has-enq .enq-panel{ display:flex; flex-direction:column; min-height:0; padding:1.25rem 0 .9rem; }
  .t-home .hero-has-enq .enq-head{ flex:none; margin:0 1.6rem .6rem; }
  /* the fields scroll between the heading and the Submit row, which stay in sight: a form that runs on below the card's
     edge always shows its Submit (2026-11-09 review). The room round the fields keeps their focus rings inside, and a
     field reached by Tab comes fully into view. At its end the wheel goes on to the page */
  .t-home .hero-has-enq .enq-panel > .enq{ display:flex; flex-direction:column; min-height:0; }
  .t-home .hero-has-enq .enq-body{ min-height:0; overflow-y:auto; padding:.3rem 1.6rem .6rem; scroll-padding-block:.8rem;
    scrollbar-width:thin; scrollbar-color:rgba(255,216,77,.6) transparent; }
  .t-home .hero-has-enq .enq-card .enq-act{ flex:none; flex-wrap:nowrap; margin:0 1.6rem; padding-top:.8rem; border-top:1px solid rgba(255,216,77,.3); }
  .t-home .hero-has-enq .enq-act .small{ flex:1 1 0; min-width:0; font-size:.8rem; line-height:1.4; }
  .t-home .hero-has-enq .enq-panel > .enq-done{ margin:.3rem 1.6rem 0; }
  .t-home .hero-has-enq.enq-open .hero-text{ max-width:min(46rem, calc(100% - min(28rem, 34vw) - 3rem)); }
  .t-home .hero-has-enq.enq-open .hero-toggle{ right:calc(var(--gutter) + min(28rem, 34vw) + 1.2rem); }
  .t-home .hero-has-enq.enq-open .hero-next{ right:calc(var(--gutter) + min(28rem, 34vw) + 4.3rem); }
  .t-home .hero-has-enq.enq-open .hero-prev{ right:calc(var(--gutter) + min(28rem, 34vw) + 7.4rem); }
}
@media (prefers-reduced-motion:reduce){ .enq-card{ animation:none; } }
/* Windows' high contrast: the cut corners, glows and gradients go, so the card, its Submit and the fields keep plain
   edges and focus rings */
@media (forced-colors:active){
  .hero-enq{ filter:none; } .enq-card,.enq-panel{ clip-path:none; } .enq-card{ border:2px solid CanvasText; }
  .enq-card .enq-act .btn-pri{ clip-path:none; border:2px solid ButtonText; }
  .enq-card .enq-act .btn-pri:focus-visible{ outline:2px solid Highlight; outline-offset:2px; }
}
/* the button that opens it, a cyberpunk one (Adam: 「思博朋克感觉的按钮」): the brand's gold as a lit block with cut
   corners and a glow, a light that sweeps across once as the page opens and again when it is pointed at or reached by
   the keyboard (never on its own for long: WCAG 2.2.2), and a short colour split when pointed at; all still under less
   motion. The corners are cut on its inner body, so the link's own focus ring is not cut off */
.cyber{ position:relative; display:inline-flex; vertical-align:middle; text-decoration:none; color:#0b0f0c;
  filter:drop-shadow(0 0 .55rem rgba(255,216,77,.55)) drop-shadow(0 0 1.6rem rgba(255,216,77,.22)); transition:filter .2s; }
.cyber:hover{ color:#0b0f0c; filter:drop-shadow(0 0 .75rem rgba(255,216,77,.85)) drop-shadow(0 0 2.2rem rgba(255,216,77,.4)); }
.cyber:focus-visible{ outline:3px solid #fff; outline-offset:5px; }
.cyber-body{ position:relative; display:inline-flex; align-items:center; justify-content:center; gap:.8rem; min-height:3.5rem; padding:.95rem 1.7rem .95rem 1.55rem; overflow:hidden;
  background:linear-gradient(100deg, #ffe774 0%, var(--gold) 52%, #f2c230 100%);
  clip-path:polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  font-weight:800; font-size:1.05rem; line-height:1.1; letter-spacing:.08em; text-transform:uppercase; }
html[lang^="zh"] .cyber-body{ font-size:1.12rem; letter-spacing:.14em; text-transform:none; }
/* a corner bracket, as on a machine's panel, and the sweeping light */
.cyber-body::before{ content:""; position:absolute; left:.5rem; top:.45rem; width:.5rem; height:.5rem; border-left:2px solid rgba(11,15,12,.5); border-top:2px solid rgba(11,15,12,.5); }
.cyber-body::after{ content:""; position:absolute; inset:0; pointer-events:none; transform:translateX(-130%);
  background:linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%); animation:cyber-sweep 1.35s ease-in-out 1.4s 1 both; }
/* the first sweep stays first in the list, so it does not play again when the pointer or the focus leaves */
.cyber:hover .cyber-body::after,.cyber:focus-visible .cyber-body::after{ animation:cyber-sweep 1.35s ease-in-out 1.4s 1 both, cyber-sweep-again 1.35s ease-in-out 1 both; }
@keyframes cyber-sweep{ from{ transform:translateX(-130%); } to{ transform:translateX(130%); } }
@keyframes cyber-sweep-again{ from{ transform:translateX(-130%); } to{ transform:translateX(130%); } }
.cyber-txt{ position:relative; }
.cyber:hover .cyber-txt,.cyber:focus-visible .cyber-txt{ animation:cyber-split .42s steps(2, end) 1; }
@keyframes cyber-split{ 0%{ text-shadow:-2px 0 #00d8ff, 2px 0 #ff2bd6; transform:translateX(1px); } 50%{ text-shadow:2px 0 #00d8ff, -2px 0 #ff2bd6; transform:translateX(-1px); } 100%{ text-shadow:none; transform:none; } }
.cyber-arw{ position:relative; width:1.4rem; height:.8rem; flex:none; stroke:currentColor; stroke-width:2.2; fill:none; stroke-linecap:square; transition:transform .2s; }
.cyber:hover .cyber-arw{ transform:translateX(3px); }
.cyber:active .cyber-body{ transform:translateY(1px); }
@media (max-width:639px){ .hero-full .cyber,.hero-full .cyber-body{ display:flex; width:100%; } }
@media (prefers-reduced-motion:reduce){ .cyber-body::after,.cyber:hover .cyber-body::after,.cyber:focus-visible .cyber-body::after{ animation:none; display:none; } .cyber:hover .cyber-txt,.cyber:focus-visible .cyber-txt{ animation:none; } .cyber-arw{ transition:none; } }
@media (forced-colors:active){ .cyber{ filter:none; } .cyber-body{ clip-path:none; border:2px solid ButtonText; } }
/* the photos move slowly while the slideshow runs (Adam: "首页大图可以做成动图么"): each one zooms in a little and drifts
   sideways, one way then the other. scale and translate add to the transform that places a framed photo (site.js), so
   the framing stays as set. A pointer on the arrows or the pause button, or the keyboard in the band, holds only the
   change of photo: the one on show goes on moving to the end and rests there (Adam 2026-11-09: 「照样动」). Still
   when paused, while 编辑模式 frames a photo, or on a system that asks for less motion until the visitor presses play
   (site.js sets moving). 6.6 s, easing in and out: the 6 seconds on show and the cross-fade after, the same curve as
   the 3D movement. site.js marks every other photo kb-r. */
@keyframes kb-l{ from{ scale:1; translate:0 0; } to{ scale:1.08; translate:-2% -1%; } }
@keyframes kb-r{ from{ scale:1; translate:0 0; } to{ scale:1.08; translate:2% -1%; } }
.hero-full .rotating img{ animation:kb-l 6.6s ease-in-out both paused; }
.hero-full .rotating img.kb-r{ animation-name:kb-r; }
.hero-full .rotating.moving img.on{ animation-play-state:running; }
/* the 3D movement (site.js): a WebGL canvas over the photos draws the photo on show, moving in depth; it comes in and
   goes out with the photos' own cross-fade. The photo under it, or one waiting for its files, keeps still (gl-on); one
   the canvas hands over when the next photo cannot be drawn yet goes at once (gl-gone), so the two never show together */
.hero-bg > canvas.depth3d{ position:absolute; inset:0; width:100%; height:100%; display:block; opacity:0; transition:opacity .6s; pointer-events:none; }
.hero-bg > canvas.depth3d.on{ opacity:1; }
.hero-full .rotating img.gl-on{ animation:none; }
.hero-photo.rotating img.gl-gone{ transition:none; opacity:0; }
/* once the canvas covers the band, the photos under it are not drawn (site.js gl-lit); and the home band's photos all
   lie over the band, the one on show too, so a change of photo moves nothing on the page */
.t-home .hero-full .hero-bg.gl-lit img{ visibility:hidden; }
.t-home .hero-full .hero-photo.rotating img{ position:absolute; inset:0; }

/* ---------- the apps band (home): the apps' one place on the home page, apart from the services ---------- */
.apps-band{ background:linear-gradient(90deg, var(--cc-deep), var(--cc-acc)); color:#fff; }
.apps-band-in{ display:flex; flex-wrap:wrap; align-items:center; gap:.9rem 1.6rem; padding:1.05rem 0; }
.apps-band-t h2{ color:#fff; margin:0; font-size:1.25rem; letter-spacing:-.01em; }
.apps-band-t p{ margin:.15rem 0 0; color:#e7e1fb; font-size:.95rem; text-wrap:balance; }
.apps-band-t p:lang(zh){ word-break:keep-all; }   /* the balanced line breaks at the punctuation, never inside 手机 */
.apps-band-chips{ display:flex; flex-wrap:wrap; gap:.6rem; }
.app-chip{ display:flex; align-items:center; gap:.6rem; padding:.35rem .95rem .35rem .35rem; border-radius:.9rem; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3); color:#fff; text-decoration:none; font-weight:650; }
.app-chip:hover{ background:rgba(255,255,255,.22); color:#fff; }
.app-chip img{ width:2.4rem; height:2.4rem; border-radius:.6rem; }
.apps-band-go{ margin-left:auto; background:#fff; color:var(--cc-deep); }
.apps-band-go:hover{ background:var(--gold); color:var(--ink); }
@media (max-width:759px){ .apps-band-go{ margin-left:0; flex:1 1 100%; } }
@media (pointer:coarse){ .app-chip{ min-height:44px; } }

/* ---------- content ---------- */
/* a page's text comes in sections, each an h2 and what follows it (build.py); below 1600 px they flow one after another
   exactly as plain text did (margins collapse through them). The text starts 2rem under the hero, level with the sidebar. */
.content{ padding:2rem 0 2.5rem; }
/* 42rem: about 85 English or 42 Chinese characters to a line */
.sec > p,.sec > ul,.sec > ol,.sec > h2,.sec > h3,.sec > h4,.sec > .note,.sec > .table-wrap,.sec > figure{ max-width:42rem; }
.sec:first-child > :first-child{ margin-top:0; }
/* a hidden heading (.vh) first in a section does not count: what it names keeps the first place's top */
.sec:first-child > .vh:first-child + *{ margin-top:0; }
/* wide screens (from 1440 px): the sections sit side by side, two or three to a row, so the page fills the screen while
   each line stays readable; a section with cards, screenshots or photos, and the FAQ (its questions in columns), take the
   whole row */
@media (min-width:1440px){
  /* columns at least 28rem wide, at most three to a row */
  .content{ display:grid; grid-template-columns:repeat(auto-fill, minmax(max(28rem, calc((100% - 6rem) / 3)), 1fr)); column-gap:3rem; row-gap:2.2rem; align-items:start; }
  .sec > :first-child,.sec > .vh:first-child + *{ margin-top:0; }
  .sec > :last-child{ margin-bottom:0; }
  .content > .sec-wide,.content > .sec-faq{ grid-column:1 / -1; }
  /* a table of three or more columns takes the row (build.py WIDE) and may run wider than the text beside it */
  .sec-wide > .table-wrap{ max-width:64rem; }
  .sec-faq .faq{ max-width:none; display:grid; grid-template-columns:repeat(auto-fill, minmax(max(28rem, calc((100% - 6rem) / 3)), 1fr)); column-gap:3rem; align-items:start; border-top:0; border-bottom:1px solid var(--line); }
  .sec-faq .faq-item{ border-top:1px solid var(--line); border-bottom:0; }
}
h2[id],h3[id],.guide-page[id]{ scroll-margin-top:5.5rem; }
.note{ background:var(--paper-2); border-left:4px solid var(--acc); padding:.8rem 1rem; border-radius:0 .5rem .5rem 0; margin:1.2rem 0; color:var(--ink-2); }
.table-wrap{ overflow-x:auto; margin:1.2rem 0; border:1px solid var(--line); border-radius:var(--radius); }
table{ border-collapse:collapse; width:100%; font-size:.92rem; }
th,td{ text-align:left; padding:.6rem .8rem; border-bottom:1px solid var(--line); vertical-align:top; }
th{ background:var(--paper-2); font-weight:700; }
tr:last-child td{ border-bottom:0; }
/* phones: tables of three or more columns show one card per row, each value under its column name */
@media (max-width:560px){
  .table-stack{ border:0; border-radius:0; overflow:visible; }
  .table-stack table,.table-stack tbody,.table-stack tr,.table-stack td{ display:block; }
  .table-stack thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .table-stack tr{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin:0 0 .7rem; }
  .table-stack td,.table-stack tr:last-child td{ padding:.5rem .9rem; border-bottom:1px solid var(--line); }
  .table-stack tr td:last-child{ border-bottom:0; }
  .table-stack td:first-child{ background:var(--paper-2); font-weight:700; }
  .table-stack td:not(:first-child)::before{ content:attr(data-label); display:block; font-size:.85rem; font-weight:700; color:var(--ink-3); }
}
figure{ margin:1.4rem 0; }
figcaption{ font-size:.8rem; color:var(--ink-3); margin-top:.4rem; }
.wide-photo img{ width:100%; border-radius:var(--radius); aspect-ratio:16/9; object-fit:cover; }

/* computer widths: text column plus a sticky sidebar (the page's sections, a quote or trial card) */
.side{ display:none; }
@media (min-width:1100px){
  .page-grid{ display:grid; grid-template-columns:minmax(0,1fr) 17rem; column-gap:3rem; align-items:start; }
  .side{ display:block; position:sticky; top:5.4rem; padding:2rem 0 2.5rem; }
}
.toc{ border-left:2px solid var(--line); padding-left:1rem; margin-bottom:1.4rem; }
.toc-h,.side-h{ margin:0 0 .5rem; font-weight:750; font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); }
.toc ul{ list-style:none; padding:0; margin:0; }
.toc li{ margin:0; }
.toc a{ display:block; padding:.22rem 0; color:var(--ink-2); text-decoration:none; font-size:.86rem; line-height:1.35; }
.toc a:hover{ color:var(--acc-dark); }
.side-card{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius); padding:1rem 1.1rem 1.1rem; overflow-wrap:break-word; }
.side-card p{ font-size:.88rem; color:var(--ink-2); margin-bottom:.6rem; }
.side-card .side-h{ color:var(--ink); font-size:1rem; text-transform:none; letter-spacing:0; }
.side-card .btns{ flex-direction:column; align-items:stretch; gap:.5rem; margin:.8rem 0 0; }
.side-card .btn{ font-size:.85rem; padding:.55rem .9rem; }
@media (pointer:coarse){ .side-card .btn{ min-height:44px; } }   /* iPads in landscape show the sidebar too: a finger-sized button */
.side-client-check{ --acc:var(--cc-acc); --acc-dark:var(--cc-acc-dark); --acc-tint:var(--cc-tint); background:var(--cc-tint); border-color:var(--cc-edge); }

/* minmax(0,1fr) and break-word: a long address (accounts.adamelectrical.co.nz) wraps on a 320 px phone instead of widening the page */
ol.steps{ list-style:none; counter-reset:step; padding:0; display:grid; grid-template-columns:minmax(0,1fr); gap:.8rem; max-width:48rem; }
ol.steps > li{ counter-increment:step; position:relative; padding:.9rem 1rem .9rem 3.4rem; background:var(--paper-3); border:1px solid var(--line); border-radius:var(--radius); margin:0; overflow-wrap:break-word; }
ol.steps > li::before{ content:counter(step); position:absolute; left:1rem; top:.85rem; width:1.7rem; height:1.7rem; border-radius:50%; background:var(--acc); color:#fff; font-weight:800; font-size:.85rem; display:grid; place-items:center; }

/* ---------- cards ---------- */
.cards{ display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(15.5rem, 1fr)); margin:1.2rem 0 1.6rem; }
@media (min-width:700px){ .cards{ grid-auto-rows:1fr; } }   /* side by side, every row of cards the same height (a longer Chinese line no longer makes one row taller) */
.card{ display:flex; flex-direction:column; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; text-decoration:none; color:var(--ink); transition:transform .15s, box-shadow .15s, border-color .15s; }
.card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); border-color:var(--acc); color:var(--ink); }
.card-img img{ width:100%; aspect-ratio:3/2; object-fit:cover; }
.card-body{ padding:.9rem 1rem 1rem; }
.card h3{ margin:0 0 .3rem; font-size:1rem; }
.card p{ margin:0; color:var(--ink-2); font-size:.88rem; line-height:1.45; }
.cards-text .card{ background:var(--paper-3); }
.cards-text .card h3::after{ content:" →"; color:var(--acc); }
.cards-photo{ grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr)); }
/* computers: photo cards in full rows (12 services 4 or 6 to a row, 8 albums 4 or 8); text cards 4 to a row at most, each
   a quarter of the row however few there are */
@media (min-width:1100px){
  .cards,.cards-photo{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .cards-text{ grid-template-columns:repeat(auto-fill, minmax(max(15.5rem, calc((100% - 3rem) / 4)), 1fr)); }
}
@media (min-width:1800px){ .cards:not(.cards-photo):not(.cards-text){ grid-template-columns:repeat(6, minmax(0,1fr)); } }
@media (min-width:2200px){ .cards-photo{ grid-template-columns:repeat(8, minmax(0,1fr)); } }

/* ---------- apps ---------- */
/* each app a small box of the same size however many apps there are (empty columns are kept, so two apps do not stretch
   across the row): six to a row on a 2560 px screen, the same columns as the service cards there; one to a row on a phone */
.app-cards{ display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); margin:1.2rem 0 1.6rem; }
.app-card{ border-radius:var(--radius); padding:1.1rem 1.2rem 1.2rem; border:1px solid var(--line); background:var(--paper-3); display:flex; flex-direction:column; }
.app-card h3{ margin-top:0; font-size:1.3rem; }
.app-card p{ margin-bottom:.7rem; }
/* the buttons under the text, small and only as wide as their words, side by side on any phone from 360 px; on touch
   screens still 44 px tall. Narrower phones: a pair that wraps fills the width, as everywhere else on phones */
.app-card .btns{ margin:auto 0 0; padding-top:.3rem; gap:.5rem; }
.app-card .btn{ flex:0 0 auto; padding:.45rem .8rem; font-size:.875rem; }
@media (pointer:coarse){ .app-card .btn{ min-height:44px; } }
@media (max-width:359px){ .app-card .btn{ flex:1 1 auto; } }
.app-card.app-client-check{ background:var(--cc-tint); border-color:var(--cc-edge); }
.app-client-check h3{ color:var(--cc-deep); }
.app-client-check .btn-pri{ background:var(--cc-acc); } .app-client-check .btn-pri:hover{ background:var(--cc-acc-dark); }
.app-client-check .btn-ghost{ border-color:var(--cc-acc); color:var(--cc-acc-dark); }
.app-card.app-coc-esc{ background:var(--green-soft); border-color:#cfe3c2; }
.small{ font-size:.85rem; color:var(--ink-2); }

.shots{ display:grid; grid-auto-flow:column; grid-auto-columns:min(62%, 13rem); gap:.8rem; overflow-x:auto; padding:.4rem .1rem 1rem; scroll-snap-type:x mandatory; margin:1.2rem 0; }
.shot{ scroll-snap-align:start; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--paper-2); }
.shot img{ width:100%; height:auto; }

.pricing{ display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); margin:1.2rem 0 .6rem; max-width:52rem; }
.price-card{ border:2px solid var(--line); border-radius:var(--radius); padding:1.2rem 1.3rem; background:var(--paper); }
.price-card:nth-child(2){ border-color:var(--acc); }
.price-card h3{ margin:0 0 .4rem; font-size:.9rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-2); }
.price{ margin:0; font-size:2.1rem; font-weight:800; color:var(--ink); line-height:1.1; }
.price small{ display:inline-block; white-space:nowrap; font-size:.85rem; font-weight:600; color:var(--ink-2); } /* "incl. GST" moves to the next line as one piece */
.per{ margin:.2rem 0 .6rem; color:var(--ink-2); }
.price-note{ margin:0; font-size:.88rem; color:var(--ink-2); }
.price-foot{ font-size:.88rem; color:var(--ink-2); max-width:40rem; }

/* ---------- facts, faq ---------- */
.facts{ display:grid; grid-template-columns:minmax(0,1fr); gap:.1rem; margin:1.2rem 0; max-width:40rem; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.facts div{ display:grid; grid-template-columns:9rem minmax(0,1fr); gap:.8rem; padding:.6rem .9rem; background:var(--paper-3); }
.facts div:nth-child(odd){ background:var(--paper); }
.facts dt{ font-weight:700; color:var(--ink-2); margin:0; } .facts dd{ margin:0; overflow-wrap:anywhere; }
/* phones: the name above its value, so a long value such as the email address keeps its line */
@media (max-width:480px){ .facts div{ grid-template-columns:minmax(0,1fr); gap:.1rem; } }
.faq{ max-width:42rem; border-top:1px solid var(--line); margin:.6rem 0 1.6rem; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item summary{ cursor:pointer; list-style:none; padding:.9rem 2rem .9rem 0; font-weight:700; position:relative; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; position:absolute; right:.2rem; top:.7rem; font-size:1.3rem; color:var(--acc); font-weight:400; }
.faq-item[open] summary::after{ content:"–"; }
.faq-a{ padding:0 0 .9rem; color:var(--ink-2); }
.faq-a p:last-child{ margin-bottom:0; }

/* ---------- gallery, guide ---------- */
.gallery{ display:grid; gap:.6rem; grid-template-columns:repeat(auto-fill, minmax(12rem, 1fr)); margin:1rem 0 2rem; }
@media (min-width:1100px){ .gallery{ grid-template-columns:repeat(auto-fill, minmax(22rem, 1fr)); } }   /* bigger photos on computers */
.g-item img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:.5rem; }
/* the guide pages are slides: one to a row, two from about 1,950 px wide; never under 56rem, so their small print stays
   readable, and never over 100rem (1600 px, their own width), so they are not enlarged */
.guide{ display:grid; gap:1.2rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 56rem), 1fr)); margin:1rem 0 2rem; }
.guide-page{ max-width:100rem; }
.guide-page img{ width:100%; border:1px solid var(--line); border-radius:.5rem; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; pointer-events:none; }
.guide-page{ margin:0; }
ul.cols{ columns:2; column-gap:2rem; } @media (min-width:900px){ ul.cols{ columns:3; } }

/* ---------- bands ---------- */
.related{ background:var(--paper-3); border-top:1px solid var(--line); padding:1.2rem 0 1.6rem; }
.related h2{ margin-top:.8rem; font-size:1.2rem; }
.cta-band{ background:var(--green-dark); color:#fff; padding:2.4rem 0; }
.cta-band h2{ color:#fff; margin-top:0; }
.cta-band p{ color:#e8f1e4; max-width:44rem; }
.cta-band p:not(.btns) a{ color:#fff; text-decoration:underline; text-underline-offset:.15em; } .cta-band p:not(.btns) a:hover{ color:var(--gold); }
.cta-band .btn-pri{ background:var(--gold); color:var(--ink); } .cta-band .btn-pri:hover{ background:#fff; color:var(--ink); }
.cta-band .btn-ghost{ border-color:#fff; color:#fff; } .cta-band .btn-ghost:hover{ background:rgba(255,255,255,.12); color:#fff; }
/* computers: the band's text on the left and its buttons on the right, across the whole width */
@media (min-width:1100px){
  .cta-band .wrap{ display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:3rem; align-items:center; }
  .cta-band h2,.cta-band p:not(.btns){ grid-column:1; }
  .cta-band .btns{ grid-column:2; grid-row:1 / span 2; margin:0; }
}
.cta-client-check{ background:var(--cc-deep); }
.cta-client-check p{ color:#e7e2f7; }

/* ---------- footer ---------- */
.ftr{ background:#121a14; color:#cfd8cf; padding:2.4rem 0 1.2rem; font-size:.9rem; }
.ftr a{ color:#e9f0e8; text-decoration:none; } .ftr a:hover{ text-decoration:underline; color:#fff; }
.ftr-in{ display:grid; gap:1.6rem; grid-template-columns:repeat(auto-fit, minmax(11rem, 1fr)); }
/* phones: the link lists in two columns under the company block, not one long column */
@media (max-width:560px){ .ftr-in{ grid-template-columns:1fr 1fr; } .ftr-brand{ grid-column:1 / -1; } }
/* computers: the columns only as wide as their links, close together from the left, so the right half stays free (in
   English about 1,000 px, the widest; one row from 1100 px) */
@media (min-width:1100px){ .ftr-in{ grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:auto; justify-content:start; column-gap:clamp(2rem, 2.5vw, 3rem); } }
/* a column's title: a paragraph since 2026-11-13 (build.py footer_html), set as the h2 it was */
.ftr-h{ font-family:var(--display); line-height:1.2; font-weight:750; text-wrap:balance; color:#fff; font-size:.9rem; text-transform:uppercase; letter-spacing:.06em; margin:0 0 .6rem; }
.ftr-h:lang(zh){ font-weight:700; word-break:keep-all; overflow-wrap:anywhere; }
.ftr ul{ list-style:none; padding:0; margin:0; } .ftr li{ margin:.3rem 0; }
.ftr-brand img{ width:auto; height:5rem; margin-bottom:.8rem; }
.ftr-legal{ border-top:1px solid #2a352c; margin-top:1.8rem; padding-top:1rem; font-size:.8rem; color:#9fab9f; }
.ftr-legal a{ white-space:nowrap; }   /* "Terms of Use and Privacy" moves to the next line whole */
.ftr-lang{ display:inline-flex; gap:.45rem; margin-left:.6rem; }
@media (max-width:560px){ .ftr-lang{ display:flex; margin:.5rem 0 0; } }
.ftr-lang > *{ color:#cfd8cf; }
.ftr-lang > [aria-current]{ color:#fff; font-weight:650; }
.ftr-lang > * + *::before{ content:"|"; margin-right:.45rem; color:#56635a; }
/* touch screens (phones, iPads): every link at least 24 px tall, none overlapping the next (2026-11-13, SEO audit 05
   F17; WCAG 2.2 target size). On the inline links the padding only widens the area a finger can hit: no line moves,
   and in whole pixels the text stays on the same pixels. The language link is a flex item, where padding would add
   height: its negative margin takes that back. The phone number and the email are one under the other on 23 px lines,
   too close for two 24 px targets: on touch screens their lines are 28 px apart, as the link lists' are. Computers are
   unchanged. */
@media (pointer:coarse){
  .ftr a{ padding-block:5px; }
  .ftr-lang > a{ margin-block:-5px; }
  .ftr-brand a{ line-height:calc(1.6em + .3rem); }
}

/* ---------- photos framed in the back office ---------- */
/* the photo's box becomes the frame: it clips, and site.js places the whole photo inside it (scale and move) */
.framed{ position:relative; overflow:hidden; background:#fff; }
.framed > img,.framed > picture > img{ object-fit:contain; transform-origin:50% 50%; }
.hero-photo.framed{ border-radius:var(--radius); box-shadow:var(--shadow); }
.hero-photo.framed > img,.hero-photo.framed > picture > img{ border-radius:0; box-shadow:none; }
.g-item.framed{ border-radius:.5rem; } .g-item.framed > img{ border-radius:0; }
.wide-photo.framed{ border-radius:var(--radius); } .wide-photo.framed > img{ border-radius:0; }

/* ---------- the enquiry form (contact page, 2026-11-08) ---------- */
/* the form needs JavaScript (Turnstile, and the page sends it): without it, only the phone and email (noscript) */
html:not(.js) .enq{ display:none; }
.enq{ max-width:46rem; background:var(--paper); border:1px solid var(--line); border-radius:1rem; padding:1.3rem 1.2rem 1.2rem; box-shadow:var(--shadow); margin:.4rem 0 1.4rem; }
@media (min-width:760px){ .enq{ padding:1.8rem 2rem 1.5rem; } }
.enq-grid{ display:grid; gap:1rem 1.2rem; }
@media (min-width:640px){ .enq-grid{ grid-template-columns:1fr 1fr; } }
.fld label{ display:block; font-weight:650; font-size:.95rem; margin-bottom:.35rem; }
.req{ color:#b42318; margin-left:.1rem; }
.opt{ color:var(--ink-3); font-weight:500; font-size:.88rem; margin-left:.3rem; }
/* the fields' and choices' edges at 3:1 or more against white (WCAG 1.4.11; 2026-11-09 review) */
.fld input,.fld textarea{ width:100%; font:inherit; font-size:1rem; color:var(--ink); background:#fff; border:1.5px solid #869188; border-radius:.6rem; padding:.7rem .85rem; }
.fld input{ min-height:3rem; }
.fld textarea{ min-height:9rem; resize:vertical; line-height:1.5; }
.fld input:focus,.fld textarea:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 4px rgba(62,125,51,.18); }
.fld.bad input,.fld.bad textarea{ border-color:#b42318; }
.fld-err{ color:#b42318; font-size:.9rem; margin:.35rem 0 0; font-weight:600; }
.hint{ color:var(--ink-3); font-size:.88rem; margin:.4rem 0 0; }
.enq fieldset{ border:0; padding:0; margin:1.3rem 0 0; min-width:0; }
.enq legend{ font-weight:650; font-size:.95rem; padding:0; margin-bottom:.5rem; }
/* "Select all that apply", the privacy link and phone numbers stay on one line */
.enq legend .opt,.enq-act .small a,a[href^="tel:"]{ white-space:nowrap; }
.chip-row{ display:flex; flex-wrap:wrap; gap:.5rem; }
.chip{ position:relative; display:inline-flex; }
/* the real checkbox, unseen, covers its whole choice: a choice reached by Tab in a scrolling form comes fully into view */
.chip input{ position:absolute; inset:0; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.chip span{ display:inline-flex; align-items:center; gap:.5rem; border:1.5px solid #869188; border-radius:999px; padding:.55rem 1rem; font-weight:550; cursor:pointer; background:#fff; user-select:none; }
.chip span::before{ content:""; width:1rem; height:1rem; border-radius:.25rem; border:1.5px solid #8d9a90; background:#fff; flex:none; }
.chip input:checked + span{ border-color:var(--green); background:var(--green-soft); color:var(--green-dark); }
.chip input:checked + span::before{ background:var(--green); border-color:var(--green); box-shadow:inset 0 0 0 2.5px #fff; }
.chip input:focus-visible + span{ outline:3px solid var(--gold-deep); outline-offset:2px; }
@media (forced-colors:active){ .chip input:checked + span::before{ forced-color-adjust:none; background:Highlight; } }
/* Windows' high contrast drops the glow that shows a focused field (after the field rules, which take the outline off) */
@media (forced-colors:active){ .fld input:focus,.fld textarea:focus{ outline:2px solid Highlight; outline-offset:2px; } }
.enq .fld[data-f="message"]{ margin-top:1.3rem; }
.enq-ts{ margin-top:1rem; }
.enq-ts:empty{ margin-top:0; }
.enq-act{ display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.2rem; margin-top:1.3rem; }
.enq-act .btn{ padding:.85rem 2.2rem; font-size:1rem; }
.enq-act .btn[disabled]{ opacity:.65; cursor:progress; }
.enq-act .small{ margin:0; color:var(--ink-3); }
.enq-sum{ border:2px solid #b42318; border-radius:.6rem; padding:.8rem 1rem; margin-bottom:1.1rem; background:#fff6f5; }
.enq-sum > p{ margin:0; font-weight:700; color:#b42318; }
.enq-sum ul{ margin:.4rem 0 0; padding-left:1.1rem; }
.enq-sum a{ color:#b42318; }
.enq-done{ max-width:46rem; border:1px solid var(--line); border-left:4px solid var(--green); border-radius:.8rem; padding:1.1rem 1.3rem; background:var(--green-soft); margin:.4rem 0 1.4rem; }
.enq-done h3{ margin:0 0 .4rem; }
.enq-done p{ margin:0; }
@media (pointer:coarse){ .chip span{ min-height:44px; } }
/* ==================================================================================================================
   CYBERPUNK THEME (2026-11-09, Adam: 「我想把整个网站全部改成 赛博朋克风格」, after the home page mock-up 「照这个改全站」).
   The site's rules above give the layout; this last layer gives every page its look: a near-black ground with a faint
   grid, the brand gold as the main neon and cyan as the second, violet for the apps, square edges with corner brackets,
   scan lines over the home photo. The colour tokens change first (most of the site follows them); the rules after
   them restyle what has its own colours. The header is taller and the logo bigger (Adam: 「需要加宽 公司的logo太小了」).
   ================================================================================================================== */
:root{
  --cy-bg:#05070a; --cy-bg-2:#0a0f12; --cy-bg-3:#0f171b;
  --cy-text:#e8eff1; --cy-text-2:#a9b8bd; --cy-text-3:#7f9297;
  --cy-gold:#ffd84d; --cy-gold-soft:rgba(255,216,77,.14); --cy-gold-line:rgba(255,216,77,.26);
  --cy-cyan:#44e6ff; --cy-cyan-line:rgba(68,230,255,.4);
  --cy-violet:#a98bff; --cy-violet-line:rgba(169,139,255,.4);
  --cy-dark-text:#05070a;
  --ink:var(--cy-text); --ink-2:var(--cy-text-2); --ink-3:var(--cy-text-3);
  --paper:var(--cy-bg-2); --paper-2:var(--cy-bg-3); --paper-3:#0c1215;
  --line:var(--cy-gold-line);
  --green:var(--cy-gold); --green-dark:#ffe27a; --green-soft:var(--cy-gold-soft);
  --acc:var(--cy-gold); --acc-dark:#ffe27a; --acc-tint:var(--cy-gold-soft);
  --cc-deep:#1b1342; --cc-acc:var(--cy-violet); --cc-acc-dark:#cbbcff; --cc-tint:#120d26; --cc-edge:var(--cy-violet-line);
  --radius:0;
  --shadow:0 0 0 1px rgba(255,216,77,.22), 0 0 1.4rem rgba(255,216,77,.12);
  color-scheme:dark;
}
body{ color:var(--cy-text); background-color:var(--cy-bg);
  background-image:linear-gradient(rgba(68,230,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(68,230,255,.035) 1px, transparent 1px);
  background-size:56px 56px; background-attachment:fixed; }
::selection{ background:var(--cy-gold); color:var(--cy-dark-text); }
a{ color:var(--acc-dark); }
a:hover{ color:#fff; }
.content a:not(.card):not(.btn):hover{ text-shadow:0 0 .7rem rgba(255,216,77,.6); }
:focus-visible{ outline-color:var(--cy-cyan); border-radius:0; }
h1,h2,h3,h4{ color:#fff; }
/* text on the gold: dark */
.skip,.preview-bar,.lang-hint,.lang-hint a,.lang-hint button{ color:var(--cy-dark-text); }

/* ---------- header: a taller dark glass bar with a lit edge, a bigger logo ---------- */
.hdr{ background:rgba(5,7,10,.86); border-bottom:1px solid var(--cy-gold-line); box-shadow:0 1px 0 rgba(255,216,77,.1), 0 .5rem 1.8rem rgba(0,0,0,.55); }
.hdr-in{ min-height:4.5rem; }
.brand,.brand strong{ color:#fff; }
.brand small{ color:var(--cy-text-3); }
.brand img{ height:2.8rem; filter:drop-shadow(0 0 .45rem rgba(255,216,77,.25)); }
@media (max-width:440px){ .brand img{ height:2.5rem; } }
@media (max-width:389px){ .brand img{ height:2.3rem; } }   /* the name keeps clear of the avatar (360 px phones) */
@media (max-width:359px){ .brand img{ height:2.1rem; } }
.js .nav.open{ max-height:calc(100vh - 4.5rem); max-height:calc(100dvh - 4.5rem); background:#080c0f; }
.menu-btn{ border-radius:0; border-color:var(--cy-gold-line); background:transparent; color:var(--cy-text); }
.av{ background:#111a1e; color:var(--cy-text-2); box-shadow:inset 0 0 0 1px var(--cy-gold-line); }
.av:hover{ background:#16222a; color:var(--cy-gold); }
.av.is-user,.av-big{ background:var(--cy-gold); color:var(--cy-dark-text); }
.av.is-user{ box-shadow:0 0 0 2px var(--cy-bg), 0 0 0 4px rgba(255,216,77,.4); }
.av.is-user:hover{ background:#fff; }
.av[aria-expanded="true"]{ box-shadow:0 0 0 2px var(--cy-bg), 0 0 0 4px var(--cy-gold); }
.acct-in{ color:var(--cy-text); border-radius:0; }
.acct-in:hover{ background:transparent; color:var(--cy-gold); }
.acct-menu{ border-radius:0; background:#080c0f; border-color:var(--cy-gold-line); box-shadow:0 1.2rem 2.6rem rgba(0,0,0,.7), 0 0 1.4rem rgba(255,216,77,.08); }
.acct-menu > a{ border-radius:0; }
.seg{ border-radius:0; }
.seg > [aria-current]{ background:var(--cy-gold); color:var(--cy-dark-text); }
.seg > a:hover{ background:var(--cy-gold-soft); color:var(--cy-gold); }
@media (min-width:1100px){
  .hdr-in{ min-height:6rem; }
  .brand img{ height:3.6rem; }
  .brand strong{ font-size:1.18rem; }
  .brand small{ font-size:.82rem; }
  .nav-list > li > a{ position:relative; color:var(--cy-text); border-radius:0; text-transform:uppercase; letter-spacing:.14em; font-size:.8rem; font-weight:650; }
  .nav-list > li > a:lang(zh){ text-transform:none; letter-spacing:.1em; font-size:1rem; }
  .nav-list > li > a::before{ content:""; position:absolute; left:.85rem; right:.85rem; bottom:.2rem; height:2px; background:var(--cy-gold); box-shadow:0 0 .6rem var(--cy-gold);
    transform:scaleX(0); transform-origin:left; transition:transform .22s; }
  .nav-list > li > a:hover,.has-sub.open > a{ background:transparent; color:var(--cy-gold); }
  .nav-list > li > a:hover::before,.has-sub.open > a::before{ transform:scaleX(1); }
  .sub,.fly-2{ background:#080c0f; border-color:var(--cy-gold-line); border-radius:0; box-shadow:0 1.2rem 2.6rem rgba(0,0,0,.7), 0 0 1.2rem rgba(255,216,77,.07); }
  .fly-btn,.fly-2 li a{ border-radius:0; }
  .fly-g.open > .fly-btn{ background:var(--cy-gold-soft); color:var(--cy-gold); }
  .fly-2 li a:hover{ background:var(--cy-gold-soft); color:var(--cy-gold); }
  /* the sticky side column and the headings' landing place sit under the taller header */
  .side{ top:6.6rem; }
  h2[id],h3[id],.guide-page[id]{ scroll-margin-top:7.2rem; }
}
/* 1100–1199px: the English line under the name ("Registered Electrician in Auckland") would run into the menu */
@media (min-width:1100px) and (max-width:1199px){ html:not([lang^="zh"]) .brand small{ display:none; } }
/* six menu items in capitals beside the bigger logo: tighter on the narrowest computer screens */
@media (min-width:1100px) and (max-width:1279px){
  .brand img{ height:3.1rem; }
  .brand strong{ font-size:1.05rem; }
  .nav-list > li > a{ letter-spacing:.07em; padding-inline:.45rem; }
  .nav-list > li > a::before{ left:.45rem; right:.45rem; }
}
/* 1100–1179px: a little smaller still, so the name stays clear of the menu at 1100 */
@media (min-width:1100px) and (max-width:1179px){
  .brand img{ height:2.8rem; }
  .brand strong{ font-size:1rem; }
  .nav-list > li > a{ letter-spacing:.05em; padding-inline:.4rem; }
  .nav-list > li > a::before{ left:.4rem; right:.4rem; }
}
.apps-nav{ background:#0d0a1c; border-bottom:1px solid var(--cy-violet-line); }
.apps-nav a{ color:#cbbcff; }
.apps-nav a:hover{ color:#fff; }
.apps-nav a.on{ border-bottom-color:var(--cy-violet); color:#fff; }

/* ---------- buttons: square; the main one a lit block with cut corners (gold; violet on the apps' pages) ---------- */
.btn{ border-radius:0; letter-spacing:.06em; }
.btn-pri,.hero-full .btn-pri,.cta-band .btn-pri{ background:var(--acc); color:var(--cy-dark-text);
  clip-path:polygon(0 0, calc(100% - .65rem) 0, 100% .65rem, 100% 100%, .65rem 100%, 0 calc(100% - .65rem)); }
.btn-pri:hover,.hero-full .btn-pri:hover,.cta-band .btn-pri:hover{ background:#fff; color:var(--cy-dark-text); }
.btn-pri:focus-visible{ outline:none; box-shadow:inset 0 0 0 3px var(--cy-dark-text); }
.btn-ghost,.cta-band .btn-ghost{ border:1px solid var(--cy-cyan-line); color:var(--cy-cyan); background:rgba(68,230,255,.05); }
.btn-ghost:hover,.cta-band .btn-ghost:hover{ border-color:var(--cy-cyan); background:rgba(68,230,255,.12); color:#fff; box-shadow:0 0 1.1rem rgba(68,230,255,.35); }
@media (pointer:coarse){ .btn{ min-height:44px; } }   /* the outlined buttons' thinner edge took them under 44px */
@media (forced-colors:active){
  .btn-pri{ clip-path:none; border:2px solid ButtonText; }
  .btn-pri:focus-visible{ outline:2px solid Highlight; outline-offset:2px; }   /* the inset ring is a shadow, which this mode drops */
}

/* ---------- page banners ---------- */
.hero{ border-bottom-color:var(--cy-gold-line); }
.hero-photo img{ box-shadow:0 0 0 1px var(--cy-gold-line), 0 0 2rem rgba(0,0,0,.6); }
.framed{ background:#070a0d; }
.eyebrow{ letter-spacing:.14em; }
.eyebrow:lang(zh){ letter-spacing:.08em; }

/* ---------- home hero: scan lines over the photo, a lit line under it, the big Enquiry button on the right ---------- */
.t-home .hero-full{ border-bottom:0; }
.t-home .hero-full .hero-in{ min-height:min(40rem, calc(100vh - 9.5rem)); min-height:min(40rem, calc(100svh - 9.5rem)); }   /* the header is .5rem taller */
.t-home .hero-has-enq > .hero-enq{ scroll-margin-top:5rem; }
.t-home .hero-full .hero-shade::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
.t-home .hero-full::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; z-index:3; pointer-events:none;
  background:linear-gradient(90deg, transparent, var(--cy-gold) 25%, var(--cy-cyan) 75%, transparent); box-shadow:0 0 1rem rgba(255,216,77,.55); }
.t-home .hero-full .hero-text::before{ content:""; display:block; width:4.5rem; height:3px; margin-bottom:1.1rem; background:var(--cy-gold);
  box-shadow:0 0 .9rem var(--cy-gold), 5.4rem 0 0 0 var(--cy-cyan); }
.hero-full h1{ text-shadow:0 0 1.4rem rgba(0,0,0,.65), 0 0 2.6rem rgba(255,216,77,.14); }
.hero-full .btn-ghost{ border-color:rgba(68,230,255,.75); color:#eafcff; background:rgba(5,7,10,.4); backdrop-filter:blur(3px); }
.hero-full .btn-ghost:hover{ background:rgba(68,230,255,.16); color:#fff; }
.hero-arrow,.hero-toggle{ background:rgba(5,7,10,.65); color:var(--cy-gold); box-shadow:0 0 0 1px var(--cy-gold-line); backdrop-filter:blur(3px); }
@media (hover:hover){ .hero-arrow:hover,.hero-toggle:hover{ background:rgba(255,216,77,.18); color:#fff; } }
/* the Enquiry button: bigger; from 1100px on the right of the photo, level with the Call button, above the photo's
   arrows; the light walks across it from one side to the other every few seconds (and at once when pointed at); it
   rests with the photos when the photo pause button is pressed (WCAG 2.2.2), and under less motion it comes only with
   the photos, once the visitor presses play */
.t-home .hero-full .cyber-body{ min-height:4rem; font-size:1.2rem; padding:1.1rem 2.1rem 1.1rem 1.9rem; }
@media (min-width:1100px){
  .t-home .hero-full .hero-in{ min-height:min(56rem, calc(100vh - 11.5rem)); min-height:min(56rem, calc(100svh - 11.5rem)); }   /* the header is 1rem taller */
  .t-home .hero-has-enq > .hero-enq{ scroll-margin-top:7rem; }
  .t-home .hero-full .cyber{ position:absolute; right:0; bottom:4.6rem; z-index:3; }
  .t-home .hero-full .cyber-body{ min-height:4.75rem; padding:1.35rem 2.8rem 1.35rem 2.5rem; font-size:1.45rem; gap:1.2rem; letter-spacing:.14em; }
  html[lang^="zh"] .t-home .hero-full .cyber-body{ font-size:1.55rem; letter-spacing:.22em; }
  .t-home .hero-full .cyber-arw{ width:2.1rem; height:1.15rem; }
  .t-home .hero-full .cyber-body::before{ left:.75rem; top:.65rem; width:.75rem; height:.75rem; }
}
/* the light: a white streak that walks across the button in about a second, every 3.6 seconds (Adam: 「光在这个按钮上
   走过的感觉 从一侧闪到另一侧」; the first one crossed in 0.2 s and was missed: 「enquiry 没有光」). Once as the page
   opens; again and again only while the photos turn (site.js marks the hero band-on), so the photo pause button stops
   it, and a hero with no turning photos (one photo, or none came) has no endless movement */
.cyber-body::after{ inset:0 auto 0 0; width:65%; transform:translateX(-105%) skewX(-18deg);
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 28%, rgba(255,255,255,.85) 44%, #fff 50%, rgba(255,255,255,.85) 56%, rgba(255,255,255,.22) 72%, rgba(255,255,255,0) 100%);
  animation:cy-sweep 3.6s linear .8s 1 both; }
.hero-full.band-on .cyber-body::after{ animation-iteration-count:infinite; }
@keyframes cy-sweep{ 0%{ transform:translateX(-105%) skewX(-18deg); } 45%,100%{ transform:translateX(165%) skewX(-18deg); } }
@keyframes cy-sweep-again{ from{ transform:translateX(-105%) skewX(-18deg); } to{ transform:translateX(165%) skewX(-18deg); } }
/* pointed at or reached by the keyboard: one pass at once; it does not stay (no fill), so the light goes on walking */
.cyber:hover .cyber-body::after,.cyber:focus-visible .cyber-body::after{ animation:cy-sweep 3.6s linear .8s 1 both, cy-sweep-again 1.1s linear 1; }
.hero-full.band-on .cyber:hover .cyber-body::after,.hero-full.band-on .cyber:focus-visible .cyber-body::after{ animation-iteration-count:infinite, 1; }
/* less motion (a phone set to reduce motion, a computer with Windows animations off): no light while the photos stand
   still, as they start there; once the visitor presses play the photos turn and the light walks with them */
@media (prefers-reduced-motion:reduce){
  .cyber-body::after,.cyber:hover .cyber-body::after,.cyber:focus-visible .cyber-body::after{ animation:none; display:none; }
  .hero-full.band-on .cyber-body::after,.hero-full.band-on .cyber:hover .cyber-body::after,.hero-full.band-on .cyber:focus-visible .cyber-body::after{ display:block; animation:cy-sweep 3.6s linear .3s infinite both; }
}
/* from 1100px the open card covers the button: hidden then, so the keyboard does not land on it unseen */
@media (min-width:1100px){ .t-home .hero-has-enq.enq-open .cyber{ visibility:hidden; } }
/* the Enquiry button on every other page (2026-11-10, Adam: 「整个网站里所有 get a quote 的地方全都用enquiry那个按钮代替」):
   in the page's hero, the computer side card and the band at the foot. Its light walks once when it is pointed at or
   reached by the keyboard; it does not walk as the page opens (that is the home page's, with its photos) */
body:not(.t-home) .cyber-body::after{ animation:none; }
body:not(.t-home) .cyber:hover .cyber-body::after,body:not(.t-home) .cyber:focus-visible .cyber-body::after{ animation:cy-sweep-again 1.1s linear 1; }
@media (prefers-reduced-motion:reduce){
  body:not(.t-home) .cyber:hover .cyber-body::after,body:not(.t-home) .cyber:focus-visible .cyber-body::after{ animation:none; display:none; }
}
/* on phones it fills its row once the buttons wrap, like the other buttons (.btns .btn at the same width) */
@media (max-width:560px){ .btns .cyber{ flex:1 1 auto; } .btns .cyber-body{ display:flex; width:100%; } }
/* a button the focus returns to when the card closes is brought clear of the sticky header (WCAG 2.4.11; the side
   card's button can end up under it once the card's room is gone) */
[data-enq-open]{ scroll-margin-top:5.5rem; }
@media (min-width:1100px){ [data-enq-open]{ scroll-margin-top:7rem; } }
.side-card .cyber,.side-card .cyber-body{ display:flex; width:100%; }
.side-card .cyber-body{ min-height:3rem; padding:.75rem 1.2rem; font-size:.95rem; gap:.6rem; }
html[lang^="zh"] .side-card .cyber-body{ font-size:1.02rem; }
/* the band's quote card (build.py enquiry_form card="band"): below the band's text and buttons, opened by any Enquiry
   button on the page and scrolled to clear the header */
.band-enq{ margin-top:1.8rem; scroll-margin-top:5.5rem; filter:drop-shadow(0 0 1.1rem rgba(255,216,77,.22)) drop-shadow(0 .8rem 1.6rem rgba(0,0,0,.45)); }
.band-enq[hidden]{ display:none; }
.band-enq .enq-card{ margin:0; max-width:40rem; }
/* the band's own text rules stay out of the card, which looks as it does on the home page */
.cta-band .enq-card .hint a,.cta-band .enq-card .enq-act .small a{ color:var(--gold); }
.cta-band .enq-card .enq-done p{ color:#eef2ee; }
.cta-band .enq-card h2{ margin-top:.15rem; }
@media (min-width:1100px){
  .band-enq{ scroll-margin-top:7rem; }
  .cta-enq .btns{ grid-row:1; }
  .cta-enq .band-enq{ grid-column:1 / -1; }
}
@media (forced-colors:active){ .band-enq{ filter:none; } }
/* a blog article's photo across the whole width (2026-11-10, Adam: 「每个blog页最上面是一个hero图片」, then 「要和主页一样
   大, 高矮可以了 左右宽度要占满屏幕」).
   - Phones and iPads held upright: the photo first, from edge to edge, then the title, lede and date.
   - From 900px: the photo fills the hero as on the home page, at the height the hero had beside the title (measured
     before the change: about 26.7vw + 5.6rem from 900px, 32.5vw + 5.6rem from 1600px; 476px at 1440, 710 at 1920, 924 at
     2560), with the title over it on the left, lined up with the text below, and a dark shade behind it.
   - The photo is placed by its framing (site.js applyFrame works in the box it is in); most of the photos are taken
     upright, and pages.json "frame" picks the part a wide box shows. */
.s-blog.t-article .hero.hero-photo-on .hero-in{ display:flex; flex-direction:column; padding:0 0 1.6rem; }
.s-blog.t-article .hero.hero-photo-on .hero-photo{ order:-1; width:auto; max-width:none; margin:0 calc(-1 * var(--gutter)) 1.4rem; border:0; border-radius:0; box-shadow:none; }
.s-blog.t-article .hero.hero-photo-on .hero-photo::before,.s-blog.t-article .hero.hero-photo-on .hero-photo::after{ display:none; }
.s-blog.t-article .hero.hero-photo-on .hero-photo img{ border-radius:0; box-shadow:none; }
@media (min-width:900px){
  .s-blog.t-article .hero.hero-photo-on{ position:relative; overflow:hidden; display:flex; align-items:center; min-height:calc(26.7vw + 5.6rem); padding:0; }
  .s-blog.t-article .hero.hero-photo-on .hero-in{ position:static; display:block; flex:0 0 auto; width:calc(100% - 2*var(--gutter)); margin-inline:auto; padding:0; }
  .s-blog.t-article .hero.hero-photo-on .hero-photo{ position:absolute; inset:0; z-index:0; width:100%; height:100%; margin:0; }
  .s-blog.t-article .hero.hero-photo-on .hero-photo img{ width:100%; height:100%; aspect-ratio:auto; }
  .s-blog.t-article .hero.hero-photo-on::after{ content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(90deg, rgba(5,7,10,.9) 0%, rgba(5,7,10,.72) 32%, rgba(5,7,10,.25) 62%, rgba(5,7,10,0) 100%), linear-gradient(0deg, rgba(5,7,10,.55), rgba(5,7,10,0) 35%); }
  .s-blog.t-article .hero.hero-photo-on .hero-text{ position:relative; z-index:2; max-width:42rem; padding:3rem 0; }
  .s-blog.t-article .hero.hero-photo-on h1,.s-blog.t-article .hero.hero-photo-on .lede{ text-shadow:0 0 1.2rem rgba(0,0,0,.6); }
}
@media (min-width:1600px){ .s-blog.t-article .hero.hero-photo-on{ min-height:calc(32.5vw + 5.6rem); } }
@media (min-width:900px) and (forced-colors:active){ .s-blog.t-article .hero.hero-photo-on::after{ background:Canvas; opacity:.85; } }
/* the blog page: bigger photo cards, three to a row on computers, two on an iPad held upright, one on a phone
   (2026-11-10, Adam: 「blog 的主页上那几张照片需要放大 一排放三张」); build.py gives them the full photo (cards-blog) */
.cards.cards-blog:not(.cards-photo):not(.cards-text){ grid-template-columns:repeat(3, minmax(0, 1fr)); }
@media (max-width:1099px){ .cards.cards-blog:not(.cards-photo):not(.cards-text){ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:639px){ .cards.cards-blog:not(.cards-photo):not(.cards-text){ grid-template-columns:minmax(0, 1fr); } }

/* ---------- apps band (home): violet neon ---------- */
.apps-band{ background:linear-gradient(90deg, #08061200, #160f36 30%, #1f1450 70%, #08061200), #07060f; border-top:1px solid rgba(169,139,255,.45); border-bottom:1px solid rgba(169,139,255,.22); }
.apps-band-t h2{ text-transform:uppercase; letter-spacing:.06em; font-size:1.1rem; }
.apps-band-t h2:lang(zh){ text-transform:none; letter-spacing:.08em; font-size:1.2rem; }
.apps-band-t p{ color:#cdbfff; }
.app-chip{ border-radius:0; background:rgba(169,139,255,.08); border-color:rgba(169,139,255,.5); }
.app-chip:hover{ background:rgba(169,139,255,.2); box-shadow:0 0 1rem rgba(169,139,255,.35); }
.app-chip img{ border-radius:.35rem; }
.apps-band-go{ background:transparent; color:#ddd2ff; border:1px solid rgba(169,139,255,.75); }
.apps-band-go:hover{ background:rgba(169,139,255,.2); color:#fff; box-shadow:0 0 1.1rem rgba(169,139,255,.45); }

/* ---------- sections: a lit square, the heading in capitals, a fading rule ---------- */
.content h2{ display:flex; align-items:center; gap:.75rem; text-transform:uppercase; letter-spacing:.1em; font-size:clamp(1.15rem, 1rem + .5vw, 1.5rem); }
.content h2:lang(zh){ text-transform:none; letter-spacing:.14em; }
.content h2::before{ content:""; flex:none; width:.55rem; height:.55rem; background:var(--acc); box-shadow:0 0 .7rem var(--acc); transform:rotate(45deg); }
.content h2::after{ content:""; flex:1; min-width:2rem; height:1px; background:linear-gradient(90deg, var(--cy-gold-line), transparent); }
.content p,.content li{ color:var(--cy-text-2); }
.content strong{ color:var(--cy-text); }
.lede{ color:var(--cy-text-2); }
ol.steps > li::before{ color:var(--cy-dark-text); border-radius:0; box-shadow:0 0 .8rem rgba(255,216,77,.4); }

/* ---------- cards: dark panels with gold and cyan corner brackets, lit when pointed at ---------- */
.card{ position:relative; background:linear-gradient(180deg, #0c1316, #080c0f); border-color:rgba(255,216,77,.15); }
.card::before,.card::after{ content:""; position:absolute; z-index:2; width:.9rem; height:.9rem; pointer-events:none; }
.card::before{ left:0; top:0; border-left:2px solid var(--cy-gold); border-top:2px solid var(--cy-gold); }
.card::after{ right:0; bottom:0; border-right:2px solid var(--cy-cyan); border-bottom:2px solid var(--cy-cyan); }
.card:hover{ transform:translateY(-3px); border-color:rgba(255,216,77,.6); box-shadow:0 0 0 1px rgba(255,216,77,.22), 0 0 1.6rem rgba(255,216,77,.16); }
.card-img img{ filter:saturate(.8) brightness(.84); transition:filter .25s; }
.card:hover .card-img img{ filter:none; }
.card-body h3{ color:#fff; letter-spacing:.02em; }
.card-body p{ color:var(--cy-text-2); }
.app-card{ background:linear-gradient(180deg, #0c1316, #080c0f); }
.app-card.app-coc-esc{ background:linear-gradient(180deg, #0f1410, #080c0f); border-color:var(--cy-gold-line); }
.side-card{ background:linear-gradient(180deg, #0c1316, #080c0f); }
.side-client-check{ background:linear-gradient(180deg, #140f2b, #0b0818); }
.app-client-check h3{ color:#fff; }   /* the old rule gave it the deep violet, now the card's own colour */

/* ---------- facts, tables, questions ---------- */
.facts{ border-color:var(--cy-gold-line); background:transparent; }
.facts div{ background:rgba(10,15,18,.9); }
.facts div:nth-child(odd){ background:rgba(15,23,27,.9); }
.facts dt{ color:var(--cy-gold); text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; align-self:center; }
.facts dt:lang(zh){ text-transform:none; font-size:.95rem; letter-spacing:.08em; }

/* ---------- the enquiry form on the contact page: the card's dark fields ---------- */
.enq{ background:linear-gradient(180deg, #0c1215, #090d10); border-color:var(--cy-gold-line); border-radius:0; box-shadow:0 0 1.4rem rgba(255,216,77,.06); }
/* square corners where the base rules gave their own radius */
.g-item img,.guide-page img{ border-radius:0; }
.fld label,.enq legend{ color:#e6ece4; }
.opt,.hint,.enq-act .small{ color:#97a99b; }
.fld input,.fld textarea{ background:#0f1712; color:#f2f5f0; border:1px solid rgba(255,216,77,.5); border-radius:0; }
.fld input:focus,.fld textarea:focus{ border-color:var(--cy-gold); box-shadow:0 0 0 3px rgba(255,216,77,.22), 0 0 1rem rgba(255,216,77,.2); }
.fld.bad input,.fld.bad textarea{ border-color:#ff7a6e; }
.fld-err,.content .fld-err{ color:#ffa59b; }   /* .content p would give it the paragraphs' grey */
.enq .req{ color:var(--cy-gold); }
.chip span{ background:#0f1712; color:#e6ece4; border:1px solid rgba(255,216,77,.5); border-radius:0; }
.chip span::before{ background:#0a100c; border-color:rgba(255,216,77,.65); border-radius:0; }
.chip input:checked + span{ border-color:var(--cy-gold); background:rgba(255,216,77,.14); color:var(--cy-gold); }
.chip input:checked + span::before{ background:var(--cy-gold); border-color:var(--cy-gold); box-shadow:inset 0 0 0 2.5px #0a100c; }
.chip input:focus-visible + span{ outline:2px solid var(--cy-gold); outline-offset:2px; }
.enq-sum{ background:rgba(180,35,24,.22); border:1px solid #ff7a6e; border-radius:0; }
.enq-sum > p,.enq-sum a{ color:#ffcbc4; }
.enq-done{ background:rgba(255,216,77,.08); border:1px solid rgba(255,216,77,.4); border-left:3px solid var(--cy-gold); border-radius:0; color:#eef2ee; }
.enq-done h3{ color:var(--cy-gold); }

/* ---------- bands ---------- */
.related{ background:#080b0e; border-top-color:rgba(255,216,77,.14); }
.related h2{ text-transform:uppercase; letter-spacing:.12em; font-size:1rem; }
.related h2:lang(zh){ text-transform:none; letter-spacing:.1em; font-size:1.1rem; }
.cta-band{ position:relative; background:linear-gradient(90deg, #07090c, #0e161a 50%, #07090c); border-top:1px solid var(--cy-gold-line); }
.cta-band::before{ content:""; position:absolute; left:0; right:0; top:-1px; height:2px; pointer-events:none;
  background:linear-gradient(90deg, transparent, var(--cy-gold) 30%, var(--cy-cyan) 70%, transparent); box-shadow:0 0 1rem rgba(255,216,77,.45); }
.cta-band h2{ text-transform:uppercase; letter-spacing:.08em; }
.cta-band h2:lang(zh){ text-transform:none; letter-spacing:.12em; }
.cta-band p{ color:var(--cy-text-2); }
.cta-client-check{ background:linear-gradient(90deg, #0b0718, #1d1446 50%, #0b0718); border-top-color:var(--cy-violet-line); }
.cta-client-check::before{ background:linear-gradient(90deg, transparent, var(--cy-violet) 35%, var(--cy-cyan) 70%, transparent); box-shadow:0 0 1rem rgba(169,139,255,.5); }
.cta-client-check p{ color:#cdbfff; }

/* ---------- footer ---------- */
.ftr{ background:#030405; border-top:1px solid var(--cy-gold-line); box-shadow:inset 0 1px 0 rgba(255,216,77,.12); color:var(--cy-text-3); }
.ftr-h{ color:var(--cy-gold); letter-spacing:.16em; font-size:.78rem; }
.ftr-h:lang(zh){ letter-spacing:.1em; font-size:.95rem; }
.ftr a{ color:var(--cy-text-2); } .ftr a:hover{ color:var(--cy-gold); text-decoration:none; }
.ftr-legal{ border-top-color:rgba(255,216,77,.12); color:var(--cy-text-3); }
.ftr-lang > [aria-current]{ color:var(--cy-gold); }

/* ---------- printing: dark text on white paper, without the bars and buttons ---------- */
@media print{
  :root{ --ink:#000; --ink-2:#222; --ink-3:#444; --paper:#fff; --paper-2:#fff; --paper-3:#fff; --line:#999; --acc-dark:#000; color-scheme:light; }
  body{ background:#fff !important; color:#000; }
  h1,h2,h3,h4,.content p,.content li,.content strong,.lede,.card-body h3,.card-body p,.facts dt,.facts dd,a{ color:#000 !important; text-shadow:none !important; }
  .hdr,.apps-nav,.apps-band,.cta-band,.related,.side,.ftr,.hero-arrow,.hero-toggle,.cyber,.hero-enq,.band-enq,.lang-hint,.preview-bar{ display:none !important; }
  .enq,.enq-done,#enquiry{ display:none !important; }   /* a form is of no use on paper */
  .card,.facts div,.enq{ background:#fff !important; box-shadow:none !important; }
  .content h2::before,.content h2::after,.card::before,.card::after{ display:none; }
}
