/* =====================================================================
   UWT HOME — shared design language for every homepage section.

   One family so the page reads as one story, not separate blocks:
   - Same eyebrow label as the hero (gold line + spaced capitals)
   - Same heading scale (theme H2 / typography file) with a blue accent word
   - Same buttons, spacing rhythm and max width (1240px, like the hero)
   - Backgrounds blend into each other; no hard borders between sections
   - Same calm scroll-in motion, and a faint outlined word as a motif
     (like "WINTER" in the hero)
   - Motion switches off for visitors who prefer reduced motion
   ===================================================================== */

.uwtH {
  --uwtH-navy: var(--uwt-primary, #082c5e);
  --uwtH-blue: var(--uwt-secondary, #0f6fa4);
  --uwtH-night: #041a38;
  --uwtH-gold: #f2b84b;
  --uwtH-gold-deep: #d79a24;
  --uwtH-text: #475569;
  --uwtH-soft: #f4f8fb;
  --uwtH-ease: cubic-bezier(.2, .8, .2, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(64px, 7vw, 112px) 0;
  color: var(--uwtH-navy);
  font-family: var(--uwt-paragraph-font, "Nunito Sans", "Nunito", Arial, sans-serif);
}

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

.uwtH-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- backgrounds that flow ---------- */
.uwtH--light {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(15, 111, 164, .07), transparent 70%),
    radial-gradient(760px 420px at 92% 100%, rgba(242, 184, 75, .08), transparent 70%),
    linear-gradient(180deg, var(--uwtH-soft) 0%, #ffffff 100%);
}

.uwtH--white {
  background: #ffffff;
}

/* directly under the navy hero: the section is a sheet that slides up
   over the bottom of the hero (rounded top + soft shadow), so the two
   overlap instead of meeting at a hard line */
.uwtH--after-hero {
  z-index: 2;
  margin-top: -44px;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -22px 50px rgba(4, 26, 56, .22);
}

/* ---------- faint outlined word (page-wide motif) ---------- */
.uwtH-word {
  position: absolute;
  top: clamp(18px, 3vw, 40px);
  left: 50%;
  z-index: 0;
  margin: 0 !important;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(8, 44, 94, .07);
  font-size: clamp(88px, 13vw, 210px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

/* ---------- section heading ---------- */
.uwtH-head {
  position: relative;
  max-width: 780px;
  margin: 0 auto clamp(34px, 4vw, 56px);
  text-align: center;
}

.uwtH-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px !important;
  color: var(--uwtH-blue) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  /* !important: the theme's global "letter-spacing: 0 !important" rule would remove it */
  letter-spacing: .22em !important;
  text-transform: uppercase;
}

.uwtH-eyebrow::before,
.uwtH-eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--uwtH-gold);
}

.uwtH-title {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--uwtH-navy) !important;
  font-size: var(--uwt-h2-size, clamp(28px, 3vw, 46px));
  font-weight: var(--uwt-h2-weight, 800);
  line-height: var(--uwt-h2-lh, 1.15);
  letter-spacing: -.01em;
}

.uwtH-title .uwtH-accent {
  color: var(--uwtH-blue);
}

/* heading rises out of a mask, like the hero headline */
.uwtH-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

.uwtH-mask > span {
  display: inline-block;
}

.uwtH-lead {
  max-width: 620px;
  margin: 16px auto 0 !important;
  color: var(--uwtH-text) !important;
  font-size: var(--uwt-lead-size, 18px);
  line-height: var(--uwt-lead-lh, 1.6);
}

/* gold rule under the heading that draws itself */
.uwtH-rule {
  display: block;
  width: 72px;
  height: 3px;
  margin: 22px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--uwtH-gold), var(--uwtH-gold-deep));
  transform-origin: center;
}

/* ---------- buttons (same shape as the hero button) ---------- */
.uwtH-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 48px);
}

.uwtH-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 30px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--uwtH-navy) !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em !important;
  text-decoration: none !important;
  box-shadow: 0 16px 32px rgba(8, 44, 94, .22);
  transition: transform .25s var(--uwtH-ease), box-shadow .25s ease, background-color .25s ease;
}

.uwtH-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--uwtH-ease);
}

.uwtH-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.uwtH-btn:hover {
  background: var(--uwtH-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(8, 44, 94, .28);
}

.uwtH-btn:hover svg {
  transform: translateX(4px);
}

.uwtH-btn:hover::after {
  transform: translateX(120%);
  transition: transform .8s ease;
}

.uwtH a:focus-visible {
  outline: 3px solid var(--uwtH-gold);
  outline-offset: 4px;
}

/* =====================================================================
   PROJECTS SECTION ([uwt_home_projects])
   Uses the theme's normal project card (main.css) as it is.
   ===================================================================== */

/* =====================================================================
   SCROLL-IN MOTION (shared)
   Start states apply only after the script adds .uwtH--motion,
   so without JavaScript everything is simply visible.
   ===================================================================== */
.uwtH--motion .uwtH-eyebrow,
.uwtH--motion .uwtH-lead,
.uwtH--motion .uwtH-actions {
  opacity: 0;
  transform: translateY(20px);
}

.uwtH--motion .uwtH-mask > span {
  transform: translateY(110%);
}

.uwtH--motion .uwtH-rule {
  transform: scaleX(0);
}

.uwtH--motion .uwtH-word {
  opacity: 0;
  letter-spacing: .1em;
}

.uwtH--motion.is-in .uwtH-eyebrow,
.uwtH--motion.is-in .uwtH-lead,
.uwtH--motion.is-in .uwtH-actions,
.uwtH--motion.is-in .uwtH-mask > span,
.uwtH--motion.is-in .uwtH-rule {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform 1s var(--uwtH-ease);
}

.uwtH--motion.is-in .uwtH-eyebrow       { transition-delay: .05s; }
.uwtH--motion.is-in .uwtH-mask > span   { transition-delay: .15s; transition-duration: .8s, 1.1s; }
.uwtH--motion.is-in .uwtH-rule          { transition-delay: .45s; }
.uwtH--motion.is-in .uwtH-lead          { transition-delay: .4s; }
.uwtH--motion.is-in .uwtH-actions       { transition-delay: .9s; }

.uwtH--motion.is-in .uwtH-word {
  opacity: 1;
  letter-spacing: -.04em;
  transition: opacity 1.4s ease .2s, letter-spacing 2s var(--uwtH-ease) .2s;
}

/* projects: cards fade up one after another */
.uwtH--motion.uwtH-projects .uwt-project-card {
  opacity: 0;
  transform: translateY(24px);
}

.uwtH--motion.uwtH-projects.is-in .uwt-project-card {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s var(--uwtH-ease), box-shadow .3s ease, border-color .3s ease;
}

.uwtH--motion.uwtH-projects.is-in .uwt-project-card:nth-child(1) { transition-delay: .3s; }
.uwtH--motion.uwtH-projects.is-in .uwt-project-card:nth-child(2) { transition-delay: .45s; }
.uwtH--motion.uwtH-projects.is-in .uwt-project-card:nth-child(3) { transition-delay: .6s; }
.uwtH--motion.uwtH-projects.is-in .uwt-project-card:nth-child(n+4) { transition-delay: .75s; }

/* after the entrance, hover should feel instant again */
.uwtH--motion.uwtH-projects.is-done .uwt-project-card {
  transition: box-shadow .3s ease, border-color .3s ease;
  transition-delay: 0s;
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  .uwtH-eyebrow::after {
    display: inline-block;
  }

  .uwtH-word {
    top: 14px;
    font-size: 22vw;
  }

  .uwtH-btn {
    width: 100%;
    max-width: 380px;
  }

  .uwtH--after-hero {
    margin-top: -28px;
    border-radius: 28px 28px 0 0;
  }
}

/* ---------- reduced motion: still and fully visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .uwtH *,
  .uwtH *::before,
  .uwtH *::after {
    transition: none !important;
    animation: none !important;
  }
}
