/* Augusto Marvello — cinematic noir, champagne gold, Cormorant + Manrope */

:root {
  --bg: #0e0e10;
  --bg-2: #141417;
  --bg-3: #1b1b1f;
  --line: rgba(232, 220, 195, 0.14);
  --line-2: rgba(232, 220, 195, 0.28);
  --text: #d8d4cb;
  --muted: #8e8a82;
  --cream: #f1ead9;
  --gold: #c9a96a;
  --gold-2: #e1c891;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.05;
}

::selection { background: var(--gold); color: var(--bg); }

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem var(--pad);
  background: linear-gradient(to bottom, rgba(14, 14, 16, 0.92), rgba(14, 14, 16, 0));
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.nav-brand em { color: var(--gold); }

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav-links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: end;
  min-height: min(100vh, 60rem);
  padding: 0 0 0 var(--pad);
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 8rem 0 clamp(3rem, 7vw, 6rem);
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.hero h1 span { display: block; }
.hero-last {
  font-style: italic;
  color: var(--gold-2);
  padding-left: 0.6em;
  margin-right: -40vw;
}

.hero-quote {
  max-width: 30rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
  margin-bottom: 3rem;
}
.hero-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.3;
  color: var(--cream);
}
.hero-quote .pt {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--muted);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.hero-facts dt {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.hero-facts dd {
  font-size: 0.95rem;
  color: var(--cream);
  white-space: nowrap;
}

.hero-photo {
  position: relative;
  align-self: stretch;
  margin: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo::before,
.hero-photo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero-photo::before {
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(to right, var(--bg), rgba(14, 14, 16, 0));
}
.hero-photo::after {
  inset: auto 0 0 0;
  height: 25%;
  background: linear-gradient(to top, var(--bg), rgba(14, 14, 16, 0));
}

/* ── Figures ──────────────────────────────────── */
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.figure-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 2.25rem clamp(1rem, 3vw, 2.5rem);
}
.figure-item + .figure-item { border-left: 1px solid var(--line); }
.figure-num {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1;
  color: var(--gold-2);
}
.figure-num sup { font-size: 0.5em; vertical-align: super; }
.figure-label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 16ch;
}

/* ── Shared section ───────────────────────────── */
.section { padding: clamp(5rem, 11vw, 9rem) var(--pad) 0; }

.label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.label span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}
.label::after {
  content: "";
  flex: 0 0 4rem;
  height: 1px;
  background: var(--line-2);
}

h2 em { color: var(--gold-2); }

/* ── About ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
}
.about-body p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--text);
}
.about-body p + p { margin-top: 1.25rem; }

.focus {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.focus li {
  padding: 1.75rem 1.25rem 1.75rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--cream);
  transition: color 0.3s;
}
.focus li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.focus li:hover { color: var(--gold-2); }
.focus span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* ── Education ────────────────────────────────── */
.edu-stack {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.edu-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
}
.edu-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 5rem;
  height: 2px;
  background: var(--gold);
}
.edu-years {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.edu-head h2,
.edu-head h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.edu-degree {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
}
.edu-body p + p { margin-top: 1rem; }

/* ── Career ───────────────────────────────────── */
.career-title {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.entry {
  display: grid;
  grid-template-columns: 10rem 1.35fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  transition: background 0.4s;
}
.entry:last-child { border-bottom: 1px solid var(--line); }

.entry-years {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.entry-years span + span {
  margin-top: 0.35rem;
  font-size: 0.55em;
  -webkit-text-stroke: 0;
  color: var(--muted);
  font-style: italic;
}
.entry:hover .entry-years span:first-child { color: var(--gold); }
.entry-years span:first-child { transition: color 0.4s; }

.entry-org {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.entry-main h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.entry-main p:not(.entry-org) { font-size: 0.95rem; }

.entry-list {
  align-self: center;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 1px solid var(--line);
}
.entry-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}
.entry-list li + li { margin-top: 0.65rem; }
.entry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.65rem;
  height: 1px;
  background: var(--gold);
}

.entry--now .entry-years { -webkit-text-stroke: 0; color: var(--gold-2); }
.entry--now .entry-years span + span { color: var(--gold); }

/* ── Kestermere ───────────────────────────────── */
.kestermere {
  margin-top: clamp(5rem, 11vw, 9rem);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kestermere-inner { padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad); }
.kestermere h2 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.k-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.k-lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.45;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.k-text p + p { margin-top: 1rem; }

.lessons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lessons li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 10rem;
  padding: 1.5rem;
  background: var(--bg-3);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--cream);
  transition: background 0.35s;
}
.lessons li:hover { background: #222227; }
.lessons span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.group-card {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(201, 169, 106, 0.1), rgba(201, 169, 106, 0));
}
.group-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.group-en {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--cream);
  max-width: 34ch;
}
.group-pt {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ── Closing ──────────────────────────────────── */
.closing {
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
  text-align: center;
}
.closing-en {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.75rem);
  line-height: 1.12;
  color: var(--cream);
  max-width: 20ch;
  margin: 0 auto;
}
.closing-en em { color: var(--gold-2); }
.closing-pt {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────── */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin: 0 var(--pad);
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream);
}
.footer-name em { color: var(--gold); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1100px) {
  .focus { grid-template-columns: repeat(3, 1fr); }
  .focus li:nth-child(4) { padding-left: 0; border-left: none; }
  .focus li:nth-child(n + 4) { border-top: 1px solid var(--line); }

  .entry { grid-template-columns: 8rem 1fr; }
  .entry-list {
    grid-column: 2;
    padding: 1.25rem 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1.5rem;
  }
  .entry-list li + li { margin-top: 0; }
}

@media (max-width: 860px) {
  .nav { padding-top: 1rem; padding-bottom: 1rem; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 0;
    min-height: 0;
  }
  .hero-photo {
    order: -1;
    height: 78vh;
    max-height: 40rem;
  }
  .hero-photo::before { display: none; }
  .hero-photo::after { height: 45%; }
  .hero-text {
    margin-top: -9rem;
    padding: 0 var(--pad) 3.5rem;
  }
  .hero-last { margin-right: 0; padding-left: 0.4em; }
  .hero-facts { grid-template-columns: repeat(2, auto); gap: 1.25rem 2.5rem; }

  .figures { grid-template-columns: 1fr; }
  .figure-item { padding: 1.5rem 0; }
  .figure-item + .figure-item { border-left: none; border-top: 1px solid var(--line); }

  .about-grid,
  .edu-card,
  .k-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(3.4rem, 17vw, 5rem); }

  .focus { grid-template-columns: 1fr; }
  .focus li,
  .focus li + li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.1rem 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .focus li:first-child { border-top: none; }
  .focus span { margin: 0; flex: 0 0 1.75rem; }

  .entry { grid-template-columns: 1fr; gap: 1.25rem; }
  .entry-years { flex-direction: row; align-items: baseline; gap: 0.75rem; }
  .entry-years span + span { margin-top: 0; }
  .entry-list { grid-column: auto; grid-template-columns: 1fr; }

  .lessons li { min-height: 8rem; font-size: 1.2rem; gap: 1.5rem; padding: 1.25rem; }

  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
