/* Site controls: a quiet surface, a clear direction, an immediate response. */
:root{--control-ease:cubic-bezier(.22,1,.36,1);--control-radius:14px;--control-sky:#eff5ea}
.button,.text-link{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.button{--disc:var(--sky);--disc-ink:var(--ink);position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:54px;padding:10px 11px 10px 21px;border:1px solid transparent;border-radius:var(--control-radius);font-size:14px;font-weight:600;line-height:1.4;text-align:left;box-shadow:none;transform:none;transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease,box-shadow 180ms ease,transform 140ms var(--control-ease)}
.button::before{content:"";position:absolute;right:11px;top:50%;width:32px;height:32px;border-radius:50%;background:var(--disc);transform:translateY(-50%);transition:background-color 180ms ease,transform 220ms var(--control-ease);z-index:-1;pointer-events:none}
.button::after{content:"";display:block;position:static;inset:auto;flex:0 0 32px;width:32px;height:32px;margin:0;opacity:1;background:var(--disc-ink);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 5l7 7-7 7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 5l7 7-7 7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;transform:none;transition:transform 220ms var(--control-ease)}
.button.primary,#jouer .origin-copy .button.primary,#jouer #real-life,.form-slot .button{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.button.light,header .button.light,.human-story .button{--disc:#2e5c40;--disc-ink:#fffaf1;background:var(--sky);border-color:var(--sky);color:var(--ink)}
.button.outline{--disc:transparent;background:transparent;border-color:#cad8be;color:var(--ink)}
.button:hover,.button:focus-visible{transform:none;box-shadow:none}
.button:hover::after,.button:focus-visible::after{opacity:1;transform:none}
.button:active:not(:disabled){transform:scale(.975);transition-duration:90ms}
:is(a,button,summary):focus-visible{outline:2px solid #70b276;outline-offset:4px}
#jouer :is(a,button,summary):focus-visible,header :is(a,button):focus-visible{outline-color:var(--gold)}
.button:disabled::before{background:transparent}.button:disabled::after{opacity:.35}
header>.button{gap:10px;min-height:46px;padding:7px 9px 7px 16px;border-radius:12px;font-size:13px}
header>.button::before{right:9px;width:28px;height:28px}
header>.button::after{flex-basis:28px;width:28px;height:28px;mask-size:14px;-webkit-mask-size:14px}
.hero-actions{gap:12px;align-items:stretch}
.hero-actions .button,.hero-actions .text-link{font-size:14px;min-height:56px;flex:0 1 auto;padding:10px 11px 10px 21px;gap:18px;white-space:nowrap}
.text-link{position:relative;display:inline-flex;justify-content:flex-start;gap:12px;min-height:40px;width:fit-content;padding:5px 0;border:0;border-bottom:1px solid #a1bea4;border-radius:0;background:transparent;color:inherit;font-size:13px;line-height:1.5;text-align:left;box-shadow:none;transform:none;transition:color 180ms ease,border-color 180ms ease,transform 140ms var(--control-ease)}
.text-link::after{position:static;inset:auto;flex:0 0 16px;width:16px;height:16px;opacity:1;margin:0;transform:none;transition:transform 220ms var(--control-ease)}
.text-link:hover,.media-content .text-link:hover,.join-grid .text-link:hover{background:transparent;color:inherit;border-color:currentColor;box-shadow:none}
.text-link:hover::after,.text-link:focus-visible::after,.news-card:hover .text-link::after{transform:none}
.text-link:active{transform:translateY(1px)}
.hero-actions .text-link,.news-section .section-heading>.text-link{display:inline-flex;justify-content:center;padding:10px 19px;gap:16px;min-height:54px;border:1px solid #ccd9c0;border-radius:var(--control-radius);background:transparent;color:var(--ink);white-space:nowrap}
.media-content .text-link,.media-content button.text-link{border:0;border-bottom:1px solid #bccab0;border-radius:0;padding:5px 0;background:transparent;min-height:40px}
.news-card .text-link{border:0;border-bottom:1px solid #bccab0;min-height:36px}
.join-grid .text-link{color:#eff5ea;border-bottom-color:#8ab48e}
.action-read{border-radius:9px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;transition:background-color 180ms ease,color 180ms ease}
/* Selected options retain their identity when hovered or focused. */
.filters{gap:3px;padding:4px;border:1px solid #d8e3cf;border-radius:13px;background:#ecf2e6}
.filters button{position:relative;min-height:40px;border:0;border-radius:9px;background:transparent;color:#4e725c;padding:8px 15px;font-size:12px;transition:background-color 180ms ease,color 180ms ease,box-shadow 180ms ease,transform 120ms var(--control-ease);touch-action:manipulation}
.filters button.active{background:var(--ink);color:#fffaf1;box-shadow:0 1px 3px #23473125}
.filters button:active{transform:scale(.97)}
#game-viewport .avatar-options button{position:relative;min-height:46px;border:1px solid #c6d3ba;border-radius:8px;background:#f4f8f0;color:#365d45;box-shadow:none;transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease,transform 120ms var(--control-ease)}
#game-viewport .avatar-options button::after{content:"";flex:0 0 12px;width:12px;height:12px;background:currentColor;opacity:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain}
#game-viewport .avatar-options button[aria-pressed="true"]{background:#2e5c40;color:#fffaf1;border-color:#2e5c40;box-shadow:0 0 0 2px #e3eddb}
#game-viewport .avatar-options button[aria-pressed="true"]::after{opacity:1}
#game-viewport .avatar-options button:active{transform:scale(.97)}
#game-viewport .origin-copy .button{border-radius:8px;justify-content:center;padding:12px 18px}
#game-viewport .origin-copy .button::before,#game-viewport .origin-copy .button::after{content:none}
@media(min-width:761px){header nav{border:0;border-radius:0;background:transparent;gap:4px;padding:0}header nav a{border-radius:9px;padding:10px 14px}header nav a.current{background:#e3eddb;color:#2e5c40;box-shadow:inset 0 -2px 0 #b8d1a2}}
/* Neutralize legacy hover-only styles on touch; fine pointers opt in below. */
.button.primary:hover:not(:disabled),#jouer .origin-copy .button.primary:hover:not(:disabled),#jouer #real-life:hover,.form-slot .button:hover:not(:disabled){background:var(--ink);color:var(--paper);border-color:var(--ink);box-shadow:none}
.button.light:hover,header .button.light:hover,.human-story .button:hover{--disc:#2e5c40;--disc-ink:#fffaf1;background:var(--sky);border-color:var(--sky);color:var(--ink)}
.button.outline:hover{background:transparent;border-color:#cad8be;color:var(--ink)}
@media(hover:hover) and (pointer:fine){
 .button.primary:hover:not(:disabled),#jouer .origin-copy .button.primary:hover:not(:disabled),#jouer #real-life:hover,.form-slot .button:hover:not(:disabled){--disc:#f4ce71;background:#37714d;border-color:#37714d;color:#fffaf1;box-shadow:0 3px 10px #2e5c401a}
 .button.light:hover,header .button.light:hover,.human-story .button:hover{--disc:#2e5c40;background:#fff4de;border-color:#fff4de;color:#2e5c40}
 .button.outline:hover{background:#eff5ea;border-color:#9dc5a0;color:var(--ink)}
 .button:hover::after{transform:translateX(2px)}.button:hover::before{transform:translateY(-50%) scale(1.06)}
 .hero-actions .text-link:hover,.news-section .section-heading>.text-link:hover{background:#eff5ea;border-color:#a0c5a3}
 .text-link:hover::after,.news-card:hover .text-link::after{transform:translate(2px,-2px)}
 .next-action:hover .action-read{background:var(--gold);border-color:var(--gold);color:var(--ink)}
 .filters button:not(.active):hover{background:#fcfdfb;color:#2e5c40}
 #game-viewport .avatar-options button:not([aria-pressed="true"]):hover{background:#e9f1e2;border-color:#86b48a}
 header nav a:hover{transform:none;background:#ffffff18}header nav a.current:hover{background:#eff5ea}
}
/* A stable text window: every phrase contributes its height, no layout jump. */
.hero h1{white-space:normal;margin-bottom:0;font-size:clamp(48px,5.2vw,77px)}
.hero-fixed{display:block;white-space:nowrap}
.hero-words{display:grid;position:relative;margin-top:5px;font-size:clamp(32px,4.25vw,58px);line-height:1.16}
.hero-words em{grid-area:1/1;display:block;min-width:0;max-width:100%;opacity:0;transform:translateY(.16em);filter:blur(2px);pointer-events:none;transition:opacity 260ms ease,transform 320ms var(--control-ease),filter 260ms ease}
.hero-words em[data-active="true"]{opacity:1;transform:none;filter:none}
.hero-words em[data-leaving="true"]{transform:translateY(-.16em)}
.headline-toggle{display:inline-flex;align-items:center;gap:7px;padding:7px 0;min-height:30px;margin:9px 0 18px;border:0;background:transparent;color:#628265;font-family:inherit;font-size:11px;line-height:1.5;cursor:pointer;border-radius:3px;touch-action:manipulation}
.headline-toggle .motion-symbol{width:8px;height:10px;border-inline:2px solid currentColor}
.headline-toggle[aria-pressed="true"] .motion-symbol{width:10px;border:0;background:currentColor;clip-path:polygon(10% 0,95% 50%,10% 100%)}
.headline-toggle:hover{color:#2e5c40}
.hero-copy>.intro{margin-top:0}
@media(max-width:760px){
 header>.button{min-height:44px;font-size:12px;padding:7px 8px 7px 13px;gap:8px}
 header>.button::before{right:8px;width:25px;height:25px}header>.button::after{flex-basis:25px;width:25px;height:25px;mask-size:13px;-webkit-mask-size:13px}
 .hero h1{font-size:clamp(34px,9.5vw,64px);letter-spacing:-1.7px;line-height:1.09}
 .hero-words{font-size:clamp(27px,8.1vw,55px)}
 .hero-actions .button,.hero-actions .text-link{flex:1 1 155px;font-size:13px;min-height:54px;padding:10px 11px 10px 17px;gap:12px}
 .hero-actions .button{justify-content:space-between}
 .filters{gap:2px;padding:4px}.filters button{min-height:42px;padding:8px 12px;font-size:12px}
 .media-section .section-heading{flex-wrap:wrap;align-items:flex-start;gap:24px}
 .headline-toggle{margin-bottom:16px;min-height:34px}
 /* Separate photo and copy so every face has room, with no text over the image. */
 #ensemble.human-story{height:auto;background:#2e5c40;overflow:hidden}
 #ensemble .human-photo{position:relative;inset:auto;z-index:0;width:100%;height:auto;aspect-ratio:4/3}
 #ensemble .human-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% center;transform:none}
 #ensemble.human-story::before{content:none}
 #ensemble .human-story-copy{position:relative;height:auto;justify-content:flex-start;padding:30px 20px 38px}
 #ensemble .human-story-kicker{margin-bottom:20px;font-size:11px}
 #ensemble h2{font-size:clamp(37px,10vw,54px);line-height:1.08}
 #ensemble p{font-size:14px;line-height:1.8;margin:21px 0 25px}
 #ensemble .button{min-height:54px;font-size:13px}
}
@media(max-width:360px){.hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .button,.hero-actions .text-link{width:100%}.hero h1{font-size:33px}.filters button{padding-inline:10px}.news-section .section-heading>.text-link{font-size:12px}}
@media(prefers-reduced-motion:reduce){
 .button,.button::before,.button::after,.text-link,.text-link::after,.filters button,#game-viewport .avatar-options button,.hero-words em{transition:none!important}
 .button:active:not(:disabled),.button:hover::after,.button:hover::before,.text-link:hover::after,.filters button:active,#game-viewport .avatar-options button:active{transform:none}
 .button::before,.button:hover::before{transform:translateY(-50%)}
 .hero-words em{transform:none;filter:none}
}

.hero-copy:has(.headline-toggle[hidden]) h1{margin-bottom:30px}

/* The masthead follows the same inset as the editorial grid. */
html { scrollbar-gutter: stable; }
.site-header {
  --header-edge: clamp(12px, 3vw, 48px);
  position: sticky;
  top: 12px;
  width: min(1420px, calc(100% - 2 * var(--header-edge)));
  height: 72px;
  margin: 12px auto 0;
  padding: 0 12px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  border: 1px solid #3f6e51;
  border-radius: 24px;
  background: linear-gradient(106deg, #20412d, #295239 62%, #2d5b3f);
  box-shadow: 0 6px 18px -9px #20412d6b, inset 0 1px 0 #ffffff0f;
}
.site-header .brand {
  width: 150px;
  height: 60px;
  min-width: 0;
  border-radius: 8px;
  justify-self: start;
}
.site-header .brand img { width: 244px; transform: translateX(-8px); }
.site-header > .button {
  justify-self: end;
  border-radius: 999px;
  padding-left: 19px;
  font-weight: 700;
  gap: 14px;
}
.site-header .button.light { background: #edf3e7; border-color: #edf3e7; }
.site-header nav { animation: none; }
@media (min-width:761px) {
  .site-header nav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid #ffffff1d;
    background: #ffffff08;
  }
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px clamp(12px, 1.5vw, 22px);
    border-radius: 999px;
    color: #f7faf5;
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
    transition: color .2s, background-color .2s;
  }
  .site-header nav a.current,
  .site-header nav a.current:hover { background: #eef4e9; color: #285238; box-shadow: none; }
}
@media (max-width:760px) {
  .site-header {
    --header-edge: 10px;
    top: 8px;
    margin-top: 8px;
    height: 62px;
    grid-template-columns: minmax(0,1fr) auto 44px;
    gap: 7px;
    padding: 0 8px 0 12px;
    border-radius: 20px;
  }
  .site-header .brand { width: 122px; max-width: 100%; height: 50px; }
  .site-header .brand img { width: 196px; transform: translateX(-6px); }
  .site-header > .button { gap: 8px; min-height: 44px; padding-left: 13px; }
  .site-header .menu { width: 44px; height: 44px; border-color: #ffffff3b; background: #ffffff0a; }
  .site-header nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    padding: 9px;
    gap: 2px;
    background: #fffaf3;
    box-shadow: 0 18px 48px #152a1d3d;
    max-height: calc(100dvh - 96px);
    border-color: #d2dbcb;
  }
  .site-header nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 10px 16px;
    color: #274f36;
    font-size: 19px;
    font-weight: 550;
    letter-spacing: -.5px;
  }
  .site-header nav a::after {
    content: "";
    position: static;
    display: block;
    width: 7px;
    height: 7px;
    margin-right: 3px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    background: transparent;
    transform: rotate(45deg);
  }
  .site-header nav a.current { background: #eef4e8; border-color: transparent; }
  .nav-scrim { background: #1c372666; backdrop-filter: blur(3px); }
  body.menu-is-open :is(.mobile-join,#back-to-top) { visibility: hidden; pointer-events: none; }
}
@media (max-width:360px) {
  .site-header { gap: 4px; padding-left: 8px; }
  .site-header .brand { width: 103px; }
  .site-header .brand img { width: 170px; }
}

.hero-copy .headline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 36px;
  margin: 4px 0 11px;
  padding: 4px 7px 4px 0;
  color: #5b7c68;
  border-radius: 6px;
}
.phrase-marks { display: flex; gap: 4px; align-items: center; }
.phrase-marks i { display: block; width: 11px; height: 3px; border-radius: 2px; background: #cdd6c5; transition: background-color .25s; }
.hero-copy:has(em:nth-child(1)[data-active="true"]) .phrase-marks i:nth-child(1),
.hero-copy:has(em:nth-child(2)[data-active="true"]) .phrase-marks i:nth-child(2),
.hero-copy:has(em:nth-child(3)[data-active="true"]) .phrase-marks i:nth-child(3),
.hero-copy:has(em:nth-child(4)[data-active="true"]) .phrase-marks i:nth-child(4) { background: #447456; }
.hero-copy .headline-toggle[aria-pressed="true"] .motion-symbol { width: 8px; }
@media (pointer:coarse) { .hero-copy .headline-toggle { min-height: 44px; } }

.button, .hero-actions .text-link, .news-section .section-heading > .text-link { border-radius: 999px; }
.image-label::after { opacity: .82; transform: none; }
.action-read { border-radius: 999px; }
@media (hover:hover) and (pointer:fine) {
  .site-header nav a:not(.current):hover { background: #ffffff1d; color: white; }
  .site-header .button.light:hover { background: #ffe8ad; border-color: #ffe8ad; }
  .button:not(:disabled):hover, .hero-actions .text-link:hover, .news-section .section-heading > .text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px -8px #2e5c4063;
  }
  .button:not(:disabled):hover::after { transform: translateX(3px); }
  .button:not(:disabled):hover::before { transform: translateY(-50%) scale(1.1); }
  .text-link:hover::after, .news-card:hover .text-link::after { transform: translate(3px,-3px); }
  .image-label:hover::after { transform: translate(2px,-2px); }
  .button:not(:disabled):active, .hero-actions .text-link:active { transform: translateY(0) scale(.98); box-shadow: none; }
}
@media (max-width:760px) and (hover:hover) and (pointer:fine) {
  .site-header nav a:not(.current):hover { background: #f0f5ec; color: #274f36; }
}

/* The frame is the measuring surface; only its image moves. */
#esprit .founder {
  padding: 0;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 38px -26px #274f3669;
}
.founder-portrait {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.72;
  --portrait-mat: clamp(22px, 2vw, 30px);
  background: linear-gradient(135deg,#e6eedf,#f4f8f1 62%,#e7ede1);
  border-bottom: 1px solid #e3e9dd;
}
.founder-portrait img {
  position: absolute;
  display: block;
  inset: var(--portrait-mat) var(--portrait-mat) auto;
  width: calc(100% - 2 * var(--portrait-mat));
  height: calc(100% - 2 * var(--portrait-mat));
  border-radius: 10px;
  box-shadow: 0 3px 12px #2e5c4010;
  max-width: none;
  object-fit: cover;
  object-position: 44% top;
  transform: translate3d(0,var(--scroll-depth,0px),0);
}
.founder-copy { padding: clamp(20px, 3vw, 32px); }
#esprit .founder .founder-copy h3 { font-size: clamp(25px, 2.4vw, 34px); }
@media (max-width:760px) {
  .founder-portrait { --portrait-mat: 16px; aspect-ratio: 1.36; }
}

/* Short fades between the large colour fields, with a soft entrance for headings. */
#jouer.game-section {
  background: linear-gradient(180deg,#2e5c40 62%,#2c583d);
  border-bottom: 0;
}
.join-section { background: linear-gradient(180deg,#2c583d,#326746 65%,#326746); }
.spirit { position: relative; }
#ensemble.human-story { border-radius: clamp(24px,4vw,62px) clamp(24px,4vw,62px) 0 0; }
.media-section { border-top: 0; background: linear-gradient(to bottom,var(--paper),#f3f6f1 125px); }
.instagram-section { border-top: 0; background: linear-gradient(to bottom,#f3f6f1,#f0f5ec 150px); }
@keyframes section-entrance {
  from { opacity: .74; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion:no-preference) {
  .section-entered { animation: section-entrance .56s var(--control-ease) both; }
}
@media (prefers-reduced-motion:reduce) {
  .founder-portrait img { transform: none; }
  .phrase-marks i { transition: none; }
  .site-header nav a, .site-header nav { transition: none; }
  .button:not(:disabled):hover, .button:not(:disabled):active, .button:not(:disabled):hover::after,
  .hero-actions .text-link:hover, .news-section .section-heading>.text-link:hover,
  .text-link:hover::after, .news-card:hover .text-link::after, .image-label:hover::after { transform: none; }
  .button:not(:disabled):hover::before { transform: translateY(-50%); }
}
