/* Type and shared colors */
@font-face {
  font-family: Inter;
  src: url('inter-400.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('inter-600.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}

:root {
  --body-size: 16px;
  --heading-size: 32px;
  --display-size: 64px;
  --green: #073d3d;
  --green-deep: #052d30;
  --gold: #d7b780;
  --cream: #f4f0e8;
  --white: #fffdf8;
  --ink: #18312d;
  --muted: #53655f;
  --rule: #c9d0c7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--body-size)/1.55 Inter, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font: 400 var(--display-size)/1.12 Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
}

h2,
h3 {
  font: 600 var(--heading-size)/1.22 Inter, Arial, sans-serif;
  letter-spacing: -.025em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.wrap {
  width: min(calc(100% - 80px), 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

/* Navigation and event details */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(4, 32, 29, .16);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: block;
  flex: none;
  width: 158px;
  text-decoration: none;
}

.brand .brand-lockup {
  width: 100%;
  height: auto;
}

.brand-lettering {
  fill: var(--gold);
  font: 600 58px Inter, Arial, sans-serif;
  letter-spacing: 18px;
}

.header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.header-nav a,
.header-register {
  text-decoration: none;
}

.header-nav a:hover,
.header-register:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-register {
  display: none;
}

.header-main-site {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .13);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.header-main-site:hover {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.site-link-text-compact {
  display: none;
}

.header-register {
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
}

.menu-toggle {
  display: none;
}

.event-bar {
  background: var(--gold);
  color: var(--green-deep);
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.event-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-block: 12px;
  font-weight: 600;
}

.event-date {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.event-date strong {
  font-size: var(--body-size);
  line-height: 1.15;
}

.event-date span {
  padding-left: 20px;
  border-left: 1px solid rgba(5,45,48,.55);
}

.event-floor {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(5,45,48,.55);
  white-space: nowrap;
}

/* Video introduction */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--green);
}

.hero-media video {
  position: absolute;
  inset: 0 0 0 auto;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-media::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, var(--green) 0%, var(--green) 34%, rgba(7, 61, 61, .86) 50%, rgba(7, 61, 61, .36) 76%, rgba(7, 61, 61, .22) 100%),
    linear-gradient(0deg, rgba(5, 45, 48, .42), transparent 42%);
}

.hero-brand-moment {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 auto;
  width: 66%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.hero-brand-moment.is-visible {
  opacity: 1;
}

.hero-brand-moment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
}

.hero-brand-logo {
  position: absolute;
  top: 46%;
  right: 8%;
  width: 45%;
  max-width: 480px;
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 4px 12px rgba(216, 183, 128, .16));
}

.hero-brand-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .8;
}

.hero-brand-wave path {
  stroke: url(#wave-gold);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 1450;
  stroke-dashoffset: 1450;
}

.hero-brand-moment.is-visible .hero-brand-wave path {
  animation: gold-line 1.15s ease-out both;
}

.hero-brand-moment.is-visible .hero-brand-wave path:nth-child(2) {
  animation-delay: .08s;
}

.hero-brand-moment.is-visible .hero-brand-wave path:nth-child(3) {
  animation-delay: .16s;
}

.hero-brand-moment.is-visible .hero-brand-wave path:nth-child(4) {
  animation-delay: .24s;
}

.hero-brand-moment.is-visible .hero-brand-wave path:nth-child(5) {
  animation-delay: .32s;
}

.hero-brand-moment .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f3d79d;
  box-shadow: 0 0 13px 4px rgba(244,207,135,.48);
  opacity: 0;
}

.hero-brand-moment.is-visible .spark {
  animation: gold-flight 1.15s ease-out both;
}

.hero-brand-moment .spark:nth-of-type(1) {
  left: 42%;
  top: 65%;
  --dx: 110px;
  --dy: -90px;
  animation-delay: .05s;
}

.hero-brand-moment .spark:nth-of-type(2) {
  left: 56%;
  top: 73%;
  --dx: 80px;
  --dy: -105px;
  animation-delay: .18s;
}

.hero-brand-moment .spark:nth-of-type(3) {
  left: 67%;
  top: 61%;
  --dx: 72px;
  --dy: -80px;
  animation-delay: .3s;
}

.hero-brand-moment .spark:nth-of-type(4) {
  left: 77%;
  top: 79%;
  --dx: 65px;
  --dy: -110px;
  animation-delay: .1s;
}

.hero-brand-moment .spark:nth-of-type(5) {
  left: 84%;
  top: 69%;
  --dx: 42px;
  --dy: -84px;
  animation-delay: .38s;
}

.hero-brand-moment .spark:nth-of-type(6) {
  left: 51%;
  top: 85%;
  --dx: 96px;
  --dy: -98px;
  animation-delay: .42s;
}

.hero-brand-moment .spark:nth-of-type(7) {
  left: 72%;
  top: 88%;
  --dx: 72px;
  --dy: -112px;
  animation-delay: .54s;
}

.hero-brand-moment .spark:nth-of-type(8) {
  left: 90%;
  top: 82%;
  --dx: 28px;
  --dy: -110px;
  animation-delay: .24s;
}

@keyframes gold-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes gold-flight {
  0% {
    opacity: 0;
    transform: translate(-24px, 16px) scale(.35);
  }
  35% {
    opacity: .9;
  }
  75% {
    opacity: .55;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(.35);
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: center;
  gap: 32px;
  min-height: 580px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 76px 0 92px;
}

.hero h1 {
  max-width: 790px;
  margin-bottom: 32px;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.hero-action p {
  margin: 0;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(5, 45, 48, .15);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(5, 45, 48, .2);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: .72;
  box-shadow: none;
}

.button:disabled:hover {
  transform: none;
}

.button-light {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-deep);
}

.button-light:hover {
  background: var(--white);
  border-color: var(--white);
}

.button-dark {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.button-dark:hover {
  background: var(--green-deep);
}

/* Shared section rhythm */
.section {
  padding: 88px 0;
}

.section[id] {
  scroll-margin-top: 172px;
}

/* Conversation topics */
.program {
  background: var(--cream);
  border-top: 1px solid #e6e0d4;
}

.program h2 {
  margin-bottom: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gold);
  color: var(--green-deep);
}

.program .wrap {
  max-width: 960px;
}

.topic-list {
  border-bottom: 1px solid #aab7ac;
}

.topic {
  padding: 26px 0 32px;
  border-top: 1px solid #aab7ac;
}

.topic:first-child {
  border-top: 0;
}

.topic h3 {
  margin-bottom: 12px;
}

.topic-questions {
  max-width: 800px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.topic-questions li + li {
  margin-top: 8px;
}

/* Speakers */
.speakers h2 {
  margin-bottom: 40px;
}

.speaker-list {
  border-top: 1px solid var(--rule);
}

.speaker {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.speaker-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 400px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e8df;
  box-shadow: 0 14px 28px rgba(5, 45, 48, .08), 0 2px 5px rgba(5, 45, 48, .05);
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.speaker-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(150deg, rgba(215, 183, 128, .08), transparent 45%),
    linear-gradient(180deg, transparent 55%, rgba(6, 54, 48, .12) 100%);
}

.speaker-photo--mikhaylov img {
  transform: scale(1.6);
  transform-origin: 50% 10%;
}

.speaker-copy {
  max-width: 650px;
}

.speaker-copy h3 {
  margin-bottom: 16px;
}

.speaker-position {
  margin-bottom: 24px;
  font-weight: 600;
}

.speaker-copy p:not(.speaker-position) {
  max-width: 590px;
  margin-bottom: 24px;
  color: var(--muted);
}

.speaker-copy a {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.speaker-copy a:hover {
  color: #7d5e2c;
}

/* Venue and registration */
.venue {
  background: var(--green);
  color: var(--white);
  border-top: 1px solid rgba(215, 183, 128, .6);
}

.venue-layout,
.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.venue-layout h2,
.registration-layout h2 {
  margin-bottom: 0;
}

.venue-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 40px;
  align-items: start;
}

.venue-info p {
  margin-bottom: 0;
}

.venue-info strong {
  font-weight: 600;
}

.venue-info a {
  width: fit-content;
  color: var(--gold);
  text-underline-offset: 5px;
}

.registration {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--green-deep), var(--green));
  color: var(--white);
  border-top: 1px solid rgba(215, 183, 128, .5);
}

.registration::before {
  content: '';
  position: absolute;
  top: -290px;
  right: -140px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(215, 183, 128, .24);
  border-radius: 50%;
  pointer-events: none;
}

.registration-layout {
  position: relative;
  z-index: 1;
}

.registration-layout > div:first-child::before {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin-bottom: 28px;
  background: var(--gold);
}

.registration-layout > div:first-child > p {
  max-width: 330px;
  margin-top: 24px;
  color: rgba(255, 253, 248, .82);
}

.form-column {
  width: min(100%, 560px);
  padding: 32px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-top: 4px solid var(--gold);
  box-shadow: 0 18px 40px rgba(2, 22, 19, .24), 0 2px 8px rgba(2, 22, 19, .12);
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid #8e9b93;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(5, 45, 48, .05);
}

.field input:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.field input[aria-invalid='true'] {
  border-color: #a03535;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.consent a {
  text-underline-offset: 4px;
}

.form-feedback {
  margin: 24px 0 0;
}

.form-feedback[data-state='error'] {
  color: #8d3030;
}

.form-feedback[data-state='success'] {
  color: var(--green);
  font-weight: 600;
}

.form-feedback:empty {
  display: none;
}

/* Footer */
.footer {
  background: var(--green-deep);
  color: var(--white);
  border-top: 1px solid rgba(215, 183, 128, .22);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  padding: 32px 0;
}

.footer-inner span {
  margin-right: auto;
  font-weight: 600;
}

.footer-inner a {
  text-underline-offset: 4px;
}

/* Responsive layout */
@media (max-width: 1100px) {
  :root {
    --display-size: 56px;
  }
}

@media (max-width: 900px) {
  .hero-brand-logo,
  .hero-brand-wave,
  .hero-brand-moment .spark {
    display: none;
  }
  .hero-brand-moment {
    inset: 0;
    width: 100%;
  }
  .wrap {
    width: min(calc(100% - 48px), 1160px);
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
  }
  .venue-layout,
  .registration-layout {
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: 48px;
  }
  .speaker {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
  }
  .speaker-photo {
    height: 380px;
  }
  .venue-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section[id] {
    scroll-margin-top: 190px;
  }
  :root {
    --heading-size: 28px;
    --display-size: 40px;
  }
  .wrap {
    width: min(calc(100% - 40px), 1160px);
  }
  .header-inner {
    min-height: 68px;
    gap: 12px;
  }
  .brand {
    width: 120px;
  }
  .header-nav {
    display: none;
    position: absolute;
    z-index: 5;
    left: 20px;
    right: 20px;
    top: 68px;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 16px;
    background: var(--green-deep);
    border: 1px solid var(--gold);
  }
  .header-nav.is-open {
    display: flex;
  }
  .header-nav a {
    padding: 8px 0;
  }
  .header-nav .nav-register {
    display: block;
  }
  .header-main-site {
    margin-left: auto;
    padding: 7px 12px;
  }
  .menu-toggle {
    display: flex;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--white);
  }
  .event-bar-inner {
    display: grid;
    gap: 4px;
    padding-block: 14px;
  }
  .event-date {
    display: grid;
    gap: 2px;
  }
  .event-date strong {
    font-size: var(--body-size);
  }
  .event-date span {
    padding-left: 0;
    border-left: 0;
  }
  .event-floor {
    display: block;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .hero-layout {
    position: relative;
    display: block;
    min-height: 0;
  }
  .hero-copy {
    padding: 72px 0 80px;
  }
  .hero h1 {
    max-width: 560px;
    margin-bottom: 28px;
  }
  .hero-media {
    background: var(--green);
  }
  .hero-media video {
    width: 100%;
    opacity: 1;
  }
  .hero-media::after {
    background: rgba(7,61,61,.64);
  }
  .section {
    padding: 68px 0;
  }
  .venue-layout,
  .registration-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .speakers h2 {
    margin-bottom: 32px;
  }
  .speaker {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 40px;
  }
  .speaker-photo {
    width: min(100%, 410px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .speaker-copy h3 {
    margin-bottom: 12px;
  }
  .speaker-position {
    margin-bottom: 16px;
  }
  .venue-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .registration-layout > div:first-child > p {
    max-width: 560px;
    margin-top: 16px;
  }
  .form-column {
    padding: 24px;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner span {
    grid-column: 1 / -1;
  }
  .footer-inner a[href^='tel:'] {
    grid-column: 1 / -1;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
  }
  .brand {
    width: 135px;
  }
  .header-register {
    display: none;
  }
  .header-main-site {
    gap: 8px;
    padding-inline: 12px;
  }
  .site-link-text-wide {
    display: none;
  }
  .site-link-text-compact {
    display: inline;
  }
}

@media (max-width: 360px) {
  .header-main-site {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .header-main-site,
  .hero-brand-moment {
    transition: none;
  }
  .button:hover {
    transform: none;
  }
  .hero-brand-moment.is-visible .hero-brand-wave path,
  .hero-brand-moment.is-visible .spark {
    animation: none;
    stroke-dashoffset: 0;
  }
}
