/* =========================================================
   amelyacliff.com — design system
   One colour, violet, with a soft lavender for CTAs. Off-white
   base, ink for text only. Soft rounded shapes, no hard frames.
   ========================================================= */

:root {
  --ink: #1A1622;
  --paper: #FBFAF7;
  --violet: #6D28D9;
  --violet-strong: #4C1D95;
  --lavender: #ECE3FB;
  --lavender-mid: #D9C8F5;
  --grey: #79738A;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --max-width: 1180px;
  --edge: clamp(20px, 5vw, 64px);

  --radius: 22px;
  --radius-sm: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }

p { max-width: 62ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--violet);
}

.section {
  padding: clamp(64px, 10vw, 130px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }

.section--dark {
  background: var(--lavender);
  color: var(--ink);
  padding: clamp(80px, 12vw, 150px) 0;
}
.section--dark .eyebrow { color: var(--violet-strong); }

.section--violet {
  background: transparent;
  padding: clamp(24px, 4vw, 48px) var(--edge) clamp(64px, 9vw, 120px);
}
.section--violet .container {
  background: var(--violet);
  color: var(--paper);
  border-radius: 32px;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 64px);
  max-width: calc(var(--max-width) - 40px);
}
.section--violet .eyebrow { color: var(--lavender-mid); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  background: var(--violet);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(76, 29, 149, 0.22); }

.btn--acid {
  background: var(--lavender);
  color: var(--violet-strong);
}
.btn--acid:hover { background: var(--violet); color: var(--paper); }

.btn--outline {
  background: transparent;
  color: var(--violet-strong);
  box-shadow: inset 0 0 0 1.5px var(--lavender-mid);
}
.btn--outline:hover { background: var(--violet); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--violet); }

.section--dark .btn--outline { box-shadow: inset 0 0 0 1.5px var(--violet); }

.section--violet .container .btn--outline {
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}
.section--violet .container .btn--outline:hover { background: var(--paper); color: var(--violet); box-shadow: inset 0 0 0 1.5px var(--paper); }

.link-quiet {
  font-size: 0.95rem;
  color: var(--grey);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.link-quiet:hover { color: var(--violet); }
.section--dark .link-quiet { color: var(--violet-strong); opacity: 0.7; }
.section--dark .link-quiet:hover { opacity: 1; }
.section--violet .container .link-quiet { color: var(--lavender-mid); }
.section--violet .container .link-quiet:hover { color: var(--paper); }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(109, 40, 217, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--edge);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav__logo span { color: var(--violet); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a:not(.btn) {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--violet);
  border-radius: 2px;
  transition: width 0.15s ease;
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--violet); }

.nav__toggle {
  display: none;
  background: var(--lavender);
  border: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet-strong);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    box-shadow: 0 12px 24px rgba(109, 40, 217, 0.1);
    border-radius: 0 0 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px var(--edge) 32px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links .btn { width: 100%; justify-content: center; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--lavender);
  color: var(--ink);
  padding: 28px var(--edge);
  border-radius: 40px 40px 0 0;
}
.site-footer a { transition: color 0.15s ease; }
.site-footer a:hover { color: var(--violet); }
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__meta {
  font-size: 0.85rem;
  color: var(--grey);
}
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  color: var(--violet-strong);
}
.footer__social:hover { background: var(--violet); color: #fff; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 7vw, 80px);
}
.hero__text { display: block; }
.hero__photo {
  border-radius: 32px;
  overflow: hidden;
  background: var(--lavender);
  box-shadow: 0 24px 48px rgba(76, 29, 149, 0.12);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__cta { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.hero__eyebrow { margin-bottom: 18px; }
.hero__lede { font-size: 1.15rem; margin-top: 20px; color: var(--grey); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 420px; }
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.case-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(76, 29, 149, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(76, 29, 149, 0.14);
}
.case-card__body { padding: 0; }
.case-card__tags {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-bottom: 10px;
}
.case-card h3 { margin-top: 4px; }
.case-card__hook { color: var(--grey); margin-top: 12px; font-size: 0.95rem; }

.more-work {
  margin-top: 20px;
}
.more-work__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--lavender-mid);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.more-work__item:hover { color: var(--violet); padding-left: 10px; }
.more-work__title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.more-work__tag { font-size: 0.8rem; color: var(--grey); white-space: nowrap; }

/* ---------- case study detail ---------- */
.case-hero {
  padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 56px);
}
.case-hero__tags {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--violet);
  margin-bottom: 16px;
}
.case-hero__back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--grey);
}
.case-hero__back:hover { color: var(--violet); }

.case-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(76, 29, 149, 0.15);
}
.case-video iframe {
  width: 100%; height: 100%; border: 0;
}
.case-video--vertical {
  aspect-ratio: 9/16;
  max-width: 380px;
  margin: 0 auto;
}
.video-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-body);
  text-align: center;
  padding: 24px;
}
.video-placeholder__badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lavender-mid);
  border: 1px solid var(--lavender-mid);
  padding: 4px 10px;
  border-radius: 999px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

.case-block h3 { margin-bottom: 12px; color: var(--violet-strong); }
.case-block p { max-width: none; }

.case-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.case-copy {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--lavender-mid);
}
.case-copy__label { margin-bottom: 24px; }
.case-copy article {
  max-width: 68ch;
}
.case-copy article > * + * { margin-top: 1.1em; }
.case-copy article h3 {
  margin-top: 1.6em;
  color: var(--violet-strong);
}
.case-copy article blockquote {
  border-left: 3px solid var(--lavender-mid);
  padding-left: 18px;
  color: var(--grey);
  font-style: italic;
}

.case-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--lavender);
  border-radius: var(--radius-sm);
  color: var(--violet-strong);
  font-size: 0.92rem;
}

/* ---------- about ---------- */
.about-bio {
  max-width: 66ch;
}
.about-bio p + p { margin-top: 1.3em; }
.about-photo {
  border-radius: 32px;
  overflow: hidden;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 24px 48px rgba(76, 29, 149, 0.12);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- services ---------- */
.services-grid {
  counter-reset: service;
  margin-top: 12px;
}
.service-item {
  position: relative;
  counter-increment: service;
  padding: 40px 0 40px 100px;
  border-bottom: 1px solid var(--lavender-mid);
  transition: padding-left 0.15s ease;
}
.service-item:first-child { padding-top: 8px; }
.service-item::before {
  content: counter(service, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 38px;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--lavender-mid);
}
.service-item:hover { padding-left: 112px; }
.service-item:hover::before { color: var(--violet); }
.service-item h3 { margin-bottom: 10px; color: var(--ink); }
.service-item p { color: var(--grey); max-width: 56ch; }

@media (max-width: 640px) {
  .service-item { padding-left: 64px; }
  .service-item:hover { padding-left: 72px; }
  .service-item::before { font-size: 1.8rem; top: 40px; }
}

/* ---------- CV ---------- */
.timeline {
  margin-top: 32px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--lavender-mid);
}
@media (max-width: 640px) { .timeline__item { grid-template-columns: 1fr; gap: 6px; } }
.timeline__date {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--violet);
  font-size: 0.9rem;
}
.timeline__role { font-weight: 700; margin-bottom: 4px; font-family: var(--font-head); font-size: 1.05rem; }
.timeline__org { color: var(--grey); font-size: 0.92rem; }
.timeline__context { color: var(--grey); font-size: 0.88rem; font-style: italic; margin-top: 4px; }
.timeline__item ul { margin: 12px 0 0 18px; }
.timeline__item li { margin-bottom: 7px; color: var(--ink); }
.timeline__item li::marker { color: var(--violet); }

.cv-summary {
  max-width: 72ch;
  font-size: 1.1rem;
  color: var(--grey);
  margin-top: 16px;
  border-left: 3px solid var(--lavender-mid);
  padding-left: 20px;
}

.cv-skills {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
@media (max-width: 640px) { .cv-skills { grid-template-columns: 1fr; } }
.cv-skills dt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--violet);
  margin-bottom: 4px;
}
.cv-skills dd { color: var(--grey); }

.edu-list { margin-top: 20px; }
.edu-item { padding: 22px 0; border-bottom: 1px solid var(--lavender-mid); }
.edu-item__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.edu-item__org { font-weight: 600; font-family: var(--font-head); }
.edu-item__date { color: var(--violet); font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; }
.edu-item__deg { margin-top: 6px; }
.edu-item__diss { color: var(--grey); font-size: 0.9rem; margin-top: 4px; font-style: italic; }

/* ---------- contact form ---------- */
.form {
  max-width: 620px;
  margin-top: 20px;
}
.form fieldset { border: none; }
.form legend {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 12px;
}
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--lavender);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234C1D95' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--violet);
}
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--lavender);
  padding: 12px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.radio-option:has(input:checked) {
  background: var(--violet);
  color: var(--paper);
}
.radio-option input { accent-color: var(--violet); }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { color: #1B7A3D; }
.form-status--error { color: #B3261E; }

/* ---------- misc ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.tag-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tag-strip span {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--lavender);
  color: var(--violet-strong);
  border-radius: 999px;
  padding: 7px 16px;
}
.section--dark .tag-strip span { background: #fff; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 640px) { .stat-strip { grid-template-columns: 1fr; } }
.stat-strip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--violet);
}
