/* Arashi Intelligence — site institucional.
   Conceito: o 嵐 (tempestade) no centro de um sistema de baixa pressão, desenhado como uma carta
   sinótica. É o único elemento ousado; o resto da página fica quieto. */

:root {
  --paper: #eef2f1;   /* névoa fria */
  --ink: #14212e;     /* azul-tempestade */
  --rain: #4a5e6d;    /* texto secundário */
  --contour: #b8c6cc; /* isóbaras */
  --signal: #c98a12;  /* âmbar de alerta — só gráfico e sublinhado, nunca texto corrido */
  --rule: #d3dcdf;

  --measure: 36rem;
  --gutter: 16px;
  --space: clamp(4rem, 9vw, 7.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13202b;
    --ink: #e4ebee;
    --rain: #9db0bc;
    --contour: #33485a;
    --signal: #e0a63a;
    --rule: #24384a;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: clip;
}

a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; }
}

/* Cabeçalho */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
}

.brand { font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 1.5rem; margin-inline-start: auto; font-size: 1rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--signal); }

/* Abertura */

/* recorta nas laterais e embaixo, mas deixa as isóbaras subirem por trás do cabeçalho */
.hero {
  overflow-x: clip;
  clip-path: inset(-12rem 0 0 0);
}

.hero .wrap {
  display: grid;
  gap: 2rem;
  padding-block: 1rem var(--space);
}

.hero-text { max-width: var(--measure); }

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede { margin: 0 0 2.25rem; color: var(--rain); }

.cta {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.cta:hover { background: color-mix(in srgb, var(--ink) 86%, var(--signal)); }

/* Carta sinótica */

.hero-chart {
  position: relative;
  order: -1;
  margin-inline: calc(var(--gutter) * -1);
  aspect-ratio: 1 / 0.8;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
}

.chart {
  overflow: visible;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135%;
  transform: translate(-50%, -50%);
}

.isobar {
  fill: none;
  stroke: var(--contour);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 110ms);
}
.isobar:first-of-type { stroke: var(--signal); stroke-width: 1.8; }

.hpa {
  fill: var(--rain);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 9px;
  opacity: 0;
  animation: appear 0.6s ease-out forwards;
  animation-delay: calc(var(--i) * 110ms + 900ms);
}

.kanji {
  fill: var(--ink);
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 800;
  font-size: 150px;
  text-anchor: middle;
  dominant-baseline: central;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .isobar { animation: none; stroke-dashoffset: 0; }
  .hpa { animation: none; opacity: 1; }
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    padding-block-start: 3rem;
  }
  .hero-chart {
    order: 0;
    margin: 0;
    aspect-ratio: 1;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .chart {
    width: 150%;
    left: 58%;
    /* os anéis externos somem antes de chegar no texto */
    -webkit-mask-image: linear-gradient(to right, transparent 14%, #000 42%);
    mask-image: linear-gradient(to right, transparent 14%, #000 42%);
  }
}

/* Seções: título à esquerda, conteúdo à direita */

.section .wrap {
  display: grid;
  gap: 1.25rem;
  padding-block: 0 var(--space);
}

h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.items { margin: 0; display: grid; gap: 1.75rem; max-width: var(--measure); }
.items dt { font-weight: 600; }
.items dd { margin: 0.25rem 0 0; color: var(--rain); }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

.email {
  display: inline-block;
  margin-block: 0.5rem 1.5rem;
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .section .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; }
}

/* Rodapé */

.site-footer { border-top: 1px solid var(--rule); color: var(--rain); font-size: 0.9375rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem;
}
.site-footer p { margin: 0; }

/* Explicação breve do nome, acessada pelo rodapé. */
.name-layout { min-height: 100svh; display: flex; flex-direction: column; }
.name-page {
  flex: 1;
  display: grid;
  align-content: center;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem 4rem;
}
.name-copy { min-width: 0; }
.name-copy .prose { color: var(--rain); }
.name-copy .prose > p:first-child { color: var(--ink); font-size: 1.375rem; }
.name-copy .name-back { margin-top: 2rem; font-size: 1rem; }
.name-chart {
  order: -1;
  justify-self: center;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  overflow: hidden;
  mask-image: radial-gradient(ellipse closest-side, #000 65%, transparent 100%);
}
.name-chart .chart { position: static; display: block; width: 100%; transform: none; mask-image: none; }
.name-chart .isobar { animation: none; stroke-dashoffset: 0; }
.name-chart .hpa { animation: none; opacity: 1; }

@media (min-width: 48rem) {
  .name-page { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; padding-block: 4rem 6rem; }
  .name-chart { order: 0; width: 100%; }
}
