/* =========================================================
   d10e.co — streamlined layout (mobile-first)
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root{
  --bg:#0c0c0c;
  --fg:#e9e9e9;
  --muted:#b7b7b7;
  --accent:#ffffff;
  --maxw: 880px;
  --gap: 24px;

  /* controls the equal space below header / above logos */
  --pill-band-gap: clamp(20px, 4vh, 44px);
}

@media (min-width: 720px){
  :root{
    --gap: 28px;
    --pill-band-gap: clamp(28px, 6vh, 72px);
  }
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* container with safe-area padding for iOS toolbars */
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 16px));
}

/* ---------- Hero ---------- */
header{
  padding-top: 10vh;                 /* a bit generous but not excessive */
  padding-bottom: var(--pill-band-gap);
}

h1{
  margin: 0 0 8px 0;
  font-weight: 800;
  font-size: clamp(32px, 8vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.sub{
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 4.2vw, 20px);
}

/* ---------- Cred/Pill band ---------- */
.cred{
  /* Equal spacing above/below the pill; logos pick up the bottom gap */
  margin: 0 0 var(--pill-band-gap);
}

.pill{
  display: block;
  margin: 0 auto;                    /* center in the band */
  width: fit-content;
  max-width: 32ch;                    /* readable; prevents sprawl */
  padding: 10px 14px;
  border: 1px solid #222;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-wrap: balance;                 /* nicer wrapping where supported */
}

/* Larger pill alignment and sizing for desktop */
@media (min-width: 720px){
  .pill{
    display: inline-block;   /* align with hero text flow */
    margin: 0;               /* no auto-centering */
    max-width: none;         /* full text width if needed */
    font-size: 15px;         /* slightly larger text */
    padding: 12px 20px;      /* more presence */
  }
}

/* ---------- Logos ---------- */
.logos{
  /* Mobile: single-column, centered */
  margin: 0;                          /* spacing handled by .cred above */
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--gap);
  filter: grayscale(100%);
  opacity: 0.9;
}

.logos img{
  width: min(65vw, 280px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1) grayscale(100%);
  opacity: 0.9;
  transition: opacity .2s ease;
}
.logos img:hover{ opacity: 1; }

/* Tablet/Desktop: 3 columns */
@media (min-width: 720px){
  .logos{
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    justify-items: center;
  }
  .logos img{
    width: 100%;
  }
}

/* Larger Desktop: 5 columns */
@media (min-width: 1024px){
  .logos{
    grid-template-columns: repeat(5, minmax(140px, 1fr));
  }
}

/* ---------- Contact CTA ---------- */
.contact{ margin: 48px 0 32px; }

.cta{
  display: block;                     /* full-width on mobile */
  width: 100%;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  min-height: 48px;                   /* tap target */
}
.cta:focus-visible{
  outline: 2px solid #9ad;
  outline-offset: 3px;
}

/* On wider screens you can let it size to content if you prefer */
@media (min-width: 720px){
  .cta{
    display: inline-block;
    width: auto;
    padding: 14px 20px;
    border-radius: 10px;
  }
}

/* ---------- Footer ---------- */
.foot{
  border-top: 1px solid #1a1a1a;
  padding-top: 24px;
  margin-bottom: 6vh;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .01em;
  opacity: .75;
}

/* ---------- UX niceties ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Timeless fade-up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* default easing token */
:root { --ease-out-smooth: cubic-bezier(.22,.61,.36,1); }

/* Opt-in animation */
.reveal {
  opacity: 0;                         /* ensure no flash before anim */
  transform: translateY(6px);
  will-change: opacity, transform;
}

/* Run once on load */
.ready .reveal {
  animation: fadeUp 420ms var(--ease-out-smooth) 40ms both;
}

/* Stagger for logos (no markup changes needed) */
.ready .logos img { animation: fadeUp 420ms var(--ease-out-smooth) both; }
.ready .logos img:nth-child(1){ animation-delay: 60ms; }
.ready .logos img:nth-child(2){ animation-delay: 120ms; }
.ready .logos img:nth-child(3){ animation-delay: 180ms; }
.ready .logos img:nth-child(4){ animation-delay: 240ms; }
.ready .logos img:nth-child(5){ animation-delay: 300ms; }

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .logos img { animation: none !important; opacity: 1; transform: none; }
}
