/* František Mlčůch — site styles */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-standard-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-ext-standard-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F2F3F7;
  --surface: #FFFFFF;
  --ink: #1C1F3A;
  --muted: #5A5F7A;
  --line: #D8DAE5;
  --blue: #3B3BEF;
  --blue-deep: #2626C4;
  --select: #FFD43B;
  --select-soft: #FFF1B8;

  --sans: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 14px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--select); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 740;
  font-stretch: 86%;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 720; font-stretch: 86%; letter-spacing: -0.03em; }
.h3 { font-size: 1.375rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }

/* ---------- buttons ---------- */
.btn, .button {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1rem/1 var(--sans);
  padding: .95em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--select { background: var(--select); border-color: var(--select); color: var(--ink); }
.btn--select:hover { background: var(--ink); border-color: var(--ink); color: var(--select); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: 118px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 560; padding: .55em .9em; border-radius: 999px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--select); }
.nav .btn { margin-left: 10px; padding: .7em 1.15em; }
.nav .btn:hover { background: var(--blue); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 1rem var(--sans); background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 999px; padding: .6em 1em; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9em .6em; border-radius: var(--radius-s); font-size: 1.125rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #E9EAF2; }
.section--ink .muted, .section--ink .lede { color: #A9ADC6; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 46rem; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 700px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; color: var(--ink); opacity: .82; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.hero-meta strong { color: var(--ink); font-weight: 650; display: block; font-size: 1.05rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
}

/* the signature: a Photoshop-style document with a live selection */
.doc { position: relative; }
.doc-tab {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  padding: 7px 12px; font-size: .8rem; color: var(--muted);
}
.doc-tab b { color: var(--ink); font-weight: 600; }
.doc-tab i { font-style: normal; opacity: .5; }
.doc-canvas {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s);
  padding: clamp(18px, 3vw, 30px);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #E6E8EF 25%, transparent 25%, transparent 75%, #E6E8EF 75%),
    linear-gradient(45deg, #E6E8EF 25%, transparent 25%, transparent 75%, #E6E8EF 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}
.selection { position: relative; }
.selection img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.selection svg { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); overflow: visible; pointer-events: none; }
.selection rect { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.selection .ants-w { stroke: #fff; }
.selection .ants-b { stroke: var(--ink); stroke-dasharray: 6 6; animation: ants .7s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -12; } }
.handle {
  position: absolute; width: 11px; height: 11px;
  background: #fff; border: 1.5px solid var(--ink);
  transform: translate(-50%, -50%);
}
.handle.tl { left: -7px; top: -7px; }  .handle.tc { left: 50%; top: -7px; }  .handle.tr { left: calc(100% + 7px); top: -7px; }
.handle.ml { left: -7px; top: 50%; }  .handle.mr { left: calc(100% + 7px); top: 50%; }
.handle.bl { left: -7px; top: calc(100% + 7px); } .handle.bc { left: 50%; top: calc(100% + 7px); } .handle.br { left: calc(100% + 7px); top: calc(100% + 7px); }
.doc-info {
  position: absolute; right: clamp(-28px, -2vw, -10px); bottom: 18%;
  background: var(--ink); color: #fff; border-radius: var(--radius-s);
  padding: 10px 14px; font-size: .82rem; line-height: 1.45;
  box-shadow: 0 10px 30px -12px rgba(28, 31, 58, .5);
}
.doc-info span { color: #A9ADC6; }
@media (max-width: 520px) { .doc-info { right: 8px; bottom: -18px; } }
@media (prefers-reduced-motion: reduce) {
  .selection .ants-b { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- services (swatches) ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.service { display: grid; align-content: start; gap: 14px; }
.swatch { width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(28,31,58,.12); }
.swatch--ink { background: var(--ink); }
.swatch--blue { background: var(--blue); }
.swatch--select { background: var(--select); }
.service p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } .service { grid-template-columns: 44px 1fr; column-gap: 20px; } .service .swatch { grid-row: span 2; } }

/* ---------- offer band ---------- */
.offer { background: var(--select); }
.offer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(40px, 5vw, 64px); }
.offer h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 740; font-stretch: 84%; letter-spacing: -0.03em; }
.offer p { margin: 10px 0 0; max-width: 36em; }
.offer .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.work-item { grid-column: span 6; text-decoration: none; display: grid; gap: 14px; }
.work-item:first-child { grid-column: span 12; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px); }
.work-item:first-child .work-name { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.browser { border-radius: var(--radius-m); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(28,31,58,.45); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.browser img { width: 100%; aspect-ratio: 1329 / 967; object-fit: cover; object-position: top; transition: transform .5s ease; }
.work-item:hover .browser img { transform: scale(1.02); }
.work-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.work-item:hover .work-name { color: var(--blue); }
.work-desc { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .work-item, .work-item:first-child { grid-column: span 12; grid-template-columns: 1fr; } }

/* ---------- music / clients ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.photo { border-radius: var(--radius-m); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack { position: relative; padding: 0 12% 12% 0; }
.photo-stack .photo:last-child { position: absolute; right: 0; bottom: 0; width: 48%; border: 6px solid var(--paper); box-shadow: 0 20px 40px -24px rgba(28,31,58,.5); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 30px; }
.logos img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 32px; }
.fact strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 760; font-stretch: 82%; letter-spacing: -0.03em; line-height: 1; }
.fact span { color: var(--muted); }
.section--ink .fact span { color: #A9ADC6; }

/* ---------- tutorials ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; padding: .55em 1.05em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 560; font-size: .95rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 32px); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: grid; gap: 12px; align-content: start; text-decoration: none; }
.post-card .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius-m); overflow: hidden; background: var(--line); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card h3 { font-size: 1.25rem; font-weight: 680; line-height: 1.2; letter-spacing: -0.01em; }
.post-card:hover h3 { color: var(--blue); }
.post-card p { color: var(--muted); margin: 0; font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); }
.tag--photoshop::before { background: var(--select); box-shadow: inset 0 0 0 1px rgba(28,31,58,.25); }

.post-list { display: grid; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row img { width: 120px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-s); }
.post-row h3 { font-size: 1.2rem; font-weight: 660; letter-spacing: -0.01em; line-height: 1.25; }
.post-row:hover h3 { color: var(--blue); }
.post-row time { color: var(--muted); font-size: .9rem; white-space: nowrap; }
@media (max-width: 600px) { .post-row { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; } .post-row img { width: 88px; } .post-row time { display: none; } }

/* ---------- page header ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.page-head h1 { margin-bottom: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- article ---------- */
.article-head { padding-block: clamp(32px, 5vw, 64px) 32px; }
.article-head .wrap, .article-body, .article-foot { max-width: calc(44rem + 2 * var(--gutter)); }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 740; font-stretch: 84%; letter-spacing: -0.03em; line-height: 1.02; margin: 14px 0 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .95rem; }
.article-cover { max-width: calc(64rem + 2 * var(--gutter)); margin-bottom: clamp(32px, 5vw, 56px); }
.article-cover img { width: 100%; border-radius: var(--radius-m); max-height: 560px; object-fit: cover; }
.prose { font-family: var(--serif); font-size: 1.175rem; line-height: 1.7; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.85rem; font-weight: 720; font-stretch: 88%; margin-top: 2em; line-height: 1.12; }
.prose h3 { font-size: 1.4rem; font-weight: 680; margin-top: 1.8em; line-height: 1.2; }
.prose h4 { font-size: 1.15rem; font-weight: 660; margin-top: 1.6em; letter-spacing: -0.005em; line-height: 1.3; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--blue); }
.prose a:hover { color: var(--blue-deep); background: var(--select-soft); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 650; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius-s); border: 1px solid var(--line); margin-inline: auto; }
.prose figcaption { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }
.prose blockquote, .prose .quote {
  margin: 1.8em 0; padding: 18px 22px;
  background: var(--select-soft); border-left: 4px solid var(--select);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-style: italic;
}
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-top: 8px; }
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; align-items: end; }
.prose .cols figure { margin: 0; }
.prose .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.prose a.btn { color: #fff; background: var(--ink); }
.prose a.btn:hover { background: var(--blue); }
.prose code { font-size: .9em; background: var(--surface); padding: .1em .35em; border-radius: 4px; border: 1px solid var(--line); }

.author-box { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 56px; padding: 26px; background: var(--surface); border-radius: var(--radius-m); border: 1px solid var(--line); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.author-box h2 { font-size: 1.2rem; font-weight: 680; margin-bottom: 6px; letter-spacing: -0.01em; }
.author-box p { margin: 0 0 10px; color: var(--muted); font-size: .98rem; }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-mail { display: inline-block; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; background: linear-gradient(var(--select), var(--select)) 0 88% / 100% .35em no-repeat; margin: 10px 0 28px; }
.contact-mail:hover { color: var(--ink); background-size: 100% 100%; }
.section--ink .contact-mail { color: #fff; background-image: linear-gradient(var(--blue), var(--blue)); }
.section--ink .contact-mail:hover { color: #fff; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; }
.contact dt { color: var(--muted); }
.section--ink .contact dt { color: #A9ADC6; }
.contact dd { margin: 0; }
.form { display: grid; gap: 16px; background: var(--surface); color: var(--ink); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius-s);
  padding: .8em .9em; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }
.form .hp { display: none; }
.form small { color: var(--muted); font-size: .85rem; }
.form-status { font-weight: 600; margin: 0; min-height: 1.5em; }
.form-status.ok { color: #157347; }
.form-status.err { color: #B42318; }

/* ---------- legal ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; font-weight: 700; margin: 2em 0 .6em; }
.legal h3 { font-size: 1.15rem; font-weight: 660; margin: 1.4em 0 .4em; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: .3em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9CBDB; padding-block: 64px 36px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--select); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 1rem; font-weight: 650; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo img { width: 130px; filter: invert(1) brightness(2); margin-bottom: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8F93AE; font-size: .88rem; }

/* ---------- misc ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.center { text-align: center; }
.mt-l { margin-top: clamp(36px, 5vw, 56px); }
