/* Home content only. Existing sky, brand animation, glass panes, glints,
   light-aware shadows and flip surfaces are deliberately not restyled. */
:root { --card-h: calc(var(--card-w) * .54 + 154px); --home-heading-gap: 32px; }
.card .card-logo-area {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: calc(var(--card-w) * .54); margin: -10px -8px 14px;
  border-radius: 8px; background: var(--accent-soft);
  transition: background-color 2400ms ease;
}
.card-logo-area > .service-logo, .card-logo-area > svg { width: 58%; height: 65%; object-fit: contain; margin: 0; }
.card-logo-area .status-dot { position: absolute; right: 10px; top: 10px; margin: 0; }
.steps { position: relative; gap: 24px; }
.steps::before { content: ""; position: absolute; top: 26px; bottom: 26px; left: 25px; border-left: 1px dashed var(--text-dim); opacity: .35; }
.steps li { position: relative; align-items: center; gap: 14px; }
.steps li + li { border: 0; padding-top: 0; }
.steps .num { width: 52px; height: 52px; margin: 0; color: var(--accent); }
.steps .num svg { width: 23px; height: 23px; }
@media (min-width: 640px) {
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .steps::before { top: 27px; bottom: auto; left: 16.667%; right: 16.667%; border-left: 0; border-top: 1px dashed var(--text-dim); }
  .steps li { min-width: 0; width: 100%; box-sizing: border-box; gap: 14px; }
  .steps .step-text { width: 100%; min-width: 0; }
  .steps .step-line a { white-space: normal; }
  .steps li + li { border: 0; padding-top: 2px; }
}
/* The carousel keeps its shadow buffer/negative margin. Lift its sibling
   dots above that transparent track buffer so real pointer input reaches them. */
.dots { position: relative; z-index: 1; }

/* Widen only the hero. Both ends use one viewport-relative gutter; lower
   sections keep the established reading width. 100% uses the layout viewport,
   not 100vw, so a vertical scrollbar cannot introduce horizontal overflow. */
@media (min-width: 1000px) {
  main { max-width: none; padding-inline: clamp(40px, 6vw, 144px); }
  main > .public-content > section, main > .public-content > footer { max-width: calc(var(--content-w) - 40px); margin-inline: auto; }
}
/* Home labels use the same hierarchy on portrait, landscape and desktop. */
main > .public-content > section > .section-label {
  font-size: clamp(15px, .45vw + 12.5px, 19px);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 72%, var(--bg));
}
/* One measured switch owns widening, navigation and edge fades. Below the
   existing desktop gutter breakpoint, retain the original 20px main padding. */
main.home-open-row { max-width: none; }
main.home-open-row > .public-content > section, main.home-open-row > .public-content > footer {
  max-width: calc(var(--content-w) - 40px); margin-inline: auto;
}
main.home-open-row > .public-content > section[aria-label="Services on offer"] { max-width: min(100%, 1640px); }
.home-open-row .carousel .nav-btn { opacity: .9; }
.home-open-row .carousel {
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

/* Approved still layout: actions belong to the carousel, not the greeting. */
.home-portal-actions .status { justify-content: center; margin: 20px 0 0; }
.home-portal-actions .cta-wrap { display: flex; justify-content: center; margin: 16px 0 0; }
main > .public-content > section[aria-label="Services on offer"] { margin-bottom: clamp(96px, 9vw, 160px); }
.card .cat { display: flex; align-items: center; gap: 6px; }
.card .cat .category-icon { width: 14px; height: 14px; flex: none; }
/* The centered card begins 41px inside the carousel (34px + 48px shadow
   room, split in half). Keep that clipping/shadow buffer intact while both
   labels sit the same 32px from the visible glass surface below them. */
main > .public-content > section > .section-label { margin-bottom: 0; }
.carousel { margin-top: calc(var(--home-heading-gap) - 41px); }
.getting-started-flip-pane { margin-top: var(--home-heading-gap); }

/* Animate a theme-independent light amount. Theme tokens interpolate outside
   keyframes so WebKit cannot retain an old theme's resolved stop values. */
@property --face { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --lit { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --icon-shadow { syntax: '<number>'; inherits: true; initial-value: .55; }
@property --tile-lit { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --tile-dim { syntax: '<color>'; inherits: true; initial-value: transparent; }

/* One fixed-size world, centered on the heading and intro together. Its
   native button sits behind the noninteractive text and the theme-color halo. */
.home-hero {
  display: flex; justify-content: center;
  margin: 112px 0 clamp(220px, 20vw, 300px);
}
.hero-greeting { position: relative; isolation: isolate; width: 100%; max-width: 620px; }
.home-hero h1 { position: relative; z-index: 2; justify-content: center; margin: 0 0 14px; text-align: center; pointer-events: none; font-size: clamp(48px, 3.4vw + 26px, 74px); gap: 18px; }
.home-hero .brand-mark { width: 1.1em; height: 1.1em; }
.home-hero .hero-intro {
  position: relative; z-index: 2; max-width: 38ch; margin: 0 auto;
  color: var(--text-dim); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.6;
  text-align: center; pointer-events: none;
}
.hero-greeting::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 390px; max-width: 100vw; height: 210px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse closest-side, var(--bg) 25%, transparent 100%);
  pointer-events: none;
}
.globe-button {
  position: absolute; z-index: 0; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 340px; height: 340px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.globe-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.logo-globe { position: absolute; inset: 0; perspective: 1200px; transform: scale(1.133333); opacity: .72; transition: opacity 2400ms ease; pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-globe { opacity: .78; } }
html[data-theme="dark"] .logo-globe { opacity: .78; }
.globe-spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d; animation: home-globe-spin 70s linear infinite; animation-play-state: paused; }
.globe-tile { position: absolute; left: 0; top: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* Ambient light keeps shadowed artwork coloured in the light theme. */
  --icon-shadow: .55;
  --tile-lit: var(--accent);
  --tile-dim: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: color-mix(in srgb, var(--tile-lit) calc(var(--lit) * 100%), var(--tile-dim));
  transition: --icon-shadow 2400ms ease, --tile-lit 2400ms ease, --tile-dim 2400ms ease;
  animation: tile-light 70s linear infinite, tile-face 70s linear infinite; animation-delay: var(--d), var(--f); animation-play-state: paused; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .globe-tile {
    --icon-shadow: .3;
    --tile-lit: rgb(var(--light-rgb));
    --tile-dim: color-mix(in srgb, var(--accent) 22%, var(--bg));
  }
}
html[data-theme="dark"] .globe-tile {
  --icon-shadow: .3;
  --tile-lit: rgb(var(--light-rgb));
  --tile-dim: color-mix(in srgb, var(--accent) 22%, var(--bg));
}
/* The site's animated toggle suppresses CSS transitions while it interpolates
   --logo-dim and the palette. Follow that existing progress during the arc;
   ordinary attribute/system switches use the registered transitions above.
   Include :root so these rules outrank the system-dark :root:not(...) rules
   while fading to light, before the data-theme attribute changes. */
@media (prefers-reduced-motion: no-preference) {
  html:root.theme-animating .logo-globe { opacity: calc(.72 + .06 * var(--logo-dim)); }
  html:root.theme-animating .globe-tile {
    --icon-shadow: calc(.55 - .25 * var(--logo-dim));
    --tile-lit: color-mix(in srgb, rgb(var(--light-rgb)) calc(var(--logo-dim) * 100%), var(--accent));
    --tile-dim: color-mix(in srgb, var(--accent) calc(14% + 8% * var(--logo-dim)), var(--bg));
  }
}
@keyframes tile-face {
  0%, 100% { --face: 1; }
  15%, 85% { --face: .85; }
  22%, 78% { --face: 0; }
}
@keyframes tile-light {
  0%, 100% { --lit: 1; }
  /* Shared light phase: intermediate brightness is .9875 in light
     and .825 in dark after the logos-only shadow adjustment. */
  12%, 88% { --lit: .35; }
  25%, 75% { --lit: 0; }
}
.globe-tile .service-logo, .globe-tile > svg { width: 86%; height: 86%; opacity: var(--face); object-fit: contain; margin: 0;
  /* Inherited light amount shades image and fixed-fill SVG artwork alike. */
  filter: brightness(calc(var(--icon-shadow) + (1.8 - var(--icon-shadow)) * var(--lit))) drop-shadow(0 1px 1.5px rgba(0,0,0,.25));
}
@keyframes home-globe-spin { from { transform: rotateX(-16deg) rotateY(0deg); } to { transform: rotateX(-16deg) rotateY(-360deg); } }
@media (min-width: 640px) {
  .hero-greeting::before { width: 660px; height: 290px; }
}
/* Pause, never remove, all timelines: retain the current lighting and face phases. */
@media (prefers-reduced-motion: reduce) {
  .globe-spin, .globe-tile { animation-play-state: paused !important; }
}

@media (min-width: 1000px) {
  .home-hero { margin-bottom: clamp(200px, 16vw, 236px); }
}
/* The requested fixed 340px globe can exceed a narrow viewport; crop only
   its off-screen edges rather than creating horizontal page overflow. */
@media (max-width: 339px) { main { overflow-x: clip; } }
