@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-normal-500-700-latin-ext.woff2") format("woff2");
  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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-normal-500-700-latin.woff2") format("woff2");
  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: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/caveat-normal-500-latin-ext.woff2") format("woff2");
  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: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/caveat-normal-500-latin.woff2") format("woff2");
  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: "Figtree";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-italic-400-latin-ext.woff2") format("woff2");
  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: "Figtree";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-italic-400-latin.woff2") format("woff2");
  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: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/figtree-normal-400-600-latin-ext.woff2") format("woff2");
  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: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/figtree-normal-400-600-latin.woff2") format("woff2");
  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;
}
/* ---------- tokens ---------- */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f2eadf;
  --ink: #2b2521;
  --muted: #6b6059;
  --line: #e4d9cb;
  --accent: #b8471f;
  --accent-soft: #f6d9c9;
  --green: #6ba32e;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 12px 32px -12px rgba(60, 40, 20, 0.18);
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.06), 0 4px 14px -6px rgba(60, 40, 20, 0.14);
  --radius: 20px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916;
    --surface: #26221e;
    --surface-2: #2f2a25;
    --ink: #f1eae1;
    --muted: #b3a89c;
    --line: #3a342e;
    --accent: #f08a5d;
    --accent-soft: #4a2b1e;
    --green: #8cc152;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px -6px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
/* ---------- base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- header ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
header.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1rem/1.2 var(--body);
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

nav.main {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}
nav.main a {
  color: var(--ink);
  text-decoration: none;
}
nav.main a:hover {
  color: var(--accent);
}
nav.main .lang {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 820px) {
  nav.main a:not(.lang) {
    display: none;
  }
}

/* ---------- buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 1rem var(--body);
  padding: 14px 22px;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  max-width: 12.5em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding: 0 0.08em;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 24px 0 32px;
  max-width: 32em;
}
.hero .lede strong {
  color: var(--ink);
  font-weight: 600;
}
.hero .fineprint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 14px;
}

.hello {
  font-family: var(--hand);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 14px;
  transform: rotate(-2deg);
  display: inline-block;
}

.portrait {
  position: relative;
  justify-self: center;
  margin: 0;
  width: min(100%, 300px);
}
.portrait .note {
  position: absolute;
  left: -56px;
  bottom: -28px;
  width: max-content;
  max-width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.4;
  transform: rotate(-1.5deg);
}
.portrait .note b {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
}
.portrait .note span {
  color: var(--muted);
}

.polaroid {
  background: var(--surface);
  padding: 12px 12px 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 3px;
}
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 1.45rem;
  color: var(--muted);
  text-align: right;
  padding: 6px 10px 10px 0;
  line-height: 1.2;
}

@media (max-width: 860px) {
  .hero {
    padding: 32px 0 24px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .portrait {
    order: -1;
    justify-self: stretch;
    width: 100%;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: end;
  }
  .portrait .note {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  .polaroid {
    padding: 7px 7px 0;
    transform: rotate(-2deg);
  }
  .polaroid figcaption {
    font-size: 1.1rem;
    padding: 2px 0 4px;
    text-align: center;
  }
}
/* ---------- client strip ---------- */
.clients {
  padding: 32px 0 72px;
}
.clients .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  width: 100%;
}
.clients .label {
  font: 600 0.75rem var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.clients ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.clients li {
  font: 700 1.15rem var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.82;
}

/* ---------- section scaffolding ---------- */
section.block {
  padding: 96px 0;
}
@media (max-width: 480px) {
  section.block {
    padding: 64px 0;
  }
}
section.block h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  max-width: 17em;
}

section.alt {
  background: var(--surface-2);
}

.kicker {
  font: 600 0.78rem var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.kicker .n {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38em;
  margin: 16px 0 0;
}

/* ---------- about letter ---------- */
.letter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}
.letter .body {
  font-size: 1.15rem;
  max-width: 34em;
}
.letter .body p {
  margin: 0 0 1.1em;
}
@media (max-width: 760px) {
  .letter {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.sig {
  font-family: var(--hand);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ink);
  margin-top: 8px;
}

.facts {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.facts dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 2px 0 0;
  color: var(--ink);
}

/* ---------- how we work ---------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.how .head {
  position: sticky;
  top: 96px;
}
@media (max-width: 860px) {
  .how {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .how .head {
    position: static;
  }
}

.path {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed var(--line);
}
.path li {
  position: relative;
  padding: 0 0 40px 76px;
}
.path li:last-child {
  padding-bottom: 0;
}
.path .num {
  position: absolute;
  left: 0;
  top: -6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font: 700 1.1rem var(--display);
  color: var(--accent);
}
.path li:first-child .num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.path h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.path p {
  color: var(--muted);
  max-width: 36em;
}
.path .aside {
  margin-top: 10px;
  font-style: italic;
  color: var(--ink);
}
@media (max-width: 420px) {
  .path::before {
    left: 17px;
  }
  .path .num {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    top: -2px;
  }
  .path li {
    padding-left: 56px;
  }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 99px;
  color: var(--ink);
}

/* ---------- services ---------- */
.ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.feature {
  margin-top: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.feature h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 16px 0 10px;
  color: var(--bg);
}
.feature p {
  color: color-mix(in srgb, var(--bg) 75%, var(--ink));
  max-width: 40em;
}
.feature .ic {
  background: color-mix(in srgb, var(--bg) 14%, var(--ink));
  color: var(--bg);
}
.feature .btn {
  background: var(--bg);
  color: var(--ink);
}
@media (max-width: 640px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 22px;
  }
  .feature .btn {
    justify-self: start;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 1.15rem;
  margin: 14px 0 6px;
}
.card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ---------- work ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .products {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prod {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prod .shot {
  aspect-ratio: 16/9;
  background: #141210;
  overflow: hidden;
}
.prod .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
}
.prod .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.prod .meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prod .meta img,
.prod .meta .mono {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: none;
}
.prod .meta img.contain {
  object-fit: contain;
  background: var(--surface-2);
  padding: 6px;
}
.prod .mono {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 1.2rem var(--display);
}
.prod h3 {
  font-size: 1.25rem;
}
.prod .sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}
.prod p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.prod .links {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.93rem;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 10px;
  color: var(--muted);
}

.clientwork {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .clientwork {
    grid-template-columns: minmax(0, 1fr);
  }
}
.clientwork .label {
  font: 600 0.72rem var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.case {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.case h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.case p {
  color: var(--muted);
  max-width: 36em;
}
.case .num-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0;
}
.case .num-row div {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}
.case .num-row b {
  display: block;
  font: 700 1.8rem/1.1 var(--display);
  color: var(--accent);
}

.others {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.others ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.others li {
  font: 700 1.15rem var(--display);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.others li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.others small {
  font: 400 0.85rem var(--body);
  color: var(--muted);
}

/* ---------- writing ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .posts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.post .media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-2);
}
.post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post:hover img {
  transform: scale(1.04);
}
.post .cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 4px;
}
.post h3 {
  font-size: 1.06rem;
  line-height: 1.3;
  font-weight: 600;
}
.post:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.more {
  margin-top: 32px;
  font-weight: 600;
}

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  color: var(--bg);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.contact > img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid color-mix(in srgb, var(--bg) 20%, var(--ink));
}
.contact h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--bg);
}
.contact p {
  color: color-mix(in srgb, var(--bg) 72%, var(--ink));
  margin: 12px 0 24px;
  max-width: 36em;
}
.contact .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.contact .btn-ghost {
  color: var(--bg);
  border-color: color-mix(in srgb, var(--bg) 30%, var(--ink));
}
.contact .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 0.95rem;
}
.contact .links a {
  color: var(--bg);
}
@media (max-width: 640px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 22px;
    border-radius: 24px;
    gap: 24px;
  }
  .contact > img {
    width: 80px;
    height: 80px;
  }
}

/* ---------- text pages (imprint, data protection) ---------- */
.page {
  padding: 64px 0 96px;
}
.page .wrap {
  max-width: 780px;
}
.page h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 32px;
}
.page h2 {
  font-size: 1.5rem;
  margin: 2.2em 0 0.6em;
}
.page h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.4em;
}
.page p,
.page ul,
.page ol {
  margin: 0 0 1em;
}
.page section:first-child h2:first-child {
  margin-top: 0;
}

/* ---------- footer ---------- */
footer.site {
  padding: 48px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
footer.site a {
  color: var(--muted);
}
footer.site .sp {
  margin-left: auto;
}
@media (max-width: 640px) {
  footer.site .sp {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 640px) {
  footer.site {
    padding-bottom: 104px;
  }
}

/* ---------- Blocks mini game button (created by js/blocks-fab.js) ---------- */
.blk-fab {
  position: fixed;
  z-index: 9990;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid #f08a5d;
  border-radius: 16px;
  background: #221e1b;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
}
.blk-fab:hover {
  transform: translateY(-2px);
}
.blk-fab.blk-loading {
  cursor: progress;
  opacity: 0.6;
}
@media (max-width: 599px), (pointer: coarse) {
  .blk-fab {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
