/* Team page /travel/about-us-page/ (hand-built; was the /travel/lab/team/ prototype). Dark theme, sand accent, Cormorant Garamond like the rest of the site.
   Scroll reveal: public/js/team.js adds html.tm-rv-on and .is-in on .tm-rv elements. */
.tm-main { padding: 0 !important; }
.tm { --tm-bg: #171513; --tm-surface: #201d1a; --tm-line: #3b3630; --tm-text: #c9c1b7; --tm-head: #f1ebe3; --tm-muted: #8f877e; --tm-sand: #ceb19c; --tm-sand-2: #a8866c;
  background: var(--tm-bg); color: var(--tm-text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; line-height: 1.6; }
.tm h1, .tm h2, .tm h3 { font-family: "Cormorant Garamond", Georgia, serif !important; color: var(--tm-head) !important; font-weight: 500 !important; margin: 0; letter-spacing: 0 !important; text-transform: none !important; }
.tm p { margin: 0 0 1em; }
.tm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tm-kicker { margin: 0 0 10px !important; font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--tm-sand); }
.tm h2 { font-size: clamp(36px, 4.4vw, 56px) !important; line-height: 1.1 !important; margin-bottom: 26px; }

/* hero */
.tm-hero { position: relative; overflow: hidden; }
/* the whole team stays visible: photo on top fading into the page, title below it (not over faces) */
.tm-hero-bg { display: block; width: 100%; height: min(80vh, 58vw); object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  transform: scale(1.05); animation: tm-zoom 9s ease-out forwards; transform-origin: 50% 30%; }
.tm-hero-in { position: relative; width: 100%; max-width: 1180px; margin: -70px auto 0; padding: 0 24px 40px; text-align: center; }
.tm-hero h1, .tm-lead { margin-left: auto !important; margin-right: auto !important; }
.tm-hero h1 { font-size: clamp(46px, 6.4vw, 92px) !important; line-height: 1.02 !important; max-width: 12em; }
.tm-hero h1 span { display: block; color: var(--tm-sand) !important; font-style: italic; }
.tm-lead { max-width: 34em; margin-top: 18px !important; font-size: clamp(20px, 1.8vw, 24px); color: #e6ddd2; }
.tm-scroll { display: inline-block; margin-top: 18px; width: 26px; height: 42px; border: 1px solid rgba(206, 177, 156, 0.7); border-radius: 14px; position: relative; }
.tm-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--tm-sand); animation: tm-wheel 1.8s ease-in-out infinite; }
@keyframes tm-zoom { to { transform: scale(1); } }
@keyframes tm-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.tm-hero .tm-kicker, .tm-hero h1, .tm-lead, .tm-scroll { opacity: 0; transform: translateY(20px); animation: tm-rise 0.9s cubic-bezier(0.22, 0.61, 0.16, 1) forwards; }
.tm-hero h1 { animation-delay: 0.15s; } .tm-lead { animation-delay: 0.35s; } .tm-scroll { animation-delay: 0.6s; }
@keyframes tm-rise { to { opacity: 1; transform: none; } }

/* values */
.tm-values { padding: 110px 0 90px; }
.tm-values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tm-value { position: relative; padding: 34px 30px 28px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: 4px; overflow: hidden; }
.tm-value::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--tm-sand), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(0.22, 0.61, 0.16, 1) 0.3s; }
.tm-value.is-in::before, html:not(.tm-rv-on) .tm-value::before { transform: scaleX(1); }
.tm-value-num { display: block; font-size: 54px; line-height: 1; color: rgba(206, 177, 156, 0.35); margin-bottom: 14px; }
.tm-value h3 { font-size: 32px !important; margin-bottom: 14px; }
.tm-value p { font-size: 18.5px; line-height: 1.6; margin: 0; }

/* quote */
.tm-quote { padding: 100px 0; background: var(--tm-surface); border-top: 1px solid var(--tm-line); border-bottom: 1px solid var(--tm-line); text-align: center; }
.tm-quote blockquote { margin: 0 auto !important; padding: 0 24px !important; border: 0 !important; background: none !important; max-width: 980px; }
.tm-quote p { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.25; color: var(--tm-head); margin: 0 0 22px; }
.tm-quote p::before { content: "“"; display: block; font-size: 1.8em; line-height: 0.6; color: var(--tm-sand); margin-bottom: 18px; }
.tm-quote em { color: var(--tm-sand); }
.tm-quote footer { font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tm-muted); }

/* team */
.tm-team { padding: 110px 0 40px; }
.tm-intro { max-width: 42em; font-size: 21px; margin-bottom: 70px !important; }
.tm-person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: center; margin-bottom: 100px; }
.tm-person:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tm-person:nth-of-type(even) .tm-photo { order: 2; }
.tm-photo { margin: 0; position: relative; padding: 0 18px 18px 0; }
.tm-photo::before { content: ""; position: absolute; inset: 18px 0 0 18px; border: 1px solid var(--tm-sand-2); border-radius: 3px; transition: transform 0.6s ease; }
.tm-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 3px;
  filter: saturate(0.92); transition: filter 0.5s ease, transform 0.6s ease; }
.tm-person:hover .tm-photo img { filter: saturate(1.05); transform: translate(-4px, -4px); }
.tm-person:hover .tm-photo::before { transform: translate(4px, 4px); }
.tm-role { margin: 0 0 8px !important; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tm-sand); }
.tm-bio h3 { font-size: clamp(34px, 3.4vw, 46px) !important; line-height: 1.1 !important; margin-bottom: 18px; }
.tm-nick { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 12px; border: 1px solid var(--tm-line); border-radius: 999px;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tm-muted); }
.tm-pull { position: relative; font-size: 25px; line-height: 1.35; font-style: italic; color: var(--tm-head); padding-left: 20px; border-left: 2px solid var(--tm-sand); margin-bottom: 22px !important; }
.tm-bio > p:not(.tm-role):not(.tm-pull) { font-size: 19px; }
.tm-more { margin-top: 4px; }
.tm-more summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tm-sand); }
.tm-more summary::-webkit-details-marker { display: none; }
.tm-more summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(206, 177, 156, 0.55); border-radius: 50%; font-size: 17px; letter-spacing: 0; transition: transform 0.3s; }
.tm-more[open] summary::after { transform: rotate(45deg); }
.tm-more summary:hover { color: #f3e3d3; }
.tm-more p { margin-top: 16px; font-size: 19px; animation: tm-rise 0.5s ease forwards; }

/* call to action */
.tm-cta { padding: 90px 0 120px; text-align: center; border-top: 1px solid var(--tm-line); }
.tm-cta p:not(.tm-kicker) { max-width: 36em; margin: 0 auto 30px; }
.tm-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tm-btn { display: inline-block; padding: 15px 28px; border: 1px solid var(--tm-sand); border-radius: 3px; background: var(--tm-sand); color: #1a1612 !important;
  text-decoration: none !important; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.tm-btn:hover { background: #e2cfb8; }
.tm-btn--ghost { background: transparent; color: var(--tm-sand) !important; }
.tm-btn--ghost:hover { background: rgba(206, 177, 156, 0.12); }

/* scroll reveal */
html.tm-rv-on .tm-rv { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease var(--d, 0s), transform 1s cubic-bezier(0.22, 0.61, 0.16, 1) var(--d, 0s); }
html.tm-rv-on .tm-rv.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .tm-values-grid { grid-template-columns: 1fr; }
  .tm-person, .tm-person:nth-of-type(even) { grid-template-columns: 1fr; margin-bottom: 70px; }
  .tm-person:nth-of-type(even) .tm-photo { order: 0; }
  .tm-photo { max-width: 460px; }
  .tm-hero { min-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-hero-bg, .tm-hero .tm-kicker, .tm-hero h1, .tm-lead, .tm-scroll, .tm-scroll span { animation: none !important; opacity: 1; transform: none; }
}
