:root {
  --ink: #eaf5f1;
  --muted: #a9c4c0;
  --deep: #061716;
  --deep-2: #0a2422;
  --line: rgba(211, 236, 230, .17);
  --mist: #dcece6;
  --dark-ink: #102521;
  --accent: #98c9c1;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; margin: 0; padding: .75rem 1rem; color: var(--dark-ink); background: var(--mist); }

.ocean { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(circle at 72% 16%, #174642 0, transparent 30%), linear-gradient(155deg, #0b2927 0%, #061716 47%, #030d0d 100%); }
.light { position: absolute; width: 46vw; height: 70vh; top: -30vh; background: linear-gradient(180deg, rgba(168, 219, 209, .16), transparent); filter: blur(18px); transform: rotate(19deg); }
.light-one { left: 7vw; }
.light-two { left: 53vw; opacity: .45; transform: rotate(-12deg); }
.grain { position: absolute; inset: 0; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 clamp(1.25rem, 4vw, 4.5rem); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(4, 17, 16, .82); border-color: var(--line); backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-15deg); }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); }
nav a { color: var(--muted); text-decoration: none; font-size: .83rem; }
nav a:hover { color: var(--ink); }
.nav-cta { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; }
.nav-toggle { display: none; color: var(--ink); background: none; border: 0; }
.language-switcher { display: flex; gap: .2rem; padding: .2rem; margin-left: auto; margin-right: clamp(.75rem, 2vw, 1.75rem); border: 1px solid var(--line); border-radius: 999px; }
.language-switcher button { min-width: 34px; padding: .28rem .45rem; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-size: .68rem; letter-spacing: .06em; }
.language-switcher button:hover { color: var(--ink); }
.language-switcher button.active { color: var(--dark-ink); background: var(--mist); }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .wordmark, [dir="rtl"] .hero-actions, [dir="rtl"] .profile-meta { flex-direction: row-reverse; }
[dir="rtl"] .hero-note { right: auto; left: clamp(1.25rem, 7vw, 8rem); }
[dir="rtl"] .quiet-button { justify-self: end; }
[dir="rtl"] .ask-status span { margin-right: 0; margin-left: .5rem; }
[dir="rtl"] .dialog-close { right: auto; left: 1rem; }

.hero { min-height: 100svh; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 2rem; position: relative; padding: 9rem clamp(1.25rem, 7vw, 8rem) 6rem; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { margin: 0 0 1.5rem; color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .17em; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.04em; line-height: .95; }
h1 { font-size: clamp(4.3rem, 8.5vw, 9rem); }
h1 em { color: var(--accent); font-weight: 300; }
.lead { max-width: 620px; margin: 2.4rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.38rem); }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.3rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--dark-ink); background: var(--mist); }
.button-light { color: var(--dark-ink); background: #dcece6; }
.text-link { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
.text-link:hover { color: var(--ink); }
.whale-scene { width: min(52vw, 760px); margin-left: -8vw; opacity: .88; }
.whale-scene svg { width: 100%; filter: drop-shadow(0 30px 45px rgba(0,0,0,.2)); }
.whale { animation: drift 8s ease-in-out infinite; transform-origin: center; }
.fin { animation: fin 5s ease-in-out infinite; transform-origin: 390px 345px; }
.hero-note { position: absolute; bottom: 2.2rem; right: clamp(1.25rem, 7vw, 8rem); width: min(390px, 38vw); color: #799b97; font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
@keyframes drift { 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes fin { 50% { transform: rotate(5deg); } }

.section { padding: clamp(6rem, 11vw, 11rem) clamp(1.25rem, 7vw, 8rem); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: end; margin-bottom: 5rem; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -2rem; }
.section-heading h2, .join h2 { font-size: clamp(3.6rem, 6.4vw, 7.4rem); }
.section-heading > p:last-child { max-width: 500px; color: var(--muted); font-size: 1.08rem; }
.code-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.code-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.code-list li > span { color: #668a86; font-size: .75rem; }
.code-list h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 3.1rem); font-weight: 300; }
.code-list p { max-width: 760px; margin: 0; color: var(--muted); }

.narrow { grid-template-columns: 1.1fr .9fr; }
.profile-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.profile-card { min-height: 500px; padding: clamp(1.5rem, 3vw, 3rem); border: 1px solid var(--line); background: rgba(11, 38, 35, .52); }
.founder { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem 2.5rem; }
.profile-portrait { grid-row: 1 / 5; display: grid; place-items: center; width: 160px; height: 200px; background: linear-gradient(150deg, #204d49, #0b2523); color: #9ec5bf; font-family: var(--serif); font-size: 2.6rem; }
.profile-meta { display: flex; justify-content: space-between; color: #7fa09d; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.profile-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4.5rem); font-weight: 300; line-height: 1; }
.profile-card > p { color: var(--muted); }
.profile-offers { color: var(--muted); font-size: .9rem; }
.profile-offers strong { display: block; color: var(--ink); font-weight: 500; }
.quiet-button { justify-self: start; padding: .7rem 0; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.invitation { display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(160deg, rgba(49, 91, 85, .34), rgba(5, 18, 17, .7)); }
.invitation .eyebrow { margin-bottom: auto; }

.venture-list { border-top: 1px solid var(--line); }
.venture { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 1rem; min-height: 140px; padding: 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
a.venture:hover h3 { color: var(--accent); }
.venture-index { color: #668a86; font-size: .75rem; }
.venture h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 300; transition: color .2s; }
.venture p { margin: .3rem 0 0; color: var(--muted); }
.arrow { color: var(--accent); font-size: 1.5rem; }

.ask { background: #dbeae5; color: var(--dark-ink); }
.ask-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.ask .eyebrow { color: #51736d; }
.ask h2 { font-size: clamp(3.5rem, 6vw, 7rem); }
.ask-intro > p:last-child { max-width: 560px; color: #4e6662; }
.ask-interface { padding: clamp(1.5rem, 4vw, 4rem); color: var(--ink); background: #09201e; box-shadow: 0 30px 90px rgba(20, 49, 45, .2); }
.ask-status { color: #91b8b1; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.ask-status span { display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: #8fc6ac; box-shadow: 0 0 0 5px rgba(143, 198, 172, .08); }
.ask-prompt { margin: 3rem 0 1.2rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.12; }
textarea { width: 100%; resize: vertical; margin-bottom: 1rem; padding: 1rem; color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 2px; outline: none; }
textarea:focus { border-color: var(--accent); }
.form-note { color: #769793; font-size: .77rem; }

.join { display: grid; grid-template-columns: 1.15fr .85fr; gap: 6rem; align-items: end; }
.join-copy > p:last-child { max-width: 680px; color: var(--muted); }
.join-path { border-top: 1px solid var(--line); }
.join-path > div { display: grid; grid-template-columns: 35px 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.join-path span { color: #668a86; }
.join-path p { margin: 0; }
.join-path .button { margin-top: 2rem; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 7vw, 8rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

dialog { max-width: 540px; padding: 2.5rem; color: var(--dark-ink); background: var(--mist); border: 0; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(1, 9, 8, .78); backdrop-filter: blur(7px); }
dialog h2 { font-size: 3rem; }
dialog .eyebrow { color: #51736d; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 35px; height: 35px; border: 0; border-radius: 50%; background: rgba(0,0,0,.07); cursor: pointer; font-size: 1.3rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { min-height: 66px; }
  .nav-toggle { display: block; order: 3; width: 32px; padding: 0; font-size: 0; }
  .nav-toggle::after { content: "☰"; font-size: 1.15rem; }
  .language-switcher { order: 2; margin-left: auto; margin-right: .5rem; flex: 0 0 auto; }
  .language-switcher button { min-width: 30px; padding-inline: .35rem; }
  nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1.5rem; background: rgba(4, 17, 16, .97); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: .6rem 0; font-size: 1rem; }
  .nav-cta { border: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .whale-scene { position: absolute; z-index: 0; right: -20vw; bottom: 3rem; width: 95vw; opacity: .32; }
  .hero-note { left: 1.25rem; right: auto; width: calc(100% - 2.5rem); }
  .section-heading, .narrow, .profile-grid, .ask-shell, .join { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .founder { grid-template-columns: 100px 1fr; }
  .profile-portrait { width: 100px; height: 130px; }
  .join { gap: 4rem; }
}

@media (max-width: 560px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .nav-toggle { position: absolute; right: 1.25rem; }
  .language-switcher { position: absolute; top: 15px; right: 3.65rem; width: 104px; margin: 0; }
  .site-header > .wordmark > span:last-child { display: none; }
  .hero-copy { min-width: 0; width: 100%; max-width: calc(100vw - 2.5rem); }
  .hero-copy p { max-width: 100%; overflow-wrap: anywhere; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.5rem); }
  html[lang="uk"] h1 { font-size: clamp(3rem, 13.5vw, 4.2rem); overflow-wrap: anywhere; }
  html[lang="he"] h1 { font-size: clamp(3.2rem, 15vw, 4.7rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
  .hero-note { font-size: .9rem; }
  .section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .section-heading { margin-bottom: 3rem; }
  .founder { display: flex; flex-direction: column; }
  .profile-portrait { width: 100%; height: 220px; }
  .profile-meta { gap: 1rem; }
  .venture { grid-template-columns: 35px 1fr auto; min-height: 120px; }
  .venture p { font-size: .83rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
