/* The Circle TLV - static site styles */

@font-face { font-family: "Circle Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Circle Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Circle Serif"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); }

:root {
  --charcoal: #2c2c2b;
  --white: #ffffff;
  --serif: "Circle Serif", "Times New Roman", Georgia, serif;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--charcoal); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 6px 10px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: var(--charcoal); z-index: 50; display: flex; align-items: center; justify-content: center; transition: opacity .4s ease; }
.site-header.is-hidden { opacity: 0; pointer-events: none; }
.home .site-header { background: rgba(44,44,43,.45); }
.logo { position: absolute; left: 36px; top: 50%; transform: translateY(-50%); display: block; width: 34px; height: 34px; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--white); text-decoration: none; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom: 1px solid rgba(255,255,255,.7); }
.nav-toggle { display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 24px; height: 1px; background: #fff; position: absolute; left: 10px; }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

main { padding-top: var(--header-h); min-height: 100vh; min-height: 100svh; }
.home main { padding-top: 0; }

/* ---------- Home ---------- */
.hero-home { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: #555 url("../images/home-hero.jpg") center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-home::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); }
.hero-home .inner { position: relative; z-index: 1; padding: 0 20px; }
.hero-home h1 { margin: 0; font-weight: 400; font-size: clamp(38px, 5.5vw, 66px); letter-spacing: .03em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.85); }
.hero-home .tagline { margin: 14px 0 0; font-size: clamp(9px, 3.1vw, 15px); letter-spacing: .28em; text-transform: uppercase; display: flex; gap: 2.2em; justify-content: center; flex-wrap: nowrap; white-space: nowrap; }

/* ---------- About ---------- */
.hero-about { position: relative; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 460px; background: #777 url("../images/about-hero.jpg") center/cover no-repeat; display: flex; align-items: center; }
.hero-about .box { margin-left: clamp(20px, 19vw, 290px); background: rgba(44,44,43,.82); color: var(--white); padding: 28px 30px 30px; max-width: 340px; }
.hero-about h1 { margin: 0 0 18px; font-weight: 400; font-size: 40px; line-height: 1.15; }
.hero-about p { margin: 0; font-size: 24px; line-height: 1.3; }
.scroll-down { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 40px; height: 40px; border: 1px solid var(--charcoal); border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; text-decoration: none; }
.scroll-down svg { width: 16px; height: 16px; }
.tower { position: relative; background: #3a3a3a; }
.tower-bg { position: absolute; inset: 0; }
.tower-img { position: sticky; top: 0; height: 100vh; height: 100svh; background: url("../images/about-building.jpg") center 0 / cover no-repeat; }
.about-sec { position: relative; z-index: 1; display: flex; }
.about-sec .panel { width: 40%; min-width: 420px; background: var(--white); padding: 100px 66px 110px; opacity: 0; transition: opacity 1.4s ease; }
.about-sec .panel.right { margin-left: auto; }
.about-sec + .about-sec .panel { margin-top: 0; }
.about-sec .panel.in { opacity: 1; }
.about-sec h2 { font-weight: 400; font-size: 40px; line-height: 1.2; margin: 0 0 56px; }
.about-sec p { font-size: 20px; line-height: 28px; margin: 0 0 28px; }
.about-sec p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .about-sec .panel { opacity: 1; transition: none; } }

/* ---------- Experts ---------- */
.experts { padding: calc(var(--header-h) + 90px) 20px 90px; }
.experts-wrap { max-width: 1009px; margin: 0 auto; }
.experts-head { margin: 0 0 58px 46px; font-size: 26px; line-height: 1.25; min-height: 66px; }
.experts-head strong { display: block; font-weight: 700; font-size: 30px; }
.experts-head .typed { display: block; min-height: 1.25em; white-space: nowrap; }
.experts-head .caret { display: inline-block; width: 1px; height: .95em; background: var(--charcoal); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.slider { position: relative; aspect-ratio: 1.4142; background: var(--charcoal); box-shadow: 0 1px 3px rgba(0,0,0,.5); overflow: hidden; outline: none; }
.slide { position: absolute; inset: 0; transform: translateX(100%); visibility: hidden; }
.slide.active { transform: translateX(0); visibility: visible; }
.slide.moving { visibility: visible; transition: transform .9s cubic-bezier(.65,0,.35,1); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-btn { opacity: 0; transition: opacity .3s ease; }
.slider:hover .slide-btn, .slider:focus-visible .slide-btn { opacity: 1; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 70px; background: none; border: 0; color: rgba(255,255,255,.75); cursor: pointer; z-index: 2; padding: 12px; }
.slide-btn:hover { color: #fff; }
.slide-btn svg { width: 22px; height: 44px; }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slide-caption { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 9px 16px 10px; background: rgba(44,44,43,.6); color: #fff; transition: opacity .3s ease; }
.slide-caption.fading { opacity: 0; }
.slide-caption .name { margin: 0; font-size: 19px; line-height: 1.3; }
.slide-caption .field { margin: 1px 0 0; font-size: 13px; }
.quotes { position: relative; width: 100%; margin: 34px auto 0; min-height: 205px; background: var(--charcoal); color: #fff; display: flex; align-items: center; }
.quote-stage { position: relative; flex: 1; align-self: stretch; }
.quote { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; font-size: 22px; line-height: 1.5; text-wrap: balance; opacity: 0; transition: opacity .8s ease; }
.quote { text-align: center; }
.quote.active { opacity: 1; }
.q-btn { flex: none; width: 54px; height: 60px; background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; }
.q-btn:hover { color: #fff; }
.q-btn svg { width: 8px; height: 14px; }

/* ---------- Members (login) ---------- */
.dark-page { background: var(--charcoal); color: var(--white); }
.login-wrap { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.login-close { position: absolute; top: 12vh; right: calc(50% - 300px); width: 40px; height: 40px; display: grid; place-items: center; }
.login-close svg { width: 30px; height: 30px; stroke: #fff; }
.login-box { background: var(--white); color: var(--charcoal); width: min(440px, 100%); padding: 36px 42px 44px; text-align: center; }
.login-box h1 { margin: 0 0 6px; font-weight: 400; font-size: 32px; }
.login-box .sub a { font-size: 15px; }
.login-box form { margin-top: 26px; text-align: left; }
.field-line { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--charcoal); background: transparent; font: inherit; font-size: 15px; padding: 10px 0 6px; margin-bottom: 14px; color: var(--charcoal); border-radius: 0; }
.field-line:focus { outline: none; border-bottom-width: 2px; }
.btn-dark { display: block; width: 100%; border: 0; background: var(--charcoal); color: #fff; font: inherit; font-size: 15px; padding: 14px; margin-top: 22px; cursor: pointer; }
.btn-dark:hover { background: #000; }
.login-msg { margin: 16px 0 0; font-size: 15px; text-align: center; min-height: 1.2em; }

/* ---------- Contact ---------- */
.contact { min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 40px) 24px 40px; display: flex; align-items: center; }
.contact-grid { width: 100%; max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact h1 { margin: 0 0 40px; font-weight: 400; font-size: clamp(48px, 6vw, 76px); letter-spacing: .02em; line-height: 1.1; }
.contact h1 em { font-style: italic; }
.contact .lead { font-size: 15px; line-height: 1.35; margin: 0 0 28px; }
.contact form { max-width: 380px; }
.contact input, .contact textarea { display: block; width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; font: inherit; font-size: 13px; padding: 8px 10px; margin-bottom: 8px; border-radius: 0; }
.contact textarea { height: 120px; resize: vertical; }
.contact input::placeholder, .contact textarea::placeholder { color: rgba(255,255,255,.9); }
.contact input:focus, .contact textarea:focus { outline: none; border-color: #fff; }
.contact .btn-light { display: block; width: 100%; background: transparent; border: 1px solid #fff; color: #fff; font: inherit; font-size: 14px; padding: 11px; margin-top: 12px; cursor: pointer; }
.contact .btn-light:hover { background: #fff; color: var(--charcoal); }
.form-msg { font-size: 15px; margin: 14px 0 0; min-height: 1.3em; }
.contact-art { justify-self: end; width: min(560px, 100%); }
.hp { position: absolute; left: -9999px; }

/* ---------- Events ---------- */
.events { background: var(--charcoal); color: var(--charcoal); min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 50px) 20px 100px; }
.event-tabs { display: flex; gap: 26px; justify-content: center; margin: 0 0 40px; }
.event-tabs[hidden] { display: none; }
.event-tabs button { background: none; border: 0; border-bottom: 1px solid transparent; color: #fff; font: inherit; font-size: 16px; padding: 4px 0; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
.event-tabs button[aria-pressed="true"] { border-bottom-color: #fff; }
.events-intro { max-width: 582px; margin: 0 auto 44px; color: #fff; font-size: 19px; line-height: 1.45; text-align: center; }
.events-intro a { color: #fff; }
.event-list { display: flex; flex-direction: column; align-items: center; gap: 44px; max-width: 1240px; margin: 0 auto; }
.layout-scroll .event-list { flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 28px; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 calc((100vw - min(1240px, 100vw - 40px)) / 2); padding: 0 calc((100vw - min(1240px, 100vw - 40px)) / 2) 18px; margin: 0 -20px; scrollbar-width: none; }
.layout-scroll .event-list::-webkit-scrollbar { display: none; }
.layout-scroll .event-card { flex: none; width: min(400px, 82vw); scroll-snap-align: start; }
.scroll-dots { display: none; justify-content: center; gap: 10px; padding-top: 14px; }
.scroll-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: transparent; cursor: pointer; }
.scroll-dots button[aria-current="true"] { background: #fff; }
.scroll-nav { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.scroll-nav[hidden] { display: none; }
.scroll-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.scroll-nav button:hover { background: rgba(255,255,255,.12); }
.scroll-nav button:disabled { opacity: .3; cursor: default; }
.scroll-nav svg { width: 9px; height: 16px; }
.layout-grid .event-list { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 32px; }
.layout-grid .event-card { width: 370px; }
.event-card { position: relative; background: var(--white); width: 582px; max-width: 100%; display: flex; flex-direction: column; }
.event-card .poster { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #bbb; }
.event-card.no-image .poster { display: none; }
.event-card .body { padding: 20px 28px 26px; text-align: center; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card h2 { margin: 0; font-weight: 400; font-size: 24px; line-height: 1.25; }
.event-card h2 a { text-decoration: none; }
.event-card .meta { font-size: 15px; margin: 0; }
.event-card .summary { font-size: 16px; line-height: 1.35; margin: 6px 0 0; text-align: left; }
.event-card .actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-outline { display: inline-block; border: 1px solid var(--charcoal); color: var(--charcoal); background: transparent; font: inherit; font-size: 14px; padding: 8px 18px; text-decoration: none; }
a.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-outline.disabled { opacity: .55; cursor: default; }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(44,44,43,.9); color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }
.event-card.no-image .tag { position: static; align-self: center; margin-top: 18px; }
.layout-list .event-card { width: 100%; max-width: 900px; flex-direction: row; }
.layout-list .event-card .poster { width: 240px; aspect-ratio: 3 / 4; flex: none; }
.layout-list .event-card .body { text-align: left; align-items: flex-start; padding: 24px 30px; }
.layout-list .event-card .actions { justify-content: flex-start; }
.layout-list .event-card.no-image .tag { align-self: flex-start; margin-top: 0; }
.empty-note { color: #fff; text-align: center; }

/* ---------- Event detail ---------- */
.event-detail { max-width: 860px; margin: 0 auto; padding: 60px 24px 110px; }
.event-detail h1 { font-weight: 400; font-size: 50px; line-height: 1.2; text-align: center; margin: 0 0 40px; }
.event-detail .subtitle { text-align: center; font-size: 22px; margin: -24px 0 34px; }
.event-detail .reg { text-align: center; font-size: 20px; line-height: 1.3; margin: 0 0 40px; }
.event-detail .reg a { display: inline-block; }
.event-detail .reg .btn-dark { display: inline-block; width: auto; padding: 12px 34px; text-decoration: none; margin-top: 8px; }
.event-detail .detail-img { width: min(560px, 100%); margin: 0 auto 50px; }
.event-detail .tag-inline { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--charcoal); padding: 5px 10px; margin-bottom: 20px; }
.event-detail .tag-wrap { text-align: center; }
.event-detail h2 { font-weight: 400; font-size: 30px; margin: 40px 0 14px; }
.event-detail p { font-size: 18px; line-height: 1.45; margin: 0 0 16px; }
.event-detail .collapsed { display: none; }
.event-detail .toggle { background: none; border: 0; font: inherit; font-size: 20px; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 12px; }


/* ---------- Desktop: fit Experts and Events in one screen ---------- */
@media (min-width: 901px) {
  .experts { min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 36px) 20px 36px; display: flex; flex-direction: column; justify-content: center; }
  .experts-wrap { width: 100%; max-width: max(440px, min(1009px, calc((100vh - 420px) * 1.4142))); max-width: max(440px, min(1009px, calc((100svh - 420px) * 1.4142))); }
  .experts-head { margin: 0 0 30px 2px; min-height: 0; font-size: 22px; line-height: 1.2; }
  .experts-head strong { font-size: 26px; }
  .slide-caption { right: 0; padding: 12px 22px 13px; background: rgba(44,44,43,.62); }
  .slide-caption .name { font-size: 20px; }
  .slide-caption .field { font-size: 14px; margin-top: 2px; letter-spacing: .01em; }
  .quotes { margin-top: 30px; min-height: 128px; }
  .quote { font-size: 17px; }

  .events.layout-scroll { display: flex; flex-direction: column; justify-content: center; height: 100vh; height: 100svh; min-height: 560px; padding: calc(var(--header-h) + 28px) 20px 28px; }
  .layout-scroll .event-list { flex: 1 1 auto; min-height: 0; max-height: 690px; padding-bottom: 0; }
  .layout-scroll .event-card .poster { aspect-ratio: auto; flex: 1; min-height: 160px; height: auto; }
  .layout-scroll .event-card .body { flex: none; }
  .scroll-nav { margin-top: 22px; }
}

/* ---------- Responsive ---------- */
@media (hover: none) { .slide-btn { opacity: 1; } }
@media (max-width: 900px) {
  .nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--charcoal); flex-direction: column; gap: 0; padding: 10px 0 20px; align-items: center; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 14px 0; font-size: 17px; }
  .nav-toggle { display: block; }
  .home .nav { background: rgba(44,44,43,.95); }
  .logo { left: 20px; }
  .hero-about .box { margin-left: 20px; margin-right: 20px; }
  .about-sec { padding-top: 55vh; }
  .tower .about-sec:first-of-type { padding-top: 0; }
  .tower-img { background-size: auto 175vh; background-position-x: center; }
  .about-sec .panel, .about-sec .panel.right { width: 100%; min-width: 0; padding: 44px 24px; }
  .about-sec h2 { font-size: 26px; margin-bottom: 22px; }
  .about-sec p { font-size: 16px; line-height: 24px; margin-bottom: 18px; }
  .about-sec .panel, .about-sec .panel.right { padding: 36px 22px; }
  .hero-about .box { padding: 22px 22px 24px; max-width: 300px; }
  .hero-about h1 { font-size: 30px; margin-bottom: 12px; }
  .hero-about p { font-size: 19px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-art { justify-self: center; margin-top: 30px; max-width: 360px; }
  .login-close { right: 20px; top: 24px; }
  .experts { padding-top: calc(var(--header-h) + 40px); }
  .experts-head { margin: 0 0 30px 4px; font-size: 21px; }
  .experts-head strong { font-size: 24px; }
  .quotes { min-height: 0; }
  .quote-stage { min-height: 150px; }
  .quote { font-size: 14px; line-height: 1.45; }
  .q-btn { width: 40px; }
  .slide-caption { right: 0; padding: 6px 12px 7px; }
  .slide-caption .name { font-size: 15px; }
  .slide-caption .field { font-size: 11px; }
  .event-detail { padding: 36px 20px 70px; }
  .event-detail h1 { font-size: 28px; margin-bottom: 24px; }
  .event-detail .subtitle { font-size: 17px; margin: -12px 0 22px; }
  .event-detail .reg { font-size: 16px; margin-bottom: 24px; }
  .event-detail .detail-img { margin-bottom: 28px; }
  .event-detail h2 { font-size: 22px; margin: 28px 0 10px; }
  .event-detail p { font-size: 16px; line-height: 1.5; margin-bottom: 12px; }
  .experts { padding: calc(var(--header-h) + 20px) 16px 20px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .experts-wrap { width: 100%; }
  .experts .experts-head { margin-bottom: clamp(20px, 4.5svh, 44px); }
  .experts .quotes { margin-top: clamp(20px, 4.5svh, 44px); }
  .experts-head { margin: 0 0 20px 4px; min-height: 0; }
  .experts-head .typed { font-size: min(21px, 4.8vw); }
  .quotes { margin-top: 20px; }
  .events { padding: calc(var(--header-h) + 20px) 20px 18px; }
  .events.layout-scroll { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 0; }
  .layout-scroll .event-list { flex: 1; min-height: 0; gap: 14px; padding-bottom: 0; }
  .layout-scroll .event-card { width: 82vw; height: 100%; }
  .layout-scroll .event-card .poster { aspect-ratio: auto; flex: 1; min-height: 120px; height: auto; }
  .layout-scroll .event-card .body { flex: none; }
  .layout-scroll .event-card .actions { padding-top: 10px; }
  .layout-scroll .scroll-dots:not([hidden]) { display: flex; }
  .event-card .body { padding: 14px 18px 18px; gap: 6px; }
  .event-card h2 { font-size: 20px; }
  .event-card .summary { font-size: 14px; }
  .scroll-nav { display: none; }
  .layout-list .event-card { flex-direction: column; }
  .layout-list .event-card .poster { width: 100%; }
}
