/* ---------------------------------------------------------------
   Swift Equipment Ltd. holding page.
   One file on purpose: drop the folder on any static host and it
   works. The only external assets are the logo and the icons.
   The palette is deliberately monochrome, matching the supplied
   logo, so a brand colour chosen later can drop straight in.
   --------------------------------------------------------------- */

:root {
  --ink:     #0b0d10;   /* keep in step with INK in tools/make_logo_assets.py */
  --paper:   #ffffff;
  --muted:   rgba(255, 255, 255, 0.60);
  --faint:   rgba(255, 255, 255, 0.40);
  --line:    rgba(255, 255, 255, 0.14);
  --sans:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --slant:   -18deg;    /* the logo's own lean, reused by the divider */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
  background-color: var(--ink);
  background-image: radial-gradient(
    1100px 620px at 50% -12%,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0) 68%
  );
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--sans);
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.stage {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 44rem;
}

.mark {
  display: block;
  width: clamp(15rem, 58vw, 33rem);
  height: auto;
  margin: 0 auto;
}

.divider {
  display: block;
  width: 4rem;
  height: 3px;
  margin: clamp(1.75rem, 5vw, 2.75rem) auto clamp(1.5rem, 4vw, 2.25rem);
  background: var(--paper);
  opacity: 0.55;
  transform: skewX(var(--slant));
}

h1 {
  margin: 0;
  font-size: clamp(0.95rem, 2.3vw, 1.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  text-indent: 0.36em;   /* recentre: tracking adds a gap after the last letter */
}

.lede {
  margin: 1.1rem auto 0;
  max-width: 36ch;
  color: var(--muted);
  text-wrap: balance;
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
}

.contact {
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: clamp(0.95rem, 1.7vw, 1.0625rem);
}

/* A hairline between the two items, only while they sit side by side. */
.contact li + li { position: relative; }
.contact li + li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  width: 1px;
  height: 1.1em;
  background: var(--line);
  transform: translateY(-50%);
}

a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}
a:hover { border-bottom-color: var(--paper); }
a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
  border-radius: 2px;
}

address {
  margin: clamp(1.75rem, 4vw, 2.25rem) auto 0;
  color: var(--faint);
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

footer {
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Entrance: each block arrives a beat after the one above it. */
.stage > * { animation: rise 620ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.mark      { animation-delay:  60ms; }
.divider   { animation-delay: 180ms; }
h1         { animation-delay: 240ms; }
.lede      { animation-delay: 320ms; }
.contact   { animation-delay: 400ms; }
address    { animation-delay: 480ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
/* The divider carries a skew, so it needs its own keyframes. */
.divider { animation-name: rise-skewed; }
@keyframes rise-skewed {
  from { opacity: 0; transform: skewX(var(--slant)) translateY(12px); }
  to   { opacity: 0.55; transform: skewX(var(--slant)); }
}

@media (prefers-reduced-motion: reduce) {
  .stage > * { animation: none; }
}

@media (max-width: 26rem) {
  .contact { flex-direction: column; gap: 0.9rem; }
  .contact li + li::before { content: none; }
}

/* The logo doubles as the way home on the 404 page. */
.mark-link {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
}
.mark-link:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 8px;
}
