/* Tender Possibilities */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
  --white: #fafafa;
  --black: #000;
  --accent: #dcdcdc;
  --gutter: 3vw;
  --max: 1800px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--black); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Type scale: grows with the viewport, capped at the max page width */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: min(calc(5 * 1.2vw + 1rem), max(calc(5 * 0.012 * 1800px + 1rem), 6rem)); }
h2 { font-size: min(calc(2.2 * 1.2vw + 1rem), max(calc(2.2 * 0.012 * 1800px + 1rem), 3.2rem)); }
h3 { font-size: min(calc(1 * 1.2vw + 1rem), max(calc(1 * 0.012 * 1800px + 1rem), 2rem)); }
h4 { font-size: min(calc(0.2 * 1.2vw + 1rem), max(calc(0.2 * 0.012 * 1800px + 1rem), 1.2rem)); }

p, li { font-size: min(calc(0.6 * 1.2vw + 1rem), max(calc(0.6 * 0.012 * 1800px + 1rem), 1.6rem)); }
p { margin: 0 0 1em; }
.sqsrte-large { font-size: min(calc(1 * 1.2vw + 1rem), max(calc(1 * 0.012 * 1800px + 1rem), 2rem)); }
.sqsrte-small { font-size: min(calc(0.2 * 1.2vw + 1rem), max(calc(0.2 * 0.012 * 1800px + 1rem), 1.2rem)); }
strong { font-weight: 700; }
.text a, .event-body a, .event-meta a { text-underline-offset: 0.15em; }

@media (max-width: 767px) {
  p, li, .event-meta li { font-size: calc(1rem + 1.25vw); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  color: var(--black);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vw var(--gutter);
  transition: padding 0.3s var(--ease);
}
.site-header.shrink .header-inner { padding-top: 1.5vw; padding-bottom: 1.5vw; }
.site-title {
  font-size: calc(0.2 * 1.2vw + 1rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
}
.site-nav ul { display: flex; gap: 1.6vw; align-items: baseline; }
.site-nav li { position: relative; }
.site-nav a, .site-nav .folder-toggle {
  font-size: min(calc(0.2 * 1.2vw + 1rem), 1.2rem);
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1.2;
}
.site-nav .is-current > a, .site-nav .is-current > .folder-toggle {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.site-nav a:hover, .site-nav .folder-toggle:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.site-nav .folder-list, .mobile-menu .folder-list { display: none; }
.site-nav .folder-list {
  position: absolute;
  top: 100%;
  left: -0.8em;
  min-width: 7em;
  padding: 0.8em;
  background: var(--white);
  flex-direction: column;
  gap: 0.5em;
  z-index: 5;
}
.site-nav .has-folder:hover .folder-list,
.site-nav .has-folder:focus-within .folder-list,
.site-nav .has-folder.open .folder-list { display: flex; }
.menu-toggle { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--white);
  padding: 30vw var(--gutter) 2rem;
  overflow-y: auto;
}
.mobile-menu li { margin-bottom: 0.4em; }
.mobile-menu a, .mobile-menu .folder-toggle {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu .folder-list { padding: 0.2em 0 0.4em 1em; }
.mobile-menu .folder-list a { font-size: 1.8rem; }
.mobile-menu .open > .folder-list { display: block; }

@media (max-width: 767px) {
  .header-inner { align-items: center; padding: 9vw 6vw; }
  .site-header.shrink .header-inner { padding-top: min(6vw, 2vmax); padding-bottom: min(6vw, 2vmax); }
  .site-title { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
  .site-nav { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 38px;
    padding: 8px 0;
    z-index: 60;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    border-radius: 0;
    color: #000;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 100%; height: 2px; flex-shrink: 0; background: #000; transition: transform 0.3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(12deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-12deg); }
}

/* Sections */
.section { position: relative; width: 100%; display: flex; align-items: center; overflow: hidden; }
.section-inner { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }
.content { width: 100%; max-width: var(--max); }
@media (min-width: 768px) {
  .w-medium .content { width: 75%; }
}
.h-small { min-height: 33vh; }
.h-medium { min-height: 66vh; }
.h-large { min-height: 100vh; }
.h-small > .section-inner { padding: 3.3vmax 0; }
.h-medium > .section-inner { padding: 6.6vmax 0; }
.h-large > .section-inner { padding: 10vmax 0; }
.h-custom > .section-inner { padding: 0; }

.theme-bright-inverse, .theme-black { background: var(--black); color: var(--white); }
.theme-bright-inverse h1, .theme-bright-inverse h2, .theme-bright-inverse h3, .theme-black h1, .theme-black h2, .theme-black h3 { color: var(--accent); }
.theme-white, .theme-white-bold, .theme-bright { background: var(--white); color: var(--black); }

.section-bg { position: absolute; inset: 0; z-index: 0; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; }

/* Fluid grid: 24 columns on desktop, 8 on phones, same as the old layout */
.grid {
  --edge: calc(6vw - var(--gap));
  --cell: calc((var(--max) - var(--gap) * 7) / 8);
  display: grid;
  position: relative;
  row-gap: var(--gap);
  column-gap: var(--gap);
  grid-template-rows: repeat(var(--rows-m), minmax(24px, auto));
  grid-template-columns: minmax(var(--edge), 1fr) repeat(8, minmax(0, var(--cell))) minmax(var(--edge), 1fr);
  overflow-x: clip;
}
@media (min-width: 768px) {
  .grid {
    --edge: calc(var(--gutter) - var(--gap));
    --cell: calc((var(--max) - var(--gap) * 23) / 24);
    --container: min(var(--max), calc(100vw - var(--gutter) * 2));
    grid-template-rows: repeat(var(--rows-d), minmax(calc(var(--container) * var(--row-scale, 0.0215)), auto));
    grid-template-columns: minmax(var(--edge), 1fr) repeat(24, minmax(0, var(--cell))) minmax(var(--edge), 1fr);
  }
}
.block {
  grid-area: var(--area-m);
  display: flex;
  flex-direction: column;
  justify-content: var(--v);
  align-items: stretch;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.block-shape { z-index: 0; }
@media (min-width: 768px) { .block { grid-area: var(--area-d); } }
.block-image, .block-shape { align-items: stretch; }
.block .text { width: 100%; }
.block .img { width: 100%; height: 100%; }
.block .img img { width: 100%; height: 100%; object-fit: cover; }
.block-image > a { display: block; height: 100%; }
.block .text h1, .block .text h2, .block .text h3 { margin-bottom: 0.2em; }
.text .sqsrte-scaled-text-container { width: 100%; }
.text .sqsrte-scaled-text { display: inline-block; white-space: nowrap; line-height: 1; }
.text .sqsrte-scaled-text h1 { font-size: inherit; margin: 0; line-height: 1; }

/* Hero text on pages without a grid */
.content > .text { padding: 0 var(--gutter); }
.content > .text h1, .content > .text h2 { text-align: center; }

/* Team accordions */
.accordion { width: 100%; }
.accordion li { border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.accordion-title {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1px 0;
  font-family: var(--serif);
  font-size: min(calc(0.2 * 1.2vw + 1rem), 1.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: left;
}
.plus { position: relative; width: 24px; height: 24px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; transition: transform 0.3s var(--ease); }
.plus::before { left: 0; right: 0; top: 50%; height: 1px; }
.plus::after { top: 0; bottom: 0; left: 50%; width: 1px; }
[aria-expanded="true"] .plus::after { transform: scaleY(0); }
.accordion-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.accordion-body > div { overflow: hidden; }
.accordion-body p { font-size: min(calc(0.2 * 1.2vw + 1rem), 1.2rem); margin: 0; padding-bottom: 15px; }
.accordion-title[aria-expanded="true"] + .accordion-body { grid-template-rows: 1fr; }

.shape { width: 100%; height: 100%; display: flex; justify-content: center; filter: drop-shadow(0 0 2px #dcdcdc); }
.shape::before { content: ""; width: 100%; height: 100%; max-width: 344px; background: var(--black); border-radius: 50%; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7em 1.5em;
  border: 1px solid currentColor;
  border-radius: 25px;
  background: none;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--black); color: var(--white); }
.theme-bright-inverse .btn:hover, .theme-black .btn:hover { background: var(--white); color: var(--black); }

/* Events */
.event-list-section { display: block; }
.event-list-section .content { padding: 0 var(--gutter); }
.event { display: grid; grid-template-columns: 35% 1fr; column-gap: 2.7%; padding: 3.3vmax 0; }
.event-thumb { display: block; align-self: start; }
.event-thumb img { width: 100%; height: auto; }
.event-title { font-size: min(calc(0.6 * 1.2vw + 1rem), 2rem); font-weight: 500; margin-bottom: 0.4em; }
.event-title a { text-decoration: none; }
.event-meta { margin-bottom: 1em; }
.event-meta li { font-size: min(calc(0.6 * 1.2vw + 1rem), max(calc(0.6 * 0.012 * 1800px + 1rem), 1.6rem)); }
.event-body p { max-width: none; }
.event-body img { display: inline-block; max-height: 4rem; width: auto; }
@media (max-width: 767px) {
  .event { grid-template-columns: 1fr; row-gap: 1.2rem; padding: 2rem 0; }
}

.event-page .content { padding: 0 var(--gutter); }
.event-page .section-inner { padding: 6.6vmax 0; }
.back-link a { text-decoration: none; font-size: min(calc(0.6 * 1.2vw + 1rem), 1.6rem); }
.event-layout { display: grid; grid-template-columns: 26% 1fr; column-gap: 7.5%; margin-top: 3rem; }
.event-side .event-title { font-size: min(calc(1 * 1.2vw + 1rem), 2rem); font-weight: 500; }
.event-nav { display: flex; justify-content: space-between; gap: 2rem; margin-top: 4rem; }
.event-nav a { display: flex; align-items: center; gap: 1rem; text-decoration: none; font-family: var(--serif); font-size: min(calc(1 * 1.2vw + 1rem), 2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.event-nav small { display: block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0; margin-bottom: 0.4rem; }
.event-nav .next { margin-left: auto; text-align: right; }
.event-nav .arrow { font-family: var(--sans); font-size: 2.4rem; font-weight: 300; }
@media (max-width: 767px) {
  .event-layout { grid-template-columns: 1fr; row-gap: 1.5rem; }
}

/* Past events gallery */
.gallery-section { display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; padding: 11px var(--gutter) 11px; }
.gallery-grid li { background: var(--white); }
.gallery-grid a { display: block; }
.gallery-grid img { width: 100%; height: auto; }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Newsletter + contact */
.newsletter-note { text-align: center; width: 100%; }
.newsletter-note h2 { font-size: min(calc(1 * 1.2vw + 1rem), 2rem); }
.contact-form { width: 100%; }
.contact-form label, .contact-form legend { display: block; font-size: 0.9rem; margin-bottom: 0.9rem; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form small { opacity: 0.6; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  padding: 10px;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 1rem;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.contact-form .btn { float: right; color: var(--white); }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 4rem var(--gutter); }
.footer-links { display: flex; justify-content: center; gap: 1rem; }
.footer-links a { display: block; opacity: 0.9; }
.footer-links a:hover { opacity: 1; }

/* Scroll-in animation */
.js .block .text > *, .js .event-body > *, .js .event-meta, .js .event-title, .js .event-nav {
  opacity: 0;
  transform: translateY(2vh);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .is-in { opacity: 1 !important; transform: none !important; }
.js .block .img { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); transition: clip-path 0.65s var(--ease); }
.js .block .img.reveal-left { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.js .block .img.reveal-right { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.js .block .img.is-in { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
@media (prefers-reduced-motion: reduce) {
  .js .block .text > *, .js .event-body > *, .js .event-meta, .js .event-title, .js .event-nav { opacity: 1; transform: none; transition: none; }
  .js .block .img { clip-path: none; transition: none; }
}
