﻿.arzen-footer {
  --footer-ink: #eef4e9;
  --footer-muted: #b9cbc0;
  --footer-rule: #b7d7bf32;
  --footer-accent: #b9ea79;
  position: relative;
  background: #0d2119;
  color: var(--footer-ink);
}
.arzen-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(92deg, #126745, #58a657 38%, #a7dc61 66%, #e6b5d2);
}
.footer-contact {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2fr);
  gap: 28px;
  align-items: start;
  padding-block: clamp(37px, 6vw, 79px) clamp(29px, 4.7vw, 58px);
  border-bottom: 1px solid var(--footer-rule);
}
.footer-brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 44px;
}
.footer-brand img { display: block; width: clamp(126px, 13vw, 179px); height: auto; }
.arzen-footer .footer-inquiry h2 {
  margin: 0 0 11px;
  color: var(--footer-ink);
  font: 500 clamp(2.1rem, 5.2vw, 5.25rem)/.96 Geist, sans-serif;
  letter-spacing: -.064em;
}
.arzen-footer .footer-email {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  color: var(--footer-accent);
  overflow-wrap: anywhere;
  font: 450 clamp(.87rem, 1.6vw, 1.2rem)/1.5 Geist, sans-serif;
  text-underline-offset: 5px;
}
.footer-email span { font-size: 1em; }
.arzen-footer a:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 4px; }
.arzen-footer .footer-email:hover { color: #fff; text-decoration: underline; }
.footer-directory {
  display: grid;
  grid-template-columns: 1.14fr 1.2fr 1fr 1fr .65fr;
  gap: clamp(18px, 3vw, 42px);
  padding-block: clamp(27px, 4.4vw, 58px);
}
.footer-group { min-width: 0; }
.arzen-footer .footer-group h2 {
  margin: 0 0 13px;
  color: var(--footer-accent);
  text-transform: uppercase;
  font: 500 .76rem/1.45 'Geist Mono', monospace;
  letter-spacing: .07em;
}
.footer-group ul { margin: 0; padding: 0; list-style: none; }
.footer-group li + li { margin-top: 4px; }
.arzen-footer .footer-group a {
  display: inline-block;
  padding: 4px 0;
  color: var(--footer-ink);
  font-size: .9rem;
  line-height: 1.4;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.arzen-footer .footer-group a:hover, .arzen-footer .footer-group a[aria-current] {
  color: var(--footer-accent);
  text-decoration: underline;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px 22px;
  padding-block: 17px;
  border-block: 1px solid var(--footer-rule);
  color: var(--footer-muted);
  font: 400 .75rem/1.55 'Geist Mono', monospace;
}
.footer-signature {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 4vw, 54px) clamp(7px, 2.5vw, 30px) clamp(30px, 4vw, 54px);
}
.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
  grid-area: 1 / 1;
  filter: saturate(.6);
  pointer-events: none;
  user-select: none;
}
.footer-spotlight {
  --ang: 45deg;
  --mx2: 8%;
  --my2: 80%;
  padding-bottom: clamp(72px, 8.4vw, 116px);
}
.footer-spotlight .footer-wordmark:not(.footer-wordmark-lit) { opacity: .79; }
.footer-wordmark.footer-wordmark-lit {
  filter: saturate(1.4) brightness(1.4);
  opacity: 0;
  transition: opacity .45s;
  mask-image: conic-gradient(from calc(var(--ang) - 11deg) at var(--mx2) var(--my2), transparent 0deg, #000 4deg 18deg, transparent 22deg);
}
.footer-beam {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s;
  background: conic-gradient(from calc(var(--ang) - 11deg) at var(--ox) var(--oy), transparent 0deg, #d6f8a04a 4deg, #d6f8a02e 18deg, transparent 22deg);
  mask-image: radial-gradient(ellipse at var(--ox) var(--oy), #000 10%, transparent 85%);
}
.footer-lamp {
  position: absolute;
  z-index: 1;
  top: var(--oy);
  left: var(--ox);
  transform: translate(-13px, -50%);
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 5px 10px 5px 5px;
  border: 1px solid #c0ec9b55;
  border-radius: 99px;
  color: #e2f2d8;
  background: #ffffff0a;
  white-space: nowrap;
  font: 500 .72rem/1 'Geist Mono', monospace;
  cursor: pointer;
}
.footer-lamp img { width: 16px; height: 16px; }
.footer-lamp:hover { border-color: var(--footer-accent); color: #fff; }
.footer-lamp:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 4px; }

@media (max-width: 930px) {
  .footer-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .footer-contact { grid-template-columns: 1fr; gap: 15px; }
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 15px; }
  .footer-meta { flex-direction: column; }
  .footer-spotlight { padding-bottom: 70px; }
}

@property --footer-typed-edge {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 100%;
}
/* Caret top/bottom insets. Registered so they hold each step of the typing animation. */
@property --footer-caret-top {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 10%;
}
@property --footer-caret-bottom {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 10%;
}
.footer-wordmark-type {
  position: relative;
  display: grid;
  width: 100%;
}
.footer-wordmark-type[data-typing] .footer-wordmark {
  clip-path: inset(0 calc(100% - var(--footer-typed-edge)) 0 0);
}
.footer-wordmark-type[data-typing="waiting"] { --footer-typed-edge: 0%; }
.footer-wordmark-type[data-typing="active"] {
  animation: footer-type-wordmark 1.65s steps(1, end) both;
}
.footer-wordmark-type[data-typing="active"]::after,
.footer-wordmark-type[data-typing="done"]::after {
  content: '';
  position: absolute;
  inset-block: var(--footer-caret-top) var(--footer-caret-bottom);
  left: var(--footer-typed-edge);
  width: clamp(2px, .32vw, 4px);
  border-radius: 2px;
  background: var(--footer-accent);
  transform: translateX(-50%);
  pointer-events: none;
}
/* Over "inc." the caret matches those glyphs (y 131–188 of the 199px-tall logo), not the full wordmark. */
.footer-wordmark-type[data-typing="done"] {
  --footer-caret-top: 65.8%;
  --footer-caret-bottom: 5%;
}
.footer-wordmark-type[data-typing="done"]::after {
  animation: footer-caret-blink 1s steps(1) infinite;
}
@keyframes footer-caret-blink {
  50% { opacity: 0; }
}
/* These reveal points fall between the logo symbol and each baked-in glyph. */
@keyframes footer-type-wordmark {
    0% { --footer-typed-edge: 0%; --footer-caret-top: 10%; --footer-caret-bottom: 10%; }
   10% { --footer-typed-edge: 18%; }
   22% { --footer-typed-edge: 32.7%; }
   34% { --footer-typed-edge: 45.6%; }
   46% { --footer-typed-edge: 57.6%; }
   58% { --footer-typed-edge: 70.4%; }
   70% { --footer-typed-edge: 83.6%; --footer-caret-top: 65.8%; --footer-caret-bottom: 5%; }
   78% { --footer-typed-edge: 86.8%; }
   85% { --footer-typed-edge: 92.1%; }
   91% { --footer-typed-edge: 97.5%; }
   96% { --footer-typed-edge: 99.5%; }
  100% { --footer-typed-edge: 100%; --footer-caret-top: 65.8%; --footer-caret-bottom: 5%; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-wordmark-type[data-typing] .footer-wordmark { clip-path: none; }
  .footer-wordmark-type[data-typing="active"] { animation: none; }
  .footer-wordmark-type[data-typing="active"]::after,
  .footer-wordmark-type[data-typing="done"]::after { content: none; }
}

.arzen-footer .footer-group h2 a {
  padding: 0;
  color: inherit;
  font: inherit;
}
