/* ============================================================
   PercepxiON, shared shell
   One nav and one footer for every page. Each page keeps its own
   tokens; everything here falls back to the brand values so a page
   that defines fewer of them still renders correctly.
   ============================================================ */

.sitenav{
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(16px) saturate(1.2); -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border-bottom:1px solid transparent;
  transition:border-color .4s ease, background .4s ease;
}
.sitenav.is-stuck{border-bottom-color:rgba(222,219,228,.7); background:rgba(255,255,255,.8)}
/* Brand on the left, sections in the centre, Collaborate at the far end. */
.sitenav__in{
  max-width:1320px; margin-inline:auto;
  padding-inline:clamp(20px, 5vw, 72px);
  height:72px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px;
}

.sitebrand{display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; justify-self:start}
.sitebrand svg{width:25px; height:30px; overflow:visible; flex:none}
.sitebrand svg path,.sitebrand svg circle,.sitebrand svg line{
  fill:none; stroke:var(--ink, #000); stroke-width:2.4; stroke-linecap:butt;
}
.sitebrand svg rect{fill:var(--ink, #000); stroke:none}
.sitebrand b{
  font-family:var(--display, Georgia, serif); font-weight:700;
  font-size:23px; letter-spacing:.02em; line-height:1;
  -webkit-text-stroke:.7px currentColor; paint-order:stroke fill;
}

/* Sections: on hover the word throws the three ramp echoes from the
   series of numbers; they trail the cursor and settle back into it. */
.sitenav__links{position:relative; display:flex; gap:clamp(6px, 1vw, 14px); align-items:center}
.sitenav__links a{
  position:relative; z-index:1; text-decoration:none; font-family:var(--text, Arial, sans-serif);
  font-size:14.5px; font-weight:500; letter-spacing:.01em; padding:8px 12px; white-space:nowrap;
  color:var(--grey-text, #5B5960); transition:color .25s;
}
.sitenav__links a::after{
  content:""; position:absolute; left:12px; right:12px; bottom:3px; height:1px;
  background:var(--ink, #000); transform:scaleX(0); transform-origin:left;
  transition:transform .32s cubic-bezier(.2,.7,.3,1);
}
.sitenav__links a > span{position:relative; z-index:1}
.sitenav__links a em{
  position:absolute; left:12px; top:8px; font-style:normal; pointer-events:none;
  opacity:0; transition:transform .45s cubic-bezier(.16,.84,.26,1), opacity .45s ease;
}
.sitenav__links a em.e1{color:#E9A36C}
.sitenav__links a em.e2{color:#ECBACB}
.sitenav__links a em.e3{color:#C9B8DF}
.sitenav__links a:hover em{opacity:.75}
.sitenav__links a:hover{color:var(--ink, #000)}
.sitenav__links a:hover::after,
.sitenav__links a[aria-current="page"]::after{transform:scaleX(1)}
.sitenav__links a[aria-current="page"]{color:var(--ink, #000)}
.sitenav__m{display:none}

/* Collaborate: a black block with white type, at the far end. */
.sitecta{
  justify-self:end; text-decoration:none; color:#FFF; background:var(--ink, #000);
  font-family:var(--text, Arial, sans-serif); font-size:14px; font-weight:600; letter-spacing:.02em;
  padding:12px 24px; border-radius:1px;
  transition:transform .45s cubic-bezier(.16,.84,.26,1), background .3s ease;
}
.sitecta:hover{background:#2B2433}

.siteburger{display:none; background:none; border:0; cursor:pointer; padding:10px; margin-right:-10px}
.siteburger span{display:block; width:22px; height:1.5px; background:var(--ink, #000); transition:transform .3s, opacity .3s}
.siteburger span + span{margin-top:6px}
.siteburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.siteburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.siteburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

@media (max-width:960px){
  .sitenav__in{display:flex; justify-content:space-between; height:66px}
  .sitecta{display:none}
  .sitenav__links a em{display:none}
  .sitenav__m{display:block}
  .siteburger{display:block}
  .sitenav__links{
    position:absolute; inset:66px 0 auto 0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:var(--paper, #FFF); border-bottom:1px solid var(--grey, #DEDBE4);
    padding:6px clamp(20px, 5vw, 72px) 24px;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .25s, transform .25s;
  }
  .sitenav__links.is-open{opacity:1; transform:none; pointer-events:auto}
  .sitenav__links a{
    font-family:var(--head, Georgia, serif); font-weight:500; font-size:21px;
    padding:13px 0; width:100%; color:var(--ink, #000);
    border-bottom:1px solid var(--grey, #DEDBE4);
  }
  .sitenav__links a::after{display:none}
}

/* ============================================================
   Footer
   ============================================================ */
.sitefoot{
  border-top:1px solid var(--grey, #DEDBE4);
  background:var(--paper, #FFF);
  font-family:var(--text, Arial, sans-serif);
  margin-top:clamp(60px, 9vw, 130px);
}
.sitefoot__in{
  max-width:1320px; margin-inline:auto;
  padding:clamp(44px, 6vw, 78px) clamp(20px, 5vw, 72px) clamp(30px, 4vw, 46px);
  display:grid; grid-template-columns:minmax(0,1.4fr) repeat(2, minmax(0,1fr));
  gap:clamp(26px, 4vw, 54px);
}
@media (max-width:900px){
  .sitefoot__in{grid-template-columns:repeat(2, minmax(0,1fr))}
  .sitefoot__mark{grid-column:1 / -1}
}
@media (max-width:520px){
  .sitefoot__in{grid-template-columns:1fr}
}
.sitefoot__mark .sitebrand{margin-bottom:14px}
.sitefoot__mark p{
  font-size:13.5px; line-height:1.6; color:var(--grey-text, #5B5960);
  margin:0 0 18px; max-width:34ch;
}
.sitefoot h4{
  font-family:var(--text, Arial, sans-serif); font-size:11.5px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--violet, #6C5B84); margin:0 0 14px;
}
.sitefoot ul{list-style:none; margin:0; padding:0}
.sitefoot li{margin:0 0 9px}
.sitefoot li a{
  text-decoration:none; font-size:13.5px; color:var(--grey-text, #5B5960);
  transition:color .25s; display:inline-block;
}
.sitefoot li a:hover{color:var(--ink, #000)}
.sitefoot li a[aria-current="page"]{color:var(--ink, #000)}
.sitefoot__mail{
  font-size:13.5px; color:var(--ink, #000); text-decoration:none;
  border-bottom:1px solid var(--grey, #DEDBE4); padding-bottom:2px;
  transition:border-color .25s, color .25s;
}
.sitefoot__mail:hover{color:var(--violet, #6C5B84); border-color:var(--violet, #6C5B84)}
.sitefoot__end{
  max-width:1320px; margin-inline:auto;
  padding:16px clamp(20px, 5vw, 72px) clamp(30px, 4vw, 44px);
  border-top:1px solid var(--grey, #DEDBE4);
  display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
  font-size:12px; color:var(--grey-text, #5B5960);
}

@media (prefers-reduced-motion:reduce){
  .sitenav,.sitenav__links a,.sitenav__links a::after,.siteburger span{transition-duration:.01ms}
}

/* ============================================================
   Slider affordance
   Every range input pulses quietly until it is first used, so it
   reads as interactive without asking for attention.
   ============================================================ */
@keyframes siteThumbHalo{
  0%   {box-shadow:0 0 0 0 rgba(108,91,132,.30)}
  26%  {box-shadow:0 0 0 10px rgba(108,91,132,0)}
  100% {box-shadow:0 0 0 0 rgba(108,91,132,0)}
}
input[type="range"].cue-on::-webkit-slider-thumb{
  animation:siteThumbHalo 3.6s cubic-bezier(.3,.8,.4,1) infinite;
}
input[type="range"].cue-on::-moz-range-thumb{
  animation:siteThumbHalo 3.6s cubic-bezier(.3,.8,.4,1) infinite;
}
@media (prefers-reduced-motion:reduce){
  input[type="range"].cue-on::-webkit-slider-thumb,
  input[type="range"].cue-on::-moz-range-thumb{animation:none}
}

/* ============================================================
   Closing notes
   The block that ends a research thread. Same words, read as a
   short numbered argument rather than as a list of paragraphs.
   ============================================================ */
.notes{
  margin-top:clamp(48px,7vw,96px); padding-top:0; border-top:0;
}
.notes__eyebrow{
  font-family:var(--text, Arial, sans-serif);
  font-size:11.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase;
  color:var(--violet, #6C5B84); margin:0 0 6px;
}
.notes__title{
  font-family:var(--display, Georgia, serif); font-weight:500;
  font-size:clamp(23px,3vw,40px); line-height:1.12; letter-spacing:-0.016em;
  margin:0 0 clamp(26px,3.4vw,44px); max-width:22ch;
}
.notes__list{list-style:none; margin:0; padding:0; border-top:1px solid var(--grey, #DEDBE4)}
.notes .note{
  position:relative; border-bottom:1px solid var(--grey, #DEDBE4);
  display:grid; grid-template-columns:auto minmax(0,1fr) minmax(0,1.6fr);
  gap:clamp(14px,3vw,42px); align-items:start;
  padding:clamp(22px,3vw,38px) 0;
  opacity:0; transform:translateY(18px);
  transition:opacity .75s ease, transform .75s cubic-bezier(.16,.84,.26,1);
}
.notes .note.seen{opacity:1; transform:none}
.notes .note::before{
  content:""; position:absolute; top:-1px; left:0; height:1px; width:100%;
  background:var(--lavender, #CFC2E6); transform:scaleX(0); transform-origin:left;
  transition:transform .8s cubic-bezier(.2,.7,.3,1) .1s;
}
.notes .note.seen::before{transform:scaleX(1)}
.note__n{
  font-family:var(--head, Georgia, serif); font-weight:600;
  font-size:clamp(15px,1.3vw,18px); line-height:1.5;
  color:var(--violet, #6C5B84); font-variant-numeric:tabular-nums;
}
.note__t{
  font-family:var(--head, Georgia, serif); font-weight:600;
  font-size:clamp(18px,2vw,27px); line-height:1.16; letter-spacing:-0.008em;
  margin:0; color:var(--ink, #000);
}
.notes .note__b p{
  font-size:14.5px; line-height:1.62; color:var(--grey-text, #5B5960);
  margin:0; max-width:58ch;
}
/* The finding is the point of the page, so it carries more weight. */
.notes .note[data-kind="finding"]{background:linear-gradient(90deg, rgba(237,230,246,.5), rgba(255,255,255,0) 72%)}
.notes .note[data-kind="finding"] .note__t{font-size:clamp(20px,2.4vw,32px)}
.notes .note[data-kind="finding"] .note__b p{color:var(--ink, #000); font-size:15.5px}
.notes .note[data-kind="finding"]::before{background:var(--violet, #6C5B84)}
@media (max-width:860px){
  .notes .note{grid-template-columns:auto minmax(0,1fr); gap:14px}
  .notes .note__b{grid-column:2}
}
@media (prefers-reduced-motion:reduce){
  .notes .note{opacity:1; transform:none}
  .notes .note::before{transform:scaleX(1)}
}

/* ============================================================
   Approved motion, from interactions.html
   ============================================================ */
.sitebrand svg{transition:transform .8s cubic-bezier(.16,.84,.26,1)}
.sitebrand:hover svg{transform:rotate(180deg)}
.btn{transition:transform .25s cubic-bezier(.16,.84,.26,1), background .3s, color .3s}
.btn > span.btn__in{display:inline-block; transition:transform .25s cubic-bezier(.16,.84,.26,1)}
@media (prefers-reduced-motion:reduce){
  .sitebrand:hover svg{transform:none}
  .btn,.btn > span.btn__in{transition-duration:.01ms}
}

/* ============================================================
   Phone gate. On a phone, the first page of a visit asks whether to
   carry on here or move to a larger screen. A one-line script in each
   page head adds .gate-on before first paint, so the page never
   flashes; desktops never get the class. If site.js failed to load,
   the page shows itself again after four seconds.
   ============================================================ */
html.gate-on, html.gate-on body{overflow:hidden}
html.gate-on body > *:not(.mgate){visibility:hidden; animation:gateFallback 0s 4s forwards}
@keyframes gateFallback{to{visibility:visible}}

.mgate{
  position:fixed; inset:0; z-index:200; background:#FFFFFF; color:var(--ink, #000);
  display:flex; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  transition:opacity .6s ease;
}
.mgate:focus{outline:none}
.mgate.is-leaving{opacity:0; pointer-events:none}
.mgate__in{width:100%; max-width:420px; margin:auto}
.mgate__in > *{opacity:0; transform:translateY(12px); animation:gateUp .8s cubic-bezier(.16,.84,.26,1) forwards}
.mgate__in > :nth-child(2){animation-delay:.9s}
.mgate__in > :nth-child(3){animation-delay:1.02s}
.mgate__in > :nth-child(4){animation-delay:1.14s}
.mgate__in > :nth-child(5){animation-delay:1.3s}
.mgate__in > :nth-child(6){animation-delay:1.3s}
@keyframes gateUp{to{opacity:1; transform:none}}

.mgate__mark{display:block; width:46px; height:55px; overflow:visible; margin:0 0 38px; opacity:1; transform:none; animation:none}
.mgate__mark line,.mgate__mark path,.mgate__mark circle{
  fill:none; stroke:var(--ink, #000); stroke-width:2.4; stroke-linecap:butt;
  stroke-dasharray:var(--len); stroke-dashoffset:var(--len);
  animation:gateDraw 1.3s cubic-bezier(.4,.05,.1,1) forwards;
}
.mgate__mark .d2{animation-delay:.15s} .mgate__mark .d3{animation-delay:.3s} .mgate__mark .d4{animation-delay:.45s}
.mgate__mark rect{fill:var(--ink, #000); opacity:0; animation:gateFade .5s ease 1.1s forwards}
@keyframes gateDraw{to{stroke-dashoffset:0}}
@keyframes gateFade{to{opacity:1}}

.mgate__tag{
  font-family:var(--text, Arial, sans-serif); font-size:11px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase; color:var(--violet, #6C5B84); margin:0 0 14px;
}
.mgate__t{
  font-family:var(--display, Georgia, serif); font-weight:500; font-size:46px;
  line-height:1.02; letter-spacing:-.02em; margin:0 0 18px;
}
.mgate__b{
  font-family:var(--text, Arial, sans-serif); font-size:15.5px; line-height:1.62;
  color:var(--grey-text, #5B5960); margin:0 0 32px;
}
.mgate__act{display:flex; flex-direction:column; gap:12px}
.mgate__act button{
  width:100%; font-family:var(--text, Arial, sans-serif); font-size:15px; font-weight:600; letter-spacing:.01em;
  padding:17px 20px; border:1px solid var(--ink, #000); border-radius:1px; cursor:pointer;
  transition:background .3s, color .3s;
}
.mgate__go{background:var(--ink, #000); color:#FFFFFF}
.mgate__stay{background:#FFFFFF; color:var(--ink, #000)}
.mgate__note{
  min-height:1.5em; margin:16px 0 0; text-align:center;
  font-family:var(--text, Arial, sans-serif); font-size:13px; color:var(--violet, #6C5B84);
}
@media (prefers-reduced-motion:reduce){
  .mgate__in > *{opacity:1; transform:none; animation:none}
  .mgate__mark line,.mgate__mark path,.mgate__mark circle{stroke-dashoffset:0; animation:none}
  .mgate__mark rect{opacity:1; animation:none}
  .mgate{transition:none}
}
