/* Anton Pjetri signature mark and edge-to-edge hero image */
.brand {
  gap: 14px;
}

.brand > span:first-child {
  position: relative;
  isolation: isolate;
  width: 48px;
  height: 48px;
  border: 1px solid var(--green);
  background: transparent;
  font-size: 0;
  overflow: hidden;
}

.brand > span:first-child::before,
.brand > span:first-child::after {
  position: absolute;
  z-index: 1;
  color: var(--green);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.brand > span:first-child::before {
  content: "A";
  top: 5px;
  left: 7px;
}

.brand > span:first-child::after {
  content: "P";
  right: 7px;
  bottom: 5px;
  padding-left: 7px;
  border-left: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
}

.topbar .brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .075em;
}

.topbar .brand small {
  margin-top: 5px;
  letter-spacing: .22em;
}

.hero-visual {
  line-height: 0;
}

.hero-visual img {
  display: block;
  vertical-align: bottom;
}

.hero + .section {
  margin-top: 0;
}

.footer-brand > span:first-child {
  width: 40px;
  height: 40px;
}

footer .footer-brand strong {
  font-size: 14px;
}

@media (max-width: 600px) {
  .brand {
    gap: 10px;
  }

  .brand > span:first-child {
    width: 40px;
    height: 40px;
  }

  .brand > span:first-child::before,
  .brand > span:first-child::after {
    font-size: 19px;
  }

  .brand strong {
    font-size: 14px;
  }
}

/* Interactive polish */
html { scroll-padding-top: 94px; }
.scroll-progress { position: fixed; z-index: 60; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.topbar { position: sticky; top: 0; z-index: 40; }
.topbar nav a { position: relative; transition: color .25s; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--green); transition: right .25s; }
.topbar nav a:hover::after, .topbar nav a.active::after { right: 0; }
.topbar nav a.active { color: var(--ink); }
.hero-visual img { transform: scale(1.04); transition: transform .15s linear; }
.service-grid article { transition: background .3s, transform .3s; }
.service-grid article:hover { background: #e4eae3; transform: translateY(-6px); }
.menu-list summary { transition: color .25s, padding-left .25s; }
.menu-list summary:hover { color: var(--green); padding-left: 8px; }
.menu-list details div { animation: menuReveal .32s ease both; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.service-grid article:nth-child(2) { transition-delay: .08s; }
.service-grid article:nth-child(3) { transition-delay: .16s; }
.back-to-top { position: fixed; z-index: 15; right: 24px; bottom: 24px; width: 48px; height: 48px; border: 1px solid var(--green); border-radius: 50%; background: var(--paper); color: var(--green); font-size: 22px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--green); color: #fff; }
.cookie-banner:not([hidden]) ~ .back-to-top { bottom: 190px; }
@keyframes menuReveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 950px) { .service-grid article:hover { transform: none; } .hero-visual img { transform: none !important; } }
@media (max-width: 600px) { .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } .cookie-banner:not([hidden]) ~ .back-to-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-visual img, .menu-list details div { animation: none; transition: none; } .back-to-top { transition: none; } }
