/* hofstudio.de — minimal, cool, near-invisible chrome */

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafaf9;
  --fg: #111111;
  --muted: #6b6b68;
  --line: #e8e7e3;
  --line-strong: #c9c8c2;
  --slot: #ececea;
  --slot-2: #e3e2df;
  --max: 1440px;
  --pad: 40px;
  --gap: 14px;
  --tall: 720px;
  --square: 353px; /* (720 - gap) / 2 */
  --serif: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #000; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 0 56px;
  gap: 40px;
}

.brand { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-mark {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.primary {
  display: flex;
  gap: 28px;
  padding-top: 6px;
}
.primary a {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .15s ease;
  position: relative;
}
.primary a:hover { color: var(--fg); }
.primary a.is-active { color: var(--fg); }
.primary a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--fg);
}

/* ---------- View ---------- */
.view { flex: 1; padding-bottom: 80px; }

/* ---------- Gallery ---------- */
.gallery-section { display: flex; flex-direction: column; }

.seo-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: none;
}

.tabs-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 52px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--line-strong);
  padding: 0 0 18px;
  position: relative;
  transition: color 0.3s ease;
  line-height: 1;
}
.tab-btn.active { color: var(--fg); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--fg);
}

.gallery-tab { display: none; padding-top: var(--gap); margin-top: var(--gap); }
.gallery-tab.active { display: block; }

.masonry { columns: 3; column-gap: var(--gap); }

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--slot);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.04); }

.item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.72) 0%, transparent 100%);
  color: rgba(255,255,255,0.92);
  padding: 36px 14px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}
.gallery-item:hover .item-caption { opacity: 1; }

.load-more-wrap { padding: 52px 0 40px; text-align: center; }
.load-more-btn {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  appearance: none;
  background: none;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 13px 44px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
}
.load-more-btn:hover { background: var(--fg); color: var(--bg); }
.load-more-btn.hidden { display: none; }

/* about portrait */
image-slot.slot-tall {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5.4;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,7,6,0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
}
.lb-img { max-width: 90vw; max-height: 82vh; object-fit: contain; display: block; }
.lb-caption {
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
}
.lb-counter { margin-top: 6px; color: rgba(255,255,255,0.28); font-size: 11px; letter-spacing: 0.1em; }

.lb-close {
  position: fixed;
  top: 22px; right: 30px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  appearance: none; background: none; border: none;
  color: rgba(255,255,255,0.55);
  font-size: 22px;
  transition: color 0.2s;
  z-index: 1001;
}
.lb-close:hover { color: #fff; }

.lb-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  cursor: pointer;
  appearance: none; background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 28px;
  padding: 20px 24px;
  transition: color 0.2s;
  z-index: 1001;
  line-height: 1;
}
.lb-nav:hover { color: rgba(255,255,255,0.9); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ---------- About ---------- */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 80px;
  padding-top: 12px;
}

.about-portrait { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.display {
  font-size: clamp(30px, 4.6vw, 45px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 40px;
  max-width: 22ch;
  text-wrap: balance;
}

.prose {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.65;
  color: #2a2a28;
}
.prose p { margin: 0 0 1em; }
.prose .muted { color: var(--muted); }

.meta-list {
  margin: 48px 0 32px;
  border-top: 1px solid var(--line);
}
.meta-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.meta-list dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.meta-list dd {
  font-size: 14px;
  margin: 0;
  color: var(--fg);
}
.meta-list--wide > div { grid-template-columns: 220px 1fr; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  transition: gap .15s ease;
}
.link-arrow:hover { gap: 14px; }

/* ---------- Contact ---------- */
.contact-section { padding-top: 12px; max-width: 920px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin: 8px 0 64px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  aspect-ratio: 5 / 3;
  transition: border-color .15s ease, transform .15s ease;
}
.contact-card:hover {
  border-color: var(--fg);
}
.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 500;
  align-self: flex-start;
}
.contact-cta {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Legal ---------- */
.legal-section { padding-top: 12px; max-width: 1080px; }
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  margin-top: 16px;
}
.legal-block h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.legal-block p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #2a2a28;
  max-width: 60ch;
}
.legal-block--full {
  grid-column: 1 / -1;
}

/* ---------- Footer ---------- */
.footbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footbar a:hover { color: var(--fg); }
.footbar .sep { margin: 0 10px; opacity: 0.5; }
.footbar-r > * + * { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about-section { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait image-slot.slot-tall { aspect-ratio: 4 / 5; max-width: 460px; }
}

@media (max-width: 820px) {
  :root { --pad: 22px; --gap: 8px; }
  .topbar { padding: 22px 0 36px; flex-wrap: wrap; }
  .primary { gap: 20px; }
  .masonry { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .footbar { flex-direction: column; gap: 8px; }
  .meta-list > div { grid-template-columns: 130px 1fr; gap: 16px; }
  .lb-nav { padding: 16px 12px; font-size: 22px; }
}

@media (max-width: 520px) {
  .masonry { columns: 1; }
  .display { font-size: 30px; }
  .tabs-bar { gap: 32px; }
}
