/* ==========================================================
   Re:act UF
   ========================================================== */

:root {
  --bg: #fcfbf8;
  --surface: #ffffff;
  --navy: #192b5a;
  --navy-soft: #4a5679;
  --lilac: #c58be8;
  --lilac-dark: #9d5cc7;
  --lilac-tint: #f6edfd;
  --line: rgba(25, 43, 90, 0.12);

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(25, 43, 90, 0.04), 0 12px 32px -12px rgba(25, 43, 90, 0.18);
  --container: 1140px;
  --header-h: 88px;
  --logo-header: 200px;   /* change these two to resize the logo */
  --logo-footer: 115px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font: 400 17px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { text-wrap: pretty; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--lilac-dark); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lilac); color: #fff; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lilac-dark);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 500; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(25, 43, 90, .5); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg); /* same colour as the logo image's background */
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand {
  display: flex; align-items: center; height: var(--header-h); overflow: hidden;
}
.site-header .logo {
  height: var(--logo-header); width: auto; max-width: none;
  margin-block: calc((var(--header-h) - var(--logo-header)) / 2);
  margin-left: calc(var(--logo-header) * -0.11); /* trims the empty space on the left of the image */
}

.site-nav { display: flex; align-items: center; gap: 32px; font-size: 0.95rem; font-weight: 500; }
.site-nav a:not(.btn) {
  position: relative; text-decoration: none; color: var(--navy-soft); transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--lilac); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--navy); }
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -220px; top: -200px;
  background: radial-gradient(circle, var(--lilac-tint) 0%, rgba(246, 237, 253, 0) 65%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }

.hero h1 { margin-top: 20px; }
.colon { color: var(--lilac); }
.lead {
  margin-top: 28px; font-size: 1.08rem; line-height: 1.75; color: var(--navy-soft); max-width: 56ch;
}
.hero-sub { margin-top: 18px; color: var(--navy-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Statement band ---------- */
.statement { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.statement p {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25;
  letter-spacing: -0.015em; max-width: 26ch; text-wrap: balance;
}
.statement em { font-style: italic; color: var(--lilac); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 16px; }

/* ---------- Workshop steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  position: relative; padding: 36px 32px 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step-num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--lilac-tint); color: var(--lilac-dark);
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
}
.step h3 { margin-top: 24px; }
.step p { margin-top: 12px; color: var(--navy-soft); font-size: 0.98rem; }

/* ---------- Team ---------- */
.team { background: linear-gradient(var(--bg), var(--lilac-tint)); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.member {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.member-photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--lilac-tint); }
.member-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  transition: transform .8s var(--ease);
}
.member:hover .member-photo img { transform: scale(1.04); }
.member-body { padding: 28px 28px 30px; }
.role {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--lilac-tint); color: var(--lilac-dark);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
}
.member h3 { font-size: 1.3rem; }

.bio {
  position: relative; margin-top: 14px; color: var(--navy-soft); font-size: 0.96rem;
  max-height: 7.4em; overflow: hidden; transition: max-height .6s var(--ease);
}
.bio p + p { margin-top: 12px; }
.bio::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--surface));
  transition: opacity .3s;
}
.bio.open::after { opacity: 0; }
.read-more {
  margin-top: 14px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 0.92rem; color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.read-more::after { content: "↓"; transition: transform .3s var(--ease); }
.read-more[aria-expanded="true"]::after { transform: rotate(180deg); }
.read-more:hover { color: var(--lilac-dark); }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--navy); color: #fff; text-align: center;
}
.contact-card::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(197, 139, 232, .35), transparent 60%);
}
.contact-butterfly {
  position: absolute; z-index: -1; width: 420px; right: -90px; top: -60px;
  opacity: .08; filter: brightness(0) invert(1);
}
.contact-card .eyebrow { color: var(--lilac); }
.contact-card h2 { margin: 18px auto 0; max-width: 18ch; }
.contact-card > p:not(.eyebrow) { margin: 18px auto 0; max-width: 46ch; color: rgba(255, 255, 255, .75); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.contact-card .btn { background: var(--lilac); border-color: var(--lilac); color: var(--navy); }
.contact-card .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.contact-card .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.copy-email svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--navy-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .logo {
  height: var(--logo-footer); width: auto; max-width: none;
  margin-block: calc((60px - var(--logo-footer)) / 2);
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; margin-inline: auto; width: 100%; }
  .steps, .team-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .section-head { margin-inline: auto; max-width: 560px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: min(100% - 40px, var(--container)); }
  .menu-toggle { display: block; }
  :root { --header-h: 72px; --logo-header: 170px; --logo-footer: 95px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(25, 43, 90, .2);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 18px; min-height: 50px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Hide scrollbar (page still scrolls) ---------- */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
