/* ==========================================================================
   POTATTOO — dark, elegant, all about ink
   ========================================================================== */

:root {
  --ink: #070608;
  --ink-2: #0d0b0e;
  --ink-3: #151217;
  --paper: #ebe3d5;
  --paper-dim: #b9b0a2;
  --muted: #7d766c;
  --accent: #e1c47e;
  --accent-deep: #6e5b30;
  --line: rgba(235, 227, 213, 0.12);
  --line-strong: rgba(235, 227, 213, 0.28);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* paper grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--paper-dim);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.display { font-size: clamp(44px, 7.5vw, 108px); }
.title { font-size: clamp(38px, 5.2vw, 72px); }
.title em, .display em { font-style: italic; color: var(--accent); }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; color: var(--paper); font-weight: 300; }
p { margin: 0 0 1.1em; color: var(--paper-dim); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: clamp(90px, 14vw, 170px) 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(7, 6, 8, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .24em;
  font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.brand .logo { height: 34px; width: auto; flex: none; transition: transform .6s var(--ease); }
.brand:hover .logo { transform: rotate(-8deg); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 38px); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--paper-dim);
  position: relative; padding: 6px 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { padding: 10px 18px; }
.nav-links .btn::after { display: none; }

.menu-toggle {
  display: none; background: none; border: 0; color: var(--paper); cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.menu-toggle span { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: transform .4s var(--ease), opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ink);
    clip-path: circle(0% at calc(100% - 38px) 38px);
    transition: clip-path .8s var(--ease);
  }
  .nav-links a { font-size: 15px; }
  .menu-open .nav-links { clip-path: circle(150% at calc(100% - 38px) 38px); }
  .menu-open { overflow: hidden; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400;
  padding: 16px 30px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  position: relative; overflow: hidden; isolation: isolate;
  background: transparent; cursor: pointer;
  transition: border-color .4s, color .4s;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s var(--ease);
  filter: url(#ink-edge);
}
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn:hover::before { transform: translate(-50%, -50%) scale(40); }
.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid:hover { color: var(--ink); border-color: var(--accent); }
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- hero ---------- */
.hero {
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
}
#ink-canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(.6px); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, var(--ink) 85%);
}
/* width fixed to the screen: the title is wider than a narrow screen while its letter-spacing animates in,
   and must not widen (and shift) the whole centred block */
.hero-inner { position: relative; z-index: 2; padding: 120px var(--gutter) 80px; width: 100%; min-width: 0; }
.hero h1 {
  display: flex; justify-content: center; /* overflows evenly to both sides instead of to the right */
  white-space: nowrap;
  font-size: clamp(44px, 13vw, 210px);
  letter-spacing: .12em;
  font-weight: 500;
  line-height: .9;
  margin: 26px 0 18px;
  padding-left: .12em; /* optical centre for tracking */
  filter: url(#ink-bleed);
  animation: bleedIn 2.6s var(--ease) both .2s;
}
@keyframes bleedIn {
  from { opacity: 0; letter-spacing: .5em; filter: url(#ink-bleed) blur(14px); }
  to   { opacity: 1; letter-spacing: .12em; filter: url(#ink-bleed) blur(0); }
}
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: var(--paper-dim);
  animation: fadeUp 1.6s var(--ease) both 1.4s;
}
.hero .actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 1.6s var(--ease) both 1.8s; }
.hero .eyebrow { animation: fadeUp 1.4s var(--ease) both .9s; }
.scroll-cue {
  position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 70px; background: linear-gradient(var(--paper-dim), transparent);
  overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 12px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: var(--accent); animation: drip 2.4s ease-in infinite;
}
@keyframes drip { 0% { transform: translateY(-14px); } 70%, 100% { transform: translateY(80px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero h1, .hero .tagline, .hero .actions, .hero .eyebrow { animation: none; }
}

/* ---------- welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.welcome-grid .title { margin: 24px 0 34px; }
.ink-portrait { position: relative; aspect-ratio: 4/5; }
.ink-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.85);
  -webkit-mask: url("../img/ink-mask.svg") center / 100% 100% no-repeat;
  mask: url("../img/ink-mask.svg") center / 100% 100% no-repeat;
  transition: filter 1.2s var(--ease);
}
.ink-portrait:hover img { filter: grayscale(0) contrast(1.05) brightness(.95); }
.ink-portrait .caption {
  position: absolute; bottom: -12px; right: 0;
  font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px;
}
@media (max-width: 880px) { .welcome-grid { grid-template-columns: 1fr; } .ink-portrait { max-width: 460px; } }

/* ---------- services ---------- */
.services { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(50px, 7vw, 90px); }
.section-head .title { margin-top: 20px; }
.section-head p { max-width: 420px; margin: 0; }
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service {
  padding: 44px 30px 50px 0; border-right: 1px solid var(--line); position: relative;
}
.service + .service { padding-left: 30px; }
.service:last-child { border-right: 0; }
.service .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 20px; }
.service h3 { font-size: clamp(30px, 3vw, 42px); margin: 18px 0 16px; transition: transform .6s var(--ease); }
.service p { font-size: 15px; margin: 0; }
.service svg.glyph { width: 46px; height: 46px; margin-top: 34px; color: var(--paper-dim); transition: color .5s; }
.service:hover h3 { transform: translateX(8px); }
.service:hover svg.glyph { color: var(--accent); }
.service::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent);
  transition: width .8s var(--ease);
}
.service + .service::before { left: 30px; }
.service:hover::before { width: calc(100% - 30px); }
@media (max-width: 980px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .service:nth-child(3)::before { left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 36px 0 40px; border-right: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service::before, .service + .service::before { left: 0; }
}

/* ---------- gallery strip / grid ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 320px);
  gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 24px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.strip::-webkit-scrollbar { height: 3px; }
.strip::-webkit-scrollbar-thumb { background: var(--accent); }
.strip a { scroll-snap-align: start; }

.tile {
  position: relative; display: block; overflow: hidden; background: var(--ink-3);
  aspect-ratio: 1; cursor: zoom-in;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.78);
  transform: scale(1.02);
  transition: filter .9s var(--ease), transform 1.4s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), transparent 0, transparent 30%, rgba(7,6,8,.55) 75%);
  opacity: 1; transition: opacity .8s;
}
.tile:hover img, .tile:focus-visible img { filter: grayscale(0) contrast(1.05) brightness(1); transform: scale(1.08); }
.tile:hover::after { opacity: 0; }
.tile .label {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--paper);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease);
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}
.tile:hover .label { opacity: 1; transform: none; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); grid-auto-flow: dense; gap: 12px; }
.gallery-grid .tile.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-grid .tile.tall { grid-row: span 2; aspect-ratio: 1/2; }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .gallery-grid .tile.wide { grid-column: span 2; } }

.gallery-actions { display: flex; justify-content: center; margin-top: 50px; }

/* ---------- wannados teaser ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.stack { position: relative; aspect-ratio: 1; max-width: 520px; }
.stack .tile { position: absolute; width: 62%; aspect-ratio: 3/4; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.stack .tile:nth-child(1) { left: 0; top: 4%; transform: rotate(-5deg); }
.stack .tile:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); }
.stack .tile:nth-child(3) { left: 20%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
.stack .tile:hover { z-index: 3; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split .stack { order: 2; } }

/* ---------- appointment / contact ---------- */
.appointment { text-align: center; overflow: hidden; }
.appointment .title { margin: 22px auto 26px; max-width: 900px; }
.appointment p.big { max-width: 640px; margin: 0 auto 44px; }
.appointment .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.splat { position: absolute; pointer-events: none; color: var(--accent-deep); opacity: .3; }
.splat.a { width: 420px; left: -140px; top: 10%; transform: rotate(20deg); }
.splat.b { width: 300px; right: -90px; bottom: 6%; transform: rotate(-30deg); color: var(--ink-3); opacity: 1; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 110px); }
.contact-info dl { margin: 40px 0 0; display: grid; gap: 30px; }
.contact-info dt { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 400; color: var(--paper-dim); margin-bottom: 6px; }
.contact-info dd { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.contact-info dd a { border-bottom: 1px solid var(--line-strong); transition: border-color .3s, color .3s; }
.contact-info dd a:hover { color: var(--paper); border-color: var(--accent); }

form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 26px; }
form.contact .full { grid-column: 1 / -1; }
.field { position: relative; }
.field label { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; color: var(--paper-dim); margin-bottom: 8px; transition: color .4s; }
.field:focus-within label { color: var(--accent); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(235, 227, 213, 0.5);
  color: var(--paper); font: inherit; font-size: 18px; padding: 10px 12px 12px; border-radius: 0;
  background: rgba(235, 227, 213, 0.04);
  transition: border-color .4s, background-color .4s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(235, 227, 213, 0.07); }
.field .ink-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .7s var(--ease); filter: url(#ink-edge); }
.field input:focus ~ .ink-line, .field textarea:focus ~ .ink-line { width: 100%; }
form.contact .note { font-size: 13px; color: var(--paper-dim); margin: 0; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form.contact { grid-template-columns: 1fr; } }

/* ---------- infos (anreise, zeiten, zahlung, downloads) ---------- */
.infos { background: var(--ink-2); border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.info { padding: clamp(36px, 5vw, 60px) clamp(0px, 4vw, 50px) clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.info:nth-child(odd) { border-right: 1px solid var(--line); }
.info:nth-child(even) { padding-left: clamp(24px, 4vw, 50px); padding-right: 0; }
.info h3 { font-size: clamp(30px, 3vw, 40px); margin: 14px 0 20px; }
.info .k { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.info p:last-child { margin-bottom: 0; }
.info .notice {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--paper); font-family: var(--serif); font-size: 20px; line-height: 1.45;
}
.info address { font-style: normal; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--paper); margin-bottom: 18px; }
.pay { display: grid; gap: 20px; margin-top: 10px; }
.pay-card { border: 1px solid var(--line); padding: 22px 24px; background: rgba(7,6,8,.4); }
.pay-card h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--paper); margin-bottom: 12px; font-weight: 400; }
.pay-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 12px; font-size: 15px; }
.pay-card dt { color: var(--muted); }
.pay-card dd { margin: 0; color: var(--paper); word-break: break-word; font-variant-numeric: tabular-nums; }
.pay-card p { font-size: 14px; margin: 0; }
.downloads { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.downloads a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 24px; transition: color .3s, padding .5s var(--ease);
}
.downloads a span.t { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; color: var(--muted); }
.downloads a:hover { color: var(--accent); padding-left: 10px; }
@media (max-width: 880px) {
  .info-grid { grid-template-columns: 1fr; }
  .info:nth-child(odd) { border-right: 0; }
  .info, .info:nth-child(even) { padding-left: 0; padding-right: 0; }
}

/* ---------- page header (subpages) ---------- */
.page-hero { padding: clamp(150px, 20vw, 230px) 0 clamp(50px, 7vw, 90px); position: relative; overflow: hidden; }
.page-hero .display { margin: 22px 0 28px; filter: url(#ink-bleed); }
.page-hero p { max-width: 640px; }
.page-hero .splat { width: 520px; right: -160px; top: -60px; opacity: .22; }

.legal { padding-bottom: 140px; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: clamp(28px, 3vw, 38px); margin: 64px 0 20px; color: var(--paper); }
.legal h3 { font-size: 26px; margin: 42px 0 14px; color: var(--paper); }
.legal h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin: 30px 0 10px; color: var(--paper); }
.legal ul { color: var(--paper-dim); padding-left: 20px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 40px; margin: 0; }
.legal dt { color: var(--muted); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding-top: 6px; }
.legal dd { margin: 0; font-family: var(--serif); font-size: 22px; }
.legal a { border-bottom: 1px solid var(--line-strong); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 4px; } .legal dd { margin-bottom: 14px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 40px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a, .footer-grid address { color: var(--paper-dim); font-style: normal; font-size: 15px; transition: color .3s; }
.footer-grid a:hover { color: var(--paper); }
/* links with a leading icon (contact block + footer) */
.ico-link a { display: inline-flex; align-items: center; gap: .45em; }
.ico-link .ico { width: 1em; height: 1em; flex: none; }
.contact-info dd.social { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.contact-info dd.social .ico { width: .8em; height: .8em; }
.footer-mark { display: flex; align-items: center; gap: 22px; margin: 64px 0 28px; }
.footer-mark::before, .footer-mark::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.footer-mark img { width: 33px; height: auto; opacity: .75; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 3, 5, .96);
  display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 0 40px; min-width: 0; }
.lightbox img { max-height: calc(100% - 40px); max-width: 100%; object-fit: contain; transition: opacity .4s, filter .6s; }
.lightbox img.loading { opacity: 0; filter: blur(12px); }
.lightbox figcaption { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--paper-dim); text-align: center; }
.lightbox figcaption .count { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .3em; color: var(--muted); margin-left: 14px; }
.lb-btn { background: none; border: 0; color: var(--paper-dim); cursor: pointer; width: 70px; height: 70px; display: grid; place-items: center; transition: color .3s; }
.lb-btn:hover { color: var(--accent); }
.lb-btn svg { width: 28px; height: 28px; }
.lb-close { position: absolute; top: 10px; right: 10px; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox figure { padding: 70px 12px 90px; }
  .lb-prev, .lb-next { position: absolute; bottom: 10px; }
  .lb-prev { left: 20%; } .lb-next { right: 20%; }
}

/* ---------- cursor ink trail ---------- */
#trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

/* ---------- divider ---------- */
.ink-rule { display: block; width: min(420px, 70%); height: 34px; margin: 0 auto; color: var(--accent); opacity: .8; }

/* ---------- beetle mark ---------- */
.hero-beetle {
  width: clamp(64px, 8vw, 104px); height: auto; margin: 0 auto 28px;
  filter: drop-shadow(0 0 28px rgba(225, 196, 126, .18));
  animation: beetleIn 1.8s var(--ease) both .4s;
}
@keyframes beetleIn { from { opacity: 0; transform: translateY(-18px) scale(.92); filter: blur(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-beetle { animation: none; } }

/* ---------- gallery photos spill into view like ink ---------- */
.tile.spill {
  -webkit-mask: url("/img/spill-1.svg") center / 0% 0% no-repeat;
          mask: url("/img/spill-1.svg") center / 0% 0% no-repeat;
  transition: -webkit-mask-size 1.9s cubic-bezier(.16, .8, .2, 1) var(--d, 0s),
                      mask-size 1.9s cubic-bezier(.16, .8, .2, 1) var(--d, 0s),
              transform .6s var(--ease);
}
.tile.spill.s2 { -webkit-mask-image: url("/img/spill-2.svg"); mask-image: url("/img/spill-2.svg"); }
.tile.spill.s3 { -webkit-mask-image: url("/img/spill-3.svg"); mask-image: url("/img/spill-3.svg"); }
.tile.spill.in { -webkit-mask-size: 330% 330%; mask-size: 330% 330%; }
.tile.spill.spilled { -webkit-mask: none; mask: none; }
/* the photo surfaces from the ink: blurred and dark at first, settling as the blot spreads */
.tile.spill:not(.in) img { transform: scale(1.18); filter: grayscale(1) brightness(.35) blur(6px); }
.tile.spill img { transition: filter 1.6s var(--ease) calc(var(--d, 0s) + .15s), transform 2s var(--ease) var(--d, 0s); }
.tile.spill.spilled img { transition: filter .9s var(--ease), transform 1.4s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .tile.spill, .tile.spill.in { -webkit-mask: none; mask: none; transition: none; }
  .tile.spill:not(.in) img { transform: none; filter: grayscale(1) contrast(1.1) brightness(.78); }
}

/* ---------- contact form: spam trap, footer, status ---------- */
form.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.contact .note a { color: var(--paper); border-bottom: 1px solid var(--accent); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--paper-dim); min-height: 1.4em; flex: 1 1 260px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e6a0a0; }
form.contact.sending button { opacity: .5; pointer-events: none; }
form.contact { position: relative; }
