/* Self-hosted fonts — no third-party requests (GDPR-clean) */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesque"; src: url("assets/fonts/HankenGrotesque.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ============================================================
   HACE — design system
   Concept: human craft × AI precision.
   Serif (Fraunces) = made by hand · Grotesque (Hanken) = clarity
   Mono (IBM Plex Mono) = engineered. Quiet frame, loud work.
   ============================================================ */

:root {
  --bg:        #0b0a09;
  --bg-2:      #131210;
  --bg-3:      #1b1916;
  --ink:       #f3efe6;
  --ink-soft:  #cfc9bd;
  --muted:     #8d877b;
  --line:      rgba(243, 239, 230, 0.12);
  --line-soft: rgba(243, 239, 230, 0.07);
  --sand:      #c7b299;     /* restrained warm accent */
  --sand-dim:  rgba(199, 178, 153, 0.5);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Hanken Grotesque", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sand); color: #0b0a09; }

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }

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

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.4rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.section__title em { font-style: italic; color: var(--sand); }
.section__lead {
  margin-top: 1.4rem;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.95em 1.7em; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: #0b0a09; }
.btn--solid:hover { background: var(--sand); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(243,239,230,0.04); }
.btn--full { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px 32px;
  background: rgba(11, 10, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav__mark {
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem;
  letter-spacing: 0.16em;
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--sand); transition: width 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 1.4rem; }
.social { display: flex; gap: 0.85rem; list-style: none; align-items: center; }
.social a { color: var(--muted); transition: color 0.3s, transform 0.3s; }
.social a:hover { color: var(--ink); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social--big svg { width: 26px; height: 26px; }
.nav__cta { padding: 0.7em 1.3em; }

.nav__burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 26px; height: 1.5px; background: var(--ink); transition: 0.35s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.7px) rotate(-45deg); }

/* mobile menu */
.mobilemenu {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: 0.45s var(--ease);
}
.mobilemenu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobilemenu nav { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.mobilemenu nav a { font-family: var(--serif); font-size: 2rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 120px 0 80px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 75% 15%, rgba(199,178,153,0.10), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(199,178,153,0.06), transparent 50%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent, var(--bg));
}
.hero__title {
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(2.7rem, 8.4vw, 7.4rem);
  line-height: 0.98; letter-spacing: -0.025em; margin: 0.4rem 0 1.6rem;
}
.hero__title span { display: block; }
.hero__title em { font-style: italic; color: var(--sand); }
.hero__sub { max-width: 46ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); }
.hero__cta { display: flex; gap: 0.9rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll svg { width: 16px; height: 22px; animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(5px);} }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line-soft); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: scroll 38s linear infinite; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink-soft); white-space: nowrap; }
.marquee__track i { color: var(--sand); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; border-top: 1px solid var(--line-soft); }
.section__head { max-width: 60ch; margin-bottom: 3.4rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.6rem; }
.filter {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 0.55em 1.1em; border-radius: 100px; cursor: pointer; transition: 0.3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink-soft); }
.filter.is-active { background: var(--ink); color: #0b0a09; border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work-card { transition: opacity 0.4s, transform 0.4s; }
.work-card.is-hidden { display: none; }
.work-card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-soft);
}
.work-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work-card:hover .work-card__media video { transform: scale(1.04); }
.work-card__play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(243,239,230,0.5); background: rgba(11,10,9,0.35); backdrop-filter: blur(4px);
  cursor: pointer; transition: 0.3s var(--ease);
}
.work-card__play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink);
  transform: translateX(2px);
}
.work-card__play:hover { background: var(--sand); border-color: var(--sand); }
.work-card__play:hover::after { border-left-color: #0b0a09; }
.work-card.is-playing .work-card__play { opacity: 0; pointer-events: none; }
.work-card__meta { padding: 1.1rem 0.2rem 0; }
.work-card__tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand);
}
.work-card__title { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0.4rem 0 0.3rem; }
.work-card__desc { color: var(--muted); font-size: 0.92rem; }
.work-more { text-align: center; margin-top: 3rem; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.work-more a { color: var(--ink); border-bottom: 1px solid var(--sand-dim); }
.work-more a:hover { border-color: var(--sand); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about__left .section__title em { font-style: italic; }
.about__right p { margin-bottom: 1.3rem; color: var(--ink-soft); font-size: 1.08rem; }
.about__stack { list-style: none; margin-top: 2.2rem; border-top: 1px solid var(--line-soft); }
.about__stack li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 0.98rem;
}
.about__stack li span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); padding-top: 2px; }

/* ---------- trusted ---------- */
.logos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden;
  margin-bottom: 3rem;
}
.logo-cell {
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  min-height: 120px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink-soft);
  letter-spacing: 0.02em; transition: 0.3s;
}
.logo-cell:hover { color: var(--ink); background: var(--bg-2); }
.logo-cell--open { color: var(--sand); font-style: italic; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat__label { display: block; margin-top: 0.7rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- approach / value ---------- */
/* ---------- approach / value (frameless) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.6rem, 3vw, 3rem); }
.value { background: transparent; padding: 0; min-height: 190px; display: flex; flex-direction: column; transition: 0.35s var(--ease); position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .value { cursor: default; } }
.value:focus-visible { outline: none; }
.value:focus-visible h3 { color: var(--sand); }
.value__no { font-family: var(--mono); font-size: 0.74rem; color: var(--sand); letter-spacing: 0.1em; }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0.9rem 0 0.7rem; transition: color 0.3s var(--ease); }
.value:hover h3, .value.is-hover h3, .value.is-open h3 { color: var(--sand); }
.value p { color: var(--muted); font-size: 0.94rem; opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.value:hover p { opacity: 1; transform: none; }
.value.is-open p { opacity: 1; transform: none; }
.value.is-hover p { opacity: 1; transform: none; }
.value:focus-visible p { opacity: 1; transform: none; }
.value::after { content: "+"; position: absolute; top: 0; right: 0; font-family: var(--mono); font-size: 1rem; line-height: 1; color: var(--sand); transition: transform 0.4s var(--ease); }
.value:hover::after { transform: rotate(45deg); }
.value.is-open::after { transform: rotate(45deg); }
.value.is-hover::after { transform: rotate(45deg); }

.offers { margin-top: clamp(60px, 9vw, 120px); }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.offer { border: 1px solid var(--line); border-radius: 12px; padding: 2rem; padding-right: 3.2rem; transition: 0.35s var(--ease); background: var(--bg); position: relative; cursor: pointer; min-height: 200px; -webkit-tap-highlight-color: transparent; }
.offer:hover, .offer.is-open, .offer.is-hover { border-color: var(--sand-dim); transform: translateY(-3px); }
.offer:focus-visible { outline: 1px solid var(--sand-dim); outline-offset: 2px; }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.offer__for { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sand); margin: 0.5rem 0 0.9rem; }
.offer p:last-child { color: var(--ink-soft); opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.offer:hover p:last-child { opacity: 1; transform: none; }
.offer.is-open p:last-child { opacity: 1; transform: none; }
.offer.is-hover p:last-child { opacity: 1; transform: none; }
.offer:focus-visible p:last-child { opacity: 1; transform: none; }
.offer::after { content: "+"; position: absolute; top: 2rem; right: 1.8rem; font-family: var(--mono); font-size: 1rem; line-height: 1; color: var(--sand); transition: transform 0.4s var(--ease); }
.offer:hover::after, .offer.is-open::after, .offer.is-hover::after { transform: rotate(45deg); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__lead { margin-top: 1.4rem; color: var(--ink-soft); max-width: 40ch; }
.contact__mail { display: inline-block; margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 2rem); border-bottom: 1px solid var(--sand-dim); transition: 0.3s; }
.contact__mail:hover { border-color: var(--sand); color: var(--sand); }
.contact .social--big { margin-top: 2.2rem; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field label span { text-transform: none; letter-spacing: 0; opacity: 0.6; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.9em 1em; color: var(--ink); font-family: var(--sans); font-size: 0.98rem;
  transition: border-color 0.3s, background 0.3s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); background: var(--bg-3); }
.field input::placeholder, .field textarea::placeholder { color: #5f5a51; }
.contact__form .btn--full { grid-column: 1 / -1; margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.8rem; min-height: 1.2em; }
.form-status.ok { color: var(--sand); }
.form-status.err { color: #e0846b; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 38px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__brand { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.16em; }
.footer__copy { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.footer__legal { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.footer__legal a { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft); transition: color 0.3s; }
.footer__legal a:hover { color: var(--sand); }
.footer__top { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft); }
.footer__top:hover { color: var(--sand); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__scroll svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__right .social { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav, .nav.is-scrolled { padding: 14px 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .value-grid, .offer-grid, .stats, .logos { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .about__stack li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero { min-height: 92svh; }
  /* grain blend layer is costly to composite while scrolling on phones */
  .grain { display: none; }
}

/* Touch devices: cards collapse to title only, expand smoothly on tap
   (on desktop the text simply fades in place, no reflow) */
@media (hover: none) {
  .value, .offer { min-height: 0; }
  .value p, .offer p:last-child {
    max-height: 0; overflow: hidden; margin-top: 0;
    transition: max-height 0.45s var(--ease), opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }
  .value.is-open p, .offer.is-open p:last-child { max-height: 16rem; }
  .value:hover p, .offer:hover p:last-child { max-height: 0; }
  .value.is-open:hover p, .offer.is-open:hover p:last-child { max-height: 16rem; }
}

/* ---------- legal pages (Impressum / Datenschutz) ---------- */
.legal { padding: 140px 0 80px; }
.legal__back { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem; transition: color 0.3s; }
.legal__back:hover { color: var(--sand); }
.legal h1 { font-family: var(--serif); font-weight: 360; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.legal__intro { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; margin-bottom: 3rem; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 2.6rem 0 0.9rem; }
.legal h3 { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); margin: 1.8rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; max-width: 70ch; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.legal li { padding-left: 1.2rem; position: relative; margin-bottom: 0.4rem; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--sand); }
.legal a { color: var(--ink); border-bottom: 1px solid var(--sand-dim); }
.legal a:hover { border-color: var(--sand); }
.legal__note { margin-top: 3rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-size: 0.88rem; color: var(--muted); }
.legal__addr { font-style: normal; line-height: 1.8; color: var(--ink-soft); }
