/* =====================================================================
   DENTAL TEAM — Home sections (bright / photo-led)
   ===================================================================== */

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--navy); display: grid; place-items: center; color: #fff; }
.preloader__count { font-family: var(--display); font-size: clamp(3rem,12vw,7rem); font-weight: 300; line-height: 1; }
.preloader__count .u { color: var(--sky); font-size: .4em; vertical-align: super; margin-left: .2em; letter-spacing: .1em; }
.preloader__word { position: absolute; bottom: clamp(1.2rem,4vw,2.5rem); left: var(--gutter); font-size: .72rem; text-transform: uppercase; letter-spacing: .3em; color: var(--sky); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--blue-100); }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media::after { /* subtle blue tone + bottom lift */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(241,247,252,.96) 0%, rgba(241,247,252,.78) 30%, rgba(241,247,252,.10) 62%, rgba(20,60,90,.05) 100%),
    linear-gradient(180deg, rgba(241,247,252,.3), rgba(20,60,90,.10));
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  will-change: transform; transform: scale(1.06);
  /* graceful fallback: brand aqua if photo missing */
  background: var(--aqua);
}
/* floating instrument line-art */
.hero__tools { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__tool { position: absolute; stroke: var(--blue); fill: none; opacity: .28; will-change: transform; }
.hero__tool--1 { top: 16%; right: 14%; width: 120px; }
.hero__tool--2 { bottom: 18%; right: 26%; width: 90px; opacity:.20; }
.hero__tool--3 { top: 30%; right: 40%; width: 70px; opacity:.16; }

.hero__content { position: relative; z-index: 5; }
.hero__eyebrow { margin-bottom: clamp(1rem,2.6vw,1.6rem); display: flex; align-items: center; gap: .9rem; }
.hero__eyebrow::before { content:""; width: clamp(28px,4vw,54px); height:2px; background: var(--blue); border-radius:2px; }
.hero__title { font-family: var(--display); font-size: var(--fs-display); font-weight: 350; line-height: .92; letter-spacing: -.02em; color: var(--navy); max-width: 15ch; }
.hero__title .row { display: block; overflow: hidden; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__title em { font-style: italic; color: var(--blue); }
.hero__sub { max-width: 42ch; color: var(--text-soft); font-size: var(--fs-lead); line-height: 1.4; margin-top: clamp(1.2rem,3vw,1.8rem); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: clamp(1.8rem,4vw,2.6rem); }
.hero__scroll { position: absolute; left: var(--gutter); bottom: clamp(1.4rem,4vw,2.4rem); z-index: 5; display: flex; align-items: center; gap: .7rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .25em; color: var(--text-soft); }
.hero__scroll .line { width: 46px; height: 2px; background: var(--blue-200); position: relative; overflow: hidden; border-radius: 2px; }
.hero__scroll .line::after { content:""; position:absolute; inset:0; background: var(--blue); transform: translateX(-100%); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%{transform:translateX(-100%)} 55%{transform:translateX(0)} 100%{transform:translateX(101%)} }

/* ---------- Intro / statement ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem,4vw,3rem); }
.intro__label { display: flex; align-items: center; gap: 1rem; }
.intro__body { font-family: var(--display); font-weight: 340; font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem); line-height: 1.22; letter-spacing: -.01em; max-width: 22ch; color: var(--navy); }
.intro__body em { font-style: italic; color: var(--blue); }
.intro__word { display: inline-block; }
.intro__foot { display: flex; gap: clamp(2rem,6vw,5rem); flex-wrap: wrap; margin-top: 1rem; }
.stat__num { font-family: var(--display); font-size: clamp(2.4rem,6vw,3.6rem); font-weight: 340; line-height: 1; color: var(--blue); }
.stat__label { font-size: .82rem; letter-spacing: .04em; color: var(--text-soft); margin-top: .4rem; }

/* ---------- Treatments ---------- */
.treat__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.5rem,6vw,4rem); flex-wrap: wrap; }
.treat__head h2 { max-width: 14ch; }
.treatments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.tcard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem,2.6vw,2rem);
  min-height: clamp(340px, 40vw, 460px); display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.tcard:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -30px rgba(28,111,168,.4); border-color: var(--blue-200); }
.tcard__figure { position: relative; height: clamp(170px,20vw,215px); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1.4rem; background: var(--blue-200); }
.tcard__figure img { width: 100%; height: 100%; object-fit: cover; background: var(--aqua); transition: transform .7s var(--ease); }
.tcard:hover .tcard__figure img { transform: scale(1.05); }
.tcard__idx { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.tcard__title { font-family: var(--display); font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 400; line-height: 1.02; margin: .2rem 0 .6rem; color: var(--navy); }
.tcard__desc { color: var(--text-soft); font-size: .96rem; line-height: 1.5; max-width: 32ch; }
.tcard__link { display:inline-flex; align-items:center; gap:.5rem; margin-top: 1.4rem; font-size:.78rem; text-transform:uppercase; letter-spacing:.14em; font-weight:600; color: var(--blue); }
.tcard__link .arrow { transition: transform .5s var(--ease); }
.tcard:hover .tcard__link .arrow { transform: translateX(5px); }

/* ---------- Team preview ---------- */
.team__head { display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; margin-bottom: clamp(2.5rem,6vw,4rem); flex-wrap:wrap; }
.team__head h2 { max-width: 16ch; }
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2vw,1.6rem); }
.tmember { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-200); aspect-ratio: 4/5; }
.tmember img { width:100%; height:100%; object-fit: cover; transition: transform .8s var(--ease); background: var(--aqua); }
.tmember:hover img { transform: scale(1.05); }
.tmember__meta { position:absolute; inset:auto 0 0 0; padding: 1.3rem 1.3rem 1.4rem; color:#fff;
  background: linear-gradient(180deg, transparent, rgba(14,58,92,.85)); }
.tmember__name { font-family: var(--display); font-size: 1.45rem; font-weight: 420; }
.tmember__role { font-size: .82rem; letter-spacing:.03em; color: var(--sky); margin-top:.15rem; }

/* ---------- Studio strip ---------- */
.studio__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.studio__lead h2 { margin-bottom: 1.3rem; }
.studio__lead p { color: var(--text-soft); max-width: 42ch; margin-bottom: 1rem; }
.studio__figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; background: var(--blue-200); }
.studio__figure img { width:100%; height:100%; object-fit: cover; will-change: transform; background: var(--aqua); }
.studio__badge { position:absolute; left:1.2rem; bottom:1.2rem; background: rgba(255,255,255,.92); color: var(--navy); border-radius: 100px; padding:.5rem 1rem; font-size:.76rem; letter-spacing:.06em; font-weight:600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.studio__list { display:grid; gap:0; margin-top: 1.6rem; }
.studio__list div { display:flex; align-items:center; gap:.8rem; padding:.7rem 0; border-top:1px solid var(--line); color: var(--text); font-weight:500; }
.studio__list div::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--blue); flex:none; }

/* ---------- CTA ---------- */
.cta { position: relative; text-align: center; overflow: hidden; }
.cta__arc { position:absolute; left:50%; bottom:-6%; transform:translateX(-50%); width:min(120vw,1400px); pointer-events:none; z-index:0; opacity:.5; }
.cta__arc path { fill:none; stroke: var(--blue); stroke-width:1.5; }
.cta__inner { position: relative; z-index: 2; }
.cta__eyebrow { justify-content: center; }
.cta h2 { font-size: clamp(2.6rem, 1rem + 7vw, 6.5rem); font-weight: 330; line-height: .98; margin: 1rem auto 2.2rem; max-width: 18ch; }
.cta h2 em { font-style: italic; color: var(--blue); }
.cta__actions { display:flex; gap:1rem; justify-content:center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .treatments, .tgrid { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(241,247,252,.5), rgba(241,247,252,.92) 78%); }
  .hero { align-items: flex-end; padding-bottom: 5rem; }
  .tgrid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}
