/* ==========================================================================
   Adamas Digital — Home
   Hero bento grid · services slider
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(7rem, 14vh, 9.5rem);
  padding-bottom: var(--sp-4);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__glow--1 {
  top: -160px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(190, 158, 130, 0.22), transparent 66%);
}

.hero__glow--2 {
  bottom: -180px;
  right: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(134, 145, 157, 0.18), transparent 66%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(240px, 320px) minmax(170px, 215px) 1fr;
  grid-template-areas:
    "portrait head head"
    "portrait mark showcase"
    "team badge showcase";
}

.hero__card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.hero__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---- Portrait ---- */

.hero__portrait {
  grid-area: portrait;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(160deg, var(--linen), var(--sky-grey));
}

.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.hero__portrait:hover img {
  transform: scale(1.05);
}

.hero__chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: var(--w-semi);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  padding: 0.5rem 0.9rem;
}

.hero__chip i {
  font-size: 0.45rem;
  color: #4caf7d;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---- Headline card ---- */

.hero__head {
  grid-area: head;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: var(--w-bold);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0.9rem 0 1rem;
}

.hero__title span {
  display: block;
  color: var(--accent-deep);
}

.hero__lead {
  font-family: var(--font-body);
  font-weight: var(--w-reg);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn--dark {
  --_bg: var(--ink);
  --_fg: var(--mist);
  padding: 1rem 1.8rem;
}

.btn--dark:hover {
  --_bg: #1e2226;
  box-shadow: 0 14px 30px rgba(42, 46, 51, 0.24);
}

.hero__cta i {
  transition: transform var(--dur) var(--ease);
}

.hero__cta:hover i {
  transform: translateX(4px);
}

.hero__round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.92rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.hero__round:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ---- Mark card ---- */

.hero__mark {
  grid-area: mark;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem;
  background: var(--linen);
}

.hero__mark-a {
  font-family: var(--font-head);
  font-weight: var(--w-bold);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}

.hero__mark-line {
  width: 34px;
  height: 2px;
  background: var(--accent-deep);
}

.hero__mark-text {
  font-family: var(--font-head);
  font-weight: var(--w-med);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ---- Team card ---- */

.hero__team {
  grid-area: team;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1.15rem 1.3rem;
}

.hero__team-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__team-label {
  font-family: var(--font-head);
  font-weight: var(--w-med);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--ink);
  line-height: 1.5;
}

.hero__avatars {
  display: flex;
  align-items: center;
}

.hero__avatars img,
.hero__avatar-more {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  object-fit: cover;
  margin-left: -10px;
  background: var(--sky-grey);
  transition: transform var(--dur-fast) var(--ease);
}

.hero__avatars img:first-child {
  margin-left: 0;
}

.hero__avatars img:hover {
  transform: translateY(-4px);
}

.hero__avatar-more {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 0.85rem;
}

.hero__team-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-btn);
  font-weight: var(--w-bold);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.95rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.hero__team-cta i {
  font-size: 0.6rem;
  transition: transform var(--dur) var(--ease);
}

.hero__team-cta:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero__team-cta:hover i {
  transform: translateX(3px);
}

/* ---- Rotating badge ---- */

.hero__badge {
  grid-area: badge;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 130px;
}

.hero__badge svg {
  position: absolute;
  width: 124px;
  height: 124px;
  animation: rotate 16s linear infinite;
}

.hero__badge text {
  font-family: var(--font-head);
  font-weight: var(--w-med);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  fill: var(--ink-muted);
  text-transform: uppercase;
}

.hero__badge > i {
  font-size: 1.05rem;
  color: var(--accent-deep);
  animation: rotate 16s linear infinite reverse;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Showcase card ---- */

.hero__showcase {
  grid-area: showcase;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
  min-height: 230px;
}

.hero__showcase:hover {
  transform: translateY(-4px);
}

.hero__showcase-copy {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__showcase-pattern {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 170px;
  height: 130px;
  background-image: radial-gradient(rgba(190, 158, 130, 0.38) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 78%);
  mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.hero__showcase:hover .hero__showcase-pattern {
  opacity: 1;
}

.hero__showcase-kicker {
  font-family: var(--font-head);
  font-weight: var(--w-med);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.64rem;
  color: var(--latte);
}

.hero__showcase-copy h3 {
  color: var(--mist);
  font-weight: var(--w-med);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  max-width: 16ch;
}

.hero__showcase-link {
  margin-top: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mist);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.hero__showcase-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(4px);
}

.hero__showcase-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #20242a, #2c3138);
}

.hero__showcase-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease-out);
}

.hero__showcase-media img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__showcase-dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.hero__showcase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}

.hero__showcase-dot.is-on {
  width: 20px;
  border-radius: 6px;
  background: var(--latte);
}

/* ---- Status bar ---- */

.hero__bar {
  position: relative;
  z-index: 1;
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.5rem;
}

.hero__bar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: var(--w-med);
  color: var(--ink-muted);
}

.hero__bar-status i {
  font-size: 0.42rem;
  color: var(--accent-deep);
  animation: pulse 2s infinite;
}

.hero__bar-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.hero__bar-stats b {
  font-family: var(--font-head);
  font-weight: var(--w-semi);
  font-size: 1.15rem;
  color: var(--ink);
}

.hero__bar-divider {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
}

/* ---- Hero responsive ---- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head head"
      "portrait showcase"
      "mark badge"
      "team team";
  }

  .hero__portrait {
    min-height: 300px;
  }

  .hero__showcase {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .hero__showcase-media {
    min-height: 150px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 6.5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head head"
      "portrait portrait"
      "mark badge"
      "showcase showcase"
      "team team";
  }

  .hero__head {
    padding: 1.4rem;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero__portrait {
    min-height: 280px;
  }

  .hero__showcase {
    min-height: 0;
  }

  .hero__showcase-media {
    min-height: 170px;
  }

  .hero__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "portrait"
      "mark"
      "badge"
      "showcase"
      "team";
  }

  .hero__badge {
    min-height: 150px;
  }
}

/* ==========================================================================
   Services slider
   ========================================================================== */

.services {
  position: relative;
  padding-top: var(--sp-4);
}

.services__head {
  margin-bottom: 2.2rem;
}

.services__title {
  font-family: var(--font-head);
  font-weight: var(--w-semi);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin-top: 0.9rem;
}

.svc-slider {
  position: relative;
}

.svc-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}

.svc-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s var(--ease-out);
}

.svc-slide {
  min-width: 100%;
}

.svc-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.4rem, 2.6vw, 2.4rem);
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 3vw, 2.8rem);
}

/* ---- Left panel ---- */

.svc-left {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.4rem 0.4rem 0.6rem;
}

.svc-eyebrow {
  font-family: var(--font-head);
  font-weight: var(--w-med);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.svc-title {
  font-family: var(--font-head);
  font-weight: var(--w-semi);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink);
  max-width: 20ch;
}

.svc-desc {
  font-family: var(--font-body);
  font-weight: var(--w-reg);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-top: 1rem;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.8rem;
}

.svc-tag {
  font-family: var(--font-body);
  font-weight: var(--w-med);
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.42rem 0.95rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.svc-tag:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.svc-cta {
  align-self: flex-start;
  margin-top: 1.4rem;
}

.svc-cta i {
  font-size: 0.85rem;
}

/* ---- Right panel ---- */

.svc-right {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--mist);
}

.svc-right-title {
  font-family: var(--font-head);
  font-weight: var(--w-semi);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.2;
  color: var(--mist);
}

.svc-right-desc {
  font-family: var(--font-body);
  font-weight: var(--w-reg);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(241, 240, 238, 0.62);
  margin-top: 0.7rem;
  max-width: 44ch;
}

.svc-media {
  position: relative;
  flex: 1;
  min-height: 170px;
  margin-top: 1.3rem;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(150deg, #20242a, #2c3138);
}

.svc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.6rem;
  transition: transform 1.2s var(--ease-out);
}

.svc-slide:hover .svc-media img {
  transform: scale(1.03);
}

.svc-right-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: var(--w-semi);
  font-size: 0.78rem;
  color: rgba(241, 240, 238, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
}

.svc-badge i {
  color: #4caf7d;
  font-size: 0.85rem;
}

.svc-right-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-btn);
  font-weight: var(--w-bold);
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 0.65rem 1.3rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}

.svc-right-cta i {
  font-size: 0.72rem;
  transition: transform var(--dur) var(--ease);
}

.svc-right-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.svc-right-cta:hover i {
  transform: translateX(3px);
}

/* ---- Controls ---- */

.svc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.svc-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.svc-nav:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.svc-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky-grey);
  cursor: pointer;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}

.svc-dot.is-on {
  width: 24px;
  border-radius: 6px;
  background: var(--accent-deep);
}

/* ---- Services responsive ---- */

@media (max-width: 980px) {
  .svc-slide {
    grid-template-columns: 1fr;
  }

  .svc-left {
    padding: 0.2rem;
  }

  .svc-tags {
    padding-top: 1.4rem;
  }

  .svc-media {
    min-height: 200px;
  }
}

@media (max-width: 520px) {
  .svc-slide {
    padding: 1.3rem;
  }

  .svc-right-bar {
    justify-content: flex-start;
  }
}