@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/*
  The Profile Lounge — "Blueprint Minimal" Design System
  ═══════════════════════════════════════════════════════
  Concept: A premium digital workspace — clean, structured, confident.
           Like the desk of a very organised creative professional.

  KEY DIFFERENCES vs ALL other sites in project:
  • Bricolage Grotesque + Source Serif 4 — unique font pair (not in any other domain)
  • 3D tilt effect on article cards (JS perspective/rotateX/Y on mousemove) — unique
  • Hero: full-width typographic layout, BIG headline spanning page, NO image, NO gradients
  • Horizontal article card layout (image thumb on left) — NOT a pure grid
  • Section number markers (01 / 02 …) as large watermark decorators — different approach
  • Header: solid white, left-bar indicator on active nav, single bottom rule
  • Accordion: borderless, rule-line only, large + / − with full-line hover area
  • Feature blocks: staggered two-row pill cluster
  • Article body h2: underline rule from left (grows to full width on ::after) — not left-border
  • Footer: navy, centered, generous spacing, no grid columns
*/

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

:root {
  --navy:       #2C3E50;
  --navy-dk:    #1a2535;
  --blue:       #4A6FA5;
  --blue-dk:    #2e508a;
  --blue-lt:    #e4ecf7;
  --coral:      #E07A5F;
  --coral-dk:   #c45f42;
  --coral-lt:   #fdeee9;
  --bg:         #F4F7F6;
  --bg-warm:    #fafaf8;
  --white:      #FFFFFF;
  --text:       #333333;
  --text-soft:  #556070;
  --text-muted: #8a9aaa;
  --rule:       rgba(44,62,80,0.12);
  --rule-md:    rgba(44,62,80,0.22);

  --shadow-xs:  0 1px 4px rgba(44,62,80,0.06);
  --shadow-sm:  0 2px 12px rgba(44,62,80,0.08);
  --shadow:     0 6px 28px rgba(44,62,80,0.12);
  --shadow-lg:  0 16px 56px rgba(44,62,80,0.18);

  --max-w:      1200px;
  --text-max:   780px;
  --header-h:   68px;
  --radius:     10px;
  --radius-sm:  6px;
  --t:          0.22s ease;
  --t-slow:     0.42s cubic-bezier(0.4,0,0.2,1);

  --f-display:  'Bricolage Grotesque', system-ui, sans-serif;
  --f-body:     'Bricolage Grotesque', system-ui, sans-serif;
  --f-serif:    'Source Serif 4', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrapper {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  height: var(--header-h);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.logo-link:hover { opacity: 0.75; }
.logo-link img { height: 42px; width: auto; }

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.site-nav a {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  padding: 0 1.1rem;
  height: var(--header-h);
  transition: color var(--t);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: calc(50% - 0.9em);
  left: 1.1rem;
  right: 1.1rem;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background var(--t);
}
.site-nav a:hover::after { background: rgba(44,62,80,0.2); }
.site-nav a.active { color: var(--navy); font-weight: 600; }
.site-nav a.active::after { background: var(--coral); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--t), opacity var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.85rem clamp(16px,4vw,44px);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid var(--rule);
  transition: color var(--t), padding-left var(--t);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--navy); padding-left: calc(clamp(16px,4vw,44px) + 8px); }
.mobile-nav a.active { border-left: 3px solid var(--coral); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  background: var(--white);
  padding: clamp(56px, 8vw, 100px) 0 0;
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after { content: '—'; color: var(--rule-md); }

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.07;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0;
  max-width: none;
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--rule-md);
  margin: 2rem 0;
  position: relative;
}
.hero-rule::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  width: 80px; height: 3px;
  background: var(--coral);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  padding-bottom: clamp(40px, 5vw, 60px);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 520px;
}
.hero-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-primary:hover {
  background: var(--navy-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,62,80,0.28);
}
.btn-primary .arr { transition: transform var(--t); }
.btn-primary:hover .arr { transform: translateX(4px); }


/* ═══════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════ */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.sec-num {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 700;
  color: rgba(44,62,80,0.06);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  flex-shrink: 0;
}
.sec-title-block { flex: 1; padding-bottom: 0.2rem; }
.sec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.2rem;
}
.sec-title-block h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════
   INTRO SECTION
═══════════════════════════════════════ */
.intro-section {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--bg);
}

.intro-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}
.intro-text p {
  font-family: var(--f-serif);
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.intro-text p:last-child { margin-bottom: 0; }

.intro-img { position: relative; }
.article-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* ═══════════════════════════════════════
   ADDING-SECTION — Principles
═══════════════════════════════════════ */
.adding-section {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.adding-section > .wrapper > h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.adding-section > .wrapper > p {
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.principle-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rule-md);
}
.principle-card .adding-img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.principle-body { padding: 1.25rem 1.5rem 1.5rem; }
.principle-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.principle-body p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   ADDING-BLOCKS — Feature cluster
═══════════════════════════════════════ */
.feature-blocks-section {
  padding: clamp(40px, 5vw, 65px) 0;
  background: var(--bg);
}

.feature-blocks-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.feature-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1.5px solid var(--rule-md);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  transition: border-color var(--t), background var(--t), transform var(--t);
  cursor: default;
  width: 260px;
  flex-shrink: 0;
}
.feature-block:hover {
  border-color: var(--blue);
  background: var(--blue-lt);
  transform: translateY(-2px);
}
.feature-block .feature-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-lt);
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.feature-block h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   ARTICLE CARDS (3D tilt — unique feature)
═══════════════════════════════════════ */
.articles-preview-section {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--white);
  border-top: 1px solid var(--rule);
}

.article-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--t), box-shadow var(--t);
  transform-style: preserve-3d;
  will-change: transform;
}
.article-card:hover {
  border-color: var(--rule-md);
  box-shadow: var(--shadow);
}

.card-num {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(44,62,80,0.14);
  line-height: 1;
  text-align: center;
  letter-spacing: -0.03em;
}

.card-body {}
.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  transition: color var(--t);
}
.article-card:hover .card-body h3 { color: var(--blue); }

.card-excerpt {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-md);
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.article-card:hover .card-arrow {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════
   ACCORDION
═══════════════════════════════════════ */
.accordion-section {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.accordion-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.accordion { border-top: 1px solid var(--rule-md); }

.accordion-item { border-bottom: 1px solid var(--rule); }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: color var(--t);
}
.accordion-header:hover { color: var(--blue); }
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-md);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.accordion-item.open .accordion-toggle {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.accordion-item.open .accordion-content { max-height: 300px; }
.accordion-content p {
  padding: 0 1.5rem 1.25rem 0;
  font-family: var(--f-serif);
  font-size: 0.925rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   PAGE HERO (About, Articles)
═══════════════════════════════════════ */
.page-hero {
  background: var(--white);
  padding: clamp(40px, 5vw, 65px) 0;
  border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.page-hero .subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-soft);
}

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.about-content {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--bg);
}
.text-content {
  max-width: var(--text-max);
  margin: 0 auto;
}
.text-content p {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}
.text-content p:last-child { margin-bottom: 0; }

.about-pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--coral);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-pullquote blockquote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--navy);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   ARTICLES PAGE
═══════════════════════════════════════ */
.articles-page {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--bg);
}

/* ═══════════════════════════════════════
   ARTICLE SINGLE PAGE
═══════════════════════════════════════ */
.article-page-content {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--bg);
}
.article-reading-bar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  z-index: 200;
  transition: width 0.1s linear;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--blue);
  font-weight: 500;
  transition: color var(--t);
}
.breadcrumb a:hover { color: var(--blue-dk); }
.breadcrumb .sep { opacity: 0.4; }

.article-header { margin-bottom: 2.5rem; }
.article-header .read-time {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.article-header h1 {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.article-body {
  font-family: var(--f-serif);
}
.article-body h2 {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  position: relative;
}
.article-body h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--rule);
}
.article-body p {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  line-height: 1.85;
}
.article-body .article-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--rule-md);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.back-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.back-link::before { content: '←'; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: clamp(48px, 6vw, 72px) 0 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img {
  height: 40px;
  width: auto;
  filter: invert(1) opacity(0.9);
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  padding: 0.3rem 0.9rem;
  transition: color var(--t);
}
.footer-nav a:hover { color: var(--white); }
.footer-nav span {
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
}
.footer-copy {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1170px) {
  .feature-blocks-cluster { justify-content: center; gap: 0.5rem; }
  .feature-block { width: 190px; flex-shrink: 0; padding: 0.55rem 1rem; }
}
@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-action { align-items: flex-start; }
  .intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .article-card { grid-template-columns: 36px 1fr auto; gap: 1rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .feature-block { width: 190px; }
  .feature-block h3 { font-size: 0.78rem; }
  .feature-block .feature-icon { width: 28px; height: 28px; }
}
@media (max-width: 540px) {
  .article-card { grid-template-columns: 1fr auto; }
  .card-num { display: none; }
  .feature-block { width: 190px; padding: 0.45rem 0.75rem; gap: 0.4rem; }
}
