/* A M G Insights Innovations: shared styles
   Palette taken from the company letterhead; typography after the brand's
   high-contrast serif poster treatment. */

:root {
  --night: #1A0710;      /* page base, deep wine-black */
  --bordeaux: #2B0D1A;   /* raised areas */
  --magenta: #9B4169;    /* AMG brand disc */
  --magenta-hi: #C46A93; /* magenta lifted for dark backgrounds */
  --wine: #731F1C;       /* letterhead accent dots */
  --blush: #E8C9D7;      /* brush ring */
  --silver: #E7E6E6;     /* logo lettering, headline colour */
  --text: #D9C3CE;       /* body copy */
  --muted: #A98D9B;      /* secondary copy */
  --line: rgba(232, 201, 215, 0.16);

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Carlito', 'Calibri', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(70vmax 55vmax at 92% -8%, rgba(155, 65, 105, 0.30), transparent 62%),
    radial-gradient(60vmax 50vmax at -10% 105%, rgba(115, 31, 28, 0.38), transparent 60%),
    var(--night);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* film grain, as in the poster */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: var(--blush); text-decoration-color: rgba(232, 201, 215, 0.4); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--magenta); color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--silver); margin: 0; font-optical-sizing: auto; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--silver); color: var(--night); padding: 10px 16px; border-radius: 6px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-solid { background: var(--magenta); color: #fff; border-color: rgba(232, 201, 215, 0.35); }
.btn-solid:hover { background: #AE4D78; color: #fff; }
.btn-line { color: var(--silver); border-color: rgba(232, 201, 215, 0.4); }
.btn-line:hover { color: #fff; border-color: var(--blush); background: rgba(232, 201, 215, 0.06); }

/* ---------- site header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(26, 7, 16, 0.72);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--silver); flex-shrink: 0; }
.brand img { width: 52px; height: auto; }
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: 0.01em; }
.brand-name small { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); letter-spacing: 0.02em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  color: var(--text); text-decoration: none; font-size: 16.5px; padding: 8px 14px; border-radius: 999px;
}
.site-nav a:not(.btn):hover { color: #fff; background: rgba(232, 201, 215, 0.08); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .btn { margin-left: 10px; min-height: 42px; padding: 0 20px; font-size: 16px; }
.menu-toggle {
  display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(232, 201, 215, 0.35); background: transparent; color: var(--silver);
  font: 700 16px var(--sans); cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; margin: 0;
    background: rgba(26, 7, 16, 0.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin: 14px 0 0; }
  .brand-name small { display: none; }
}

/* ---------- hero: the poster moment ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-title {
  position: relative; margin: 0;
  font-weight: 500; letter-spacing: -0.025em; line-height: 0.92;
  font-size: clamp(54px, 11.2vw, 182px);
}
.hero-title .word { display: block; position: relative; z-index: 2; }
.hero-title .word-2 { text-align: right; }
.hero-title .amp {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  font-style: italic; font-weight: 700; line-height: 1;
  font-size: 2.9em;
  transform: translate(-46%, -52%);
  color: transparent;
  background: linear-gradient(160deg, rgba(232, 201, 215, 0.55) 0%, rgba(196, 106, 147, 0.42) 30%, rgba(115, 31, 28, 0.20) 75%, rgba(155, 65, 105, 0.38) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px rgba(232, 201, 215, 0.55);
  filter: drop-shadow(0 0 28px rgba(196, 106, 147, 0.45)) drop-shadow(0 0 2px rgba(255, 220, 235, 0.35));
  pointer-events: none; user-select: none;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px;
  align-items: end; margin-top: clamp(36px, 6vw, 72px);
}
.hero-lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--text); max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-where { justify-self: end; text-align: right; color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }
.hero-where strong { color: var(--silver); font-weight: 700; }

/* one orchestrated load moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .word { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
  .js .hero-title .word-2 { animation-delay: .12s; }
  .js .hero-title .amp { animation: glow-in 1.8s cubic-bezier(.2, .8, .2, 1) .1s both; }
  .js .hero-foot { animation: fade 1s ease .55s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.18em); } to { opacity: 1; transform: none; } }
@keyframes glow-in {
  from { opacity: 0; transform: translate(-46%, -49%) scale(.94); filter: drop-shadow(0 0 0 rgba(196, 106, 147, 0)); }
  to { opacity: 1; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-where { justify-self: start; text-align: left; }
  .hero-title { padding: 0.55em 0 0.75em; font-size: clamp(54px, 15.5vw, 96px); }
  .hero-title .word-2 { margin-top: 0.08em; }
  .hero-title .amp { font-size: 4.6em; transform: translate(-50%, -50%); }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @keyframes glow-in {
    from { opacity: 0; transform: translate(-50%, -47%) scale(.94); }
    to { opacity: 1; }
  }
}

/* ---------- generic section rhythm ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; max-width: 14em; }
.section-intro { font-size: 20px; color: var(--text); max-width: 36em; margin: 22px 0 0; }

/* ---------- statement ---------- */
.statement p.big {
  font-family: var(--serif); font-weight: 400; color: var(--silver);
  font-size: clamp(28px, 3.5vw, 48px); line-height: 1.24; letter-spacing: -0.012em;
  max-width: 23em; margin: 0;
}
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px;
  margin: clamp(48px, 6vw, 80px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--line);
}
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 15.5px; margin: 0 0 4px; }
.facts dd { margin: 0; color: var(--silver); font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- services index ---------- */
.svc-list { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px 56px;
  padding: clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid var(--line);
}
.svc h3 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.015em; }
.svc p { margin: 0 0 12px; max-width: 34em; }
.svc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }

/* ---------- approach: the giant 4 ---------- */
.approach .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 64px; align-items: start; }
.four {
  position: sticky; top: 110px;
  font-family: var(--serif); font-weight: 600; line-height: 0.8; letter-spacing: -0.04em;
  font-size: clamp(240px, 34vw, 520px);
  color: transparent;
  background: linear-gradient(170deg, rgba(232, 201, 215, 0.6) 0%, rgba(196, 106, 147, 0.45) 35%, rgba(115, 31, 28, 0.22) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px rgba(232, 201, 215, 0.55);
  filter: drop-shadow(0 0 30px rgba(196, 106, 147, 0.4));
  user-select: none; margin: 0;
}
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--magenta-hi);
  grid-row: span 2;
}
.steps h3 { font-size: 30px; line-height: 1.1; }
.steps p { margin: 4px 0 0; max-width: 32em; }
@media (max-width: 860px) {
  .approach .wrap { grid-template-columns: 1fr; }
  .four { position: static; font-size: clamp(200px, 58vw, 320px); }
}

/* ---------- commitments ---------- */
.commit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: clamp(40px, 5vw, 64px); }
.commit { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.commit h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin-bottom: 10px; }
.commit p { margin: 0; max-width: 30em; }
@media (max-width: 760px) { .commit-grid { grid-template-columns: 1fr; } }

.stack-line { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.45; color: var(--silver); max-width: 34em; margin: 28px 0 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; color: var(--silver);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2px solid var(--blush); border-bottom: 2px solid var(--blush);
  transform: rotate(45deg) translateY(-4px); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { margin: 0 0 26px; max-width: 40em; }

/* ---------- contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px 72px; }
.contact .section-title { grid-column: 1 / -1; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 16px; color: var(--silver); font-weight: 700; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: 18px/1.4 var(--sans); color: #fff;
  background: rgba(43, 13, 26, 0.75); border: 1px solid rgba(232, 201, 215, 0.25); border-radius: 10px;
  padding: 13px 15px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px rgba(196, 106, 147, 0.35); }
.field [aria-invalid="true"] { border-color: #F08AA8; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { margin: 0; font-size: 15.5px; color: var(--muted); }
.form-error { grid-column: 1 / -1; margin: 0; color: #F6A9C0; font-weight: 700; min-height: 1.4em; }
.details { margin: 0; display: grid; gap: 26px; align-content: start; }
.details dt { color: var(--muted); font-size: 15.5px; margin-bottom: 4px; }
.details dd { margin: 0; color: var(--silver); font-size: 19px; line-height: 1.5; }
.details a { color: var(--silver); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 36px; background: rgba(20, 5, 12, 0.6); font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr)); gap: 40px 56px; }
.foot-brand img { width: 84px; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); margin: 0 0 6px; max-width: 30em; }
.foot-brand .legal-name { color: var(--silver); font-weight: 700; }
.foot-col h2 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--silver); margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { display: inline-block; padding: 4px 0; color: var(--text); text-decoration: none; }
.foot-bottom a, .details a { display: inline-block; padding: 3px 0; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-bottom a { color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- policy / document pages ---------- */
.doc-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(28px, 4vw, 48px); }
.doc-head h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.025em; max-width: 12em; }
.doc-head .updated { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.doc-body { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 40px 72px; padding-bottom: clamp(72px, 9vw, 120px); }
.doc-body.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 108px; align-self: start; font-size: 15.5px; }
.toc h2 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--silver); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; }
.prose { max-width: 42em; }
.prose .lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--silver); margin-bottom: 1.4em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 1.8em 0 0.5em; scroll-margin-top: 100px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--magenta-hi); }
.prose strong { color: var(--silver); }
.prose dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 12px 28px; margin: 0 0 1em; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; color: var(--silver); overflow-wrap: anywhere; }
.callout { margin-top: 2.4em; padding: 26px 28px; border-radius: 16px; background: rgba(43, 13, 26, 0.8); border: 1px solid rgba(196, 106, 147, 0.35); }
.callout h2 { margin: 0 0 6px; font-size: 26px; }
.callout p { margin: 0; }
@media (max-width: 860px) {
  .doc-body { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
