/* ==========================================================================
   Graystone Capital — Design System
   Palette: black / white / gray with slate-blue accent
   Type: Fraunces (display serif) + Inter (sans)
   ========================================================================== */

:root {
  /* Color */
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --gray-900: #2b2b2b;
  --gray-600: #6b6b6b;
  --gray-400: #a6a6a6;
  --gray-200: #e5e5e5;
  --gray-100: #f2f2f2;
  --gray-50: #f8f8f7;
  --white: #ffffff;

  --slate: #3b5b7a;       /* accent */
  --slate-dark: #2c4660;
  --slate-light: #6a87a3;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Spacing / layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--black); }
.display { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--slate); display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--gray-600); line-height: 1.65; }
.serif-accent { font-family: var(--font-display); font-style: italic; color: var(--slate); }

/* ----- Layout ----- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--gray-50); }
.section--dark { background: var(--black); color: var(--gray-200); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: var(--gray-400); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.02em; padding: 0.95rem 1.7rem; border: 1px solid var(--black);
  background: var(--black); color: var(--white); cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--slate); border-color: var(--slate); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--on-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--on-dark:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: transform .4s var(--ease);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; color: var(--gray-900);
  position: relative; padding-block: 0.4rem; transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--slate); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn--ghost:hover { color: var(--white); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ----- Hero ----- */
.hero { position: relative; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero .display { max-width: 14ch; }
.hero .lead { max-width: 52ch; margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-meta { margin-top: 4rem; display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--gray-200); padding-top: 2rem; }
.hero-meta .stat .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--black); }
.hero-meta .stat .label { font-size: 0.82rem; color: var(--gray-600); letter-spacing: 0.04em; }
/* faint stone-strata backdrop */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 78px, var(--gray-100) 78px, var(--gray-100) 79px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, transparent);
}

/* ----- Grid cards ----- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-200); padding: 2.25rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(10,10,10,0.25); }
.card .idx { font-family: var(--font-display); font-style: italic; color: var(--slate); font-size: 1.1rem; }
.card h3 { margin: 0.9rem 0 0.6rem; }
.card p { color: var(--gray-600); font-size: 0.98rem; }
.card .card-icon { width: 40px; height: 40px; margin-bottom: 1.2rem; }
.card .card-icon line, .card .card-icon path, .card .card-icon rect, .card .card-icon circle { stroke: var(--slate); }

/* ----- Split feature ----- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split .media { aspect-ratio: 4/5; background: var(--gray-100); position: relative; overflow: hidden; }
.split .media .mark { position: absolute; inset: 0; display: grid; place-items: center; }
.split .media .mark svg { width: 45%; opacity: 0.9; }
.split .media img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Tone a colorful brand photo toward the muted palette (non-destructive) */
.photo--toned { filter: saturate(0.6) contrast(1.03); }

/* Image-backed band */
.band {
  width: 100%; min-height: clamp(260px, 40vw, 460px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* Dark section with a background photo + legibility overlay */
.section--dark.bg-image { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.section--dark.bg-image::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,0.80); z-index: 1; }
.section--dark.bg-image .wrap { position: relative; z-index: 2; }

/* Optional looping video layer — sits above the poster photo, below the overlay.
   If the video file is absent, the underlying bg-image photo shows through (graceful). */
.bg-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bg-video__media { display: none; } } /* falls back to the still photo */
@media (max-width: 640px) { .bg-video__media { display: none; } }              /* save mobile data; show photo */

/* ----- Partners ----- */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; }
.partner-chip {
  border: 1px solid var(--gray-200); padding: 0.85rem 1.4rem; font-weight: 600; font-size: 0.95rem;
  color: var(--gray-900); transition: border-color .3s var(--ease), color .3s var(--ease);
}
.partner-chip:hover { border-color: var(--slate); color: var(--slate); }

/* ----- Leadership ----- */
.leader { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; align-items: start; }
.leader .avatar {
  width: 96px; height: 96px; background: var(--gray-100); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.8rem; color: var(--slate); border: 1px solid var(--gray-200);
  overflow: hidden;
}
.leader .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader--lead { grid-template-columns: 140px 1fr; }
.leader--lead .avatar { width: 140px; height: 168px; }

/* Featured single executive — balanced full-width card */
.leader-feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; background: var(--white); border: 1px solid var(--gray-200); padding: clamp(1.5rem, 3vw, 2.75rem); }
.leader-feature__photo { aspect-ratio: 4/5; overflow: hidden; background: var(--gray-100); }
.leader-feature__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.leader-feature__body .role { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.leader-feature__body h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin: 0.35rem 0 1rem; }
.leader-feature__body p.bio { color: var(--gray-600); }
@media (max-width: 760px) { .leader-feature { grid-template-columns: 1fr; } .leader-feature__photo { aspect-ratio: 3/2; } }
.leader h3 { margin-bottom: 0.2rem; }
.leader .role { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.leader p { color: var(--gray-600); font-size: 0.97rem; margin-top: 0.7rem; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1px solid var(--gray-200); background: var(--white);
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--slate); }
.field textarea { resize: vertical; min-height: 140px; }
.contact-detail { display: flex; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--gray-200); }
.contact-detail .k { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); font-weight: 600; min-width: 90px; }
.contact-detail .v { color: var(--gray-900); }

/* ----- Footer ----- */
.site-footer { background: var(--black); color: var(--gray-400); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #232323; }
.site-footer .footer-brand { display: inline-block; padding: 0; }
.site-footer .footer-brand img { height: 58px; width: auto; }
.site-footer h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 1.1rem; }
.site-footer a { color: var(--gray-400); font-size: 0.95rem; display: block; padding: 0.32rem 0; transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: 0.82rem; color: var(--gray-600); }

/* Footer social icon */
.site-footer .social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; margin-top: 1.5rem; border: 1px solid #262626; transition: border-color .3s var(--ease), background .3s var(--ease); }
.site-footer .social svg { width: 18px; height: 18px; fill: var(--gray-400); transition: fill .3s var(--ease); }
.site-footer .social:hover { border-color: var(--slate); background: var(--slate); }
.site-footer .social:hover svg { fill: #fff; }

/* Leadership inline link */
.leader-link { color: var(--slate); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: .4rem; transition: gap .3s var(--ease); }
.leader-link:hover { gap: .7rem; }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----- Notice / placeholder ----- */
.placeholder { outline: 1px dashed var(--slate-light); outline-offset: 4px; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split .media { aspect-ratio: 16/10; order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 1rem var(--gutter) 2rem; transform: translateY(-120%); transition: transform .4s var(--ease);
    height: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--gray-100); }
  .nav-links .nav-cta { margin: 1rem 0 0; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .leader { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Perspectives — article index + article page styles
   ========================================================================== */
.article-tag { font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--slate); }
.article-date, .article-author { font-size:.85rem; color:var(--gray-600); }
.article-card__meta { display:flex; align-items:center; gap:1rem; margin-bottom:.85rem; flex-wrap:wrap; }
.article-card { border:1px solid var(--gray-200); padding:2.25rem; background:var(--white); transition:border-color .35s var(--ease),transform .35s var(--ease),box-shadow .35s var(--ease); }
.article-card:hover { border-color:var(--black); transform:translateY(-3px); box-shadow:0 20px 40px -24px rgba(10,10,10,.2); }
.article-card--featured { border-left:3px solid var(--slate); }
.article-card__title { font-family:var(--font-display); font-size:clamp(1.4rem,2.5vw,2rem); font-weight:500; line-height:1.1; margin-bottom:.75rem; }
.article-card__title a { color:var(--black); text-decoration:none; transition:color .3s var(--ease); }
.article-card__title a:hover { color:var(--slate); }
.article-card__excerpt { color:var(--gray-600); font-size:.98rem; line-height:1.65; margin-bottom:1.25rem; }
.article-read-more { font-size:.9rem; font-weight:600; color:var(--slate); display:inline-flex; align-items:center; gap:.4rem; transition:gap .3s var(--ease); }
.article-read-more:hover { gap:.7rem; }
.article-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; }
.li-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.li-embed { border:1px solid var(--gray-200); overflow:hidden; min-height:300px; background:var(--gray-50); }
.li-embed iframe { display:block; width:100%; border:0; }
.article-header { padding:clamp(3rem,6vw,5rem) 0 clamp(2rem,4vw,3.5rem); background:var(--gray-50); border-bottom:1px solid var(--gray-200); }
.article-back { font-size:.88rem; font-weight:500; color:var(--slate); display:inline-block; margin-bottom:1.5rem; transition:opacity .3s var(--ease); }
.article-back:hover { opacity:.7; }
.article-meta { display:flex; align-items:center; gap:1rem; margin-bottom:1.25rem; flex-wrap:wrap; }
.article-meta .article-date::before, .article-meta .article-author::before { content:"·"; margin-right:1rem; color:var(--gray-400); }
.article-body { display:grid; grid-template-columns:1fr 300px; gap:clamp(2.5rem,5vw,5rem); align-items:start; padding-top:clamp(2.5rem,5vw,4rem); padding-bottom:clamp(3rem,6vw,6rem); }
.article-content { max-width:66ch; }
.article-content p { font-size:1.08rem; line-height:1.75; color:#2b2b2b; margin-bottom:1.5rem; }
.article-content h2 { font-family:var(--font-display); font-size:clamp(1.3rem,2.2vw,1.7rem); margin:2.5rem 0 1rem; }
.article-content blockquote { border-left:3px solid var(--slate); padding:.75rem 0 .75rem 1.5rem; margin:2rem 0; font-family:var(--font-display); font-size:1.2rem; font-style:italic; color:var(--gray-900); }
.article-share { border-top:1px solid var(--gray-200); margin-top:3rem; padding-top:2rem; }
.article-sidebar { position:sticky; top:100px; }
.sidebar-block { border:1px solid var(--gray-200); padding:1.5rem; }
/* Carousel showcase */
.carousel-feature-header { display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; flex-wrap:wrap; }
.carousel-strip { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; cursor:grab; }
.carousel-strip::-webkit-scrollbar { display:none; }
.carousel-strip.grabbing { cursor:grabbing; }
.carousel-track { display:flex; gap:12px; padding:0 var(--gutter) 1rem; }
.carousel-slide { flex:0 0 auto; width:clamp(180px,22vw,260px); border:1px solid #222; overflow:hidden; }
.carousel-slide img { display:block; width:100%; height:auto; transition:transform .4s var(--ease); }
.carousel-slide:hover img { transform:scale(1.03); }
.carousel-hint { text-align:center; font-size:.82rem; letter-spacing:.08em; color:#444; padding-top:.25rem; }

/* Article hero */
.article-hero { width:100%; aspect-ratio:3/1; overflow:hidden; }
.article-hero img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
@media (max-width:900px) { .article-grid,.li-grid { grid-template-columns:1fr; } .article-body { grid-template-columns:1fr; } .article-sidebar { position:static; } }

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