/* =========================================================
   technical PAGE (ORDER UPDATED + SMALL FIXES)
   Updates requested:
   1) Guide2 order: Upstands first
   2) Section order below: Upstands first, then Edge, then Drainers
   3) Drainer PNGs not cut off at bottom (fix: more frame padding + safe fit)
   4) Guide2 LH: a bit more copy
   5) Upstands LH: a bit less copy
========================================================= */

:root{
  --sticky-nav-h: 90px;

  --site-width: 1360px;
  --site-pad: 28px;
  --section-pad: clamp(3rem, 5vw, 5.75rem);

  --radius: 16px;
  --radius-sm: 12px;
  --border: 1px solid rgba(0,0,0,0.07);
  --panel: rgba(255,255,255,0.62);
  --shadow: 0 14px 38px rgba(0,0,0,0.05);
  --shadow-soft: 0 10px 28px rgba(0,0,0,0.035);
}

.container{
  width: min(var(--site-width), 100%);
  margin: 0 auto;
  padding-inline: var(--site-pad);
}

html{ scroll-behavior: smooth; }
.anchor-section{ scroll-margin-top: calc(var(--sticky-nav-h) + 18px); }

/* =========================
   GUIDE2
========================= */

.guide2{ padding: var(--section-pad) 0; }

.guide2__wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* slightly more space for LH copy */
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.guide2__left{
  position: sticky;
  top: calc(var(--sticky-nav-h) + 18px);
}

.guide2__kicker{
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.guide2__title{
  margin: 0 0 1rem;
  line-height: 1.1;
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
}

.guide2__intro{
  margin: 0 0 0.85rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.86;
}

.guide2__intro--more{
  margin-bottom: 0;
}

.guide2__right{
  display: grid;
  gap: 0.9rem;
}

.guide2__item{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.guide2__media{
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.03);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.guide2__media img{
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
}

.guide2__itemTitle{
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  line-height: 1.25;
}

.guide2__link{
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.guide2__arrow{
  transition: transform 180ms ease;
  opacity: 0.6;
}

.guide2__link:hover .guide2__arrow,
.guide2__link:focus-visible .guide2__arrow{
  transform: translateX(3px);
}

.guide2__text{
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.86;
}

.guide2__cta{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.85;
}

.guide2__cta:hover,
.guide2__cta:focus-visible{
  opacity: 1;
}

@media (max-width: 900px){
  .guide2__wrap{ grid-template-columns: 1fr; }
  .guide2__left{ position: static; }
}

/* =========================
   UPSTANDS (SECTION 1 BELOW GUIDE)
========================= */

.upstands{
  padding: var(--section-pad) 0;
}

.upstands__wrap{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.upstands__content{
  position: sticky;
  top: calc(var(--sticky-nav-h) + 18px);
}

.upstands__kicker{
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.upstands__title{
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.15;
}

/* Less text: tighter rhythm */
.upstands__text{
  margin: 0 0 0.85rem;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.86;
  max-width: 62ch;
}

.upstands__bullets{
  margin: 0.9rem 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.upstands__bullets li{
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.55;
  opacity: 0.86;
}

.upstands__bullets li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.55;
}

.upstands__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.upstands__visual{
  display: grid;
  gap: 1rem;
}

.upstands__figure{
  margin: 0;
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(255,255,255,0.56);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.upstands__figure img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.upstands__figure--main{ height: 340px; }

.upstands__miniGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.upstands__figure--mini{ height: 180px; }

.upstands__panel{
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.upstands__panelTitle{
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.upstands__panelText{
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
  opacity: 0.82;
}

@media (max-width: 900px){
  .upstands__wrap{ grid-template-columns: 1fr; }
  .upstands__content{ position: static; }
  .upstands__text{ max-width: 100%; }
  .upstands__figure--main{ height: 300px; }
}

@media (max-width: 520px){
  .upstands__miniGrid{ grid-template-columns: 1fr; }
  .upstands__figure--mini{ height: 200px; }
}

/* =========================
   EDGE PROFILES + MARQUEE
========================= */

.edge-profiles{ padding: var(--section-pad) 0; }

.edge-profiles__header{
  text-align: center;
  max-width: 74ch;
  margin: 0 auto 1.6rem;
}

.edge-profiles__title{
  margin: 0 0 0.65rem;
  line-height: 1.15;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

.edge-profiles__sub{
  margin: 0;
  line-height: 1.75;
  font-size: 1rem;
  opacity: 0.86;
}

.edge-marquee{
  overflow: hidden;
  width: 100%;
  padding: 14px 0;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.edge-track{
  display: flex;
  width: max-content;
  animation: scrollEdges 42s linear infinite;
}

.edge-track img{
  height: 140px;
  width: auto;
  margin-right: 34px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.96;
}

@keyframes scrollEdges{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px){
  .edge-track img{ height: 110px; margin-right: 22px; }
  .edge-track{ animation-duration: 32s; }
}

@media (max-width: 480px){
  .edge-track img{ height: 96px; margin-right: 18px; }
  .edge-track{ animation-duration: 28s; }
}

/* =========================
   DRAINER GROOVES (LAST SECTION) — FIX PNG CUTOFF
========================= */

.drainers{ padding: var(--section-pad) 0; }

.drainers__wrap{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.drainers__content{
  position: sticky;
  top: calc(var(--sticky-nav-h) + 18px);
}

.drainers__title{
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.15;
}

.drainers__text{
  margin: 0 0 1rem;
  line-height: 1.75;
  font-size: 1rem;
  opacity: 0.86;
  max-width: 62ch;
}

.drainers__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.drainers__item{
  margin: 0;
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(255,255,255,0.56);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem;
  min-width: 0;
}

/* Frame fix:
   - extra height + extra bottom padding
   - remove overflow clipping
   - keep contain (no crop)
*/
.drainers__img{
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.03);
  height: 176px;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 14px 16px 22px;
  box-sizing: border-box;
}

.drainers__img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.drainers__item figcaption{
  margin-top: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.78;
  text-align: center;
}

@media (max-width: 900px){
  .drainers__wrap{ grid-template-columns: 1fr; }
  .drainers__content{ position: static; }
  .drainers__text{ max-width: 100%; }
}

@media (max-width: 520px){
  .drainers {
    padding-bottom: 34px;
  }

  .drainers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .drainers__item {
    padding: 0.55rem;
    border-radius: 12px;
  }

  .drainers__img {
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 8px;
  }

  .drainers__item figcaption {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.2;
  }
}
