/* ============================================================
   Olga Viorel — Business Growth Partner
   White background · black text · olive-green accent · Noe fonts
   Layout: section title (left) + content (right) · full width
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family:"Noe Display"; src:url("../fonts/NoeDisplay-Medium.ttf") format("truetype"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Noe Display"; src:url("../fonts/NoeDisplay-Bold.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Noe Display"; src:url("../fonts/NoeDisplay-RegularItalic.ttf") format("truetype"); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"Noe Text"; src:url("../fonts/NoeText-Book.otf") format("opentype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Noe Text"; src:url("../fonts/NoeText-Semibold.otf") format("opentype"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Noe Text"; src:url("../fonts/NoeText-Italic.otf") format("opentype"); font-weight:400; font-style:italic; font-display:swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --paper: #ffffff;
  --accent: #5b7d4f;          /* olive green */
  --accent-d: #4a6841;
  --accent-tint: #eef2ea;
  --on-accent: #ffffff;
  --gold: #b8965a;

  --display: "Noe Display", Georgia, serif;
  --text: "Noe Text", Georgia, serif;

  --fs: clamp(19px, 1.26vw, 22px);    /* one size for all body text (+20%) */
  --gut: clamp(20px, 4.5vw, 84px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--text); font-weight: 400; line-height: 1.55;
  font-size: var(--fs);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- The 4 type styles ---------- */
/* 1 · TITLE — Noe, normal weight */
.title {
  font-family: var(--display); font-weight: 500; line-height: 1.0;
  letter-spacing: -0.015em; font-size: clamp(2.4rem, 5.4vw, 5rem);
}
.title--sm { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.title--split { font-size: clamp(1.9rem, 3.4vw, 3.5rem); }
.title--split span { display: inline-block; white-space: nowrap; }
/* 2 · TEXT — body (default body font) — one uniform size everywhere */
.text, p { font-size: var(--fs); }
/* 3 · SECTION DESCRIPTION (same size as body) */
.desc { font-family: var(--text); font-weight: 400; color: var(--muted); font-size: var(--fs); line-height: 1.55; }
/* 4 · ITALIC — quotes */
.italic, em, blockquote {
  font-family: var(--display); font-style: italic; font-weight: 400;
}

p + p { margin-top: 1em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; padding-inline: var(--gut); }
.sec { padding-block: clamp(72px, 11vh, 150px); }
.sec--tall { min-height: 100vh; display: flex; align-items: center; }
.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* two-column: title left · content right */
.sec__grid {
  display: grid; grid-template-columns: minmax(280px, 0.78fr) 1.22fr;
  gap: clamp(36px, 5vw, 96px); align-items: start;
}
.sec__head { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.sec__head .title { margin-bottom: clamp(18px, 1.8vw, 26px); }
.sec__head .desc { max-width: 38ch; }
.sec__body > * + * { margin-top: clamp(14px, 1.6vw, 20px); }
.sec__lead { font-size: var(--fs); line-height: 1.55; margin-bottom: clamp(24px, 3vw, 40px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner { width: 100%; padding-inline: var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--muted); }
.nav .brand { opacity: 0; transition: opacity .35s var(--ease); }
.nav.brand-visible .brand { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); }
.nav__links a { font-size: 14px; font-weight: 400; color: var(--ink); position: relative; padding-block: 6px; transition: color .25s var(--ease); }
.nav__links a::after { content:""; position:absolute; left:0; bottom:0; height:1px; width:0; background: var(--accent); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { font-family: var(--text); font-weight: 600; font-size: 14px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 10px 20px; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.nav__cta:hover { background: var(--accent); color: #fff; }
.nav__burger { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav__burger span { display: block; height: 2px; width: 26px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: var(--nav-h); padding-bottom: clamp(40px, 6vh, 80px); }
.hero__top {
  display: flex; align-items: flex-start; gap: clamp(30px, 4vw, 70px);
}
.hero__leftcol { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px); flex: 0.85 0 0; min-width: 280px; padding-top: clamp(90px, 18vh, 240px); container-type: inline-size; }
.hero__title { font-size: clamp(1.6rem, 8.8cqw, 5rem); line-height: 1.12; color: var(--accent); }
.hero__title span { display: block; white-space: nowrap; }
.hero__signature { margin-top: clamp(24px, 3vw, 36px); padding-top: clamp(16px, 1.8vw, 22px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hero__signature-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 2.7vw, 2.6rem); color: var(--ink); line-height: 1.1; }
.hero__signature-role { font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 1.9vw, 1.9rem); color: var(--muted); line-height: 1.1; }
.hero__details { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.hero__lead { margin-bottom: 0; }
.hero__details .cta-big { margin-top: clamp(20px, 2.4vw, 32px); }

.hero__photo { flex: 1.15 0 0; position: sticky; top: var(--nav-h); background: var(--paper); display: flex; align-items: flex-end; justify-content: center; height: calc(100vh - var(--nav-h)); }
.hero__photo img { height: 90vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }

/* ============================================================
   NUMBER BOXES (cifre) — tall rectangular outline, green numbers
   ============================================================ */
.numgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.4vw, 22px); }
.numbox {
  border: 1px solid var(--line); background: var(--paper);
  padding: clamp(20px, 1.8vw, 30px);
  aspect-ratio: 4 / 5;                          /* portrait proportions, equal size */
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  opacity: 0; transition: opacity .8s var(--ease);
}
.numbox.in { opacity: 1; }
.hero .numbox { opacity: 1; }   /* no scroll-reveal in the hero section */
/* left column offset down relative to the right column */
.numgrid > .numbox:nth-child(odd) { transform: translateY(clamp(22px, 3.4vw, 56px)); }

/* Positioning bar (hero) — exact phrases, accent on the numbers */
.credbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.4vw, 20px); }
.credbox {
  border: 1px solid var(--line); padding: clamp(22px, 2.2vw, 34px);
  font-family: var(--display); font-weight: 500; line-height: 1.3;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  display: flex; align-items: flex-end; min-height: clamp(120px, 12vw, 160px);
}
.credbox b { color: var(--accent); font-weight: 500; }
.credbox--wide { grid-column: 1 / -1; }

/* Document-style list (Education & Credentials) */
.doclist { list-style: none; max-width: 64ch; }
.doclist li { border-top: 1px solid var(--line); padding-block: clamp(13px, 1.5vw, 20px); font-size: var(--fs); }
.doclist li:last-child { border-bottom: 1px solid var(--line); }
.doclist b { color: var(--accent); font-weight: 500; }
.numbox__num { font-family: var(--display); font-weight: 500; color: var(--accent); line-height: 0.92; letter-spacing: -0.02em; font-size: clamp(2.4rem, 6.8vw, 6.4rem); white-space: nowrap; }  /* as large as fits one line */
.numbox__label { font-size: var(--fs); color: var(--ink); line-height: 1.4; }

/* ============================================================
   FILL CARDS — colour in one-by-one on scroll
   ============================================================ */
.fillstack { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.fillcard {
  border: 1px solid var(--line);                 /* same border as the number boxes */
  background: var(--paper); color: var(--ink);
  padding: clamp(24px, 2.4vw, 40px);
  transition: transform .7s var(--ease), opacity .7s var(--ease);
  transform: translateY(26px); opacity: 0;
}
.fillcard.up { transform: none; opacity: 1; }
.fillcard__top { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.fillcard__idx { display: none; }   /* numbers removed from these cards */
.fillcard h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); transition: color .6s var(--ease); }
.fillcard.in h3 { color: var(--accent); }
.fillcard .when { display: block; font-family: var(--display); font-style: italic; color: var(--muted); margin-bottom: 10px; font-size: var(--fs); }
.fillcard p { font-size: var(--fs); }
.bullets { list-style: none; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 1.2em; font-size: var(--fs); line-height: 1.55; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.callout-green { background: var(--accent-d); color: var(--accent-tint); border-radius: 14px; padding: clamp(24px, 3vw, 40px); margin: clamp(20px, 2.4vw, 32px) 0; }
.callout-green .bullets { gap: 14px; }
.callout-green .bullets li::before { background: var(--accent-tint); }
.callout-green b { color: #fff; }

/* ============================================================
   CHALLENGE body text (large, same size)
   ============================================================ */
.bigtext p { font-size: var(--fs); line-height: 1.55; }  /* full column width, uniform size */
.bigtext p strong { font-weight: 700; color: var(--ink); }

/* ============================================================
   QUOTE band
   ============================================================ */
.quoteband { text-align: center; padding-block: clamp(80px, 14vh, 180px); }
.quoteband blockquote { font-size: clamp(1.9rem, 4.8vw, 4.2rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 20ch; margin: 0 auto; }

/* ============================================================
   ABOUT photo (What I Bring)
   ============================================================ */
.headphoto { margin-top: clamp(24px, 3vw, 40px); overflow: hidden; background: #f0f0f0; }
.headphoto img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.03); }
.subhead { margin: clamp(40px, 5vw, 70px) 0 clamp(18px, 2vw, 28px); }

/* ============================================================
   CASES — taller, airy; first paragraph inside
   ============================================================ */
.casestack { display: grid; gap: clamp(16px, 1.8vw, 26px); }
.casecard {
  border: 1px solid var(--line); background: var(--paper); text-align: left; font: inherit; color: inherit;
  padding: clamp(30px, 3.4vw, 52px); cursor: pointer; display: grid; gap: clamp(18px, 2vw, 26px);
  transition: border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
  transform: translateY(26px); opacity: 0;
}
.casecard.up { transform: none; opacity: 1; }
.casecard:hover { border-color: var(--accent); box-shadow: 0 26px 50px -34px rgba(0,0,0,0.4); }
.casecard__idx { font-family: var(--display); font-weight: 500; color: var(--accent); font-size: clamp(1rem, 1.3vw, 1.4rem); letter-spacing: 0.04em; }
.casecard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.casecard__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.01em; }
.casecard__lead { color: var(--ink); max-width: 62ch; }
.casecard__metrics { display: flex; flex-wrap: wrap; gap: 14px; }
.metric { border: 1px solid var(--line); padding: 14px 18px; min-width: 130px; }
.metric b { display: block; font-family: var(--display); font-weight: 500; color: var(--accent); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1; }
.metric span { font-size: 13px; color: var(--muted); }
.casecard__open { flex-shrink: 0; font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.01em; text-transform: none; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.casecard__open::after { content: "↗"; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__rows { display: grid; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: clamp(18px, 2vw, 28px); border-top: 1px solid var(--line); align-items: baseline; }
.contact__rows .contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__row .k { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact__row .v { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.7rem); transition: color .25s var(--ease); }
.contact__row a.v:hover { color: var(--accent); }
.cta-big { display: inline-flex; align-self: flex-start; align-items: center; gap: 14px; margin-top: clamp(36px, 4vw, 56px); font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.2rem); border-bottom: 2px solid var(--accent); padding-bottom: 8px; transition: gap .35s var(--ease), color .25s var(--ease); }
.cta-big:hover { gap: 24px; color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: clamp(46px, 6vh, 84px); background: #fafafa; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer small { color: var(--muted); font-size: 13px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(16px,4vw,50px); background: rgba(17,17,17,0.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.modal.show { opacity: 1; visibility: visible; }
.modal__panel { background: var(--paper); max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; padding: clamp(28px,4vw,56px); transform: translateY(24px) scale(.98); transition: transform .5s var(--ease); position: relative; }
.modal.show .modal__panel { transform: none; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 20px; color: var(--ink); transition: background .25s var(--ease), color .25s var(--ease); }
.modal__close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal__label { color: var(--accent); letter-spacing: 0.04em; font-size: 13px; }
.modal__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.05; margin: 12px 0 24px; letter-spacing: -0.01em; }
.modal__panel h5 { font-family: var(--text); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-size: 12.5px; color: var(--muted); margin: 24px 0 8px; }
.modal__panel ul { padding-left: 1.1em; margin-top: 8px; }
.modal__panel li { margin-bottom: 6px; }
.modal__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-top: 10px; }

/* ============================================================
   SCROLL ANIMATION primitives
   ============================================================ */
.rw { opacity: .15; transition: opacity .12s linear; will-change: opacity; }
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rw, .reveal-up, .fillcard, .casecard { opacity: 1 !important; transform: none !important; }
  .numbox { opacity: 1 !important; }  /* keep the layout offset, drop the fade */
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .sec__grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .sec__head { position: static; }
  .hero__top { flex-direction: column; align-items: stretch; gap: clamp(28px, 5vw, 44px); }
  .hero__leftcol { display: contents; }
  .hero__id { order: 1; container-type: inline-size; padding-right: clamp(16px, 5vw, 32px); }
  .hero__photo { order: 2; }
  .hero__details { order: 3; }
  .hero__photo { position: static; max-width: 420px; }
  .hero__photo img { height: auto; max-width: 100%; aspect-ratio: auto; }
  .bigtext p, .bigtext p.max { max-width: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px var(--gut) 26px; transform: translateY(-120%); transition: transform .45s var(--ease); box-shadow: 0 30px 40px -30px rgba(0,0,0,.3); }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__links a { font-size: 18px; padding-block: 12px; width: 100%; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .numgrid { grid-template-columns: 1fr 1fr; }
  .numgrid > .numbox:nth-child(odd) { transform: none; }
  .credbar { grid-template-columns: 1fr; }
  .contact__row { flex-direction: column; gap: 4px; }
  .title--split span { white-space: normal; }
  .casecard__top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__signature-name { font-size: clamp(1.25rem, 6vw, 1.7rem); white-space: nowrap; }
  .hero__signature-role { font-size: clamp(0.95rem, 4.4vw, 1.2rem); white-space: nowrap; }
}
