/* NoHop home — surface layer on top of site/base.css.
   Prefix nhp- keeps it apart from the shared nh- system. */

.nohop-surface {
  --measure: 68ch;
  /* One light source, top left, at the slant of the N monogram. Structural light is neutral and low. */
  --light-edge: rgba(255, 255, 255, 0.08);
  --light-horizon: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 30%, transparent 80%);
}

/* Two-tone headings: solid colours only, at most three on the page. */
.nhp-dim { color: var(--text-3); }

/* base.css underlines every class-less link; nav and footer links are UI, not prose. */
.nh-nav__links a,
.nh-nav__sheet a,
.nh-footer__links a { text-decoration: none; }

/* ------------------------------------------------------------------ Hero */
.nhp-hero {
  position: relative;
  padding-top: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  overflow: hidden;
}
.nhp-hero__copy { display: grid; justify-items: start; gap: 1.5rem; }
.nhp-hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 5vw, 4.5rem);
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.02;
  max-width: 14.5em;
}
.nhp-hero__copy .nh-status { margin-top: 0.25rem; }
.nhp-hero__lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36rem;
}
.nhp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 0.5rem;
}

.nhp-hero__stage {
  position: relative;
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
}
/* Neutral ambient light behind the stage, offset to the left like the source. */
.nhp-hero__stage::before {
  content: "";
  position: absolute;
  /* The box reaches above the stage so the light peaks at the window's top edge and still fades upward. */
  inset: -40% -8% 30%;
  background: radial-gradient(55% 45% at 30% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}
.nhp-hero__caption {
  position: relative;
  margin-bottom: 1rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.nhp-hero__link {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  perspective: 1800px;
}
.nhp-hero__link:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }
.nhp-hero__tilt {
  position: relative;
  transform-origin: 50% 0%;
  animation: nhp-hero-rise 1.1s var(--ease-out) 120ms both;
}

/* Glass frame: brighter edge on the top and the upper third of the sides, a 1px reflection with its hot spot
   near the left, and a faint inner light under the rim. */
.nhp-hero__frame {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1) 33%, rgba(255, 255, 255, 0.07)) border-box;
  box-shadow: inset 0 1px 0 var(--light-edge), 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  transition: box-shadow var(--dur) ease;
}
.nhp-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 28%, rgba(255, 255, 255, 0.08) 70%, transparent);
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
  transition: opacity var(--dur) ease;
}
.nhp-hero__link:hover .nhp-hero__frame::before,
.nhp-hero__link:focus-visible .nhp-hero__frame::before { opacity: 1; }
.nhp-hero__link:hover .nhp-hero__frame,
.nhp-hero__link:focus-visible .nhp-hero__frame {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 40px 90px -30px rgba(0, 0, 0, 0.85);
}

/* Desktop: the window dissolves into the canvas instead of ending on a hard edge. The caption sits above it. */
@media (min-width: 960px) {
  .nhp-hero__frame {
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
    mask-image: linear-gradient(180deg, #000 78%, transparent);
  }
}

@keyframes nhp-hero-rise {
  from {
    transform: rotateX(16deg) translateY(-2%) scale(0.96);
    filter: brightness(0.7);
  }
  to {
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nhp-hero__tilt { animation: none; }
}

/* One white button per fold: the nav CTA reads as secondary while the hero CTA is on screen. */
.nhp-hero-cta-visible .nh-nav .nh-btn--primary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 var(--light-edge);
}
.nhp-hero-cta-visible .nh-nav .nh-btn--primary:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------------------------ Aproximae */
.nhp-apx__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.nhp-apx__head h2 { font-size: var(--fs-2xl); }
.nhp-apx__intro { display: grid; gap: 1rem; color: var(--text-2); max-width: var(--measure); }

.nhp-apx__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
/* Portrait phone capture of the dashboard: keep it at phone scale, not column scale. */
.nhp-apx__frame { width: 100%; max-width: 400px; }
.nhp-apx__list { border-top: 1px solid var(--line); }
.nhp-apx__list li { padding-block: 1.6rem; border-bottom: 1px solid var(--line-faint); }
.nhp-apx__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nhp-apx__list h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.024em; line-height: 1.15; margin-bottom: 0.6rem; }
.nhp-apx__list p { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.55; max-width: 34rem; }

.nhp-apx__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.nhp-apx__cta span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ------------------------------------------------------------------ Services (dense) */
.nh-section.nhp-services { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.nhp-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.nhp-services__aside {
  position: sticky;
  top: 112px;
  display: grid;
  justify-items: start;
  gap: 1.1rem;
}
.nhp-services__aside h2 { font-size: var(--fs-2xl); }
.nhp-services__aside p { color: var(--text-3); font-size: var(--fs-lg); line-height: 1.5; max-width: 26rem; }

.nhp-services__list { border-top: 1px solid var(--line); }
.nhp-service {
  display: grid;
  gap: 0.65rem;
  padding-block: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.nhp-service h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.028em; }
.nhp-service p { color: var(--text-2); max-width: 36rem; }
.nhp-service__proof {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  color: var(--text-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) ease;
}
.nhp-service__proof .nh-icon { color: var(--accent); transition: transform var(--dur) var(--ease-out); }
.nhp-service__proof:hover .nhp-service__arrow { transform: translateX(3px); }
.nhp-service__proof span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--dur-fast) ease;
}
.nhp-service__proof:hover { color: var(--text); }
.nhp-service__proof:hover span { text-decoration-color: var(--accent-line); }

/* ------------------------------------------------------------------ Proofs */
/* The stage of the page: the most air, and horizon lines that fade at both ends instead of hard rules. */
/* .nh-section.nhp-proofs outranks the shared ".nh-section + .nh-section" hairline. */
.nh-section.nhp-proofs {
  background: var(--bg-raised);
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
  border-top-color: transparent;
}
.nhp-proofs + .nh-section { border-top-color: transparent; }
.nhp-proofs::before,
.nhp-proofs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--light-horizon);
  pointer-events: none;
}
.nhp-proofs::before { top: 0; }
.nhp-proofs::after { bottom: 0; }
.nhp-proofs__title { font-size: var(--fs-2xl); max-width: 18em; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.nhp-proofs__split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.nhp-proofs__split::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--light-horizon);
}
.nhp-proof { position: relative; display: grid; align-content: start; justify-items: start; gap: 1.1rem; padding-top: 2.5rem; }
.nhp-proof--google { padding-right: clamp(2rem, 1rem + 4vw, 5rem); }
.nhp-proof--insta { padding-left: clamp(2rem, 1rem + 4vw, 5rem); }
/* Split line that fades out at the top and bottom. */
.nhp-proof--insta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.08) 45%, transparent);
}
.nhp-proof__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 var(--light-edge);
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.nhp-proof h3 { font-size: var(--fs-xl); letter-spacing: -0.022em; line-height: 1.15; max-width: 20em; }
.nhp-proof p { color: var(--text-2); max-width: var(--measure); }
.nhp-proof__list { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.nhp-proof__list li { display: flex; gap: 0.7rem; align-items: center; color: var(--text); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; }
.nhp-proof__list .nh-icon { color: var(--accent); }
.nhp-proof .nhp-proof__outcome {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

/* ------------------------------------------------------------------ History (calm changelog) */
.nh-section.nhp-history { padding-block: clamp(4.5rem, 3.5rem + 4vw, 7.5rem); }
.nhp-history__head {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.nhp-history__head h2 { font-size: var(--fs-2xl); }
.nhp-history__head p { font-size: var(--fs-lg); color: var(--text-3); line-height: 1.5; }

.nhp-log { border-top: 1px solid var(--line); }
.nhp-log__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 1.5rem clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
/* The result is the primary line; the system name is a quiet secondary label under it. */
.nhp-log__result {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  max-width: 14em;
}
.nhp-log__body { display: grid; gap: 0.45rem; justify-items: start; }
.nhp-log__body h3 { font-size: var(--fs-sm); font-weight: 650; letter-spacing: 0; line-height: 1.4; color: var(--text-2); }
.nhp-log__body p { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.6; max-width: 40rem; }
.nhp-log__body .nhp-log__status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--text-3); }
.nhp-log__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); }
.nhp-log__link { font-size: var(--fs-sm); color: var(--accent); }
.nhp-log__link:hover { color: var(--accent-strong); }
.nhp-log__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  /* Past work stays calm: one muted tone across every capture, back to full colour on hover, focus or touch. */
  filter: grayscale(0.4) brightness(0.7);
  transition: filter var(--dur) ease;
}
.nhp-log__row:hover .nhp-log__thumb,
.nhp-log__row:focus-within .nhp-log__thumb,
.nhp-log__row:active .nhp-log__thumb { filter: none; }

/* ------------------------------------------------------------------ About */
.nh-section.nhp-about { padding-block: clamp(4.5rem, 3.5rem + 5vw, 8rem); }
.nhp-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.nhp-about__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 4 / 5;
  max-width: 380px;
  background: var(--bg-raised);
}
.nhp-about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(0.25) contrast(1.02); }
.nhp-about__copy { display: grid; gap: 1.1rem; justify-items: start; }
.nhp-about__copy h2 { font-size: var(--fs-2xl); margin-bottom: 0.25rem; }
.nhp-about__copy p { color: var(--text-2); font-size: var(--fs-lg); line-height: 1.55; max-width: 36rem; }
.nhp-about__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 0.5rem; }

/* ------------------------------------------------------------------ Closing */
/* The only mint atmosphere on the page: light from the upper left, a mint horizon that fades at both ends,
   and a 3% dither so the gradient does not band on 8-bit screens. */
.nh-section.nhp-closing {
  overflow: hidden;
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
  border-top-color: transparent;
}
.nhp-closing::before,
.nhp-closing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nhp-closing::before {
  background:
    linear-gradient(90deg, transparent, var(--accent-line) 30%, transparent 80%) top / 100% 1px no-repeat,
    radial-gradient(70% 55% at 22% 0%, rgba(95, 216, 174, 0.1), transparent 70%);
}
.nhp-closing::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  -webkit-mask-image: radial-gradient(70% 55% at 22% 0%, #000, transparent 70%);
  mask-image: radial-gradient(70% 55% at 22% 0%, #000, transparent 70%);
}
.nhp-closing__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 1.25rem; }
.nhp-closing h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); letter-spacing: -0.022em; max-width: 14em; }
.nhp-closing p { font-size: var(--fs-lg); color: var(--text-3); max-width: 32rem; }
.nhp-closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.nhp-closing .nhp-closing__address { font-size: var(--fs-xs); color: var(--text-3); user-select: all; }

/* ------------------------------------------------------------------ Touch targets */
/* Text links keep their look; a transparent band above and below brings the hit area to 44px. */
#conteudo .nh-btn--link,
.nhp-service__proof { position: relative; }
#conteudo .nh-btn--link::after,
.nhp-service__proof::after {
  content: "";
  position: absolute;
  inset: -10px 0;
}

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
  .nhp-apx__head,
  .nhp-apx__body,
  .nhp-services__grid,
  .nhp-about__grid { grid-template-columns: 1fr; }
  .nhp-services__aside { position: static; }
  .nhp-proofs__split { grid-template-columns: 1fr; }
  .nhp-proof--google { padding-right: 0; padding-bottom: 2.5rem; }
  .nhp-proof--insta { padding-left: 0; }
  .nhp-proof--insta::before { right: 0; bottom: auto; width: auto; height: 1px; background: var(--light-horizon); }
  .nhp-log__row { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
  .nhp-log__result { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nhp-hero h1 { letter-spacing: -0.022em; }
  .nhp-hero__actions .nh-btn--lg { width: 100%; }
  /* Compact rows: result and name on the left, an 88px thumbnail on the right. */
  .nhp-log__row {
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-template-areas: "result thumb" "body thumb";
    gap: 0.5rem 1rem;
    padding-block: 1.25rem;
  }
  .nhp-log__result { grid-area: result; font-size: var(--fs-lg); }
  .nhp-log__body { grid-area: body; }
  .nhp-log__thumb { grid-area: thumb; width: 88px; aspect-ratio: 1; border-radius: var(--r-sm); }
  .nhp-about__photo { max-width: 260px; }
  .nhp-closing__actions { width: 100%; }
  .nhp-closing__actions .nh-btn { width: 100%; white-space: normal; }
}
