:root {
  --cyan: #1fb5e6;
  --yellow: #ffd21f;
  --magenta: #e6007e;
  --blue: #3b3fb8;
  --ink: #17172b;
  --ink-soft: #4a4a63;
  --paper: #fbf9f4;
  --card: #ffffff;
  --line: #e4e0d6;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(23, 23, 43, .25);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .06em; color: var(--ink-soft); }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .5rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: rgba(31, 181, 230, .15); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 10px; padding: .45rem .75rem; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, box-shadow .15s; box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn.ghost { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.blocks { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%; }
.blocks i { position: absolute; width: 58%; height: 40%; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.blocks i:nth-child(1) { background: var(--cyan); top: 6%; left: 4%; transform: rotate(-8deg); }
.blocks i:nth-child(2) { background: var(--yellow); top: 32%; right: 2%; transform: rotate(5deg); }
.blocks i:nth-child(3) { background: var(--magenta); bottom: 4%; left: 10%; transform: rotate(-3deg); }
.blocks b { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; font: 600 clamp(1.4rem, 4vw, 2rem)/1.1 var(--display); text-align: center; color: var(--ink); pointer-events: none; }
.blocks b span { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: .5rem 1rem; transform: rotate(-2deg); }

.notice { display: flex; gap: .75rem; align-items: flex-start; background: #fff4bf; border: 2px dashed var(--ink); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 2rem; max-width: 60ch; }
.notice strong { font-family: var(--display); font-weight: 500; }

/* Cards / grids */
.grid { display: grid; gap: 1.25rem; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; top: 0; left: 1.5rem; width: 56px; height: 8px; border-radius: 0 0 8px 8px; background: var(--accent, var(--cyan)); }
.card.c2 { --accent: var(--yellow); } .card.c3 { --accent: var(--magenta); } .card.c4 { --accent: var(--blue); }
.card p:last-child { margin-bottom: 0; }
.icon { font-size: 2rem; margin: .6rem 0 .4rem; }

.stripe { height: 10px; background: linear-gradient(90deg, var(--cyan) 0 25%, var(--yellow) 25% 50%, var(--magenta) 50% 75%, var(--blue) 75%); }
.band { background: var(--ink); color: #fff; }
.band .eyebrow { color: var(--yellow); }
.band .lead { color: #cfcfe6; }

/* Placeholder marker */
.ph { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff4bf; border: 1.5px dashed var(--ink); border-radius: 6px; padding: .1rem .45rem; vertical-align: middle; color: var(--ink); }

/* Work tiles (generated placeholders) */
.tile { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--line); background: var(--card); box-shadow: var(--shadow); padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.tile .art { aspect-ratio: 4/3; display: grid; place-items: center; font: 600 1.5rem var(--display); color: #fff; text-align: center; padding: 1rem; background: var(--bg, var(--cyan)); }
.tile .cap { padding: .9rem 1.1rem 1.1rem; }
.tile .cap strong { display: block; font-family: var(--display); font-weight: 500; }
.tile .cap span { font-size: .9rem; color: var(--ink-soft); }
.tile:hover { transform: translateY(-3px); transition: transform .15s; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; }
.chip { border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: .4rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tile[hidden] { display: none; }

dialog.lightbox { border: 3px solid var(--ink); border-radius: var(--radius); padding: 0; width: min(560px, 92vw); box-shadow: 8px 8px 0 var(--ink); }
dialog.lightbox::backdrop { background: rgba(23, 23, 43, .7); }
dialog .art { aspect-ratio: 4/3; display: grid; place-items: center; font: 600 2rem var(--display); color: #fff; text-align: center; padding: 1rem; }
dialog .body { padding: 1.25rem 1.5rem 1.5rem; }
dialog .x { float: right; }

/* Services */
.service { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-top: 1.5px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.service li { margin-bottom: .35rem; }
.badge-art { aspect-ratio: 4/3; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: grid; place-items: center; font-size: 4rem; background: var(--bg, var(--cyan)); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 4.5rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font: 600 1.15rem var(--display); }
.steps li strong { font-family: var(--display); font-weight: 500; font-size: 1.15rem; display: block; }
.band .steps li { background: #24243f; border-color: #3a3a5c; }

/* Form + FAQ */
form { display: grid; gap: 1rem; }
label { font-weight: 600; display: grid; gap: .35rem; }
input, select, textarea { font: inherit; padding: .75rem 1rem; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 130px; resize: vertical; }
details { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .5rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-list a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #dcdcf0; padding: 3rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.foot { display: grid; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.fine { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #3a3a5c; font-size: .85rem; color: #a5a5c4; }

@media (min-width: 700px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .service.flip .badge-art { order: 2; }
  .foot { grid-template-columns: 1.4fr 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
@media (min-width: 1024px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 699px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .split > * + * { margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
