/* The home page: a round courtyard you stand in. The red wall curves round you in real 3D (CSS only);
   every Short is a marble doorway in it. The maths: each wall panel is --W wide and turned 22 degrees from the next,
   so the circle's radius is W / (2 tan 11deg) = 2.572 W, and your eye sits exactly in the middle (perspective = radius). */
.hall { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--cream); background: #24498c;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  --W: clamp(170px, min(33.5svh, 74vw), 420px);
  --R: calc(var(--W) * 2.572);
  --wallTop: 18svh;
  --wallH: calc(var(--W) * 1.62); }
.hall.is-dragging { cursor: grabbing; }

.hall-sky { position: absolute; inset: 0 0 auto 0; height: calc(var(--wallTop) + var(--wallH));
  background: radial-gradient(120% 90% at 50% 100%, #86b0dc 0%, #4f83c2 34%, #2a549b 70%, #1f4486 100%); }
.hall-year { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--wallTop) - .775em); display: flex; justify-content: center;
  align-items: baseline; gap: .08em; font: 700 clamp(4.2rem, 15.5svh, 12rem)/1 var(--display); letter-spacing: .01em;
  font-variant-numeric: tabular-nums lining-nums; color: var(--cream); text-shadow: 0 .03em .12em rgba(10, 30, 80, .35); pointer-events: none;
  transition: opacity .4s; }
.hall-year small { font-size: .26em; letter-spacing: .12em; font-weight: 700; opacity: 0; transition: opacity .3s; width: 2.1em; }
.hall-year small.on { opacity: .9; }
.hall-year .hy-c { text-align: right; text-transform: none; letter-spacing: .02em; font-style: italic; font-family: var(--text); font-weight: 400; font-size: .3em; }
.hall-year .hy-e { text-align: left; }

.hall-floor { position: absolute; left: 0; right: 0; top: calc(var(--wallTop) + var(--wallH) - 4px); bottom: 0;
  background: linear-gradient(rgba(54, 30, 22, .62) 0, rgba(70, 44, 34, .2) 9%, rgba(60, 38, 30, .5) 55%, rgba(38, 22, 17, .86) 100%),
              url(../img/brand/paving.webp) center top / 820px; }

/* the eye stands 0.4 R behind the middle of the circle (a calmer view than the exact middle) and the lens is 1.4 R,
   so the door you face is drawn at its true size */
.hall-scene { position: absolute; inset: 0; perspective: calc(var(--R) * 1.4); perspective-origin: 50% calc(var(--wallTop) + var(--wallH) * .6); }
.hall-ring { position: absolute; z-index: 2; left: 50%; top: var(--wallTop); width: 0; height: var(--wallH); margin: 0; padding: 0; list-style: none;
  transform-style: preserve-3d; will-change: transform; }

/* the ground: one round paved floor lying flat at the foot of the wall; it turns with the wall */
.ground { position: absolute; left: 0; top: 100%; width: calc(var(--R) * 2.06); height: calc(var(--R) * 2.06); margin: calc(var(--R) * -1.03) 0 0 calc(var(--R) * -1.03);
  border-radius: 50%; transform: rotateX(90deg); backface-visibility: visible; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(40, 22, 16, 0) 62%, rgba(40, 22, 16, .34) 90%, rgba(30, 14, 10, .78) 100%),
    repeating-radial-gradient(circle, rgba(70, 48, 38, 0) 0, rgba(70, 48, 38, 0) calc(var(--W) * .5 - 2px), rgba(70, 48, 38, .5) calc(var(--W) * .5 - 1px), rgba(70, 48, 38, .5) calc(var(--W) * .5)),
    repeating-conic-gradient(rgba(70, 48, 38, .5) 0deg, rgba(70, 48, 38, .5) .12deg, rgba(70, 48, 38, 0) .22deg, rgba(70, 48, 38, 0) 5.5deg),
    url(../img/brand/paving.webp) center / 900px; }
.panel { position: absolute; left: calc(var(--W) / -2 - 1px); top: 0; width: calc(var(--W) + 2px); height: 100%;
  transform: rotateY(calc(var(--i) * -22deg)) translateZ(calc(var(--R) * -1)); backface-visibility: hidden;
  background:
    linear-gradient(90deg, rgba(40, 10, 5, .26), rgba(40, 10, 5, 0) 7%, rgba(40, 10, 5, 0) 93%, rgba(40, 10, 5, .26)),
    linear-gradient(rgba(255, 220, 190, .1), rgba(255, 220, 190, 0) 30%),
    linear-gradient(transparent 80%, rgba(96, 22, 16, .5) 80%),
    url(../img/brand/wall.webp) calc(var(--i) * 137px) 0 / 760px; }
/* the marble coping on top of the wall, and the stone kerb at its foot */
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--W) * .042);
  background: url(../img/brand/marble.webp) calc(var(--i) * 211px) 30% / 600px; box-shadow: 0 3px 5px rgba(40, 10, 5, .45), 0 -1px 0 rgba(255, 255, 255, .7) inset; }
.panel::after { content: ""; position: absolute; inset: 0; background: #1d0806; opacity: var(--shade, 0); pointer-events: none; }

.door { position: absolute; left: 50%; bottom: 0; width: 76%; transform: translateX(-50%); display: block; text-decoration: none; color: var(--ink);
  -webkit-tap-highlight-color: transparent; cursor: pointer; }
.door:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.lintel { display: flex; align-items: center; justify-content: center; height: calc(var(--W) * .135); margin: 0 -5%;
  background: url(../img/brand/marble.webp) 20% 60% / 520px;
  box-shadow: 0 -1px 0 #fff inset, 0 2px 0 rgba(120, 105, 95, .5), 0 8px 10px -4px rgba(40, 10, 5, .6), 0 -3px 8px -2px rgba(40, 10, 5, .35); position: relative; z-index: 1; }
.lintel b { font: 700 calc(var(--W) * .058)/1 var(--display); letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: #6d645d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(60, 50, 45, .35); white-space: nowrap; }
.opening { display: block; position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #1a1210;
  border: solid transparent; border-width: 0 calc(var(--W) * .034) calc(var(--W) * .022);
  background: url(../img/brand/marble.webp) 70% 10% / 640px; }
.opening img, .opening video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opening video { opacity: 0; transition: opacity .6s; }
.opening video.on { opacity: 1; }
/* the depth of the doorway: shadow thrown inward by the frame */
.opening::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(30, 14, 10, .55), inset 0 calc(var(--W) * .09) calc(var(--W) * .1) calc(var(--W) * -.05) rgba(20, 8, 5, .75),
              inset calc(var(--W) * .04) 0 calc(var(--W) * .06) calc(var(--W) * -.035) rgba(20, 8, 5, .6), inset calc(var(--W) * -.04) 0 calc(var(--W) * .06) calc(var(--W) * -.035) rgba(20, 8, 5, .6); }
.panel.is-here .opening::after { box-shadow: inset 0 0 0 1px rgba(30, 14, 10, .5), inset 0 calc(var(--W) * .06) calc(var(--W) * .08) calc(var(--W) * -.05) rgba(20, 8, 5, .6); }

/* what you are looking at: written on the floor in front of the door */
.hall-info { position: absolute; z-index: 5; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(92vw, 620px); text-align: center; transition: opacity .16s, transform .16s; cursor: default; }
.hall-info::before { content: ""; position: absolute; z-index: -1; inset: -22px -12% -70px; background: radial-gradient(closest-side, rgba(34, 16, 11, .62), rgba(34, 16, 11, 0)); pointer-events: none; }
.hall-info.swap { opacity: 0; transform: translateX(-50%) translateY(6px); }
.hall-info .caps { opacity: .82; font-size: .7rem; }
.hall-info h2 { font-size: clamp(1.4rem, 3.3svh + .4vw, 2.4rem); margin: .22em 0 .26em; text-shadow: 0 2px 14px rgba(20, 8, 5, .6); }
.hall-info .blurb { font-style: italic; font-size: clamp(.95rem, 1.5svh + .35vw, 1.1rem); line-height: 1.4; opacity: .92; max-width: 30em; margin: 0 auto; text-wrap: balance; }
.hall-info .acts { display: flex; gap: 10px 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: clamp(8px, 1.6svh, 16px); }
.hall-info .btn { padding: .7em 1.4em .66em; }
.hall-info .soon { opacity: .6; font-size: .66rem; }

.hall-ruler { position: absolute; z-index: 5; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: flex-end;
  gap: 0; height: 30px; cursor: default; }
.hall-ruler .end { font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .14em; opacity: .7; padding: 0 8px 1px; white-space: nowrap; }
.tick { appearance: none; border: 0; background: none; padding: 0; width: clamp(11px, 2.9vw, 20px); height: 30px; position: relative; cursor: pointer; color: inherit; }
.tick::before { content: ""; position: absolute; left: 50%; bottom: 3px; width: 1px; height: 9px; margin-left: -.5px; background: currentColor; opacity: .5;
  transition: height .25s var(--ease), opacity .25s, width .25s; }
.tick:hover::before { height: 14px; opacity: .9; }
.tick.on::before { height: 22px; width: 3px; margin-left: -1.5px; opacity: 1; border-radius: 1px; }

.hall-hint { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--wallTop) + var(--wallH) + 10px); text-align: center; font-size: .6rem; opacity: 0;
  pointer-events: none; animation: hint 5.5s 2.4s both; }
@keyframes hint { 0%, 100% { opacity: 0; } 12%, 78% { opacity: .75; } }
.hall.touched .hall-hint { display: none; }

/* walking through the door */
.hall.is-entering .hall-info, .hall.is-entering .hall-ruler, .hall.is-entering .hall-year, .hall.is-entering .hall-hint { opacity: 0; transition: opacity .25s; }
.hall.is-entering .panel.is-far { opacity: 0; transition: opacity .2s; }
.hall.is-entering { cursor: default; }

@media (max-height: 640px), (max-width: 480px) { .hall-info .blurb { display: none; } }
@media (max-width: 480px) { .top nav a:first-child { display: none; } }
.top .tagline { font-style: italic; font-size: .95rem; opacity: .9; }
@media (max-width: 640px) { .top .tagline { display: none; } }

/* below the courtyard */
.about { padding: clamp(64px, 10vw, 130px) clamp(18px, 5vw, 60px); border-top: 10px solid var(--stone); }
.about-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.about h2 { font-size: clamp(2.1rem, 5vw, 3.7rem); letter-spacing: -.005em; }
.about h2 em { font-style: normal; color: var(--red); }
.about .caps { color: var(--red); margin-bottom: 1.2em; display: block; }
.about p + p { margin-top: 1em; }
.about .lead { font-size: 1.18rem; margin-top: 1.3em; }
.about figure { margin: 0; }
.about figure img { width: 100%; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(60, 30, 20, .55), 0 0 0 10px #fff, 0 0 0 11px var(--marble-shade); }
.about figcaption { font-style: italic; color: var(--ink-soft); font-size: .93rem; margin-top: 26px; text-align: center; }
@media (max-width: 820px) { .about-in { grid-template-columns: 1fr; } }

.index { padding: 0 clamp(18px, 5vw, 60px) clamp(70px, 10vw, 120px); }
.index-in { max-width: 1120px; margin: 0 auto; }
.index h2 { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.index ol { list-style: none; margin: 0; padding: 0; }
.index li a { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) auto; gap: 0 18px; align-items: baseline; padding: 15px 4px 13px; text-decoration: none;
  border-bottom: 1px solid rgba(33, 27, 24, .16); transition: background .2s, padding .25s var(--ease); }
.index li a:hover { background: rgba(181, 73, 47, .07); padding-left: 14px; }
.index .yr { font-family: var(--display); font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.index .ti { font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.2; }
.index .ti small { display: block; font: italic 400 .92rem/1.4 var(--text); color: var(--ink-soft); margin-top: 2px; }
.index .st { font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.index .st.deep { color: var(--red); }
@media (max-width: 560px) { .index li a { grid-template-columns: 4.6em minmax(0, 1fr); } .index .st { grid-column: 2; margin-top: 4px; } }
