@font-face {
  font-family: 'Aisling';
  src: url('./assets/fonts/AislingFreeDemo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Creato Display';
  src: url('./assets/fonts/CreatoDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Creato Display';
  src: url('./assets/fonts/CreatoDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Creato Display';
  src: url('./assets/fonts/CreatoDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Creato Display';
  src: url('./assets/fonts/CreatoDisplay-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --black: #000000;
  --white: #ffffff;
  --footer-height: 38px;
  font-family: 'Aisling', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--black); }
body { height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) var(--footer-height); overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }

.viewport { width: 100vw; height: 100%; min-height: 0; overflow: hidden; background: var(--black); }
.track { display: flex; width: 200vw; height: 100%; transform: translate3d(0,0,0); transition: transform .8s cubic-bezier(.77,0,.18,1); }
.viewport[data-view="signup"] .track { transform: translate3d(-50%,0,0); }
.panel { position: relative; width: 100vw; height: 100%; flex: 0 0 100vw; overflow: hidden; }

.hero { display: grid; grid-template-columns: minmax(410px, 39%) 1fr; grid-template-rows: 82px 1fr; background: var(--white); color: var(--black); }
.hero-header { z-index: 4; grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(410px, 39%) 1fr; align-items: center; border-bottom: 1px solid rgba(0,0,0,.28); }
.symbol-link { width: 54px; height: 54px; margin-left: clamp(27px, 3.5vw, 55px); display: grid; place-items: center; }
.symbol-link img { width: 36px; height: 36px; display: block; }
.hero-header p, .signup-header p { margin: 0; font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .14em; }
.hero-header p:nth-of-type(1) { display: none; }
.hero-header p:nth-of-type(2) { justify-self: end; padding-right: clamp(24px, 3.2vw, 50px); }

.hero-copy { z-index: 2; grid-column: 1; grid-row: 2; min-width: 0; padding: clamp(46px, 8vh, 100px) clamp(28px, 4vw, 64px) 38px; display: flex; flex-direction: column; align-items: flex-start; }
.section-index { margin: 0; font-family: 'Creato Display', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .14em; }
.hero h1, .form-heading h2, .success h3 { margin: 28px 0 0; font-family: 'Aisling', sans-serif; font-weight: 400; line-height: .86; letter-spacing: .005em; text-transform: uppercase; }
.hero h1 { font-size: clamp(62px, 7vw, 112px); }
.hero-intro { max-width: 430px; margin: auto 0 25px; font-family: 'Creato Display', sans-serif; font-size: 15px; line-height: 1.58; letter-spacing: .005em; }
.primary-cta, .submit-button { width: 100%; min-height: 60px; padding: 0 20px 0 24px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--black); border-radius: 0; background: var(--black); color: var(--white); font-family: 'Creato Display', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .13em; overflow: hidden; transition: background .25s ease, color .25s ease; }
.primary-cta svg, .submit-button svg, .back-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .25s ease; }
.primary-cta:hover, .submit-button:hover { background: var(--white); color: var(--black); }
.primary-cta:hover svg, .submit-button:hover svg { transform: translateX(4px); }
.submit-button:disabled { cursor: wait; opacity: .7; }
.submit-button:disabled:hover { background: var(--black); color: var(--white); }
.submit-button:disabled:hover svg { transform: none; }
.primary-cta { position: relative; }
.primary-cta { min-height: 66px; }
.primary-cta::after { content: ''; position: absolute; inset: 4px; border: 2px solid rgba(255,255,255,.82); opacity: 0; transform: scale(.965); pointer-events: none; animation: cta-attention 1.7s ease-out .8s infinite; }
.primary-cta:hover::after { border-color: rgba(0,0,0,.55); animation-play-state: paused; opacity: .45; }

.brand-column { position: absolute; z-index: 3; left: 69.5%; top: 50%; width: clamp(320px, 31vw, 460px); min-height: 108px; padding: 22px 25px; display: flex; align-items: center; gap: 20px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(0,0,0,.62); color: var(--white); backdrop-filter: blur(6px); }
.wordmark-breathe { min-width: 0; flex: 1; display: grid; place-items: center; animation: brand-breathe 7s ease-in-out infinite; }
.wordmark-breathe img { width: 100%; height: auto; display: block; filter: brightness(0) invert(1); }
.brand-column p, .signup-brand > p { flex: 0 0 auto; margin: 0; font-family: 'Creato Display', sans-serif; font-size: 8px; font-style: italic; letter-spacing: .08em; writing-mode: initial; transform: none; }

.hero-photo { grid-column: 2; grid-row: 2; min-width: 0; margin: 0; display: grid; grid-template-rows: 1fr 52px; overflow: hidden; }
.photo { min-height: 0; background-image: linear-gradient(rgba(0,0,0,.04), rgba(0,0,0,.04)), url('./assets/ryvenn-hero-material-v2.webp'); background-size: cover; background-position: center; filter: grayscale(1) contrast(1.04); transform: scale(1.02); animation: photo-in 1.5s cubic-bezier(.2,.7,.2,1) both; }
.hero-photo figcaption { padding: 0 clamp(19px, 2.2vw, 34px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(0,0,0,.28); background: var(--white); font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .09em; white-space: nowrap; }

.reveal { opacity: 0; animation: reveal .75s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-1 { animation-delay: .12s; }.reveal-2 { animation-delay: .28s; }.reveal-3 { animation-delay: .4s; }.reveal-4 { animation-delay: .58s; }

.signup { isolation: isolate; display: grid; grid-template-columns: minmax(320px, 31%) 1fr; background: var(--black); color: var(--black); }
.signup::before { content: ''; position: absolute; z-index: -2; inset: 0 auto 0 0; width: 31%; background-image: url('./assets/ryvenn-hero-material-v2.webp'); background-size: cover; background-position: center; filter: grayscale(1) contrast(1.04); }
.signup::after { content: ''; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 31%; background: rgba(0,0,0,.58); }
.signup-brand { min-width: 0; padding: 31px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.12); color: var(--white); }
.back-button { padding: 8px 0; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; color: currentColor; font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .13em; }
.back-button:hover svg { transform: translateX(-4px); }
.back-button.inverse { align-self: flex-start; margin-left: 28px; }
.signup-wordmark { min-height: 0; width: 100%; flex: 1; display: grid; place-items: center; }
.signup-wordmark img { width: min(78%, 280px); height: auto; filter: brightness(0) invert(1); }
.signup-brand > p { align-self: center; margin-bottom: 3px; }
.signup-content { min-width: 0; height: 100%; display: flex; flex-direction: column; }
.signup-header { height: 82px; flex: 0 0 82px; padding: 0 clamp(28px, 4vw, 65px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.28); color: var(--white); }
.signup-header > img { width: 34px; height: 34px; padding: 0; background: transparent; filter: brightness(0) invert(1); }
.signup-header > p { justify-self: end; }
.mobile-back { display: none; }
.form-wrap { width: min(980px, calc(100% - 64px)); margin: auto; padding: clamp(34px, 5vh, 54px) clamp(32px, 4vw, 62px); display: grid; grid-template-columns: minmax(280px, .86fr) minmax(350px, 1.14fr); gap: clamp(40px, 6vw, 92px); align-items: center; background: rgba(255,255,255,.94); }
.form-heading h2 { margin-top: 28px; font-size: clamp(67px, 7.2vw, 116px); }
.form-heading > p:last-child { max-width: 450px; margin: 29px 0 0; font-family: 'Creato Display', sans-serif; font-size: 15px; line-height: 1.58; letter-spacing: .005em; }
form { padding-top: 8px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.field { position: relative; margin-bottom: 22px; }
.field label, .contact-choice legend { display: block; margin-bottom: 8px; font-family: 'Creato Display', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.field label span { opacity: .55; }
.field input { width: 100%; height: 47px; padding: 0 2px; border: 0; border-bottom: 1px solid rgba(0,0,0,.55); border-radius: 0; background: transparent; color: var(--black); outline: 0; font-family: 'Creato Display', sans-serif; font-size: 14px; transition: border-color .2s ease; }
.field input::placeholder { color: rgba(0,0,0,.45); }
.field input:focus { border-bottom-color: var(--black); }
.contact-choice { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.contact-choice label { display: inline-flex; cursor: pointer; }
.contact-choice input { position: absolute; opacity: 0; }
.contact-choice label span { min-width: 82px; padding: 11px 13px; display: block; border: 1px solid rgba(0,0,0,.48); font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .09em; text-align: center; }
.contact-choice input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.contact-choice input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.contact-field, .consent, .consent-error, .form-status, .submit-button { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 1px 0 21px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.consent > span { width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid rgba(0,0,0,.65); }
.consent input:checked + span { background: var(--black); box-shadow: inset 0 0 0 4px var(--white); }
.consent input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.consent small { font-family: 'Creato Display', sans-serif; font-size: 11px; line-height: 1.5; opacity: .72; }
.consent a { color: inherit; text-underline-offset: 3px; }
.submit-button { min-height: 58px; }
.error { display: block; min-height: 12px; margin-top: 4px; color: var(--black); font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.consent-error { margin: -18px 0 10px 27px; }
.form-status { margin: -8px 0 10px; }
.success { grid-column: 1 / -1; max-width: 650px; }
.form-wrap:has(.success:not([hidden])) { grid-template-columns: 1fr; }
.form-wrap:has(.success:not([hidden])) .form-heading { display: none; }
.success > img { width: 68px; height: 68px; margin-bottom: 45px; }
.success h3 { font-size: clamp(80px, 10vw, 145px); }
.success > p:not(.section-index) { margin: 22px 0 35px; font-family: 'Creato Display', sans-serif; font-size: 18px; }
.success button { padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--black); background: transparent; font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.success h3:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

.site-footer { z-index: 20; min-width: 0; height: var(--footer-height); padding: 0 clamp(18px, 3vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid rgba(255,255,255,.3); background: var(--black); color: var(--white); font-family: 'Creato Display', sans-serif; font-size: 8px; font-weight: 500; letter-spacing: .11em; }
.site-footer p { margin: 0; white-space: nowrap; }
.site-footer nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.cookie-notice { position: fixed; z-index: 30; right: 18px; bottom: calc(var(--footer-height) + 16px); width: min(460px, calc(100vw - 36px)); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px; border: 1px solid rgba(255,255,255,.42); background: rgba(0,0,0,.96); color: var(--white); font-family: 'Creato Display', sans-serif; }
.cookie-notice p { margin: 0; font-size: 11px; line-height: 1.45; }
.cookie-notice p:first-child { margin-bottom: 7px; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.cookie-notice a { display: inline-block; margin-top: 10px; color: inherit; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-underline-offset: 4px; }
.cookie-notice button { min-height: 38px; padding: 0 14px; border: 1px solid var(--white); border-radius: 0; background: var(--white); color: var(--black); font-family: 'Creato Display', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .12em; }

.legal-page { min-height: 100svh; height: auto; display: flex; flex-direction: column; overflow-y: auto; background: var(--white); color: var(--black); }
.legal-header { min-height: 82px; padding: 0 clamp(20px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.28); }
.legal-header img { width: 36px; height: 36px; display: block; }
.legal-back { display: inline-flex; align-items: center; gap: 10px; color: var(--black); font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.legal-back svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.legal-main { width: min(920px, calc(100% - 42px)); margin: 0 auto; padding: clamp(54px, 8vw, 100px) 0 clamp(70px, 10vw, 120px); flex: 1; }
.legal-kicker { margin: 0 0 22px; font-family: 'Creato Display', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.legal-main h1 { max-width: 840px; margin: 0 0 clamp(44px, 7vw, 78px); font-family: 'Aisling', sans-serif; font-size: clamp(65px, 10vw, 132px); font-weight: 400; line-height: .84; letter-spacing: .005em; text-transform: uppercase; }
.legal-content { max-width: 720px; margin-left: auto; font-family: 'Creato Display', sans-serif; }
.legal-content section { padding: 28px 0; border-top: 1px solid rgba(0,0,0,.28); }
.legal-content h2 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.legal-content p, .legal-content li { margin: 0; font-size: 14px; line-height: 1.65; }
.legal-content p + p, .legal-content ul + p { margin-top: 12px; }
.legal-content ul { margin: 0; padding-left: 20px; }
.legal-content a { color: inherit; text-underline-offset: 3px; }
.legal-placeholder { font-weight: 700; }
.legal-page .site-footer { width: 100%; flex: 0 0 var(--footer-height); }

@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-in { from { opacity: .15; transform: scale(1.1); } to { opacity: 1; transform: scale(1.02); } }
@keyframes brand-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@keyframes cta-attention { 0%, 24%, 100% { opacity: 0; transform: scale(.965); } 42% { opacity: .95; } 66% { opacity: 0; transform: scale(1); } }

@media (max-width: 1100px) {
  .signup-content { overflow-y: auto; }
  .form-wrap { width: calc(100% - 42px); padding: 34px 30px; display: block; }
  .form-wrap form { margin-top: 30px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(340px, 52%) 1fr; }
  .hero-header { grid-template-columns: minmax(340px, 52%) 1fr; }
  .hero-copy { padding-left: 30px; padding-right: 30px; }
  .hero h1 { font-size: clamp(58px, 10vw, 86px); }
  .brand-column { left: 76%; width: min(320px, 40vw); min-height: 94px; padding: 18px 20px; }
  .hero-photo figcaption { justify-content: center; }
  .hero-photo figcaption span:first-child { display: none; }
  .signup { grid-template-columns: minmax(250px, 28%) 1fr; }
  .signup::before, .signup::after { width: 28%; }
  .form-heading h2 { font-size: clamp(58px, 9vw, 78px); }
}

@media (max-width: 680px) {
  :root { --footer-height: 44px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: 68px 45% 1fr; }
  .hero-header { grid-column: 1 / -1; grid-row: 1; grid-template-columns: 1fr auto; }
  .symbol-link { width: 45px; height: 45px; margin-left: 15px; }
  .symbol-link img { width: 29px; height: 29px; }
  .hero-header p:nth-of-type(1) { display: none; }
  .hero-header p:nth-of-type(2) { padding-right: 20px; }
  .hero-photo { grid-column: 1; grid-row: 2; grid-template-rows: 1fr 37px; }
  .photo { background-position: 54% 43%; }
  .hero-photo figcaption { padding: 0 17px; justify-content: flex-start; }
  .hero-photo figcaption span:first-child { display: block; font-size: 7px; }
  .hero-photo figcaption span:last-child { display: none; }
  .brand-column { left: 50%; right: auto; top: calc(68px + 22.5%); width: min(235px, 66vw); min-height: 70px; padding: 14px 18px; gap: 0; }
  .wordmark-breathe img { width: 100%; height: auto; }
  .brand-column p { display: none; }
  .hero-copy { grid-column: 1 / -1; grid-row: 3; padding: 23px 21px 20px; }
  .hero h1 { margin-top: 15px; font-size: clamp(51px, 16vw, 71px); line-height: .84; }
  .hero-intro { max-width: 345px; margin: 18px 0 18px; font-size: 14px; line-height: 1.55; }
  .primary-cta { min-height: 60px; margin-top: auto; }

  .signup { grid-template-columns: 1fr; overflow-y: auto; }
  .signup-brand { display: none; }
  .signup-content { overflow-y: visible; }
  .signup::before, .signup::after { width: 100%; height: 230px; bottom: auto; }
  .signup::after { background: linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.88) 100%); }
  .signup-header { height: 68px; flex-basis: 68px; padding: 0 20px; background: rgba(0,0,0,.3); }
  .signup-header > img { width: 28px; height: 28px; }
  .signup-header > p { display: none; }
  .mobile-back { display: flex; }
  .form-wrap { width: calc(100% - 24px); margin: 14px auto 26px; padding: 28px 18px 38px; display: block; background: rgba(255,255,255,.94); }
  .form-heading h2 { margin-top: 17px; font-size: clamp(59px, 18vw, 80px); }
  .form-heading > p:last-child { margin: 20px 0 29px; font-size: 14px; line-height: 1.55; }
  .form-wrap form { margin-top: 0; }
  form { padding-top: 0; display: grid; grid-template-columns: 1fr; }
  .field, .contact-choice, .contact-field, .consent, .consent-error, .submit-button { grid-column: 1; }
  .success { padding-top: 22px; }
  .success > img { width: 54px; height: 54px; margin-bottom: 35px; }
  .success h3 { font-size: clamp(80px, 24vw, 112px); }

  .site-footer { padding: 0 14px; gap: 12px; font-size: 7px; letter-spacing: .08em; }
  .site-footer nav { gap: 12px; }
  .cookie-notice { top: calc(var(--footer-height) + 40px); right: 12px; bottom: auto; width: calc(100vw - 24px); grid-template-columns: 1fr; align-items: start; gap: 13px; padding: 15px; }
  .cookie-notice p { font-size: 10px; }
  .cookie-notice button { width: 100%; }
  .legal-header { min-height: 68px; padding: 0 20px; }
  .legal-header img { width: 29px; height: 29px; }
  .legal-main { width: calc(100% - 40px); padding-top: 48px; }
  .legal-main h1 { margin-bottom: 44px; font-size: clamp(62px, 19vw, 88px); }
  .legal-content section { padding: 24px 0; }
  .legal-content p, .legal-content li { font-size: 13px; }
}

@media (max-width: 680px) and (orientation: landscape) {
  .photo { background-position: center 46%; }
  .cookie-notice { top: 10px; right: 10px; width: min(430px, calc(100vw - 20px)); grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .cookie-notice button { width: auto; }
}

@media (max-width: 680px) and (max-height: 740px) {
  .hero { overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-height: 600px) {
  .hero { overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-height: 740px) and (min-width: 681px) {
  .hero-copy { padding-top: 35px; }
  .hero h1 { font-size: clamp(58px, 6vw, 85px); }
  .hero-intro { font-size: 13px; }
  .form-heading h2 { font-size: clamp(58px, 6.4vw, 84px); }
  .form-heading > p:last-child { margin-top: 20px; font-size: 13px; }
  .field, .contact-choice { margin-bottom: 14px; }
  .form-wrap { padding-top: 24px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
