/* Meet the Crew (/characters) and each character's own page (/characters/tobi ...)
   Art: the official website designs in /images/characters (-front) and /images/avatars.
   Each character has its own colors, set by its class:
   --c-soft / --c-tint for the art panel, --c-ink for small colored text and icons. */
.crew-tobi   { --c-soft:#eef7e6; --c-tint:#c6e3a8; --c-ink:#3d7322; --c-glow:rgba(95,150,55,.28); }
.crew-ottie  { --c-soft:#f1eeff; --c-tint:#cdc6f7; --c-ink:#5145b5; --c-glow:rgba(110,100,210,.28); }
.crew-stella { --c-soft:#fff0ec; --c-tint:#ffc6b8; --c-ink:#ad372c; --c-glow:rgba(230,100,85,.28); }
.crew-nessa  { --c-soft:#fff3e6; --c-tint:#ffd2a6; --c-ink:#8f470b; --c-glow:rgba(235,135,45,.28); }

.crew-heading { font-family:'Montserrat',sans-serif; font-weight:900; font-size:clamp(1.8rem,4vw,2.6rem); color:#0b1f22; line-height:1.1; margin:0; }

/* Character cards: picture and name only */
.crew-grid-section { background:#fff; padding:64px 0 72px; text-align:center; }
.crew-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; max-width:1100px; margin:0 auto; list-style:none; padding:0; }
.crew-cards.three { grid-template-columns:repeat(3,1fr); max-width:820px; margin-top:36px; }
.crew-cards > li { display:flex; }
.crew-card {
  flex:1; display:flex; flex-direction:column; text-decoration:none; color:inherit;
  background:#fff; border:1px solid var(--es-border); border-radius:16px; overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.crew-card:hover, .crew-card:focus-visible { transform:translateY(-4px); box-shadow:0 16px 40px var(--c-glow); border-color:transparent; color:inherit; }
.crew-card-art { height:200px; display:flex; align-items:center; justify-content:center; background:radial-gradient(circle at 50% 60%, var(--c-tint) 0%, var(--c-soft) 70%); }
.crew-card-art img { max-width:72%; max-height:150px; width:auto; height:auto; transition:transform .3s ease; }
.crew-card:hover .crew-card-art img { transform:scale(1.06) rotate(-2deg); }
.crew-card-name { font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.45rem; color:#0b1f22; margin:0; padding:18px 12px 20px; }

/* A character with their picture beside the words */
.crew-profile { padding:88px 0; background:#fff; scroll-margin-top:70px; }
.crew-profile.gray { background:var(--es-gray); }
.crew-profile-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.crew-profile.flip .crew-profile-art { order:2; }
.crew-profile-art {
  position:relative; aspect-ratio:1/1; border-radius:24px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 50% 58%, var(--c-tint) 0%, var(--c-soft) 72%);
  box-shadow:0 24px 60px var(--c-glow);
}
.crew-profile-art img { position:relative; z-index:1; width:auto; max-width:68%; max-height:70%; height:auto; filter:drop-shadow(0 18px 18px rgba(0,0,0,.12)); animation:crewBob 5s ease-in-out infinite; }
.crew-profile-art .floor { position:absolute; left:15%; right:15%; bottom:12%; height:22px; border-radius:50%; background:rgba(0,0,0,.07); filter:blur(6px); }
@keyframes crewBob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }

.crew-name { font-family:'Montserrat',sans-serif; font-weight:900; font-size:clamp(2.8rem,6vw,4.4rem); line-height:.95; letter-spacing:-2px; color:#0b1f22; margin:0 0 20px; }
.crew-name-sm { font-family:'Montserrat',sans-serif; font-weight:900; font-size:clamp(1.8rem,3.4vw,2.4rem); line-height:1.1; color:#0b1f22; margin:0 0 20px; }
.crew-bio { font-size:1.06rem; line-height:1.85; color:var(--es-muted); max-width:540px; margin:0 0 18px; }
.crew-actions { margin-top:28px; display:flex; flex-wrap:wrap; gap:12px; }

/* Facts: a plain list */
.crew-facts-section { background:var(--es-gray); padding:80px 0; }
.crew-facts-section .crew-heading { text-align:center; margin-bottom:40px; }
.crew-facts { max-width:820px; margin:0 auto; list-style:none; padding:0; display:grid; gap:0; }
.crew-facts li { display:flex; gap:18px; align-items:flex-start; padding:20px 4px; border-bottom:1px solid rgba(0,0,0,.08); font-size:1.04rem; line-height:1.7; color:var(--es-text); }
.crew-facts li:last-child { border-bottom:0; }
.crew-facts i { color:var(--c-ink); font-size:1.15rem; width:26px; text-align:center; margin-top:4px; flex-shrink:0; }

/* Meet the Crew page: four tall color panels, edge to edge.
   The hero's wavy bottom edge is cut out with a mask so the panel colors run up underneath it
   (the wave is 80/1440 of the page width tall, the same shape as the other pages). */
.crew-hero { z-index:2;
  -webkit-mask: linear-gradient(#000,#000) top / 100% calc(100% - 5.5vw) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V40 C1080,0 360,80 0,40 Z'/%3E%3C/svg%3E") bottom / 100% 5.6vw no-repeat;
          mask: linear-gradient(#000,#000) top / 100% calc(100% - 5.5vw) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V40 C1080,0 360,80 0,40 Z'/%3E%3C/svg%3E") bottom / 100% 5.6vw no-repeat; }
.crew-panels-section { position:relative; z-index:1; margin-top:-5.6vw; }
.crew-panels { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); }
.crew-panels > li { display:flex; }
.crew-panel {
  flex:1; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:22px;
  height:clamp(420px,46vw,600px); padding:5.6vw 16px 44px; text-decoration:none; overflow:hidden;
  background:radial-gradient(circle at 50% 46%, var(--c-tint) 0%, var(--c-soft) 75%);
}
/* Ocean doodles behind each character, in a darker shade of their own color */
.crew-panel::before, .crew-profile-art::before, .crew-card-art::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background:var(--c-ink); opacity:.12;   /* lines about 8.5% darker than the background */
  -webkit-mask:url("/images/crew-pattern.svg") 0 0 / 190px 190px repeat; mask:url("/images/crew-pattern.svg") 0 0 / 190px 190px repeat;
}
/* Start the pattern somewhere different for each character so the four panels don't line up */
.crew-ottie::before, .crew-ottie .crew-card-art::before, .crew-ottie .crew-profile-art::before { -webkit-mask-position:80px 120px; mask-position:80px 120px; }
.crew-stella::before, .crew-stella .crew-card-art::before, .crew-stella .crew-profile-art::before { -webkit-mask-position:150px 40px; mask-position:150px 40px; }
.crew-nessa::before, .crew-nessa .crew-card-art::before, .crew-nessa .crew-profile-art::before { -webkit-mask-position:30px 170px; mask-position:30px 170px; }
.crew-card-art { position:relative; }
.crew-card-art::before { -webkit-mask-size:140px 140px; mask-size:140px 140px; }
.crew-card-art img, .crew-panel-name { position:relative; z-index:1; }
.crew-panel img { position:relative; z-index:1; width:auto; max-width:78%; max-height:50%; object-fit:contain; margin:auto 0; filter:drop-shadow(0 18px 18px rgba(0,0,0,.14)); transition:transform .3s ease; }
.crew-panel-name { font-family:'Montserrat',sans-serif; font-weight:900; font-size:clamp(1.6rem,2.8vw,2.6rem); letter-spacing:-.5px; color:var(--c-ink); transition:transform .25s ease; }
.crew-panel::after { content:""; position:absolute; left:0; right:0; bottom:0; height:6px; background:var(--c-ink); transform:scaleX(0); transition:transform .25s ease; }
.crew-panel:hover img, .crew-panel:focus-visible img { transform:scale(1.08) rotate(-2deg); }
.crew-panel:hover .crew-panel-name, .crew-panel:focus-visible .crew-panel-name { transform:translateY(-3px); }
.crew-panel:hover::after, .crew-panel:focus-visible::after { transform:scaleX(1); }
.crew-panel:focus-visible { outline:3px solid var(--c-ink); outline-offset:-3px; }
@media (max-width: 700px) {
  .crew-panels { grid-template-columns:repeat(2,1fr); }
  .crew-panel { height:270px; padding-bottom:24px; gap:12px; }
  .crew-panels > li:nth-child(n+3) .crew-panel { padding-top:16px; }
}
@media (prefers-reduced-motion: reduce) {
  .crew-panel img, .crew-panel-name, .crew-panel::after { transition:none; }
}

/* Meet the Crew page: where they live (group photo beside the story) */
.crew-home { background:#fff; padding:88px 0; }
.crew-home-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.1fr 1fr; gap:64px; align-items:center; }
.crew-home-art img { width:100%; height:auto; filter:drop-shadow(0 18px 24px rgba(0,0,0,.12)); }
@media (max-width: 960px) {
  .crew-home-inner { grid-template-columns:1fr; gap:32px; }
  .crew-home-art { max-width:520px; margin:0 auto; }
  .crew-home-text { text-align:center; }
  .crew-home-text .crew-bio { margin-left:auto; margin-right:auto; }
}
@media (max-width: 560px) { .crew-home { padding:56px 0; } }

/* The rest of the crew (on a character's page) */
.crew-others { background:#fff; padding:80px 0 88px; text-align:center; }

/* Sign-up box (same look as the homepage) */
.ea-newsletter-section { background:linear-gradient(135deg,#0b1f22 0%,#1e4b4d 60%,#0f2d3d 100%); padding:80px 0; }
.ea-newsletter-inner { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; max-width:1100px; margin:0 auto; }
.ea-newsletter-text h2 { font-family:'Montserrat',sans-serif; font-weight:800; font-size:clamp(1.8rem,3.2vw,2.5rem); color:#fff; line-height:1.15; margin-bottom:10px; }
.ea-newsletter-text p { color:rgba(255,255,255,.88); font-size:1.05rem; line-height:1.75; margin:0; }
.ea-newsletter-fields { display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
.ea-newsletter-fields input { width:100%; background:#fff; border:1px solid #fff; border-radius:10px; padding:13px 16px; color:#0b1416; font-size:.95rem; font-family:'Inter',sans-serif; outline:none; transition:border-color .2s, box-shadow .2s; }
.ea-newsletter-fields input:focus { border-color:var(--es-accent); box-shadow:0 0 0 3px rgba(46,184,194,.45); }
.ea-newsletter-fields input::placeholder { color:#6b7c80; }
.ea-newsletter-btn { width:100%; padding:14px; background:var(--es-accent); color:#0b1f22; border:none; border-radius:10px; font-family:'Montserrat',sans-serif; font-weight:800; font-size:.95rem; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:background .2s, transform .15s; }
.ea-newsletter-btn:hover { background:#3bcdd8; transform:translateY(-1px); }
.ea-newsletter-btn:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.ea-newsletter-fine { text-align:center; font-size:.8rem; color:rgba(255,255,255,.72); margin-top:10px; }
.ea-newsletter-msg { margin-top:10px; font-size:.85rem; text-align:center; min-height:20px; }
.ea-newsletter-msg.success { color:#4ade80; }
.ea-newsletter-msg.error { color:#f87171; }

@media (max-width: 960px) {
  .crew-cards { grid-template-columns:repeat(2,1fr); }
  .crew-cards.three { grid-template-columns:repeat(3,1fr); }
  .crew-profile-inner { grid-template-columns:1fr; gap:36px; }
  .crew-profile.flip .crew-profile-art { order:0; }
  .crew-profile-art { max-width:460px; width:100%; margin:0 auto; }
  .crew-profile-text { text-align:center; }
  .crew-bio { margin-left:auto; margin-right:auto; }
  .crew-actions { justify-content:center; }
  .ea-newsletter-inner { grid-template-columns:1fr; gap:36px; }
}
@media (max-width: 560px) {
  .crew-grid-section { padding:48px 0 56px; }
  .crew-cards { gap:12px; }
  .crew-cards.three { grid-template-columns:repeat(3,1fr); gap:8px; }
  .crew-card-art { height:140px; }
  .crew-card-art img { max-height:104px; }
  .crew-cards.three .crew-card-art { height:96px; }
  .crew-cards.three .crew-card-art img { max-height:70px; }
  .crew-card-name { font-size:1.2rem; padding:12px 8px 16px; }
  .crew-cards.three .crew-card-name { font-size:1rem; }
  .crew-profile { padding:56px 0; }
  .crew-facts-section, .crew-others { padding:56px 0; }
  .crew-facts li { font-size:.98rem; gap:14px; }
}
@media (prefers-reduced-motion: reduce) {
  .crew-profile-art img { animation:none; }
  .crew-card, .crew-card-art img { transition:none; }
  .crew-card:hover, .crew-card:hover .crew-card-art img { transform:none; }
}
