:root {
  --porcelain: #fbfaff;
  --plum: #493052;
  --grape: #72527d;
  --chrome: #c9cad3;
  --violet-mist: #efedf3;
  --ink: #251c2a;
  --display: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--grape); outline-offset: 5px; }
::selection { background: var(--chrome); color: var(--ink); }

.shell { width: min(100% - 64px, 1240px); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 10; padding: 11px 14px; background: var(--plum); color: var(--porcelain); font-weight: 700; }
.skip-link:focus { top: 16px; }
.demo-note { margin: 0; padding: 9px 16px; background: var(--plum); color: var(--porcelain); font-size: 11px; letter-spacing: .08em; text-align: center; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; border-bottom: 1px solid rgb(37 28 42 / 16%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { position: relative; width: 18px; height: 18px; border: 2px solid var(--plum); border-radius: 50%; }
.brand-mark::after { position: absolute; right: -6px; bottom: -4px; width: 9px; height: 2px; background: var(--plum); content: ""; transform: rotate(-45deg); transform-origin: left center; }
.location { margin: 0; color: rgb(37 28 42 / 68%); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); align-items: center; gap: clamp(42px, 8vw, 132px); padding-block: clamp(68px, 10vw, 130px); }
.hero-copy { max-width: 540px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--grape); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 1px; background: var(--plum); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.065em; }
h1 { max-width: 700px; font-size: clamp(3.35rem, 7.4vw, 4.75rem); line-height: .98; }
h1 em { color: var(--plum); font-weight: 400; }
.lead { max-width: 356px; margin: 29px 0 30px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 53px; align-items: center; justify-content: space-between; gap: 26px; padding: 13px 17px; border: 1px solid var(--plum); font-size: 13px; font-weight: 700; letter-spacing: .005em; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.button span, .contact-links span { font-size: 17px; line-height: 1; }
.button-primary { background: var(--plum); color: var(--porcelain); }
.button-primary:hover { background: var(--grape); transform: translateY(-2px); }
.button-secondary { color: var(--plum); }
.button-secondary:hover { background: var(--violet-mist); transform: translateY(-2px); }

.key-stage { position: relative; display: grid; min-height: 500px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f7f6fb 0%, var(--violet-mist) 51%, #e0dde7 100%); border-radius: 46% 54% 55% 45% / 48% 43% 57% 52%; }
.key-stage::before { position: absolute; inset: 20px; border: 1px solid rgb(73 48 82 / 15%); border-radius: inherit; content: ""; }
.key-shadow { position: absolute; width: min(72%, 350px); height: 43px; background: rgb(37 28 42 / 15%); border-radius: 50%; filter: blur(14px); transform: translateY(156px); }
.key-card { position: relative; width: min(62%, 292px); height: 365px; border: 1px solid rgb(37 28 42 / 24%); border-radius: 28px; background: linear-gradient(130deg, #f9f9fc 2%, var(--chrome) 28%, #f5f5f8 51%, #aeb0ba 76%, #f3f3f6); box-shadow: 18px 26px 38px rgb(37 28 42 / 17%), inset 3px 3px 3px rgb(255 255 255 / 78%), inset -4px -3px 4px rgb(37 28 42 / 11%); transform: rotate(9deg); }
.key-card::before { position: absolute; inset: 14px; border: 1px solid rgb(37 28 42 / 15%); border-radius: 20px; content: ""; }
.key-ring { position: absolute; top: 52px; left: 50%; width: 78px; height: 78px; border: 17px solid var(--plum); border-radius: 50%; box-shadow: inset 4px 4px 5px rgb(37 28 42 / 18%), 2px 2px 2px rgb(255 255 255 / 68%); transform: translateX(-50%); }
.key-stem { position: absolute; top: 148px; left: 50%; display: grid; width: 58px; height: 112px; gap: 10px; padding: 14px; background: var(--plum); transform: translateX(-50%); }
.key-stem span { height: 1px; background: rgb(255 255 255 / 51%); }
.key-tooth { position: absolute; bottom: 46px; left: 50%; width: 152px; height: 86px; background: var(--plum); clip-path: polygon(0 9%, 15% 9%, 15% 43%, 36% 43%, 50% 100%, 64% 43%, 85% 43%, 85% 9%, 100% 9%, 100% 63%, 74% 63%, 50% 100%, 26% 63%, 0 63%); transform: translateX(-50%); }

.contact { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding-block: 53px 58px; border-top: 1px solid rgb(37 28 42 / 16%); }
.contact .eyebrow { margin-bottom: 13px; }
h2 { font-size: clamp(2.14rem, 4.4vw, 3.65rem); line-height: 1.05; white-space: nowrap; }
.contact-links { display: grid; min-width: 214px; gap: 8px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 9px; border-bottom: 1px solid rgb(37 28 42 / 26%); color: var(--plum); font-size: 13px; font-weight: 750; transition: color .18s ease; }
.contact-links a:hover { color: var(--grape); }
footer { display: flex; justify-content: space-between; gap: 18px; padding-block: 23px 30px; border-top: 1px solid rgb(37 28 42 / 16%); color: rgb(37 28 42 / 65%); font-size: 11px; }
footer span:first-child { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 600px); }
  .site-header { padding-block: 21px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 42px 48px; }
  .lead { margin-block: 23px 26px; font-size: 16px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .button { min-height: 51px; padding-inline: 18px; }
  .key-stage { min-height: 370px; }
  .key-card { width: min(66%, 252px); height: 310px; }
  .key-ring { top: 43px; width: 65px; height: 65px; border-width: 14px; }
  .key-stem { top: 124px; height: 90px; }
  .key-tooth { bottom: 36px; transform: translateX(-50%) scale(.85); }
  .key-shadow { transform: translateY(133px); }
  .contact { flex-direction: column; align-items: start; gap: 30px; padding-block: 40px; }
  h2 { white-space: normal; }
  .contact-links { width: 100%; }
  footer { display: grid; gap: 7px; padding-block: 20px 25px; }
}

@media (max-width: 360px) {
  h1 { font-size: 3.25rem; }
  .brand { font-size: 15px; }
  .location { font-size: 9px; }
  .key-stage { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .contact-links a { transition: none; }
}
