/* ═══════════════════════════════════════════════════════════════
   matinsaiyed.com — hero + footer (annual-report identity)
   Structure follows the classic Figma-community portfolio pattern:
   who/what/where + photo in the first screen, sections below.
   Consumes site.css custom properties, so Light/Dark just works.
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 7vh, 84px) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero .kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: "Newsreader", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero h1 .dot { color: var(--red); }

.hero-sub {
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 20px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-sub em { color: var(--ink); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 26px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 50%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* portrait with the offset-frame treatment from the reference */
.hero-portrait {
  margin: 0;
  position: relative;
  max-width: 400px;
  justify-self: end;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: color-mix(in srgb, var(--red) 9%, var(--paper-raised));
  border: 1px solid var(--rule);
  z-index: -1;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
}
.hero-portrait .portrait-chip {
  position: absolute;
  left: -10px;
  bottom: 16px;
}

/* figures strip — double-rule ledger band */
.figures-strip {
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 3px double var(--rule-strong);
  padding: 14px 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-soft);
}
.figures-strip b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.figures-strip b.up { color: var(--green); }
.figures-strip b.up::after { content: " ▲"; font-size: 9px; vertical-align: 2px; }

/* ── Footer — constant after-hours block ────────────────────── */
.footer { background: #0a0c14; color: #fff; position: relative; z-index: 5; margin-top: 96px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(19px, 2.3vw, 28px);
  text-decoration: none;
  color: #fff;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3vw, 40px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 200ms ease;
}
.footer-links a:first-child { border-left: 0; }
.footer-links a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.footer-links .arrow { color: #e0564a; transition: transform 200ms ease; }
.footer-links a:hover .arrow { transform: translateX(5px); }
.footer-links a[download]:hover .arrow { transform: translateY(4px); }

.footer-wordmark {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(90px, 23.5vw, 340px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-align: center;
  padding: clamp(20px, 4vw, 50px) 0 0;
  user-select: none;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 26px clamp(22px, 3vw, 40px) 30px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Load reveal (hero) ─────────────────────────────────────── */
.reveal-load {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal-load { opacity: 1; transform: none; animation: none; }
  .status-dot { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { justify-self: start; max-width: 340px; order: -1; }
}

@media (max-width: 720px) {
  .figures-strip { gap: 8px 22px; font-size: 12px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-links a { border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .footer-legal { flex-direction: column; }
}
