/* Enoumena Therapeutics — site styles */
:root {
  --paper: #f5f2ec;
  --paper-2: #ece6db;
  --ink: #211f1c;
  --ink-2: #5d584f;
  --ink-3: #8a8378;
  --line: #d9d2c5;
  --seal: #a8412b;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .link {
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, color .3s;
}
p a:hover, .link:hover { border-color: var(--seal); color: var(--seal); }
strong { font-weight: 500; }
::selection { background: var(--seal); color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 26px; padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.wordmark {
  font-family: var(--sans); font-weight: 300; font-size: 19px;
  letter-spacing: .34em; text-transform: lowercase; line-height: 1;
}
.wordmark span { color: var(--seal); }

.nav { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding-bottom: 8px;
  transition: color .3s;
}
.nav svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.nav a::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--seal);
  transform: translateX(-50%) scale(0); transition: transform .3s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover svg { transform: translateY(-2px); color: var(--seal); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] svg { color: var(--seal); }
.nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.lang {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); display: flex; gap: 10px; align-items: center;
}
.lang a:hover { color: var(--seal); }
.lang .current { color: var(--ink); }

/* ---------- Type ---------- */
.kicker {
  font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 22px;
}
.kicker .num { color: var(--seal); margin-right: .9em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; }
h3 { font-size: 26px; }
.lede { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); font-weight: 300; line-height: 1.4; margin: 0 0 32px; }
.muted { color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 10vw, 128px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero p.sub { max-width: 30em; margin: 30px 0 38px; color: var(--ink-2); font-size: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.enso { width: min(380px, 100%); justify-self: center; color: var(--ink); }
.enso .stroke {
  fill: none; stroke: currentColor; stroke-linecap: round;
  stroke-dasharray: 820; stroke-dashoffset: 820;
  animation: draw 2.6s cubic-bezier(.6,.05,.3,1) .3s forwards;
}
.enso .s2 { opacity: .35; animation-delay: .5s; }
.enso .dot { fill: var(--seal); opacity: 0; animation: fade 1s ease 2.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Page head ---------- */
.page-head { padding: clamp(56px, 9vw, 104px) 0 clamp(36px, 5vw, 56px); }
.page-head p { max-width: 36em; color: var(--ink-2); margin: 26px 0 0; font-size: 18px; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0; }
.section .wrap { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.section .body > *:first-child { margin-top: 0; }
.section p { margin: 0 0 1.2em; max-width: 40em; }
.section.tint { background: var(--paper-2); border-top-color: transparent; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.pillar { border-top: 1px solid var(--ink); padding-top: 20px; }
.pillar h3 { font-size: 23px; margin-bottom: 10px; }
.pillar p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

.quote-name { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-style: italic; font-weight: 300; margin: 0 0 24px; }
.pron { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .14em; color: var(--ink-3); margin-left: .6em; }

/* ---------- Team ---------- */
.leader { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--paper-2); position: relative; overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 64px; font-weight: 300; color: var(--ink-3); letter-spacing: .06em;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.leader h2 { margin-bottom: 6px; }
.role { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--seal); margin: 0 0 28px; }
.section .stat { font-family: var(--serif); font-size: clamp(72px, 10vw, 120px); font-weight: 300; line-height: 1; margin: 0 0 20px; }
.list-clean { list-style: none; padding: 0; margin: 28px 0 0; }
.list-clean li { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.list-clean li:last-child { border-bottom: 1px solid var(--line); }
.list-clean strong { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.3; }
.list-clean span { color: var(--ink-2); font-size: 16px; }

/* ---------- News ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 160px 1fr 24px; gap: 32px; padding: 34px 0; align-items: baseline; }
.news-list time { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.news-list h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; transition: color .3s; }
.news-list p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.news-list .arrow { color: var(--ink-3); transition: transform .3s, color .3s; }
.news-list a:hover h3, .news-list a:hover .arrow { color: var(--seal); }
.news-list a:hover .arrow { transform: translateX(4px); }

.article { max-width: 720px; }
.article .dateline { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.article h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 40px; }
.article p { margin: 0 0 1.3em; }
.placeholder { border: 1px dashed var(--seal); color: var(--seal); padding: 18px 22px; font-size: 15px; }
.back { display: inline-block; margin-top: 40px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.back:hover { color: var(--seal); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 96px); }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin-top: 28px; }
.contact-info dd { margin: 6px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.form { display: grid; gap: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field label { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0; padding: 8px 0 10px; outline: none;
  transition: border-color .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--seal); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.btn {
  justify-self: start; font: inherit; font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 16px 34px; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.notice { display: none; border-left: 2px solid var(--seal); padding: 4px 0 4px 16px; color: var(--seal); }
.notice.show { display: block; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 40px; padding-bottom: 44px; font-size: 13px; color: var(--ink-3);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.site-footer a:hover { color: var(--seal); }

/* ---------- Splash ---------- */
.splash {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px;
}
.splash .enso { width: 180px; margin: 0 auto 36px; }
.splash .wordmark { font-size: 24px; display: block; margin-bottom: 14px; }
.splash .tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.splash .choices { display: flex; justify-content: center; gap: 20px; margin-top: 52px; flex-wrap: wrap; }
.splash .choices a {
  width: 190px; padding: 18px 0; border: 1px solid var(--ink);
  font-size: 13px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.splash .choices a:hover { background: var(--ink); color: var(--paper); }
.splash .legal { margin-top: 64px; font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }

/* ---------- Motion ---------- */
.reveal { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .12s; } .reveal.d2 { animation-delay: .24s; } .reveal.d3 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enso .stroke { stroke-dashoffset: 0; } .enso .dot { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .enso { order: -1; width: 200px; justify-self: start; }
  .section .wrap { grid-template-columns: 1fr; gap: 8px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .leader { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-list a { grid-template-columns: 1fr; gap: 8px; }
  .news-list .arrow { display: none; }
  .list-clean li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 22px; padding-top: 20px; }
  .brand { order: 1; }
  .lang { order: 2; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .nav a { font-size: 9.5px; letter-spacing: .12em; gap: 6px; }
  .form .row { grid-template-columns: 1fr; }
  body { font-size: 16.5px; }
}

/* ---------- Logo ---------- */
.brand .wm { height: 22px; width: auto; }
.constellation, .logo-full { display: block; color: var(--ink); overflow: visible; }
.hero .constellation { width: min(400px, 100%); justify-self: center; }
.c-star { opacity: 0; transform: scale(.3); animation: star-in 1.3s cubic-bezier(.2,.7,.2,1) var(--d) forwards; }
.c-star.twinkle { animation: star-in 1.3s cubic-bezier(.2,.7,.2,1) var(--d) forwards,
                             twinkle 7s ease-in-out calc(var(--d) + 2.5s + var(--t)) infinite; }
.c-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.05,.3,1) var(--d) forwards; }
.c-word { opacity: 0; animation: fade 1.4s ease 1.6s forwards; }
@keyframes star-in { to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.splash .logo-full { width: 250px; margin: 0 auto 40px; }
.enso.small { width: 120px; margin-top: 36px; justify-self: start; }
.enso.small .stroke, .enso.small .dot { animation-play-state: paused; }
.enso.small.in .stroke, .enso.small.in .dot { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .c-star { opacity: 1; transform: none; } .c-line { stroke-dashoffset: 0; } .c-word { opacity: 1; }
}
@media (max-width: 900px) {
  .hero .constellation { order: -1; width: 210px; justify-self: start; }
  .enso.small { width: 72px; margin: 4px 0 20px; }
}
@media (max-width: 760px) { .brand .wm { height: 19px; } }

/* ---------- Product ---------- */
.product-head h1 { font-size: clamp(48px, 7vw, 88px); letter-spacing: .02em; }
.product-head sup.pr { font-family: var(--sans); font-size: .22em; font-weight: 400; letter-spacing: .05em; vertical-align: top; position: relative; top: .55em; margin-right: .15em; color: var(--ink-2); }
.product-head sup.reg { font-size: .32em; vertical-align: top; position: relative; top: .35em; }
.product-head .generic { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin: 14px 0 0; }
.product-head .meta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 0; }
.product-head .hcp { font-size: 14px; color: var(--ink-2); margin: 30px 0 0; padding-left: 14px; border-left: 2px solid var(--seal); }
.indication p:first-child { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; color: var(--ink); }
.indication p { color: var(--ink-2); }
.warnbox { border: 1px solid var(--ink); padding: 22px 26px; margin-top: 36px; max-width: 40em; }
.warnbox p { margin: 0; }
.warnbox-t { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; margin-bottom: 10px !important; }
.small { font-size: 14px; color: var(--ink-2); }
.small a { border-bottom: 1px solid var(--line); }
.partners { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); margin: 40px 0 36px; flex-wrap: wrap; }
.partners .logo-full { height: 150px; width: auto; }
.partners img { height: 64px; width: auto; }
.partners .x { font-family: var(--serif); font-size: 28px; color: var(--ink-3); }
/* Press release */
.article h2 { font-size: 24px; margin: 44px 0 12px; }
.article .dl { font-weight: 500; letter-spacing: .02em; }
.article a { border-bottom: 1px solid var(--line); word-break: break-word; }
.article a:hover { color: var(--seal); border-color: var(--seal); }
.article sup { font-size: .65em; }
.btn { display: inline-block; text-align: center; line-height: 1.5; max-width: 100%; }
.product-head .meta span { white-space: nowrap; }
.product-head .meta { line-height: 2; }
@media (max-width: 760px) {
  .btn { padding: 15px 22px; letter-spacing: .16em; }
  .partners { gap: 28px; }
  .partners .x { display: none; }
  .partners .logo-full { height: 120px; }
  .partners img { height: 52px; }
  .product-head .meta span { white-space: normal; }
}
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 24px; max-width: 40em; }
.contacts dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.contacts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 22px; }
.contacts a:hover { color: var(--seal); }
@media (max-width: 760px) { .contacts { grid-template-columns: 1fr; } }
.contacts > div { display: flex; flex-direction: column; }
.contacts dd { margin-top: auto; padding-top: 6px; }
.partners.in-article { border-top: 1px solid var(--line); padding-top: 44px; margin-top: 52px; }
