:root {
  --ink: #17202a;
  --muted: #5f6a74;
  --paper: #fbf8f2;
  --surface: rgba(255, 255, 255, 0.72);
  --accent: #526f88;
  --accent-dark: #2d516f;
  --lavender: #e7daf0;
  --cyan: #d6f0f1;
  --line: rgba(44, 69, 89, 0.16);
  --radius: 1.35rem;
  --shadow: 0 1.2rem 3.2rem rgba(27, 45, 60, 0.1);
  --max-width: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 9%, rgba(231, 218, 240, 0.8), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(214, 240, 241, 0.85), transparent 31rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 10; padding: .65rem .9rem; background: var(--ink); color: white; border-radius: .45rem; }
.skip-link:focus { top: 1rem; }
.section, .site-footer { width: min(calc(100% - 3rem), var(--max-width)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--accent-dark); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.06; }
h1 { max-width: 8ch; margin-bottom: 1.25rem; font-size: clamp(3.4rem, 7.5vw, 7rem); letter-spacing: -.065em; }
h2 { max-width: 18ch; margin-bottom: 1.75rem; font-size: clamp(2.2rem, 4.5vw, 4rem); letter-spacing: -.05em; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
.lead { max-width: 38rem; color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(19rem, 1.05fr); align-items: center; gap: clamp(2.5rem, 8vw, 8rem); min-height: min(50rem, 92vh); padding-top: 3rem; }
.hero-copy { padding-block: 2rem; }
.cover-link { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.25deg); transition: transform .3s ease, box-shadow .3s ease; }
.cover-link:hover { box-shadow: 0 1.6rem 4rem rgba(27, 45, 60, .17); transform: rotate(0) translateY(-.3rem); }
.cover { width: 100%; background: #e8e7f0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 720; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 .65rem 1.4rem rgba(36, 64, 84, .12); }
.button-primary { color: white; background: var(--accent-dark); border-color: var(--accent-dark); }
.button-primary:hover { background: #1b3d5b; }
.button-secondary { background: rgba(255,255,255,.55); }
.button-secondary:hover { border-color: var(--accent); background: white; }

.section-heading { margin-bottom: 2rem; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { position: relative; min-height: 15rem; padding: 1.45rem 8.3rem 1.45rem 1.45rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 .5rem 1.3rem rgba(32, 49, 64, .04); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.card:hover { border-color: rgba(45, 81, 111, .35); box-shadow: var(--shadow); transform: translateY(-.25rem); }
.card-cutout { position: absolute; top: .75rem; right: .5rem; width: clamp(6.25rem, 9.5vw, 7.75rem); max-height: 7.75rem; object-fit: contain; pointer-events: none; filter: drop-shadow(0 .2rem .45rem rgba(45, 81, 111, .22)); opacity: .96; transition: transform .24s ease, filter .24s ease; }
.card:nth-child(1) .card-cutout { top: .35rem; right: .15rem; width: clamp(7.5rem, 11.5vw, 9.25rem); max-height: 9.25rem; }
.card:hover .card-cutout { transform: translateY(-.2rem) scale(1.5); filter: drop-shadow(0 .3rem .75rem rgba(104, 176, 196, .45)); }
.card-number { display: block; margin-bottom: 2.7rem; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.card p { color: var(--muted); font-size: .95rem; }

.example-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "source redraw" "wide wide"; gap: 1.25rem; }
.example { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #e9e8e0; box-shadow: 0 .7rem 1.8rem rgba(31, 46, 59, .08); }
.example-source { grid-area: source; }.example-redraw { grid-area: redraw; }.example-wide { grid-area: wide; }
.example img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }.example-wide img { aspect-ratio: 2 / 1; object-position: center; }
.example:hover img { transform: scale(1.025); }
.example span { position: absolute; left: 1rem; bottom: 1rem; padding: .42rem .7rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white; background: rgba(19, 33, 44, .7); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 700; }

.workflow { display: grid; grid-template-columns: .75fr 1.25fr; column-gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.workflow-list { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }.workflow-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; }.workflow-list span { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; color: var(--accent-dark); background: var(--cyan); font-size: .82rem; font-weight: 800; }.workflow-list h3 { margin-bottom: .3rem; }.workflow-list p { margin-bottom: 0; color: var(--muted); }
pre { grid-column: 2; margin: 2rem 0 0; padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .85rem; background: #1c2730; color: #e6f1f2; font-size: .86rem; }

.citation { border-top: 1px solid var(--line); }.citation > p:not(.eyebrow) { max-width: 45rem; color: var(--muted); font-size: 1.05rem; }.citation-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }.citation-links a { padding: .55rem .75rem; border-radius: .55rem; background: rgba(214, 240, 241, .55); color: var(--accent-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }.license-note { font-size: .9rem; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2.5rem 3.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }.site-footer a { color: var(--accent-dark); font-weight: 750; }

:focus-visible { outline: 3px solid #7aa4c1; outline-offset: 4px; }

@media (max-width: 768px) {
  .section, .site-footer { width: min(calc(100% - 2rem), var(--max-width)); }
  .hero, .workflow { grid-template-columns: 1fr; min-height: auto; gap: 1.75rem; }.hero { padding-top: 1rem; }.hero-copy { order: 2; padding-block: 0; }.cover-link { max-width: 34rem; order: 1; justify-self: center; }.capability-grid { grid-template-columns: repeat(2, 1fr); }.card { min-height: 12rem; padding-right: 6.8rem; }.card-cutout { top: .65rem; right: .45rem; width: 6.25rem; max-height: 6.25rem; }.card-number { margin-bottom: 1.8rem; }pre { grid-column: 1; }.site-footer { display: block; }.site-footer a { display: inline-block; margin-top: 1rem; }
}

@media (max-width: 480px) {
  .capability-grid, .example-grid { grid-template-columns: 1fr; grid-template-areas: none; }.example-source, .example-redraw, .example-wide { grid-area: auto; }.example-wide img { aspect-ratio: 4 / 3; }.actions { align-items: stretch; flex-direction: column; }.button { justify-content: center; }
}

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