#hero { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; padding-block: 18px 48px; }

#hero .top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.skip { position: absolute; z-index: 3; top: 8px; left: var(--gutter); padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }
#hero .mark { font-size: 20px; font-weight: 500; text-decoration: none; }
#hero nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
#hero nav a { position: relative; text-decoration: none; }
#hero nav a::after { content: ""; position: absolute; inset: auto 0 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  #hero nav a:hover { color: var(--ink); }
  #hero nav a:hover::after { transform: scaleX(1); }
  #hero .links a:hover { text-decoration-color: var(--ink); }
}

/* margin-top keeps the headline clear of the island and its hint on short screens */
#hero h1 { align-self: end; max-width: 15.5em; margin-block: 48px 40px; font-weight: 300; font-size: clamp(min(2.6rem, 11vw), 1.4rem + 4.4vw, 4.75rem); line-height: 1.06; letter-spacing: -0.02em; animation: rise 700ms var(--ease-out) 150ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

#hero .links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; font-size: 16px; font-weight: 500; }
#hero .links a { text-decoration-color: var(--rule); transition: text-decoration-color 150ms ease; }

.email { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 16px; border: 0; border-radius: 22px; background: var(--amber); color: var(--ink); font-weight: 500; cursor: pointer; transition: scale 160ms var(--ease-out); }
.email:active { scale: 0.97; }
.email .icons, .email .labels { display: grid; }
.email .icons > *, .email .labels > * { grid-area: 1 / 1; transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out), transform 180ms var(--ease-out); }
.email svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.email .labels { text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.email .b, .email.done .a { opacity: 0; filter: blur(4px); transform: scale(0.9); }
.email.done .b { opacity: 1; filter: none; transform: none; }
.email-fallback { font-weight: 500; }

#hero .rule { margin-top: 56px; border-top: 1px solid var(--ink); }
#hero .spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 64px; padding-top: 20px; font-size: 15px; }
#hero .spec .label { margin-bottom: 8px; color: var(--muted); }
#hero .spec .row { display: flex; justify-content: space-between; padding-block: 3px; }
#hero .spec .row span:last-child, #hero .spec .quiet { color: var(--muted); }
@media (max-width: 767px) { #hero .spec { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  #hero h1 { animation-name: fade; }
  @keyframes fade { from { opacity: 0; } }
  .email .b, .email.done .a { transform: none; }
}
