/* Holzwerk Brandl, Demo-Landingpage (fiktiver Betrieb) */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #111213;
  --bg-2: #17181a;
  --line: rgba(238, 235, 229, 0.12);
  --text: #eeebe5;
  --muted: #a6a39d;
  --accent: #ec5b33;
  --on-accent: #0e0f10;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* z-index scale: nav 10, mobile menu 11 */
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons: sharp corners everywhere (radius 0 system) */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 26px;
  font: 600 16px/1 var(--body); letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #f26a44; }
.btn--ghost { color: var(--text); border-color: rgba(238, 235, 229, 0.38); background: rgba(17, 18, 19, 0.35); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* Nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--text); color: var(--bg);
  font: 800 13px/1 var(--display); letter-spacing: -0.02em;
}
.brand__name { font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.nav__links a { color: rgba(238, 235, 229, 0.82); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__menu {
  display: none; height: 44px; padding: 0 16px;
  background: transparent; color: var(--text); border: 1px solid rgba(238, 235, 229, 0.38);
  font: 600 15px/1 var(--body); cursor: pointer;
}
.nav__mobile { display: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh; min-height: max(640px, 100dvh);
  display: flex; align-items: stretch;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 40%;
  filter: contrast(1.06) saturate(1.08);
  z-index: -2;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 52% 46% at 22% 26%, rgba(17, 18, 19, 0.62) 0%, rgba(17, 18, 19, 0) 100%),
    linear-gradient(180deg, rgba(17, 18, 19, 0.7) 0%, rgba(17, 18, 19, 0.25) 30%, rgba(17, 18, 19, 0) 48%),
    linear-gradient(0deg, rgba(17, 18, 19, 0.95) 0%, rgba(17, 18, 19, 0.55) 18%, rgba(17, 18, 19, 0) 36%),
    linear-gradient(90deg, rgba(17, 18, 19, 0.55) 0%, rgba(17, 18, 19, 0) 45%);
}
.hero__content {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: calc(76px + clamp(24px, 6vh, 72px)) var(--gutter) clamp(36px, 5vh, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 9.4vw, 150px);
  line-height: 0.9; letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__row {
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.hero__sub { max-width: 34ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: rgba(238, 235, 229, 0.86); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Facts */
.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 44px 32px 48px 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact__big { font: 600 clamp(26px, 2.3vw, 34px)/1.05 var(--display); letter-spacing: -0.03em; }
.fact__text { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 30ch; }

/* Services bento */
.services { padding: clamp(88px, 11vw, 160px) 0 clamp(72px, 9vw, 128px); }
.h2 {
  font: 700 clamp(38px, 4.6vw, 68px)/1 var(--display);
  letter-spacing: -0.04em; max-width: 16ch;
}
.bento {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; gap: 16px;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 340px 340px;
}
.tile { position: relative; overflow: hidden; background: var(--bg-2); display: block; }
.tile--lg { grid-row: span 2; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(17, 18, 19, 0.92) 0%, rgba(17, 18, 19, 0.35) 42%, rgba(17, 18, 19, 0) 70%);
}
.tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 28px 30px; }
.tile h3 { font: 600 clamp(26px, 2.4vw, 36px)/1 var(--display); letter-spacing: -0.03em; }
.tile--lg h3 { font-size: clamp(34px, 3.6vw, 52px); }
.tile p { margin-top: 10px; color: rgba(238, 235, 229, 0.8); font-size: 15.5px; max-width: 42ch; }
.tile--lg img { object-position: 50% 60%; }

/* Process */
.process { padding: 0 0 clamp(96px, 12vw, 176px); }
.process__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 104px); align-items: center; }
.collage { position: relative; padding: 0 12% 18% 0; }
.collage__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }
.collage__inset {
  position: absolute; right: 0; bottom: 0; width: 52%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 10px solid var(--bg);
}
.lead { margin-top: 24px; color: var(--muted); max-width: 44ch; font-size: 18px; }
.steps { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.steps h3 { font: 600 22px/1.1 var(--display); letter-spacing: -0.02em; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.textlink {
  margin-top: 44px; display: inline-flex; align-items: center; gap: 10px;
  font: 600 18px/1 var(--body); color: var(--accent);
  border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.textlink svg { width: 18px; height: 18px; fill: currentColor; transition: transform .3s var(--ease); }
.textlink:hover svg { transform: translate(3px, -3px); }

/* Motion: entry and reveal only when the user allows motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: heroZoom 2.4s var(--ease) both; }
  .hero__title .line > span { animation: rise 1s var(--ease) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
  .hero__row { animation: fade 1s .35s var(--ease) both; }
  .nav__inner { animation: fade .8s .1s var(--ease) both; }
  .js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
  .bento .reveal:nth-child(2), .facts .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
  .bento .reveal:nth-child(3), .facts .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
  .facts .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 1024px) {
  .nav__links { gap: 24px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 420px 360px; }
  .tile--lg { grid-row: auto; grid-column: span 2; }
  .process__grid { grid-template-columns: 1fr; }
  .collage { max-width: 640px; }
}

/* Mobile */
@media (max-width: 820px) {
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__menu { display: inline-flex; align-items: center; }
  .nav__inner { height: 68px; }
  .nav__mobile:not([hidden]) {
    display: grid; gap: 4px; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    position: relative; z-index: 11;
  }
  .nav__mobile a { padding: 12px 0; font: 600 22px/1.2 var(--display); }
  .hero { min-height: max(600px, 100svh); }
  .hero__img { object-position: 40% 50%; }
  .hero__title { font-size: clamp(56px, 17vw, 96px); }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 22px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile, .tile--lg { grid-column: auto; aspect-ratio: 4 / 4.4; }
  .tile--lg { aspect-ratio: 4 / 4.6; }
  .tile__body { padding: 22px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}
