/* Scent Drafts brand tokens */
:root {
  --navy: #0F1B2D;
  --navy-2: #172740;
  --mist: #F2F5F8;
  --steel: #6F8FAF;      /* accent: steel blue (adjust if your palette uses another hex) */
  --steel-soft: #DCE4EC;
  --ink: #0F1B2D;
  --muted: #4A5A70;
  --nav-font: "Canela", "DM Sans", system-ui, sans-serif;  /* Canela only once its web license files are added; until then the menu falls back to DM Sans */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

/* Canela (licensed web font). Uncomment after adding Canela-Regular.woff2 / .woff to assets/fonts/
@font-face { font-family: "Canela"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/Canela-Regular.woff2") format("woff2"); }
*/
@font-face { font-family: "DM Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/dm-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: .6rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 500; margin-bottom: 1.2rem; }
.eyebrow.dark { color: var(--muted); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(20px, calc((100% - var(--wrap)) / 2));
  background: transparent; color: var(--mist);
  transition: background .25s, padding .25s;
}
.site-header.scrolled { background: rgba(15, 27, 45, .94); backdrop-filter: blur(8px); padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.nav-btn { display: inline-block; font-family: var(--nav-font); font-size: .95rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-decoration: none; background: transparent; border: 0; padding: 10px 18px; cursor: pointer; opacity: .85; transition: opacity .15s; line-height: 1.2; }
.nav-btn:hover, .dropdown.open .nav-btn { opacity: 1; }
.dropdown { position: relative; }
.caret { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 6px; }
.dd-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; background: var(--mist); border-radius: 14px; padding: 6px; box-shadow: 0 12px 30px rgba(15,27,45,.25); }
.dropdown.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--navy); text-decoration: none; font-family: var(--nav-font); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.dd-menu a:hover { background: var(--steel-soft); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--mist); margin: 5px 0; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--mist); color: var(--navy); text-decoration: none; font-weight: 500; border: 1px solid var(--mist); transition: transform .15s, background .15s; cursor: pointer; font: inherit; font-weight: 500; }
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn.ghost { background: transparent; color: var(--mist); border-color: rgba(242,245,248,.45); }
.btn.ghost:hover { background: rgba(242,245,248,.1); }
.btn.solid { background: var(--navy); color: var(--mist); border-color: var(--navy); }
.btn.solid:hover { background: var(--navy-2); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }
.center-row { justify-content: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--mist);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 80px;
  background: var(--navy);
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 6.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.02; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: rgba(242,245,248,.8); margin: 2rem auto 3.2rem; max-width: 34em; font-weight: 300; }
.btn-outline { display: inline-block; padding: 16px 44px; border: 1px solid rgba(242,245,248,.45); color: var(--mist); text-decoration: none; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; transition: background .2s, border-color .2s; }
.btn-outline:hover { background: rgba(242,245,248,.1); border-color: var(--mist); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--steel-soft); }
.section.dark { background: var(--navy); color: var(--mist); }
.section.dark .sub { color: rgba(242,245,248,.75); }
.sub { color: var(--muted); max-width: 36em; font-size: 1.1rem; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 7vw, 96px); align-items: start; }
.prose p { font-size: 1.1rem; color: #25344A; }

/* Cards */
.grid { display: grid; gap: 22px; margin-top: 2.5rem; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--mist); border-radius: 18px; padding: 28px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.num { display: block; font-weight: 400; font-size: .85rem; letter-spacing: .14em; color: var(--steel); margin-bottom: 1.4rem; }
.post { border-top: 1px solid var(--navy); padding-top: 20px; }
.post p { color: var(--muted); font-size: .9rem; margin: 0; }
.tag { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: .8rem; font-weight: 500; }

/* Contact */
.mail { font-size: 1.4rem; font-weight: 300; }
.mail a { text-decoration-color: var(--steel); text-underline-offset: 5px; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form textarea { font: inherit; padding: 13px 15px; border: 1px solid #B9C5D2; border-radius: 12px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--navy); color: var(--mist); padding: 36px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; font-size: .85rem; opacity: .65; }

@media (max-width: 900px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid.four { grid-template-columns: 1fr; }
  }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 20px 22px; background: var(--navy); border-top: 1px solid rgba(242,245,248,.12); }
  .site-header nav.open { display: flex; }
  .nav-btn { text-align: center; padding: 14px 18px; width: 100%; }
  .dd-menu { position: static; box-shadow: none; margin-top: 8px; background: rgba(242,245,248,.08); }
  .dd-menu a { color: var(--mist); text-align: center; }
  .site-header { background: rgba(15,27,45,.94); }
  .dd-menu a:hover { background: rgba(242,245,248,.15); }
}
@media (max-width: 480px) { .brand img { height: 28px; } }
@media (max-width: 900px) {
  .dropdown { display: block; }
  .dd-toggle { width: 100%; }
}

/* Multi-page additions */
.nav-btn[aria-current="page"] { opacity: 1; box-shadow: inset 0 -1px 0 var(--steel); }

.page-hero { background: var(--navy); color: var(--mist); padding: clamp(130px, 18vw, 200px) 0 clamp(56px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16em; }
.page-hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(242,245,248,.8); font-weight: 300; max-width: 34em; margin: 1.6rem 0 0; }

.tile { display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,27,45,.12); }
.tile p { flex: 1; }
.more { display: inline-block; margin-top: 1.4rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.more::after { content: " \2192"; }
#explore .card { background: var(--steel-soft); }

.chapter { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.chapter.flip .chapter-text { order: 2; }
.chapter-text p { font-size: 1.1rem; color: #25344A; }
.photo-slot, .story-img { width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; object-fit: cover; }
.photo-slot { display: grid; place-items: center; border: 1px dashed var(--steel); background: rgba(111,143,175,.12); color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }

.purpose blockquote { margin: 0 auto 1.6rem; max-width: 16em; font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.015em; }
.purpose .sub { margin-inline: auto; }

.gc { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; margin-top: 3rem; }
.gc-art { position: sticky; top: 100px; }
.rings { width: min(420px, 100%); height: auto; margin-inline: auto; }
.gc-item { padding: 0 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(15,27,45,.15); }
.gc-item:last-child { border-bottom: 0; margin-bottom: 0; }
.gc-item h3 { font-size: 1.5rem; line-height: 1.25; }
.gc-item h3 span { display: block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #4B6A8C; font-weight: 500; margin-bottom: .5rem; }
.gc-item p, .gc-item li { color: #25344A; }
.gc-item ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.gc-item li { margin-bottom: .4rem; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .85rem; }
.foot-nav a { text-decoration: none; opacity: .75; }
.foot-nav a:hover { opacity: 1; }

@media (max-width: 900px) {
  .chapter, .gc { grid-template-columns: 1fr; }
  .chapter.flip .chapter-text { order: 0; }
  .photo-slot, .story-img { aspect-ratio: 4 / 3; }
  .gc-art { position: static; }
}

/* My Story: life chapters and timeline */
.life { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.life-head { position: sticky; top: 100px; }
.life-head h2 { margin-bottom: 0; }
.place { font-size: .95rem; color: #4B6A8C; margin: 0 0 .9rem; font-weight: 500; }
.section.dark .place { color: var(--steel); }
.life-body p { font-size: 1.12rem; color: #25344A; max-width: 38em; }
.section.dark .life-body p { color: rgba(242,245,248,.85); }
.life-body .cta-row { margin-top: 2rem; }

.timeline-sec { padding: clamp(40px, 6vw, 72px) 0; }
.timeline { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 8.33%; right: 0; top: 17px; height: 1px; background: linear-gradient(to right, var(--steel) 0%, var(--steel) 88%, rgba(111,143,175,0) 100%); }
.timeline li { text-align: center; position: relative; }
.timeline a { text-decoration: none; display: grid; gap: 4px; justify-items: center; padding: 0 8px; }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--mist); border: 2px solid var(--navy); overflow: hidden; transition: transform .2s; position: relative; z-index: 1; display: block; }
.timeline .dot svg { width: 100%; height: 100%; display: block; }
.timeline a:hover .dot { transform: scale(1.12); }
.timeline strong { font-weight: 500; font-size: 1.05rem; margin-top: 10px; }
.timeline em { font-style: normal; font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .life { grid-template-columns: 1fr; }
  .life-head { position: static; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
  .timeline::before { left: 25px; right: auto; top: 18px; bottom: -10px; width: 1px; height: auto; background: linear-gradient(to bottom, var(--steel) 0%, var(--steel) 88%, rgba(111,143,175,0) 100%); }
  .timeline li { text-align: left; padding-bottom: 18px; }
  .timeline a { grid-template-columns: auto 1fr; justify-items: start; column-gap: 16px; align-items: center; }
  .timeline .dot { grid-row: span 2; }
  .timeline strong { margin-top: 0; }
}
.timeline small { font-size: .78rem; color: #4B6A8C; letter-spacing: .04em; }

/* My Story hero with a smaller portrait */
.page-hero.with-photo .wrap { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero-photo { width: clamp(200px, 20vw, 280px); height: auto; border-radius: 20px; object-fit: cover; }
@media (max-width: 900px) {
  .page-hero.with-photo .wrap { grid-template-columns: 1fr; }
  .hero-photo { width: 200px; }
}

/* Moodboard photo collages under each chapter title (adapts to any number of photos) */
.life-head.has-mood { position: static; }
.mood { --gap: 10px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px var(--gap); margin-top: clamp(20px, 3vw, 32px); max-width: 420px; }
.mood figure { margin: 0; flex: 0 0 calc((100% - 2 * var(--gap)) / 3); border: 4px solid #fff; border-radius: 3px; background: #fff; box-shadow: 0 4px 14px rgba(15,27,45,.16); transition: transform .25s; }
.mood[data-count="1"] figure { flex-basis: 72%; }
.mood[data-count="2"] figure, .mood[data-count="4"] figure { flex-basis: calc((100% - var(--gap)) / 2); }
.mood img { width: 100%; height: auto; aspect-ratio: var(--ar, 1 / 1); object-fit: cover; object-position: 50% 60%; display: block; }
.mood figure:nth-child(4n+1) { transform: rotate(-2.2deg); }
.mood figure:nth-child(4n+2) { transform: rotate(1.6deg); }
.mood figure:nth-child(4n+3) { transform: rotate(-1deg); }
.mood figure:nth-child(4n) { transform: rotate(2.4deg); }
.mood figure:hover { transform: rotate(0) scale(1.05); position: relative; z-index: 2; }
@media (max-width: 900px) { .mood { max-width: 480px; justify-content: flex-start; } }

/* Chapters keep their natural height, with tighter spacing above and below */
.section:has(> .life) { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.life { align-items: start; }
.life-head { position: static; }
.mood[data-count="1"] { max-width: 360px; }
.mood[data-count="1"] figure { flex-basis: 76%; }
.mood[data-count="2"] { max-width: 400px; gap: 0; }
.mood[data-count="2"] figure { flex-basis: 62%; }
.mood[data-count="2"] figure:nth-child(1) { margin-right: auto; }
.mood[data-count="2"] figure:nth-child(2) { margin-left: auto; margin-top: -22px; }
.mood[data-count="3"] { max-width: 440px; }
.mood[data-count="3"] figure { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
