/* TA Dialogues v4
   Layout: neo-editorial. Text-only hero with a stats row, one navy feature band (TALR),
   a small bento for the platform, square corners throughout.
   Type: Inter Tight for display (weight and tracking carry the contrast), Inter for text.
   Colour: ink on ivory, one bright blue for accent words, orange for actions only. */

:root {
  --ivory: #FBF7EE;
  --paper: #FFFFFF;
  --cream: #F2EBDD;
  --mist: #E3ECF8;
  --sky: #9DBAF0;
  --blue: #063084;
  --accent: #1546B0;
  --midnight: #081A4B;
  --sunrise: #F58A1F;
  --sunrise-hover: #E27A10;
  --ink: #0B1635;
  --ink-soft: #3A4568;
  --slate: #5B6784;
  --on-dark: #F6F2EA;
  --on-dark-soft: #B9C5E3;
  --talr-plum: #4B0F2E;
  --talr-wine: #7A2E47;
  --talr-rust: #B24A3A;
  --talr-brick: #B2423A;
  --talr-orange: #E46A13;
  --talr-blush: #F4C7B8;
  --talr-cream: #F9E7DA;
  --line: rgba(11, 22, 53, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1320px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ivory);
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--sunrise); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--midnight); color: var(--on-dark);
  padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(80px, 10vw, 140px); }

/* Type */
h1, h2, h3 { margin: 0; color: var(--midnight); font-family: var(--display); text-wrap: balance; }
h2 {
  font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hl { color: var(--accent); }

.s-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end; gap: 20px 48px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.s-sub { margin: 0; color: var(--slate); font-size: 1.1rem; max-width: 40ch; justify-self: end; }
@media (max-width: 760px) {
  .s-head { grid-template-columns: 1fr; }
  .s-sub { justify-self: start; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg, a:hover .btn svg { transform: translateX(4px); }
.btn-primary { background: var(--sunrise); color: var(--ink); }
.btn-primary:hover { background: var(--sunrise-hover); }
.btn-outline { border-color: var(--midnight); color: var(--midnight); }
.btn-outline:hover { background: var(--midnight); color: var(--on-dark); }
.btn-sm { padding: 11px 18px; font-size: .95rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--accent); text-decoration: none;
}
.arrow-link svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
a:hover .arrow-link svg, .arrow-link:hover svg { transform: translateX(5px); }

/* Photo placeholders: swap for <img> when photos arrive */
.ph {
  --a: #1B3A7A; --b: #7F9CCB;
  position: relative;
  background:
    radial-gradient(120% 90% at 75% 15%, rgba(255, 236, 205, .32), transparent 55%),
    linear-gradient(155deg, var(--a), var(--b));
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 68% 26%, rgba(255, 255, 255, .2) 0 4%, transparent 5%),
    radial-gradient(circle at 30% 60%, rgba(255, 255, 255, .1) 0 3%, transparent 4%),
    linear-gradient(0deg, rgba(5, 15, 48, .45), transparent 45%);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph-1 { --a: #12306E; --b: #8EA8D6; }
.ph-2 { --a: #3A3446; --b: #C3A27F; }
.ph-3 { --a: #0D2254; --b: #4E78C0; }
.ph-4 { --a: #262B3A; --b: #8A93AB; }
.ph-5 { --a: #43352E; --b: #CFA87F; }
.ph-6 { --a: #18336F; --b: #A9BEE0; }

/* Scroll reveals: only armed when JS runs, and only for things below the first screen */
.reveal-on [data-reveal]:not(.in) { opacity: 0; transform: translateY(28px); }
[data-reveal] {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* Nav: full-width bar, hides on scroll down, returns on scroll up */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .3s var(--ease);
}
.nav.hidden { transform: translateY(-100%); }
.nav.scrolled { box-shadow: 0 8px 24px -20px rgba(5, 15, 48, .5); }
.nav-inner {
  position: relative;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-links a:not(.btn) {
  display: flex; align-items: center; height: 100%;
  padding: 0 16px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.nav-links a:not(.btn) span { position: relative; display: inline-block; }
.nav-links a:not(.btn) span::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px;
  height: 3px; background: var(--sunrise);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:not(.btn):hover span::after,
.nav-links a:not(.btn):focus-visible span::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 12px; display: flex; align-items: center; }
.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line);
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--midnight); transition: transform .3s var(--ease); }
.nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 32px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; height: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; box-shadow: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 16px; }
}

/* Nav: dropdown menus. Underline sits under the label text only, like the plain links. */
.dd { position: relative; height: 100%; display: flex; }
.dd-btn {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 16px; border: 0; background: none; cursor: pointer;
  color: var(--ink); font-weight: 500; font-size: .98rem;
}
.dd-btn span { position: relative; display: inline-block; }
.dd-btn span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 3px; background: var(--sunrise);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.dd-btn svg { width: 15px; height: 15px; flex: none; color: var(--slate); transition: transform .35s var(--ease-out); }
.dd:hover .dd-btn span::after, .dd.open .dd-btn span::after, .dd-btn:focus-visible span::after { transform: scaleX(1); transform-origin: left; }
.dd.open .dd-btn svg { transform: rotate(180deg); }

.dd-panel {
  position: absolute; top: 100%; left: 0; z-index: 5;
  min-width: 340px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgba(5, 15, 48, .45);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .35s var(--ease-out), visibility 0s linear .25s;
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 901px) {
  .dd:hover .dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .dd:hover .dd-btn svg { transform: rotate(180deg); }
}
.nav-links .dd-panel a {
  display: grid; gap: 2px; height: auto;
  padding: 12px 14px;
  color: var(--ink); text-decoration: none;
  transition: background-color .2s var(--ease);
}
.dd-panel a:hover, .dd-panel a:focus-visible { background: var(--ivory); }
.dd-panel strong { font-weight: 600; font-size: .98rem; color: var(--midnight); }
.dd-panel small { font-size: .9rem; color: var(--slate); line-height: 1.4; }
.nav-links .dd-panel a.dd-all { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 4px; }
.dd-all strong { color: var(--accent); }
.dd-all svg { width: 17px; height: 17px; color: var(--accent); transition: transform .35s var(--ease-out); }
.dd-all:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .nav-links { max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .dd { height: auto; flex-direction: column; border-bottom: 1px solid var(--line); }
  .dd-btn { height: auto; padding: 16px 0; justify-content: space-between; font-size: 1.1rem; width: 100%; }
  .dd-btn span::after { display: none; }
  .dd-btn svg { width: 18px; height: 18px; }
  .dd-panel {
    position: static; min-width: 0; padding: 0 0 12px;
    border: 0; box-shadow: none; background: transparent;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .dd.open .dd-panel { display: grid; }
  .nav-links .dd-panel a { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); border-bottom: 0; font-size: 1rem; }
  .nav-links .dd-panel a.dd-all { border-top: 0; margin-top: 0; justify-content: flex-start; gap: 8px; }
  .dd-panel a:hover { background: transparent; border-left-color: var(--sunrise); }
}

/* A dropdown label with its own page (Events): the label is a link, hover or focus opens the menu.
   On touch screens a separate chevron button opens it, so a tap on the label still goes to the page. */
a.dd-btn { text-decoration: none; }
.nav-links a.dd-btn[aria-current] span::after { transform: scaleX(1); transform-origin: left; }
.dd-tog { display: none; }
@media (hover: hover) and (min-width: 901px) {
  .dd:has(:focus-visible) .dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (hover: none) and (min-width: 901px) {
  .dd-link .dd-btn { padding-right: 2px; }
  .dd-link .dd-btn svg { display: none; }
  .dd-tog { display: flex; align-items: center; height: 100%; padding: 0 12px 0 4px; border: 0; background: none; color: var(--slate); cursor: pointer; }
  .dd-tog svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
  .dd.open .dd-tog svg { transform: rotate(180deg); }
}
@media (max-width: 900px) {
  .dd-link { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav-links .dd-link > a.dd-btn { flex: 1; width: auto; border-bottom: 0; }
  .dd-link .dd-btn svg { display: none; }
  .dd-tog { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; color: var(--slate); cursor: pointer; }
  .dd-tog svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
  .dd.open .dd-tog svg { transform: rotate(180deg); }
  .dd-link .dd-panel { flex-basis: 100%; }
}

/* Hero: text only, then the numbers */
.hero {
  --peek: calc(clamp(28px, 3vw, 40px) + clamp(1.3rem, 2.4vw, 2.2rem));
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--nav-h));
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero-main {
  min-height: calc(100vh - env(safe-area-inset-top, 0px) - var(--nav-h) - var(--peek));
  min-height: calc(100svh - env(safe-area-inset-top, 0px) - var(--nav-h) - var(--peek));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(2.9rem, 7.4vw, 7.6rem);
  line-height: .98;
  letter-spacing: -0.05em;
}
.hero h1 .l { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .l > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
.hero .lede {
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  max-width: 48ch; text-wrap: balance;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45;
  color: var(--ink-soft);
  animation: fade 1s var(--ease-out) .5s both;
}
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); gap: 32px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  animation: fade 1s var(--ease-out) .7s both;
}
.stat .n {
  display: block;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  line-height: 1; letter-spacing: -0.05em;
  color: var(--midnight);
  font-variant-numeric: tabular-nums;
}
.stat:first-child .n { color: var(--accent); }
.stat p { margin: 10px 0 0; color: var(--slate); font-size: 1rem; max-width: 24ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Formats */
.talr {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 320px;
  background: var(--talr-plum); color: var(--talr-cream);
  text-decoration: none;
}
.talr-name { padding: clamp(28px, 3.4vw, 44px); display: flex; align-items: flex-start; }
.talr-name h3 {
  font-weight: 700;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  line-height: .88; letter-spacing: -0.055em;
  color: var(--talr-cream);
}
.talr-name h3 .yr { display: block; font-weight: 300; color: var(--talr-orange); }
.talr-copy { padding: clamp(28px, 3.4vw, 44px) clamp(28px, 3.4vw, 44px) clamp(28px, 3.4vw, 44px) 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.talr-copy .sub { margin: 0; font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--talr-cream); }
.talr-copy p { margin: 10px 0 0; color: var(--talr-blush); max-width: 40ch; }
.btn-talr { background: var(--talr-orange); color: var(--talr-plum); }
.btn-talr:hover, a:hover .btn-talr { background: var(--talr-cream); }
.ph-talr { --a: #4B0F2E; --b: #B24A3A; }
.talr-copy .btn { align-self: flex-start; }
.talr-mark { position: relative; overflow: hidden; display: grid; place-items: center; padding: 32px; }
.talr-wedge { position: absolute; right: 0; top: 0; width: 70%; height: 100%; }
.talr-mark .seal10 { width: min(62%, 240px); filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35)); }

/* TA Tech and Roundtables: two bento tiles under the TALR band, 70 / 30 */
.pair {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 12px;
  margin-top: 12px;
}
.pair > a { position: relative; overflow: hidden; text-decoration: none; color: inherit; padding: clamp(24px, 2.6vw, 34px); transition: background-color .35s var(--ease); }
.pair h3 { font-weight: 600; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -0.045em; transition: color .25s var(--ease); }
.pair p { margin: 12px 0 0; color: var(--ink-soft); max-width: 36ch; }
.tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 40px); background: var(--paper); }
.tech-copy, .round { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tech-photo { position: relative; overflow: hidden; background: #000; aspect-ratio: 4 / 3; align-self: center; }
.tech-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.tech:hover .tech-photo img { transform: scale(1.05); }
.round { background: var(--mist); }
.rt { width: 96px; height: 96px; overflow: visible; }
.rt .tbl { fill: none; stroke: var(--midnight); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.rt .seats { fill: var(--midnight); transform-origin: 60px 60px; transition: transform 1.2s var(--ease-out); }
.rt .seats .me { fill: var(--sunrise); }
.round:hover .rt .seats { transform: rotate(45deg); }
.pair a:hover h3 { color: var(--accent); }

@media (max-width: 1000px) {
  .talr { grid-template-columns: 1fr 1fr; }
  .talr-mark { grid-column: 1 / -1; grid-row: 1; padding: 32px 32px 0; justify-items: start; }
  .talr-mark .seal10 { width: 150px; }
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .talr { grid-template-columns: 1fr; }
  .talr-copy { padding-left: clamp(28px, 3.4vw, 44px); padding-top: 0; }
  .tech { grid-template-columns: 1fr; gap: 20px; }
  .tech-photo { order: -1; margin: calc(-1 * clamp(24px, 2.6vw, 34px)) calc(-1 * clamp(24px, 2.6vw, 34px)) 0; }
  .round { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px 20px; }
  .round .rt { width: 72px; height: 72px; grid-row: span 2; }
}

/* Past editions: spacing does the separating, not rules */
.ed-list { display: flex; flex-direction: column; gap: 10px; }
.ed {
  display: grid;
  grid-template-columns: 140px minmax(0, 320px) minmax(0, 1fr) 52px;
  align-items: center; gap: clamp(18px, 3vw, 44px);
  padding: 14px;
  margin-inline: -14px;
  color: inherit; text-decoration: none;
  transition: background-color .35s var(--ease);
}
.ed:hover { background: var(--paper); }
.ed-date .d {
  display: block;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3rem, 4.6vw, 4.4rem); line-height: .9; letter-spacing: -0.05em;
  color: var(--midnight); font-variant-numeric: tabular-nums;
}
.ed-date .m { display: block; margin-top: 10px; font-weight: 500; color: var(--slate); }
.ed-photo { overflow: hidden; aspect-ratio: 4 / 3; }
.ed-img { width: 100%; height: 100%; transition: transform .9s var(--ease-out); }
.ed:hover .ed-img { transform: scale(1.06); }
.ed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-city { font-weight: 500; color: var(--slate); }
.ed-body h3 {
  margin-top: 12px;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -0.04em;
}
.ed-body p { margin: 8px 0 0; color: var(--slate); }
.fmt { display: inline-flex; padding: 5px 11px; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.fmt-talr { background: var(--midnight); color: var(--on-dark); }
.fmt-tech { background: var(--blue); color: var(--on-dark); }
.fmt-round { background: var(--mist); color: var(--blue); }
.fmt-leaders { background: var(--cream); color: var(--midnight); }
.fmt-sample { background: #FDE6D2; color: #8A3E00; }
.ed-arrow {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--midnight);
  transition: background-color .3s var(--ease);
}
.ed-arrow svg { width: 20px; height: 20px; }
a.ed:hover .ed-arrow { background: var(--sunrise); }
.ed-more { display: flex; margin-top: 36px; }

@media (max-width: 860px) {
  .ed { grid-template-columns: 84px minmax(0, 1fr); row-gap: 16px; }
  .ed-photo { grid-column: 1 / -1; grid-row: 1; }
  .ed-arrow { display: none; }
}

/* Marquees (gallery and logo walls) */
.mq { overflow: hidden; }
.track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.gallery { overflow: hidden; }
.gallery .mq + .mq { margin-top: 14px; }
.g-card {
  position: relative; flex: none; margin: 0;
  width: clamp(250px, 26vw, 390px); aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--cream);
}
.g-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.g-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5, 15, 48, .6), transparent 42%); pointer-events: none; }
.g-card:hover img { transform: scale(1.04); }
.g-card figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: .92rem; font-weight: 600; color: var(--on-dark);
}

.walls { overflow: hidden; }
.wall { position: relative; display: flex; flex-direction: column; gap: 14px; }
.wall + .wall { margin-top: clamp(80px, 9vw, 120px); }
.logo {
  flex: none;
  width: 196px; height: 88px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: #8B94AC; font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em;
}
.logo svg { width: 24px; height: 24px; flex: none; }
.logo img { width: auto; height: auto; max-width: 74%; max-height: 58%; object-fit: contain; }
.wall-label {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  pointer-events: none;
}
.wall-label::before {
  content: "";
  position: absolute; inset: -70px -150px;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  background: radial-gradient(closest-side, rgba(251, 247, 238, 1) 40%, rgba(251, 247, 238, .82) 66%, rgba(251, 247, 238, 0) 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
}
.wall-label h2 {
  position: relative;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

/* More than events: bento */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.tile {
  position: relative; overflow: hidden;
  padding: clamp(24px, 2.6vw, 34px);
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--paper);
}
.tile h3 { font-weight: 600; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.02; letter-spacing: -0.04em; }
.tile p { margin: 10px 0 0; color: var(--ink-soft); max-width: 34ch; }

.t-news { grid-row: span 2; background: var(--midnight); color: var(--on-dark); }
.times-logo { width: min(100%, 340px); height: auto; margin: -8px 0 18px -6px; }
.t-news h3 { color: var(--on-dark); font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.05em; }
.t-news h3 .hl { color: var(--sky); }
.t-news p { color: var(--on-dark-soft); font-size: 1.08rem; }
.nl-form { display: flex; background: var(--paper); padding: 5px; transition: box-shadow .2s var(--ease); }
.nl-form:focus-within { box-shadow: 0 0 0 3px var(--sunrise); }
.nl-form input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  padding: 12px 14px; font: inherit; color: var(--ink);
}
.nl-form input::placeholder { color: #8B94AC; }
.nl-msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; color: var(--on-dark); }

.t-pod { background: var(--blue); }
.t-pod h3 { color: var(--on-dark); }
.t-pod p { color: var(--on-dark-soft); }
.wave { display: flex; align-items: center; gap: 4px; height: 48px; }
.wave span {
  width: 4px; background: var(--sky);
  height: var(--h, 40%);
  animation: wave 2.2s ease-in-out infinite; animation-delay: var(--dl, 0s);
}
@keyframes wave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

.spot { width: 128px; height: 80px; display: block; overflow: visible; }
.spot .beam { transform-box: view-box; transform-origin: 64px 6px; animation: sway 5.5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

.t-ins { background: var(--mist); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.bars span {
  flex: 1; max-width: 22px; height: var(--h);
  background: var(--blue);
  transform-origin: bottom;
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--dl, 0ms);
}
.bars span:last-child { background: var(--sunrise); }
.reveal-on .t-ins:not(.in) .bars span { transform: scaleY(.15); }

.t-learn { background: var(--cream); }
.steps { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--midnight); }
.steps i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.steps i::after { content: ""; position: absolute; inset: 0; background: var(--midnight); transform-origin: left; transition: transform 1.2s var(--ease-out) .3s; }
.reveal-on .t-learn:not(.in) .steps i::after { transform: scaleX(0); }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-news { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 220px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn { justify-content: center; }
}

/* Footer */
.footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--midnight);
  color: var(--on-dark-soft);
  padding-block: clamp(56px, 7vw, 96px) calc(30px + env(safe-area-inset-bottom, 0px));
}
.f-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.f-logo img { width: min(100%, 380px); height: auto; }
.f-top h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--on-dark); margin-bottom: 16px; letter-spacing: 0; }
.f-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.f-top a { color: var(--on-dark-soft); text-decoration: none; }
.f-top a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.f-bottom {
  margin-top: clamp(56px, 7vw, 88px); padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: .95rem;
}
@media (max-width: 760px) {
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-top > :first-child { grid-column: 1 / -1; }
}

/* Past editions page */
.page-head { padding-top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + clamp(48px, 6vw, 96px)); }
.page-head h1 {
  font-weight: 600;
  font-size: clamp(2.9rem, 7vw, 6.6rem); line-height: .98; letter-spacing: -0.05em;
}
.page-head .intro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px;
  margin-top: clamp(24px, 3vw, 40px);
}
.page-head .intro p { margin: 0; max-width: 46ch; color: var(--ink-soft); font-size: 1.15rem; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-weight: 600; color: var(--accent); text-decoration: none; }
.back svg { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .35s var(--ease-out); }
.back:hover svg { transform: rotate(180deg) translateX(4px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 10px 16px; cursor: pointer;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-weight: 600; font-size: .95rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--midnight); }
.chip[aria-pressed="true"] { background: var(--midnight); color: var(--on-dark); border-color: var(--midnight); }
.year + .year { margin-top: clamp(56px, 7vw, 90px); }
.year > h2 { margin-bottom: 20px; }
.empty { color: var(--slate); font-size: 1.1rem; }
@media (max-width: 760px) { .page-head .intro { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Testimonials */
.quotes { max-width: 1120px; }
.q-stage { min-height: clamp(230px, 19vw, 290px); display: flex; align-items: flex-start; }
.q { margin: 0; animation: qin .7s var(--ease-out) both; }
@keyframes qin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.q blockquote {
  margin: 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 3.3vw, 2.9rem);
  line-height: 1.14; letter-spacing: -0.035em;
  color: var(--midnight);
  text-wrap: balance;
}
.q blockquote::before { content: "\201C"; color: var(--accent); margin-right: .04em; }
.q blockquote::after { content: "\201D"; color: var(--accent); }
.q.reported blockquote::before, .q.reported blockquote::after { content: none; }
.q figcaption { display: flex; align-items: center; gap: 16px; margin-top: clamp(28px, 3vw, 40px); }
.q figcaption img, .q-mono { width: 56px; height: 56px; flex: none; object-fit: cover; }
.q-mono { display: grid; place-items: center; background: var(--midnight); color: var(--on-dark); font-family: var(--display); font-weight: 600; font-size: 1.4rem; }
.q figcaption strong { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--midnight); }
.q figcaption span > span { display: block; color: var(--slate); font-size: .98rem; }
.q-controls { display: flex; align-items: center; gap: 16px; margin-top: clamp(28px, 3vw, 44px); }
.q-count { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--midnight); min-width: 64px; }
.q-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.q-bar i { position: absolute; inset: 0; background: var(--midnight); transform: scaleX(0); transform-origin: left; }
.q-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--midnight); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.q-btn svg { width: 20px; height: 20px; }
.q-btn:hover { background: var(--midnight); border-color: var(--midnight); color: var(--on-dark); }

/* ===== Phones: denser photo wall, readable logo walls, a real bento ===== */
@media (max-width: 640px) {
  .g-card { width: 44vw; }
  .track { gap: 8px; }
  .gallery .mq + .mq { margin-top: 8px; }
  .g-card figcaption { left: 10px; bottom: 8px; font-size: .76rem; }

  .wall { gap: 8px; }
  .wall + .wall { margin-top: 56px; }
  .logo { width: 104px; height: 48px; }
  .logo img { max-width: 76%; max-height: 60%; }
  .wall-label { position: static; transform: none; order: -1; margin: 0 0 10px; }
  .wall-label::before { display: none; }
  .wall-label h2 { font-size: 1.9rem; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .t-news { grid-column: 1 / -1; }
  .tile { min-height: 0; padding: 18px 16px 20px; gap: 18px; justify-content: flex-start; }
  .t-news { padding: 24px 20px; }
  .tile:not(.t-news) h3 { font-size: 1.3rem; }
  .tile:not(.t-news) p { font-size: .86rem; line-height: 1.5; margin-top: 6px; }
  .wave { height: 36px; gap: 3px; }
  .wave span { width: 3px; }
  .spot { width: 96px; height: 60px; }
  .bars { height: 44px; gap: 6px; }
  .steps { font-size: .86rem; gap: 6px; }
}

/* Wall headings sit above the walls */
.wall-head { margin-bottom: clamp(24px, 3vw, 40px); }
/* Two light logo sections in a row share one gap. A banded section (on-champ) keeps its own top padding. */
.walls + .walls:not(.on-champ) { padding-top: 0; }
.s-head .s-cta { justify-self: end; }
@media (max-width: 760px) { .s-head .s-cta { justify-self: start; } }

/* Footer: logo and address, then four menus */
.mfoot .f-top { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.f-contact { margin-top: 24px; font-style: normal; line-height: 1.7; font-size: .98rem; }
@media (max-width: 1080px) { .mfoot .f-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mfoot .f-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .mfoot .f-top { grid-template-columns: 1fr 1fr; } }

/* Privacy policy and other legal pages: a contents list beside long-form text */
.legal-date { margin: 0; font-weight: 600; color: var(--slate); align-self: end; }
.legal-sec { padding-top: clamp(40px, 5vw, 72px); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-soft); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.legal-toc a::before { content: counter(toc); min-width: 18px; font-weight: 600; color: var(--slate); }
.legal-toc a:hover { color: var(--accent); }
.legal { max-width: 72ch; color: var(--ink-soft); }
.legal section { scroll-margin-top: calc(var(--nav-h) + 24px); padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.legal section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 18px; }
.legal h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; color: var(--midnight); margin: 28px 0 8px; }
.legal p { margin: 0 0 14px; line-height: 1.7; }
.legal strong { color: var(--midnight); font-weight: 600; }
.legal a { color: var(--accent); }
.legal ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; }
.legal dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; margin: 0 0 8px; line-height: 1.65; }
.legal dt { font-weight: 600; color: var(--midnight); }
.legal dd { margin: 0; }
.legal .callout { padding: 18px 20px; background: var(--paper); border-left: 3px solid var(--sunrise); }
.legal .table-wrap { overflow-x: auto; margin: 6px 0 0; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal thead th { font-weight: 600; color: var(--midnight); background: var(--paper); }
.legal tbody th { font-weight: 600; color: var(--midnight); }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; padding: 18px 20px; background: var(--paper); }
}
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 8px; } }

/* TALR 10th edition seal: the centre stays still, the lettered ring sways back and forth.
   A full turn would put one of the two "TA Leadership Retreat" lines upside down, so it never goes past readable. No hover effect. */
.seal10 { position: relative; display: block; aspect-ratio: 1; flex: none; }
.seal10 img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.seal10 .s-ring { animation: sealSway 9s ease-in-out infinite alternate; will-change: transform; }
@keyframes sealSway { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .seal10 .s-ring { animation: none; } }
