/* charlottestokelyweb.com: Throne design. Lime-white base, throne purple accent, gilt hairlines. */
:root {
  --bg: #f6f4f0;
  --panel: #fffdf8;
  --ink: #2b2732;
  --body-ink: #3b3543;
  --muted: #5b5462;
  --purple: #5a3a6b;
  --purple-dark: #452a54;
  --gilt: #c9a86a;
  --gilt-soft: #e3d5b6;
  --line: #e5dfd2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Scada', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--purple); }

h1, h2, h3, .wordmark, .brand-name, .tl-when, .tl-sep {
  font-family: 'Almendra SC', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 { margin: 0 0 0.35em; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; }
h2 { margin: 0 0 0.5em; font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.15; color: var(--ink); }
h3 { margin: 0 0 0.5em; font-size: 1.22rem; line-height: 1.25; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  margin: 0 0 0.45em;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}

.section { padding: 54px 0; }
.section-tight { padding: 40px 0 34px; }
.section-sub { margin: -0.2em 0 1.4em; color: var(--muted); max-width: 62ch; }
.note { margin: 0 0 1.3em; padding: 12px 16px; background: var(--panel); border-left: 3px solid var(--gilt); color: var(--muted); font-size: 0.93rem; }

/* ---------------------------------------------------------------- header -- */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 15px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.wordmark::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 11px;
  border: 2px solid var(--gilt);
  border-radius: 8px 8px 1px 1px;
}

.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 11px;
  border-radius: 8px;
}

.main-nav a:hover { color: var(--purple); background: #f1ece1; }

.main-nav a[aria-current="page"] { color: var(--purple); font-weight: 700; }

.main-nav a:focus-visible, .btn:focus-visible, .text-link:focus-visible {
  outline: 3px solid var(--gilt);
  outline-offset: 2px;
}

/* Explicit override: .main-nav a would otherwise beat .btn and hide the label. */
.main-nav a.btn {
  color: #fffdf8;
  background: #5a3a6b;
  border: 1px solid #5a3a6b;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 9px;
}

.main-nav a.btn:hover {
  color: #fffdf8;
  background: #452a54;
  border-color: #452a54;
}

.btn {
  display: inline-block;
  color: #fffdf8;
  background: #5a3a6b;
  border: 1px solid #5a3a6b;
  font-family: 'Scada', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { color: #fffdf8; background: #452a54; border-color: #452a54; }

.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

.text-link { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ hero -- */
.hero { border-bottom: 1px solid var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 58px 0 50px;
}

.kicker {
  margin: 0 0 0.9em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title { margin: 0 0 0.3em; }

.hero-title::after {
  content: "";
  display: block;
  width: 128px;
  height: 2px;
  margin-top: 0.42em;
  background: linear-gradient(90deg, var(--gilt), rgba(201, 168, 106, 0.12));
}

.hero-tagline {
  margin: 0 0 0.75em;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--purple);
}

.hero-intro { margin: 0 0 1.5em; color: var(--body-ink); max-width: 56ch; }

.hero-actions { margin: 0; }

.hero-figure { margin: 0; position: relative; }

.crest {
  display: block;
  margin: 0 auto -18px;
  color: var(--gilt);
  position: relative;
  z-index: 1;
}

.arch-frame {
  position: relative;
  border: 1px solid var(--gilt);
  border-radius: 47% 47% 16px 16px / 34% 34% 16px 16px;
  background: linear-gradient(180deg, var(--panel), #f3eee3);
  padding: 11px;
}

.arch-frame::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(90, 58, 107, 0.22);
  border-radius: 45% 45% 10px 10px / 33% 33% 10px 10px;
  pointer-events: none;
}

.arch-frame img {
  width: 100%;
  height: clamp(420px, 44vw, 590px);
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 45% 45% 10px 10px / 33% 33% 10px 10px;
}

/* -------------------------------------------------------------- partners -- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.partner-card {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover { border-color: var(--gilt); box-shadow: 0 8px 18px rgba(90, 58, 107, 0.12); }

.partner-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* --------------------------------------------------------------- dossier -- */
.dossier { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }

.dossier-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gilt);
  padding: 22px 24px 14px;
}

.dossier-col h3 { color: var(--purple); }

.dossier-col dl { margin: 0; }

.drow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.drow:last-child { border-bottom: 0; }

.drow dt { color: var(--muted); font-size: 0.92rem; }

.drow dd { margin: 0; font-weight: 700; text-align: right; }

/* ----------------------------------------------------------------- about -- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: start;
  padding: 54px 0;
}

.about-grid .section { padding: 0; }

.plain-frame { border: 1px solid var(--gilt); background: var(--panel); padding: 10px; }
.plain-frame img { width: 100%; border-radius: 4px; }

.prose p { margin: 0 0 1.05em; line-height: 1.78; color: var(--body-ink); }
.prose p:last-child { margin-bottom: 0; }

.reading { max-width: 830px; }

.quote {
  margin: 34px 0 44px;
  padding: 22px 26px;
  background: var(--panel);
  border-left: 4px solid var(--gilt);
  color: #4a3f57;
  font-size: 1.07rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------- timeline -- */
.career-lead { margin: 0 0 1.6em; font-size: 1.12rem; color: var(--purple); max-width: 64ch; }

.timeline { position: relative; margin-top: 10px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, var(--gilt-soft), rgba(201, 168, 106, 0.2));
}

.tl-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
}

.tl-seat {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--gilt);
  border-radius: 9px;
  color: var(--purple);
  position: relative;
  z-index: 1;
}

.tl-body { line-height: 1.65; color: var(--body-ink); }

.tl-when { font-size: 1.06rem; color: var(--ink); }

.tl-sep { color: var(--gilt); padding: 0 0.25em; }

.tl-text { color: var(--body-ink); }

/* --------------------------------------------------------------- gallery -- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 780px;
  margin: 26px auto 0;
}

.g-card {
  margin: 0;
  padding: 9px;
  background: var(--panel);
  border: 1px solid var(--gilt-soft);
  border-radius: 72px 72px 10px 10px;
}

.g-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 64px 64px 4px 4px;
}

/* ---------------------------------------------------------------- social -- */
.section-social { padding-bottom: 66px; }

.social-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
  max-width: 900px;
}

.social-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.s-platform { color: var(--muted); font-size: 0.95rem; }

.social-row a { color: var(--purple); text-decoration: none; font-weight: 700; }
.social-row a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 10px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr auto;
  gap: 16px 30px;
  align-items: center;
  padding: 24px 0;
}

.footer-brand { display: flex; flex-direction: column; gap: 3px; }

.brand-name { font-size: 1.08rem; color: var(--ink); }

.brand-line { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.language-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 16px; }

.language-nav a { color: var(--purple); text-decoration: none; font-size: 0.9rem; }
.language-nav a:hover { text-decoration: underline; }
.language-nav a[aria-current="page"] { font-weight: 700; }

.footer-legal { margin: 0; color: var(--muted); font-size: 0.84rem; text-align: right; }

/* --------------------------------------------------------------- subpage -- */
.page-top { padding: 52px 0 6px; }

.page-top .lead { margin: 0; font-size: 1.1rem; color: var(--muted); max-width: 76ch; }

.cblock { padding: 26px 0; border-bottom: 1px solid var(--line); }
.cblock:first-of-type { padding-top: 4px; }
.cblock h2 { margin-bottom: 0.55em; }

.awards-list {
  list-style: none;
  margin: 14px 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}

.awards-list li {
  padding: 11px 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gilt);
  font-size: 0.94rem;
  line-height: 1.5;
}

.awards-list.slim { grid-template-columns: 1fr; max-width: 830px; }
.awards-list.slim li { border-left-color: var(--gilt-soft); }

.studio-list {
  list-style: none;
  margin: 14px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 26px;
  max-width: 900px;
}

.studio-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.s-count { color: var(--purple); font-weight: 700; }

.credit-table {
  width: 100%;
  max-width: 830px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  margin: 14px 0 12px;
}

.credit-table th, .credit-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.credit-table tbody tr:last-child th, .credit-table tbody tr:last-child td { border-bottom: 0; }

.credit-table th { font-weight: 700; color: var(--ink); width: 90px; }

.c-num { color: var(--purple); font-weight: 700; width: 80px; }

.titles-list { margin: 16px 0 40px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; max-width: 980px; }

.trow { padding: 15px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gilt-soft); }
.trow h3 { font-size: 1.06rem; margin-bottom: 0.35em; }
.trow p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

/* ------------------------------------------------------------------- faq -- */
.faq-list { max-width: 900px; margin: 10px 0 30px; }

.qa {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gilt-soft);
  margin-bottom: 12px;
}

.qa[open] { border-left-color: var(--gilt); }

.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 44px 15px 20px;
  font-family: 'Almendra SC', Georgia, serif;
  font-size: 1.12rem;
  color: var(--ink);
  position: relative;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple);
  font-family: 'Scada', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.qa[open] summary::after { content: "-"; }

.qa-a { padding: 0 20px 16px; }
.qa-a p { margin: 0; color: var(--body-ink); line-height: 1.72; }

/* ------------------------------------------------------------------- 404 -- */
.notfound-page .page-top { padding: 76px 0 60px; }
.notfound h1 { color: var(--purple); }
.notfound .lead { margin-bottom: 0.6em; }
.notfound p { color: var(--body-ink); max-width: 62ch; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 40px 0 40px; }
  .hero-figure { max-width: 520px; margin: 0 auto; width: 100%; }
  .arch-frame img { height: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .about-figure { max-width: 460px; }
  .dossier { grid-template-columns: 1fr; }
  .awards-list { grid-template-columns: 1fr; }
  .titles-list { grid-template-columns: 1fr; }
  .studio-list { grid-template-columns: 1fr; }
  .social-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 22px 0; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}

@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .hero-title { font-size: 2.4rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .partner-card { height: 120px; padding: 8px; }
  .gallery-grid { gap: 14px; }
  .g-card { padding: 6px; border-radius: 52px 52px 8px 8px; }
  .g-card img { border-radius: 46px 46px 3px 3px; }
  .tl-row { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
  .tl-seat { width: 30px; height: 30px; border-radius: 8px; }
  .timeline::before { left: 15px; }
  .header-inner { padding: 12px 0; }
  .main-nav a { padding: 7px 8px; font-size: 0.9rem; }
  .section { padding: 40px 0; }
}
