/* Nicola Coppola — professional site (style matches tamaralovi.com) */
:root {
  --bg: #0d0d0f;
  --ink: #f2efe8;
  --muted: #a5a19a;
  --accent: #7fc3c9;
  --accent-soft: #1d3a3d;
  --gold: #d0ad76;
  --card: #16161a;
  --line: rgba(255, 255, 255, 0.10);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --content-max: min(3400px, 96vw);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  background: rgba(13, 13, 15, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-color: var(--line); }

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5vw 5rem;
}
.hero-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy { max-width: 720px; }

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.hero-portrait {
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}
.motto {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.22em;
  text-indent: 0.22em; /* optical centering for the trailing letter-space */
  font-size: 1.05rem;
  white-space: nowrap;
  margin: 0;
  width: 100%;
  max-width: 420px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--accent-soft); }

/* Sections */
section {
  padding: 6rem 5vw;
  max-width: var(--content-max);
  margin: 0 auto;
  scroll-margin-top: 5rem; /* keep anchored sections clear of the fixed header */
}

.section-head { margin-bottom: 3rem; }
.section-head h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  gap: 2.5rem;
}

.about-text p { margin-bottom: 1.25rem; }
.muted { color: var(--muted); }
.about-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-text a:hover { color: var(--gold); }
.about-text strong { color: var(--accent); }

/* Focus grid */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.focus-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.25s;
}
.focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.focus-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.focus-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0.6rem 0 0.5rem;
}
.focus-card p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* Approach */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.principle {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.98rem;
  color: var(--muted);
  transition: transform 0.2s, border-color 0.25s;
}
.principle:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}
.principle strong {
  color: var(--ink);
  font-size: 1.05rem;
}

/* Interests */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 2.5rem auto 0;
}
.interest-grid .principle {
  border-left: 4px solid var(--gold);
}

/* Career */
.career-list {
  display: grid;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.career-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  transition: border-color 0.25s;
}
.career-item:hover { border-color: rgba(255, 255, 255, 0.22); }
.career-year {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.career-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}
.career-body p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 70ch;
}
@media (max-width: 640px) {
  .career-item { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Contact */
.contact {
  text-align: center;
  padding-bottom: 8rem;
}
.contact .btn { margin-top: 1.75rem; }
.contact .muted { margin-top: 0.75rem; }

.socials {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.socials a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 5vw;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal animation — softened for the dark theme: content is always visible,
   the observer only adds a gentle rise when an element enters view. It never
   hides content, so nothing below the fold reads as a blank black void. */
.reveal {
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .focus-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .interest-grid { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
}

/* Large screens — scale type up so it reads well at 4K */
@media (min-width: 2200px) {
  html { font-size: 20px; }
}
@media (min-width: 3000px) {
  html { font-size: 24px; }
}
