/* FIX SCENT — perfumery-laboratory editorial */

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe7d8;
  --ink: #2c351f;
  --olive: #55663d;
  --olive-soft: #8a9a6e;
  --blush: #e5b3a8;
  --blush-deep: #c98878;
  --amber: #b0813c;
  --line: rgba(44, 53, 31, 0.16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", "Avenir Next", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* grain atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); }

/* ---------- announcement ---------- */
.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
}
.announce a {
  color: var(--blush);
  text-decoration-color: rgba(229, 179, 168, 0.5);
  text-underline-offset: 3px;
}
.announce strong { font-weight: 500; color: #fff; }

/* ---------- nav ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
nav.links { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
nav.links a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
nav.links a:hover, nav.links a.on { border-color: var(--amber); color: var(--olive); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(229, 179, 168, 0.28), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(138, 154, 110, 0.22), transparent 60%),
    var(--paper);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 em {
  font-style: italic;
  font-weight: 340;
  color: var(--olive);
}
.hero p.lede {
  margin-top: 1.6rem;
  font-size: 1.12rem;
  max-width: 34rem;
  color: rgba(44, 53, 31, 0.82);
}
.cta-row { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(44, 53, 31, 0.55);
}
.btn.primary:hover { transform: translateY(-2px); background: var(--olive); }
.btn.ghost { border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: 200px 200px 18px 18px;
  box-shadow: 0 40px 80px -40px rgba(44, 53, 31, 0.5);
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(176, 129, 60, 0.4);
  border-radius: 210px 210px 24px 24px;
  pointer-events: none;
}
.seal {
  position: absolute;
  top: -26px;
  left: -26px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 14px 30px -14px rgba(201, 136, 120, 0.9);
  animation: spin-in 1s 0.4s both;
}
.seal b { font-family: var(--serif); font-size: 1.5rem; display: block; font-weight: 500; }

/* ---------- stats ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.stat {
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--line);
}
.stat b {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--olive);
  display: block;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(44, 53, 31, 0.65);
}

/* ---------- sections ---------- */
section.block { padding: clamp(3.5rem, 8vw, 7rem) 0; }
h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
h2 em { font-style: italic; color: var(--olive); }
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.split img { border-radius: 16px; box-shadow: 0 30px 60px -35px rgba(44, 53, 31, 0.45); }
.prose p + p { margin-top: 1rem; }
.prose { color: rgba(44, 53, 31, 0.85); max-width: 60ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(44, 53, 31, 0.4); }
.card .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.7rem;
}
.card p { font-size: 0.95rem; color: rgba(44, 53, 31, 0.75); }

/* science band */
.science {
  background: var(--ink);
  color: var(--paper);
}
.science h2 { color: var(--paper); }
.science h2 em { color: var(--blush); }
.science .prose { color: rgba(246, 241, 231, 0.8); }
.science .split img { border-radius: 160px 160px 14px 14px; }
.journal-line {
  margin-top: 1.8rem;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--amber);
  background: rgba(246, 241, 231, 0.06);
  font-size: 0.92rem;
}
.journal-line i { color: var(--blush); }
.science .btn.primary { background: var(--blush); color: var(--ink); box-shadow: none; }
.science .btn.primary:hover { background: var(--blush-deep); }

/* docs */
.doc-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.doc {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.3rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  background: #fff;
  transition: border-color 0.25s, transform 0.25s;
}
.doc:hover { border-color: var(--amber); transform: translateY(-2px); }
.doc svg { width: 20px; height: 20px; stroke: var(--amber); }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 3rem 0 2.2rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}
.foot .brand img { height: 38px; }
.foot small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(44, 53, 31, 0.6);
}

/* page hero (inner pages) */
.page-head {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(50% 90% at 90% 10%, rgba(229, 179, 168, 0.25), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) forwards; }
.reveal.d1 { animation-delay: 0.12s; }
.reveal.d2 { animation-delay: 0.24s; }
.reveal.d3 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-14deg) scale(0.7); } to { opacity: 1; transform: none; } }

@media (max-width: 800px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 340px; margin: 0 auto; }
  .seal { width: 96px; height: 96px; top: -18px; left: -10px; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat + .stat::before { left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 1px; }
  nav.links { gap: 0.9rem; }
  nav.links a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .nav { flex-direction: column; gap: 0.7rem; }
}
