/* Team Westside — front door for the team.
   Jay Dao's navy/blue palette lifted to team scale. Fraunces display,
   Albert Sans body. Motion is transform + opacity only. No transition-all. */

:root {
  --tw-navy: #0b1b4a;
  --tw-navy-deep: #060e28;
  --tw-blue: #1557c0;
  --tw-sky: #9db4e8;
  --tw-wash: #f5f7fb;
  --tw-surface: #ffffff;
  --tw-ink: #0b1b4a;
  --tw-muted: #5a6578;
  --tw-line: rgba(11, 27, 74, 0.1);
  --tw-line-strong: rgba(11, 27, 74, 0.18);
  --tw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tw-radius: 0.6rem;
  --tw-radius-lg: 1.1rem;
  --tw-shadow-card: 0 1px 2px rgba(11, 27, 74, 0.05), 0 12px 32px rgba(11, 27, 74, 0.08);
  --tw-shadow-lift: 0 2px 4px rgba(11, 27, 74, 0.06), 0 22px 48px rgba(11, 27, 74, 0.14);
  --tw-display: "Fraunces", Georgia, serif;
  --tw-body: "Albert Sans", system-ui, sans-serif;
  --tw-wrap: 72rem;
}

.tw-page {
  background: var(--tw-wash);
  color: var(--tw-ink);
  font-family: var(--tw-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.tw-wrap {
  max-width: var(--tw-wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .tw-wrap {
    padding-inline: 2rem;
  }
}

/* —— Type —— */
.tw-display {
  font-family: var(--tw-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

/* Only the upright Fraunces file is self-hosted, so emphasis is weight + color,
   not a synthesized italic. */
.tw-display em {
  font-style: normal;
  font-weight: 300;
  color: var(--tw-blue);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.tw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tw-blue);
}

.tw-eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: currentColor;
}

.tw-eyebrow--light {
  color: var(--tw-sky);
}

.tw-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--tw-muted);
}

@media (min-width: 768px) {
  .tw-lede {
    font-size: 1.125rem;
  }
}

.tw-flag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(21, 87, 192, 0.08);
  color: var(--tw-blue);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* —— Buttons —— */
.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--tw-radius);
  border: 1px solid transparent;
  font-family: var(--tw-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition-property: transform, background-color, border-color, color, box-shadow;
  transition-duration: 220ms;
  transition-timing-function: var(--tw-ease);
}

.tw-btn:hover {
  transform: translateY(-2px);
}

.tw-btn:active {
  transform: translateY(1px);
}

.tw-btn:focus-visible {
  outline: 2px solid var(--tw-blue);
  outline-offset: 3px;
}

.tw-btn--primary {
  background: var(--tw-navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11, 27, 74, 0.16);
}

.tw-btn--primary:hover {
  background: #081436;
}

.tw-btn--primary:active {
  box-shadow: 0 2px 8px rgba(11, 27, 74, 0.12);
}

.tw-btn--on-navy {
  background: #fff;
  color: var(--tw-navy);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.tw-btn--on-navy:hover {
  background: #e8eefc;
}

.tw-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.tw-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.tw-btn--ghost-light:focus-visible {
  outline-color: #fff;
}

.tw-btn--ghost {
  background: transparent;
  color: var(--tw-navy);
  border-color: var(--tw-line-strong);
}

.tw-btn--ghost:hover {
  border-color: var(--tw-navy);
  background: rgba(11, 27, 74, 0.04);
}

/* —— Topbar —— */
.tw-page [data-site-header] {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--tw-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tw-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--tw-wrap);
  width: 100%;
  margin-inline: auto;
  padding: 0.8rem 1.25rem;
}

@media (min-width: 768px) {
  .tw-topbar {
    padding-inline: 2rem;
  }
}

.tw-wordmark {
  display: inline-flex;
  flex-direction: column;
  margin-right: auto;
  text-decoration: none;
  color: var(--tw-navy);
  line-height: 1.05;
}

.tw-wordmark strong {
  font-family: var(--tw-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 48, "SOFT" 30;
}

.tw-wordmark span {
  margin-top: 0.2rem;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tw-muted);
}

.tw-wordmark:hover strong,
.tw-wordmark:focus-visible strong {
  color: var(--tw-blue);
}

.tw-wordmark:focus-visible {
  outline: 2px solid var(--tw-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.tw-topbar__link {
  display: none;
  color: var(--tw-navy);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.005em;
}

.tw-topbar__link:hover,
.tw-topbar__link:focus-visible {
  color: var(--tw-blue);
}

.tw-topbar__link:focus-visible {
  outline: 2px solid var(--tw-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (min-width: 640px) {
  .tw-topbar__link {
    display: inline-flex;
  }
}

.tw-topbar .tw-btn {
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* —— Hero —— */
.tw-hero {
  position: relative;
  isolation: isolate;
  min-height: min(82vh, 56rem);
  display: flex;
  align-items: flex-end;
  background: var(--tw-navy);
  color: #fff;
  overflow: hidden;
}

.tw-hero__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.tw-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 42%;
  opacity: 0;
  transform: scale(1.04);
  transition-property: opacity, transform;
  transition-duration: 1200ms;
  transition-timing-function: var(--tw-ease);
}

.tw-hero.has-photo .tw-hero__photo img {
  opacity: 1;
  transform: scale(1);
}

/* Fallback texture while the team photo is pending: fine blue grid fading in from the top-right. */
.tw-hero__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(157, 180, 232, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 180, 232, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 85% 15%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 15%, #000 0%, transparent 62%);
}

.tw-hero.has-photo .tw-hero__texture {
  display: none;
}

.tw-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 27, 74, 0.55) 0%, rgba(11, 27, 74, 0) 32%, rgba(11, 27, 74, 0.2) 62%, rgba(11, 27, 74, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 27, 74, 0.72) 0%, rgba(11, 27, 74, 0.22) 46%, rgba(11, 27, 74, 0) 70%);
}

.tw-hero.has-photo .tw-hero__scrim::after {
  /* soft vignette so the photo edges recede into the navy frame */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 72% 40%, transparent 60%, rgba(11, 27, 74, 0.5) 100%);
}

.tw-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--tw-wrap);
  margin-inline: auto;
  padding: 7rem 1.25rem 3.5rem;
}

@media (min-width: 768px) {
  .tw-hero__inner {
    padding: 9rem 2rem 4.5rem;
  }
}

.tw-hero__copy {
  max-width: 44rem;
}

.tw-hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  color: #fff;
}

.tw-hero h1 em {
  color: var(--tw-sky);
}

.tw-hero__lead {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .tw-hero__lead {
    font-size: 1.18rem;
  }
}

.tw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.tw-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 2.75rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.tw-hero__meta strong {
  color: #fff;
  font-weight: 650;
}

/* Load choreography — hero only. */
@keyframes tw-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tw-rise {
  animation: tw-rise 760ms var(--tw-ease) both;
}

.tw-rise--2 {
  animation-delay: 120ms;
}

.tw-rise--3 {
  animation-delay: 240ms;
}

.tw-rise--4 {
  animation-delay: 360ms;
}

/* —— Mission —— */
.tw-mission {
  background: var(--tw-surface);
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .tw-mission {
    padding: 6.5rem 0;
  }
}

.tw-mission__grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 900px) {
  .tw-mission__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.tw-mission h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--tw-navy);
}

.tw-mission__art {
  margin: 2.25rem 0 0;
  border-radius: var(--tw-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tw-line);
  box-shadow: var(--tw-shadow-card);
  background: #eef2fb;
}

@media (min-width: 900px) {
  .tw-mission__art {
    margin-top: 2.75rem;
    max-width: 34rem;
  }
}

.tw-mission__art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Layered reveal: transform/opacity only, driven by the parent [data-reveal] */
.tw-art__hill,
.tw-art__house,
.tw-art__palm,
.tw-art__sun {
  opacity: 0;
  transform: translateY(14px);
  transition-property: opacity, transform;
  transition-duration: 900ms;
  transition-timing-function: var(--tw-ease);
}

.tw-art__sun {
  transform: translateY(10px) scale(0.94);
  transform-origin: 478px 130px;
  transform-box: view-box;
}

[data-reveal].is-visible .tw-art__hill--far { opacity: 1; transform: none; transition-delay: 120ms; }
[data-reveal].is-visible .tw-art__sun { opacity: 1; transform: none; transition-delay: 200ms; }
[data-reveal].is-visible .tw-art__hill--mid { opacity: 1; transform: none; transition-delay: 260ms; }
[data-reveal].is-visible .tw-art__palm { opacity: 1; transform: none; transition-delay: 380ms; }
[data-reveal].is-visible .tw-art__house { opacity: 1; transform: none; transition-delay: 440ms; }
[data-reveal].is-visible .tw-art__hill--near { opacity: 1; transform: none; transition-delay: 320ms; }

.tw-mission__body p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--tw-muted);
}

.tw-mission__body p + p {
  margin-top: 1.1rem;
}

.tw-mission__quote {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--tw-blue);
}

.tw-mission__quote p {
  font-family: var(--tw-display);
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 40;
  font-size: 1.28rem;
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--tw-ink);
}

@media (min-width: 768px) {
  .tw-mission__quote p {
    font-size: 1.4rem;
  }
}

.tw-mission__quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.4rem;
}

.tw-mission__quote footer strong {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tw-navy);
}

.tw-mission__quote footer span {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tw-muted);
}

.tw-mission__body .tw-mission__note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tw-line);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tw-muted);
}

/* —— The whole team (gallery) —— */
.tw-crew {
  background: var(--tw-navy);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

@media (min-width: 768px) {
  .tw-crew {
    padding: 6.5rem 0 7rem;
  }
}

.tw-crew__head {
  max-width: 44rem;
}

.tw-crew__head .tw-eyebrow {
  color: var(--tw-sky);
}

.tw-crew__head h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: #fff;
}

.tw-crew__head h2 em {
  color: var(--tw-sky);
}

.tw-crew__head .tw-lede {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.tw-gallery {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.75rem;
}

@media (min-width: 768px) {
  .tw-gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, auto));
    gap: 1.1rem;
  }

  .tw-gallery__item--wide {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
  }

  .tw-gallery__item--tall {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
  }

  .tw-gallery__item:not(.tw-gallery__item--wide):not(.tw-gallery__item--tall) {
    grid-column: 9 / 13;
    grid-row: 2 / 3;
  }
}

.tw-gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--tw-radius-lg);
  background: var(--tw-navy-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 24px 48px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 3;
}

.tw-gallery__item--wide {
  aspect-ratio: 3 / 2;
}

@media (min-width: 768px) {
  .tw-gallery__item--wide,
  .tw-gallery__item--tall,
  .tw-gallery__item {
    aspect-ratio: auto;
    min-height: 15rem;
  }
}

.tw-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 900ms var(--tw-ease);
}

.tw-gallery__item--tall img {
  object-position: center 55%;
}

.tw-gallery__item:hover img {
  transform: scale(1.025);
}

.tw-gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(6, 14, 40, 0.78));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* —— Roster (signature: lead card branches down to the team) —— */
.tw-roster {
  background: var(--tw-wash);
  padding: 4.5rem 0 5rem;
}

@media (min-width: 768px) {
  .tw-roster {
    padding: 6.5rem 0 7rem;
  }
}

.tw-roster__head {
  max-width: 40rem;
}

.tw-roster__head h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--tw-navy);
}

.tw-roster__head p {
  margin: 1rem 0 0;
}

.tw-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--tw-surface);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius-lg);
  box-shadow: var(--tw-shadow-card);
  overflow: hidden;
  transition-property: transform, box-shadow, border-color;
  transition-duration: 320ms;
  transition-timing-function: var(--tw-ease);
}

.tw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tw-shadow-lift);
  border-color: rgba(21, 87, 192, 0.28);
}

.tw-card:active {
  transform: translateY(-1px);
}

.tw-card:focus-visible {
  outline: 2px solid var(--tw-blue);
  outline-offset: 4px;
}

.tw-card__photo {
  margin: 0;
  min-width: 0;
  background: #e6ecf8;
  overflow: hidden;
}

.tw-card__body,
.tw-lead__body {
  min-width: 0;
}

.tw-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms var(--tw-ease);
}

.tw-card:hover .tw-card__photo img {
  transform: scale(1.03);
}

.tw-card__role {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-blue);
}

.tw-card__name {
  margin: 0.55rem 0 0;
  font-family: var(--tw-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--tw-navy);
}

.tw-card__bio {
  margin: 0.9rem 0 0;
  line-height: 1.65;
  color: var(--tw-muted);
}

.tw-card__facts {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
}

.tw-card__facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--tw-line);
}

.tw-card__facts dt {
  color: var(--tw-muted);
}

.tw-card__facts dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
  color: var(--tw-ink);
}

.tw-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tw-blue);
}

.tw-card__go svg {
  width: 1rem;
  height: 1rem;
  transition: transform 320ms var(--tw-ease);
}

.tw-card:hover .tw-card__go svg {
  transform: translateX(4px);
}

/* Lead card */
.tw-lead {
  margin-top: 2.75rem;
  display: grid;
}

@media (min-width: 768px) {
  .tw-lead {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  }
}

.tw-lead .tw-card__photo {
  aspect-ratio: 4 / 5;
  max-height: 30rem;
}

@media (min-width: 768px) {
  .tw-lead .tw-card__photo {
    aspect-ratio: auto;
    max-height: none;
    min-height: 100%;
  }
}

.tw-lead__body {
  padding: 1.75rem 1.5rem 1.9rem;
}

@media (min-width: 768px) {
  .tw-lead__body {
    padding: 2.5rem 2.75rem 2.6rem;
    align-self: center;
  }
}

.tw-lead .tw-card__name {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.tw-lead .tw-card__facts {
  max-width: 24rem;
}

/* Branch connector: lead → team. Encodes the structure of the team. */
/* Same width as .tw-team so the 25% / 75% drops land on the two card centres. */
.tw-branch {
  position: relative;
  height: 3.25rem;
  width: 100%;
  pointer-events: none;
}

.tw-branch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 50%;
  background: var(--tw-line-strong);
  transform: translateX(-0.5px);
}

.tw-branch::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 50%;
  height: 1px;
  background: var(--tw-line-strong);
}

.tw-branch span {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 50%;
  background: var(--tw-line-strong);
}

.tw-branch span:first-child {
  left: 25%;
}

.tw-branch span:last-child {
  right: 25%;
}

@media (max-width: 639px) {
  .tw-branch {
    height: 2.5rem;
  }

  .tw-branch::after,
  .tw-branch span {
    display: none;
  }

  .tw-branch::before {
    height: 100%;
  }
}

.tw-team {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .tw-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.tw-team .tw-card {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
}

@media (max-width: 479px) {
  .tw-team .tw-card {
    grid-template-columns: minmax(6.5rem, 7.5rem) minmax(0, 1fr);
  }

  .tw-team .tw-card__body {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .tw-team .tw-card__role {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }
}

.tw-team .tw-card__photo {
  aspect-ratio: 4 / 5;
  height: 100%;
  width: 100%;
}

.tw-team .tw-card__body {
  padding: 1.35rem 1.35rem 1.45rem;
  align-self: center;
}

.tw-team .tw-card__name {
  font-size: 1.55rem;
}

.tw-team .tw-card__facts {
  margin-top: 1rem;
  font-size: 0.84rem;
}

.tw-team .tw-card__go {
  margin-top: 1.1rem;
}

.tw-roster__foot {
  margin: 2.25rem 0 0;
  font-size: 0.86rem;
  color: var(--tw-muted);
}

/* —— What we work with —— */
.tw-products {
  background: var(--tw-surface);
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .tw-products {
    padding: 6.5rem 0;
  }
}

.tw-products__head {
  max-width: 42rem;
}

.tw-products__head h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--tw-navy);
}

.tw-products__head .tw-lede {
  margin: 1rem 0 0;
}

.tw-products__grid {
  display: grid;
  gap: 0.9rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .tw-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tw-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.tw-product {
  position: relative;
  padding: 1.35rem 1.4rem 1.45rem 1.65rem;
  background: var(--tw-wash);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius-lg);
  transition-property: transform, box-shadow, border-color;
  transition-duration: 320ms;
  transition-timing-function: var(--tw-ease);
}

.tw-product::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  bottom: 1.45rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--tw-blue);
  transform: scaleY(0.55);
  transform-origin: top;
  transition: transform 320ms var(--tw-ease);
}

.tw-product:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 87, 192, 0.28);
  box-shadow: var(--tw-shadow-card);
}

.tw-product:hover::before {
  transform: scaleY(1);
}

.tw-product h3 {
  margin: 0;
  font-family: var(--tw-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--tw-navy);
}

.tw-product p {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tw-muted);
}

.tw-products__foot {
  margin: 2.25rem 0 0;
  max-width: 44rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--tw-muted);
}

/* —— Footer —— */
.tw-footer {
  background: var(--tw-navy);
  color: #fff;
}

.tw-footer__top {
  display: grid;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .tw-footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.tw-footer__brand strong {
  display: block;
  font-family: var(--tw-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tw-footer__brand p {
  margin: 0.7rem 0 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.tw-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tw-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition-property: transform, border-color, background-color;
  transition-duration: 220ms;
  transition-timing-function: var(--tw-ease);
}

.tw-footer__links a:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.tw-footer__links a:active {
  transform: translateY(0);
}

.tw-footer__links a:focus-visible {
  outline: 2px solid var(--tw-sky);
  outline-offset: 3px;
}

.tw-footer__links svg {
  width: 1rem;
  height: 1rem;
}

.tw-footer__legal {
  padding: 2rem 0 3rem;
}

/* —— Scroll reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition-property: opacity, transform;
  transition-duration: 720ms;
  transition-timing-function: var(--tw-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tw-rise {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tw-hero__photo img {
    transition: none;
    transform: none;
  }

  .tw-btn,
  .tw-card,
  .tw-card__photo img,
  .tw-card__go svg,
  .tw-gallery__item img,
  .tw-product,
  .tw-product::before,
  .tw-art__hill,
  .tw-art__house,
  .tw-art__palm,
  .tw-art__sun,
  .tw-footer__links a {
    transition: none;
  }

  .tw-art__hill,
  .tw-art__house,
  .tw-art__palm,
  .tw-art__sun {
    opacity: 1;
    transform: none;
  }

  .tw-btn:hover,
  .tw-card:hover,
  .tw-product:hover,
  .tw-footer__links a:hover {
    transform: none;
  }

  .tw-product::before,
  .tw-product:hover::before {
    transform: none;
  }

  .tw-card:hover .tw-card__photo img,
  .tw-card:hover .tw-card__go svg,
  .tw-gallery__item:hover img {
    transform: none;
  }
}
