/* Homepage composition. The light and the A render in separate canvases. */
@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/archivo-black-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.home-focus { --studio-floor: #131318; }

.home-focus .hero {
  --hero-navy: var(--brand-navy);
  --hero-orange: var(--site-hero-accent, var(--brand-orange));
  /* The same material orange used by the assembled A and its still image. */
  --glass-orange: var(--site-ff8d43, #ff8d43);
  --dome-top: 89%;
  --hero-white: var(--site-hero-copy, var(--text-on-dark));
  --hero-button: var(--site-hero-button, var(--brand-orange));
  --hero-warm: color-mix(in srgb, var(--site-ff975d, #ff975d) 75%, var(--site-cc5c54, #cc5c54));
  --hero-split: 0;
  position: relative;
  display: grid;
  align-content: center;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 112px 20px 72px;
  overflow: clip;
  isolation: isolate;
  color: var(--hero-white);
  background: #0c111c;
}

/* The drawing uses the desktop reference's coordinate system. Each asymmetric
   reflection adds light to the same navy surface, including where facets cross. */
.hero-refraction {
  position: absolute;
  inset: 0;
  isolation: isolate;
  pointer-events: none;
}
.glass-layer,
.glass-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-refraction[data-renderer="webgl"] .glass-layer {
  visibility: hidden;
  animation: none;
  will-change: auto;
}
.glass-sweep,
.glass-reflections > use {
  mix-blend-mode: plus-lighter;
}
.glass-reflections > use { --drift: 32px; --cross-drift: 5px; --pace: .72; }
.glass-reflections > use:nth-child(3n) { --drift: -42px; --cross-drift: 9px; --pace: .91; }
.glass-reflections > use:nth-child(3n + 1) { --drift: 52px; --cross-drift: -8px; --pace: 1.09; }
.glass-reflections > use:nth-child(5n + 1) { --drift: -16px; --cross-drift: -4px; --pace: .58; }

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  /* The SVG fallback keeps its masks static and composites two light layers. */
  .glass-sweep {
    animation: glass-sweep var(--light-period, 20s) ease-in-out infinite;
    animation-play-state: var(--light-play, paused);
    will-change: transform, opacity;
  }
  .glass-sweep-upper { --sweep: 1.1%; }
  .glass-sweep-lower { --sweep: -.85%; animation-duration: calc(var(--light-period, 20s) * 1.23); }
}
@keyframes glass-sweep {
  0%, 100% { transform: translate(0, 0) scale(1.025); opacity: 1; }
  38% { transform: translate(var(--sweep), var(--sweep)) scale(1.025); opacity: .76; }
  74% { transform: translate(calc(var(--sweep) * -.5), calc(var(--sweep) * -.5)) scale(1.025); opacity: .93; }
}
.hero-dome {
  position: absolute;
  inset: var(--dome-top, 89%) 0 0;
  pointer-events: none;
}

.hero-dome svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Land on the same colour as the first pixels of the product section. */
.home-focus .hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(24px, 6svh, 72px);
  background: linear-gradient(to bottom, transparent, var(--studio-floor) calc(100% - 3px));
  z-index: 1;
  pointer-events: none;
}

.home-focus .hero > .hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.home-focus .hero-description {
  max-width: 46ch;
  margin: 0;
  color: var(--hero-white);
  font-size: clamp(1.06rem, 1.68vw, 2rem);
  font-weight: 500;
  line-height: 1.42;
  text-wrap: balance;
}

.home-focus .hero h1 {
  display: block;
  max-width: 14ch;
  margin: 32px 0 0;
  color: var(--site-hero-headline, #f9e5c4);
  font-family: "Archivo Black", var(--font-display);
  font-size: clamp(2.05rem, 9.3vw, 4.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-transform: uppercase;
  transform: translateY(-8px) scale(1.05);
}

.home-focus .hero h1 > span { display: block; color: inherit; }
.home-focus .hero-outline {
  display: block;
  color: var(--hero-orange);
  white-space: nowrap;
}
@media screen {
  @supports (-webkit-text-stroke: 1px currentColor) {
    .home-focus .hero-outline {
      -webkit-text-fill-color: transparent;
      -webkit-text-stroke: 1px currentColor;
      -webkit-text-stroke: clamp(1px, .024em, 1.8px) currentColor;
    }
  }
}

.home-focus .hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  margin: 40px 0 0;
}

.home-focus .hero-actions a {
  position: relative;
  min-height: 50px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.home-focus .hero-actions a span {
  display: inline-grid;
  place-items: center;
  flex: none;
  font: normal 21px/1 Arial, sans-serif;
}

.home-focus .hero-actions .orange {
  isolation: isolate;
  min-height: 52px;
  padding: 0 26px 1px 20px;
  gap: 34px;
  border-radius: 0;
  background: transparent;
  color: var(--hero-navy);
}

/* Cut only the painted surface so the focus ring stays fully visible. */
.home-focus .hero-actions .orange::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-button);
  clip-path: polygon(0 0, 100% 0, calc(100% - 17px) 100%, 0 100%);
}

.home-focus .hero-actions .orange span {
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, currentColor 29%, transparent);
  transform: skew(-18deg);
}

.home-focus .hero-actions .orange:hover::before { background: color-mix(in srgb, var(--hero-button) 78%, white); }
.home-focus .hero-actions .orange:active::before { background: color-mix(in srgb, var(--hero-button) 86%, black); }

.home-focus .hero-actions .light-link {
  gap: 20px;
  padding: 0 5px 0 0;
  color: var(--site-hero-copy, #f9e5c4);
}

.home-focus .hero-actions .light-link::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 2px;
  background: var(--hero-orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 2px) 100%, 0 100%);
}

.home-focus .hero-actions .light-link span,
.home-focus .hero-actions .light-link:hover { color: var(--hero-orange); }
.home-focus .hero-actions a:focus-visible { outline-color: var(--hero-white); }

@media (min-width: 1000px) and (forced-colors: none),
       (min-width: 540px) and (max-width: 999px) and (min-aspect-ratio: 4/3) and (forced-colors: none) {
  .home-focus .hero:not(.pyramid-stacked) {
    --hero-split: 1;
    padding: clamp(112px, 16svh, 200px) clamp(24px, 3vw, 72px) clamp(98px, 15svh, 180px);
  }

  .home-focus .hero:not(.pyramid-stacked) > .hero-content {
    /* Reserve a clear approach to both feet of the A as the columns narrow. */
    grid-template-columns: minmax(0, 1fr) min(35%, calc(41% - 100px)) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(16px, 1.5vw, 32px);
    row-gap: clamp(68px, 9svh, 124px);
  }

  .home-focus .hero:not(.pyramid-stacked) .hero-description { grid-column: 1 / -1; }

  .home-focus .hero:not(.pyramid-stacked) :is(h1, .hero-actions) {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    max-width: none;
    margin: 0;
  }

  .home-focus .hero:not(.pyramid-stacked) h1 {
    align-self: center;
    align-items: center;
    padding-bottom: 48px;
    /* Leave a clear route between AROUND YOUR and the logo's right foot. */
    font-size: clamp(2rem, 3.55vw, 4.2rem);
    line-height: .99;
    transform: translateY(-14px);
  }

  .home-focus .hero:not(.pyramid-stacked) h1 > span { scale: 1.06; }
  .home-focus .hero:not(.pyramid-stacked) .hero-heading-left { transform-origin: left center; }
  .home-focus .hero:not(.pyramid-stacked) .hero-heading-right { transform-origin: right center; }

  .home-focus .hero:not(.pyramid-stacked) .hero-heading-left,
  .home-focus .hero:not(.pyramid-stacked) .hero-actions .orange {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .home-focus .hero:not(.pyramid-stacked) .hero-heading-right,
  .home-focus .hero:not(.pyramid-stacked) .hero-actions .light-link {
    grid-column: 3;
    justify-self: end;
    text-align: right;
  }

  .home-focus .hero:not(.pyramid-stacked) .hero-actions { align-self: end; }

  .hero:not(.pyramid-stacked) .hero-pyramids {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .home-focus .hero { padding-block: 88px 32px; }
  .home-focus .hero-description { font-size: 1rem; }
  .home-focus .hero h1 { margin-top: 24px; transform: none; }
  .home-focus .hero .hero-actions { margin-top: 36px; }

  @supports not (text-wrap: balance) {
    .home-focus .hero-description { max-width: 34ch; }
  }
}

@media (max-width: 360px) and (max-height: 650px) {
  .home-focus .hero h1 { margin-top: 20px; }
  .home-focus .hero .hero-actions { margin-top: 32px; }
}

@media (max-width: 560px) {
  .home-focus .hero .hero-actions {
    width: 100%;
    gap: 8px 16px;
  }

  .home-focus .hero-actions a {
    min-width: 0;
    min-height: 48px;
    font-size: clamp(.8125rem, 3.6vw, 1rem);
  }

  .home-focus .hero-actions .orange { gap: 6px; padding-inline: 12px 18px; }
  .home-focus .hero-actions .orange span { padding-left: 5px; }
  .home-focus .hero-actions .light-link { gap: 5px; padding-inline: 0; }
  .home-focus .hero-actions a span { font-size: 16px; }
}

@media (max-width: 360px),
       (min-width: 540px) and (max-width: 600px) and (min-aspect-ratio: 4/3) {
  .home-focus .hero-actions a span { display: none; }
}

@media (max-width: 999px) {
  .home-focus .hero { --dome-top: 97%; }
  .home-focus .hero::before { height: 3%; }
  .home-focus .hero-outline { white-space: normal; }
}

@media (min-width: 481px) and (max-width: 999px) {
  .home-focus .hero { padding: 96px 20px 56px; }
  .home-focus .hero h1 { font-size: clamp(2.25rem, min(8.5vw, 6.8svh), 3.75rem); }
}

@media (min-width: 540px) and (max-width: 999px) and (min-aspect-ratio: 4/3) and (forced-colors: none) {
  .home-focus .hero:not(.pyramid-stacked) {
    --hero-compact: 1;
    padding: 80px 24px 64px;
  }
  .home-focus .hero:not(.pyramid-stacked) > .hero-content {
    grid-template-columns: minmax(0, 1fr) clamp(104px, calc(30% - 40px), 214px) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: clamp(32px, 9svh, 48px);
  }
  .home-focus .hero-description { font-size: 1rem; }
  .home-focus .hero:not(.pyramid-stacked) h1 {
    font-size: clamp(1.25rem, 3.8vw, 2.125rem);
    padding-bottom: 56px;
    transform: none;
  }
  .home-focus .hero:not(.pyramid-stacked) h1 > span { scale: none; }
  .home-focus .hero-actions a { min-height: 44px; font-size: .875rem; }
  .home-focus .hero-actions .orange { min-height: 44px; gap: 8px; padding-inline: 10px 18px; }
  .home-focus .hero-actions .orange span { padding-left: 4px; }
  .home-focus .hero-actions .light-link { gap: 8px; }
  .home-focus .hero-actions a span { font-size: 16px; }
}
@media (max-aspect-ratio: 4/5) {
  .glass-upper { transform-origin: 235px 155px; transform: translateY(-32px) scale(1.4, .55); }
  .glass-lower { transform-origin: 1210px 690px; transform: translateY(68px) scale(1.4, .55); }
  .hero-refraction { opacity: .84; }
}

@media (max-width: 600px) and (max-aspect-ratio: 4/5) {
  /* Spread both groups diagonally and keep the upper highlight above the copy. */
  .glass-upper { transform: translate(132px, -100px) scale(2.55, .78); }
  .glass-lower { transform: translate(-146px, -15px) scale(2.4, .88); }
  .hero-refraction { opacity: .90; }
}

@media (forced-colors: active) {
  .home-focus .hero::before, .hero-dome, .hero-refraction { display: none; }
  .home-focus .hero { color: CanvasText; background: Canvas; }
  .home-focus .hero :is(h1, .hero-outline, .hero-description) { color: CanvasText; }
  .home-focus .hero-outline {
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke-width: 0;
  }
  .home-focus .hero-actions .orange { color: ButtonText; background: ButtonFace; border: 1px solid ButtonText; }
  .home-focus .hero-actions .light-link { color: LinkText; text-decoration: underline; }
  .home-focus .hero-actions .orange::before, .home-focus .hero-actions .light-link::after { display: none; }
  .home-focus .hero-actions a:focus-visible { outline-color: Highlight; }
}
