/* ==========================================================
   Blue Blossom Group — main stylesheet
   Balanced type scale: headings and body text are sized
   relative to each other and scale fluidly with the screen.
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #152526;
  --ink-deep: #101c1d;
  --ink-soft: #314445;
  --cream: #f7f6f1;
  --paper: #eeeee7;
  --white: #fffefa;
  --sage: #a3b9ac;
  --sage-deep: #607e70;
  --copper: #c59b79;
  --muted: #586862;
  --line: rgba(21, 37, 38, .15);
  --line-light: rgba(244, 247, 239, .19);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1220px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 88px;

  /* Type scale — one ratio, used everywhere */
  --fs-display: clamp(46px, 6.2vw, 92px);   /* hero h1 */
  --fs-h2:      clamp(36px, 4vw, 58px);     /* section headings */
  --fs-h2-lg:   clamp(42px, 5.4vw, 80px);   /* contact headline */
  --fs-h3:      clamp(28px, 2.8vw, 42px);   /* card headings */
  --fs-lead:    clamp(18px, 1.35vw, 20px);  /* intro paragraphs */
  --fs-body:    17px;
  --fs-small:   15px;
  --fs-label:   13px;

  --section-y: clamp(72px, 8vw, 112px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
section { position: relative; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
body.menu-open { overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-serif, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}
em { font-style: italic; }

.section-pad { padding: var(--section-y) 0; }

/* ---------- Shared bits ---------- */
.arrow { display: inline-block; font-size: 1.1em; line-height: 1; transition: transform .25s var(--ease); }
a:hover .arrow { transform: translate(2px, -2px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--sage); color: var(--ink-deep); }
.btn-primary:hover { background: #b5c9bc; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #f1f4ef;
  background: rgba(16, 28, 29, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-lockup { height: 60px; width: auto; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.nav-links a { position: relative; font-size: var(--fs-small); font-weight: 500; }
.nav-links a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.nav-contact):hover::after { transform: scaleX(1); }
.nav-links a.nav-contact {
  display: inline-flex; align-items: center; gap: 16px;
  margin-left: 8px;
  padding: 12px 18px;
  font-size: 14px; font-weight: 600;
  background: var(--paper); color: var(--ink);
  transition: background .25s;
}
.nav-links a.nav-contact:hover { background: var(--white); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none; border: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px;
  height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: min(820px, 100vh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  color: #f1f4ef;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(84, 122, 107, .28), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(197, 155, 121, .12), transparent 70%),
    linear-gradient(160deg, #1a2c2d 0%, var(--ink-deep) 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.hero h1 em { color: var(--sage); }
.hero-lede {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(241, 244, 239, .78);
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 28px; margin-top: 40px; }

.hero-orbit { width: 100%; max-width: 520px; justify-self: end; }
.hero-orbit svg { width: 100%; height: auto; overflow: visible; }
.orbit-spin, .orbit-reverse { transform-origin: 300px 300px; }
.orbit-spin { animation: spin 60s linear infinite; }
.orbit-reverse { animation: spin 80s linear infinite reverse; }
.orbit-core { transform-origin: 300px 300px; animation: pulse 6s ease-in-out infinite; }
.hero-center-icon { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- Section heading ---------- */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-heading h2 { font-size: var(--fs-h2); line-height: 1.06; }
.section-heading p { font-size: var(--fs-body); line-height: 1.7; color: var(--muted); max-width: 26em; justify-self: end; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 56px;
  min-height: 460px;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card.invest { background: #e8e8e0; }
.service-card.consult { background: #dce6df; }
.service-card::before {
  content: "";
  position: absolute;
  width: 440px; height: 440px;
  right: -150px; top: -60px;
  border-radius: 50%;
  border: 40px solid rgba(21, 37, 38, .045);
  pointer-events: none;
}
.card-top, .card-bottom { position: relative; z-index: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-top span:first-child { font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); }
.card-bottom h3 { font-size: var(--fs-h3); line-height: 1.1; margin-bottom: 20px; }
.card-bottom p { font-size: var(--fs-body); line-height: 1.7; color: var(--muted); max-width: 30em; }
.card-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.card-list span {
  padding: 7px 12px;
  font-size: var(--fs-label);
  line-height: 1.3;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .45);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(16, 28, 29, .35); }
}

/* ---------- Focus ---------- */
.focus { background: var(--paper); }
.focus-columns {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.focus-statement { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 24px; }
.focus-statement em { color: var(--sage-deep); }
.focus-aside { font-size: var(--fs-small); line-height: 1.7; color: var(--muted); max-width: 26em; }
.focus-list { border-top: 1px solid var(--line); }
.focus-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), color .3s;
}
.focus-item .number { font-size: var(--fs-label); color: var(--sage-deep); font-variant-numeric: tabular-nums; }
.focus-item h3 { font-family: var(--sans); font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.focus-item .plus { font-size: 20px; color: var(--sage-deep); transition: transform .3s var(--ease); }
.focus-item:hover { padding-left: 8px; }
.focus-item:hover .plus { transform: translate(3px, -3px); }

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.approach-left { position: sticky; top: calc(var(--header-h) + 32px); }
.approach-left h2 { font-size: var(--fs-h2); line-height: 1.06; margin-bottom: 24px; }
.approach-left p { font-size: var(--fs-body); line-height: 1.7; color: var(--muted); max-width: 24em; }
.approach-right { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.step-index { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--sage-deep); }
.step h3 { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }
.step p { font-size: var(--fs-body); line-height: 1.7; color: var(--muted); max-width: 32em; }

/* ---------- Statement ---------- */
.statement {
  padding: var(--section-y) 0;
  background: #cdd8d0;
  overflow: hidden;
}
.statement::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -140px; top: -200px;
  border-radius: 50%;
  border: 56px solid rgba(96, 126, 112, .14);
  box-shadow: 0 0 0 48px rgba(96, 126, 112, .07);
  pointer-events: none;
}
.statement .container { position: relative; z-index: 1; }
.statement h2 { font-size: var(--fs-h2); line-height: 1.1; max-width: 16em; margin-bottom: 28px; }
.statement h2 em { color: var(--sage-deep); }
.statement p { font-size: var(--fs-body); line-height: 1.7; color: var(--ink-soft); max-width: 34em; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-art { aspect-ratio: 1; max-width: 520px; background: var(--ink); color: #f1f4ef; }
.about-art-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.about-mark-actual { width: 40%; height: auto; }
.about-brand-caption { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.01em; }
.about-copy h2 { font-size: var(--fs-h2); line-height: 1.08; margin-bottom: 28px; max-width: 13em; }
.about-copy p { font-size: var(--fs-body); line-height: 1.75; color: var(--muted); max-width: 32em; margin-bottom: 18px; }
.about-copy p:last-of-type { margin-bottom: 0; }
.about-link {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 32px; padding-bottom: 8px;
  font-size: var(--fs-small); font-weight: 600;
  border-bottom: 1px solid #8a9991;
  transition: gap .2s;
}
.about-link:hover { gap: 20px; }

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-y) 0 72px;
  background: var(--ink-deep);
  color: #f1f4ef;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 850px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(rgba(100, 139, 113, .23), transparent 67%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact h2 { font-size: var(--fs-h2-lg); line-height: 1.04; letter-spacing: -0.035em; max-width: 12em; }
.contact h2 em { color: var(--sage); }
.contact-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 32px 48px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}
.contact-line p { font-size: var(--fs-body); line-height: 1.7; color: rgba(241, 244, 239, .72); max-width: 28em; }
.contact-action { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-button {
  padding: 16px 20px;
  font-size: var(--fs-small); font-weight: 500;
  background: transparent;
  border: 1px solid var(--line-light);
  transition: border-color .25s, background .25s;
}
.copy-button:hover { border-color: rgba(241, 244, 239, .5); background: rgba(241, 244, 239, .05); }
.contact-email {
  display: inline-block;
  margin-top: 48px; padding-bottom: 6px;
  font-size: clamp(18px, 1.6vw, 22px);
  border-bottom: 1px solid var(--line-light);
  transition: border-color .25s;
}
.contact-email:hover { border-color: currentColor; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: rgba(241, 244, 239, .66); border-top: 1px solid var(--line-light); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.footer .brand-lockup { height: 48px; opacity: .9; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; }
.footer-meta a:hover { color: #f1f4ef; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 60;
  padding: 13px 20px;
  font-size: var(--fs-small);
  background: var(--cream); color: var(--ink);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .4);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.delay-1 { transition-delay: .1s; }
.js .reveal.delay-2 { transition-delay: .2s; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .service-card { min-height: 420px; }
}

@media (max-width: 850px) {
  :root { --header-h: 72px; }
  .brand-lockup { height: 48px; }

  .menu-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 4px;
    padding: 32px var(--gutter);
    background: var(--ink-deep);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-family: var(--serif); font-size: 32px; font-weight: 400; padding: 8px 0; }
  .nav-links a:not(.nav-contact)::after { display: none; }
  .nav-links a.nav-contact { font-family: var(--sans); font-size: var(--fs-small); margin: 24px 0 0; padding: 14px 20px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-orbit { max-width: 380px; justify-self: center; order: -1; margin-bottom: -8px; }

  .section-heading,
  .focus-columns,
  .approach-grid,
  .about-grid { grid-template-columns: 1fr; }
  .section-heading p { justify-self: start; }
  .approach-left { position: static; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }

  .about-art { max-width: 420px; }
}

@media (max-width: 620px) {
  :root { --fs-body: 16px; --fs-small: 14px; }
  .hero-orbit { max-width: 300px; }
  .hero-actions { gap: 20px; }
  .btn { padding: 15px 20px; }
  .service-card { gap: 40px; }
  .focus-item { grid-template-columns: 36px 1fr auto; padding: 18px 0; }
  .step { grid-template-columns: 44px 1fr; padding: 26px 0; }
  .statement::before { width: 360px; height: 360px; right: -160px; top: -140px; border-width: 36px; }
  .contact-line { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 375px) {
  :root { --gutter: 18px; }
  .brand-lockup { height: 42px; }
  .card-list span { font-size: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
