/* ==========================================================================
   AVORAINVEST — Reset & base
   ========================================================================== */

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

:root {
  --ink: #17181a;
  --ink-soft: #252525;
  --header-bg-scrolled: rgba(28, 28, 28, 0.55);
  --header-shadow-scrolled: 0 10px 40px rgba(0, 0, 0, 0.3);

  --accent: #2f4eb8;
  --accent-glow: rgba(47, 78, 184, 0.3);
  --accent-glow-strong: rgba(47, 78, 184, 0.45);
  --cta-radius: 18px;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: #e8e8e6;
  background: #2a2a2a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   Header — floating glass panel
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-12px);
  width: 100%;
  border-radius: 0;
  z-index: 1000;

  background: transparent;
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  border: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;

  opacity: 0;
  filter: blur(6px);

  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s ease,
    backdrop-filter 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.site-header.loaded {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--header-shadow-scrolled);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 120px;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.logo-mark {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* ==========================================================================
   Desktop nav
   ========================================================================== */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding: 10px 14px;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #2f4eb8;
}

.contact-dropdown {
  position: relative;
  margin-left: 32px;
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  padding: 20px 30px;
  border-radius: var(--cta-radius);
  background: linear-gradient(135deg, #1c1c1c 0%, #101010 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 40px -14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(47, 78, 184, 0.08),
    0 0 22px -6px var(--accent-glow);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Focus visibility
   ========================================================================== */

.logo:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible,
.nav-link-mobile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ==========================================================================
   Mobile hamburger
   ========================================================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle:hover .menu-toggle-bar {
  background: #2f4eb8;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile nav panel
   ========================================================================== */

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 110px 24px 40px;
  overflow-y: auto;

  background: rgba(20, 21, 23, 0.9);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
}

.nav-mobile.menu-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-link-mobile {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  padding: 10px 20px;
  transition: color 0.25s ease;
}

.nav-link-mobile:hover {
  color: #2f4eb8;
}

.nav-cta-mobile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  padding: 18px 40px;
  border-radius: var(--cta-radius);
  background: linear-gradient(135deg, #1c1c1c 0%, #101010 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 40px -14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(47, 78, 184, 0.08),
    0 0 22px -6px var(--accent-glow);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-dropdown-mobile {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

.contact-dropdown-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 270px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(18, 18, 19, 0.94);
  box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-dropdown.is-open .contact-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-dropdown-menu a {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #f3f3f1;
  transition: background 0.25s ease;
}

.contact-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.contact-dropdown-menu span {
  color: #858681;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-dropdown-menu strong {
  font-size: 14px;
  font-weight: 600;
}

.contact-dropdown-mobile .contact-dropdown-menu {
  position: relative;
  top: auto;
  right: auto;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transform: translateY(-6px);
}

.contact-dropdown-mobile.is-open .contact-dropdown-menu {
  max-height: 180px;
  margin-top: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  transform: translateY(0);
}

/* ==========================================================================
   Premium CTA — shared shine, content, hover/active/focus states
   ========================================================================== */

.nav-cta-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta::before,
.nav-cta-mobile::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-cta::after,
.nav-cta-mobile::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.nav-cta:hover,
.nav-cta-mobile:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #212121 0%, #131313 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 28px 55px -14px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(47, 78, 184, 0.18),
    0 0 32px -4px var(--accent-glow-strong);
}

.nav-cta:hover::before,
.nav-cta-mobile:hover::before {
  left: 130%;
}

.nav-cta:hover .nav-cta-arrow,
.nav-cta-mobile:hover .nav-cta-arrow {
  transform: translateY(3px);
}

.contact-dropdown.is-open .nav-cta-arrow {
  transform: rotate(180deg);
}

.nav-cta:active,
.nav-cta-mobile:active {
  transform: translateY(-1px);
}

.nav-cta:focus-visible,
.nav-cta-mobile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Page shell
   ========================================================================== */

main {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Hero — background decor (radial glow, noise, vignette)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(47, 78, 184, 0.1), transparent 58%);
}

.hero-diffuse {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1100px 750px at 50% 26%, rgba(245, 245, 242, 0.035), transparent 72%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'%3E%3C/rect%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.22) 100%);
}

/* ==========================================================================
   Hero — layout (single column, centered)
   ========================================================================== */

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 94vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 150px 24px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   Hero — content
   ========================================================================== */

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  margin: 0;
}

.hero-headline-img {
  display: block;
  width: clamp(300px, 44vw, 620px);
  height: auto;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.hero-tagline {
  margin: 14px 0 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--accent) 55%, #e8e8e6 45%);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}

.hero-subtitle {
  max-width: 520px;
  margin: 30px 0 0;
  font-size: clamp(16px, 1vw + 13px, 18px);
  line-height: 1.6;
  color: #a8a8a5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s;
}

.hero-cta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 44px 0 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s;
}

.hero.is-visible .hero-headline-img,
.hero.is-visible .hero-tagline,
.hero.is-visible .hero-subtitle,
.hero.is-visible .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero — CTA buttons (call / whatsapp / email)
   ========================================================================== */

.hero-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #f2f2f0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(36, 36, 38, 0.9) 0%, rgba(15, 15, 16, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 40px -18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(47, 78, 184, 0.07),
    0 0 22px -8px var(--accent-glow);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-btn::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-cta-btn::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.hero-cta-icon,
.hero-cta-label {
  position: relative;
  z-index: 2;
}

.hero-cta-label-mobile {
  display: none;
}

.hero-cta-icon {
  display: inline-flex;
  color: color-mix(in srgb, var(--accent) 62%, #f5f5f2 38%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s ease;
}

.hero-cta-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.hero-cta-btn:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(43, 43, 46, 0.92) 0%, rgba(20, 20, 21, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.45),
    0 26px 54px -18px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(47, 78, 184, 0.15),
    0 0 30px -6px var(--accent-glow-strong);
}

.hero-cta-btn:hover::before {
  left: 130%;
}

.hero-cta-btn:hover .hero-cta-icon {
  transform: translateX(3px);
  color: color-mix(in srgb, var(--accent) 40%, #fff 60%);
}

.hero-cta-btn:active {
  transform: translateY(-2px);
}

.hero-cta-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Portfolio — section header
   ========================================================================== */

.portfolio {
  position: relative;
  background: var(--ink);
  padding: 140px 0 160px;
}

.portfolio-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}

.portfolio-header {
  text-align: center;
  margin: 0 0 64px;
}

.portfolio-title-img {
  display: block;
  margin: 0 auto;
  width: clamp(220px, 24vw, 320px);
  height: auto;
  /* the file's decorative swash above the "P" throws off its own bounding
     box — the readable word sits ~6.5% right of center, so nudge it back */
  transform: translateX(-6.5%);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.portfolio-subtitle {
  margin: 12px 0 0;
  font-size: 16px;
  color: #a8a8a5;
}

/* ==========================================================================
   Portfolio — slider
   ========================================================================== */

.portfolio-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 30vw, 460px);
  /* extra clipping headroom so the hover lift+scale on .portfolio-card
     doesn't get cut off by this viewport's own overflow:hidden edge */
  padding: 32px 18px;
}

.portfolio-track {
  --visible: 3;
  --gap: 28px;
  display: flex;
  gap: var(--gap);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

.portfolio-track:active {
  cursor: grabbing;
}

.portfolio-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  border-radius: 20px;
  will-change: transform;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 10px 24px -20px rgba(0, 0, 0, 0.34);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/*
 * The corner-clip lives on this separate, never-transformed wrapper.
 * Chrome/Safari can fail to keep a rounded overflow:hidden clip intact
 * on an element that ALSO animates its own transform — corners flash
 * square mid-hover. Splitting "moves" (.portfolio-card) and "clips"
 * (this element) sidesteps that compositing bug entirely.
 */
.portfolio-card-clip {
  display: block;
  position: relative;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-card-clip::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(47, 78, 184, 0.25),
    rgba(112, 145, 255, 1),
    rgba(18, 42, 120, 0.95),
    rgba(47, 78, 184, 0.25)
  );
  background-size: 250% 250%;
  opacity: 0;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@keyframes portfolio-border-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.portfolio-card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  cursor: pointer;
}

.portfolio-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.portfolio-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f5f2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.portfolio-card:hover {
  z-index: 2;
  transform: translateY(-10px) scale(1.05);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.28),
    0 20px 42px -28px rgba(0, 0, 0, 0.42);
}

.portfolio-card:hover .portfolio-card-clip::after,
.portfolio-card:focus-within .portfolio-card-clip::after {
  opacity: 1;
  animation: portfolio-border-flow 2.2s linear infinite alternate;
}

.portfolio-card:hover .portfolio-card-caption,
.portfolio-card-link:focus-visible .portfolio-card-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Portfolio — controls
   ========================================================================== */

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.portfolio-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-arrow svg {
  width: 16px;
  height: 16px;
}

.portfolio-arrow:hover {
  background: rgba(47, 78, 184, 0.14);
  border-color: rgba(47, 78, 184, 0.35);
  transform: translateY(-2px);
}

.portfolio-arrow:active {
  transform: translateY(0);
}

.portfolio-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.portfolio-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  max-width: 340px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.portfolio-dot {
  width: 10px;
  height: 2px;
  padding: 0;
  border: none;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.3s ease, width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.portfolio-dot.is-active {
  background: #f5f5f2;
  width: 22px;
}

.portfolio-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Services — 3 cards under portfolio
   ========================================================================== */

.services {
  position: relative;
  background: var(--ink);
  padding: 0 0 140px;
}

.services-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  scroll-margin-top: 130px;
}

.services-ticker {
  margin: 56px 0 0;
  text-align: center;
  font-size: clamp(20px, 2vw + 12px, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.services-ticker-word {
  display: inline-block;
  color: color-mix(in srgb, var(--accent) 55%, #e8e8e6 45%);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-ticker-word.is-swapping {
  opacity: 0;
  transform: translateY(-10px);
}

.service-card {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 14px 32px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(120, 150, 255, 0.35),
    rgba(47, 78, 184, 0.12) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

.service-card:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.contact-cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 20px 120px 24px;
}

.contact-cta-inner {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    url("assets/cta-bg2.png") center / cover no-repeat,
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075) 0%,
      rgba(255, 255, 255, 0.025) 55%,
      rgba(255, 255, 255, 0.045) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px -34px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.contact-cta-inner::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: url("assets/CTA-background.png") center / cover no-repeat;
  pointer-events: none;
}

.contact-cta-inner:hover::before {
  -webkit-mask-image: radial-gradient(
    circle 190px at var(--cta-mouse-x, 50%) var(--cta-mouse-y, 50%),
    transparent 0,
    transparent 48%,
    rgba(0, 0, 0, 0.45) 72%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle 190px at var(--cta-mouse-x, 50%) var(--cta-mouse-y, 50%),
    transparent 0,
    transparent 48%,
    rgba(0, 0, 0, 0.45) 72%,
    #000 100%
  );
}

.contact-quick-actions.hero-cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(40px, 7vw, 96px);
  width: min(calc(100% - 48px), 620px);
  margin: 0;
  opacity: 1;
  transform: translateX(-50%);
}

.contact-cta-eyebrow {
  margin: 0 0 22px;
  color: #a8a8a5;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-cta h2 {
  margin: 0;
  color: #f5f5f2;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contact-cta-copy {
  max-width: 520px;
  margin: 28px auto 0;
  color: #a8a8a5;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.contact-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.contact-cta-primary,
.contact-cta-secondary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}

.contact-cta-primary {
  color: #161719;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #f1f1ee;
  box-shadow: 0 16px 36px -20px rgba(255, 255, 255, 0.4);
}

.contact-cta-primary span {
  font-size: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-cta-secondary {
  color: #d8d8d5;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.contact-cta-primary:hover,
.contact-cta-secondary:hover {
  transform: translateY(-3px);
}

.contact-cta-primary:hover span {
  transform: translateX(4px);
}

.contact-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.065);
}

.contact-cta-primary:focus-visible,
.contact-cta-secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  padding: 64px max(32px, calc((100vw - 1200px) / 2)) 26px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 52px;
  align-items: center;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
}

.site-footer-links,
.footer-nav,
.footer-contact,
.footer-anpc-links {
  display: flex;
  align-items: center;
}

.site-footer-links {
  justify-content: flex-end;
  gap: 30px;
  min-width: 0;
}

.footer-nav,
.footer-contact {
  gap: 22px;
}

.footer-anpc-links {
  gap: 22px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-nav a,
.footer-contact a {
  color: #a8a8a5;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #f5f5f2;
}

.site-footer-bottom {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer-bottom p {
  margin: 0;
  color: #5f605e;
  font-size: 12px;
}

.site-footer-bottom > a {
  display: inline-block;
  margin-top: 8px;
  color: #777873;
  font-size: 12px;
  transition: color 0.25s ease;
}

.site-footer-bottom > a:hover {
  color: #f5f5f2;
}

.site-footer-bottom > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  .header-inner {
    padding: 18px 32px;
  }

  .hero-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .portfolio-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .services-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .contact-cta {
    padding-right: 32px;
    padding-left: 32px;
  }

  .contact-cta-inner {
    aspect-ratio: 4 / 5;
    min-height: 0;
    background: url("assets/cta-mobile.png?v=2") center / cover no-repeat;
  }

  .contact-cta-inner::before {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    min-height: auto;
    padding-top: clamp(130px, 26vw, 170px);
    padding-bottom: 80px;
  }

  .hero-subtitle {
    max-width: 440px;
  }

  .portfolio-track {
    --visible: 1.6;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-btn:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 8px);
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .site-footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .hero-cta-label-desktop {
    display: none;
  }

  .hero-cta-label-mobile {
    display: inline;
  }

  .hero-headline-img {
    width: calc(100vw - 64px);
  }

  .portfolio {
    padding: 100px 0 110px;
  }

  .portfolio-header {
    margin-bottom: 44px;
  }

  .portfolio-slider {
    width: calc(100% + 32px);
    min-height: 0;
    margin-right: -32px;
    padding: 8px 32px 18px 0;
  }

  .portfolio-track {
    --visible: 1.12;
    --gap: 14px;
  }

  .portfolio-card {
    border-radius: 24px;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.22),
      0 18px 36px -24px rgba(0, 0, 0, 0.7);
  }

  .portfolio-card:hover {
    transform: none;
  }

  .portfolio-card-caption {
    padding: 44px 18px 16px;
    font-size: 15px;
    opacity: 1;
    transform: none;
  }

  .portfolio-controls {
    gap: 14px;
    margin-top: 18px;
  }

  .portfolio-arrow {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.07);
  }

  .portfolio-dots {
    min-width: 86px;
    height: 46px;
    padding: 0 18px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
  }

  .portfolio-dots::before {
    content: attr(data-current) " / " attr(data-total);
  }

  .portfolio-dot {
    display: none;
  }

  .services {
    padding-bottom: 100px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    padding: 12px 32px;
  }

  .contact-cta-inner {
    padding: 0;
    border-radius: 22px;
  }

  .contact-quick-actions.hero-cta {
    bottom: 26px;
    width: calc(100% - 32px);
  }

  .contact-cta h2 br {
    display: none;
  }

  .contact-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-cta-primary,
  .contact-cta-secondary {
    width: 100%;
  }

  .site-footer {
    padding: 54px 28px 24px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-nav,
  .footer-contact,
  .footer-anpc-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-anpc-links {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .site-footer-bottom {
    margin-top: 44px;
  }

  .services-ticker {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .contact-cta-inner {
    min-height: 0;
  }

  .hero-cta {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 14px;
  }

  .hero-cta-btn:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

  .hero-cta-btn {
    width: 100%;
  }

  .contact-quick-actions.hero-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-quick-actions .hero-cta-btn:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 7px);
  }

  .hero-tagline {
    font-size: clamp(19px, 6vw, 24px);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .header-inner,
  .nav-link,
  .nav-cta,
  .nav-link-mobile,
  .nav-cta-mobile,
  .nav-cta::before,
  .nav-cta-mobile::before,
  .nav-cta-arrow,
  .menu-toggle-bar,
  .nav-mobile,
  .hero-headline-img,
  .hero-tagline,
  .hero-subtitle,
  .hero-cta,
  .hero-cta-btn,
  .hero-cta-btn::before,
  .hero-cta-icon,
  .contact-cta-primary,
  .contact-cta-primary span,
  .contact-cta-secondary,
  .portfolio-track,
  .portfolio-card,
  .portfolio-card-clip::after,
  .portfolio-card img,
  .portfolio-card-caption,
  .portfolio-arrow,
  .portfolio-dot,
  .service-card,
  .service-card img,
  .service-card::before,
  .services-ticker-word {
    transition: none !important;
    animation: none !important;
  }

  .site-header {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }

  .hero-headline-img,
  .hero-tagline,
  .hero-subtitle,
  .hero-cta {
    opacity: 1;
    transform: translateY(0);
  }
}
