@font-face {
  font-family: Manrope;
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #1f2328;
  --paper: #f7faf7;
  --wash: #eef5ef;
  --text: #47534e;
  --green: #13793b;
  --line: #dbe5dc;
  --gutter: clamp(20px, 5.6vw, 88px);
  --safe-side: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --page-gutter: max(var(--gutter), var(--safe-side));
  --nav-height: 70px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(1280px, 100% - 2 * var(--page-gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 132px); }
.green { color: var(--green); }
.skip { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 10px 16px; background: white; color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }

.nav { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.brand > span > span { color: var(--green); }
.brand img { flex: none; }
.nav__links { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); font-weight: 750; font-size: 14px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__links a:hover, .footer a:hover { color: var(--green); }
.nav__links .nav__contact { padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.nav__contact span { margin-left: 9px; }
.menu-toggle { display: none; }

.hero { background: var(--paper); color: var(--ink); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  min-height: clamp(540px, 46vw, 730px);
}
.hero__copy { position: relative; z-index: 1; padding-block: 72px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .145em; text-transform: uppercase; line-height: 1.5; }
.hero .kicker { color: var(--text); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.hero h1 { font-size: clamp(44px, 5vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.07em; margin: 24px 0; text-wrap: balance; }
.hero h1 span { color: var(--green); white-space: nowrap; }
.hero__lead { max-width: 39ch; color: var(--text); font-size: clamp(15px, 1.45vw, 19px); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 20px; border-radius: 8px; padding: 10px 17px; font-size: 14px; font-weight: 800; transition: background .22s; }
.button--primary { background: var(--green); color: white; }
.button--primary:hover { background: #105e30; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 28px; }
.hero__stage {
  --mark-width: 78%;
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1.14;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 79%;
  width: 56%;
  height: 7%;
  border-radius: 50%;
  background: #20382930;
  filter: blur(clamp(8px, 1.4vw, 19px));
  opacity: var(--shadow-opacity, 1);
}
.hero__fallback { width: var(--mark-width); height: auto; }
.hero__fallback, .hero-mobile-poster { grid-area: 1 / 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-intro-pending .hero__stage::before,
  .hero-intro-pending .hero__fallback,
  .hero-intro-pending .hero-mobile-poster { visibility: hidden; }
}
.hero-grip {
  position: absolute;
  z-index: 1;
  width: calc(var(--mark-width) * 1.1);
  aspect-ratio: 360 / 260;
  touch-action: pan-y pinch-zoom;
  pointer-events: none;
  user-select: none;
}
.hero__stage.can-grab .hero-grip { pointer-events: auto; cursor: grab; }
.hero__stage.can-grab .hero-grip.is-grabbing { cursor: grabbing; }
.hero-rotate-hint {
  position: absolute;
  inset-inline: 0;
  bottom: 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-out;
}
.hero__stage.can-grab:not(.is-playing-intro) .hero-rotate-hint { opacity: 1; }
.hero__stage.can-grab .hero-grip.is-grabbing + .hero-rotate-hint { opacity: 0; }
.hero-mobile-poster { height: auto; }
.hero__stage.has-mobile-flight .hero__fallback,
.hero__stage.is-showing-mobile-model .hero-mobile-poster,
.hero__stage.is-rendered .hero-mobile-poster { visibility: hidden; }
#heroCanvas, .hero-mobile-flight {
  position: fixed;
  z-index: 11;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  visibility: hidden;
}
#heroCanvas.is-visible, .hero-mobile-flight.is-visible { visibility: visible; }
.hero-mobile-flight.is-visible { will-change: transform, opacity; }
.hero__stage.has-mobile-flight::before {
  background: radial-gradient(ellipse, #20382926, transparent 72%);
  filter: none;
}
.hero__stage.has-mobile-flight.is-rendered::before { opacity: 0; }
.hero__stage.is-rendered .hero__fallback { visibility: hidden; }

.intro { background: #fff; border-top: 1px solid var(--line); padding-bottom: clamp(48px, 6vw, 92px); }
.intro__layout { display: grid; grid-template-columns: .53fr 1.47fr; gap: 30px; }
.intro h2 { align-self: start; margin-top: 10px; color: var(--green); }
.intro__lead { max-width: 29ch; font-size: clamp(27px, 3.6vw, 54px); line-height: 1.16; font-weight: 750; letter-spacing: -.06em; }
.intro__example { max-width: 52ch; margin-top: clamp(14px, 2vw, 25px); color: var(--text); font-size: clamp(16px, 1.5vw, 19px); }
.work { background: var(--wash); }
.section-head { display: flex; flex-wrap: wrap; gap: 15px 40px; align-items: end; justify-content: space-between; margin-bottom: clamp(26px, 4vw, 50px); }
.section-head h2, .about h2, .contact h2 { font-size: clamp(48px, 6.5vw, 94px); line-height: 1; font-weight: 800; letter-spacing: -.08em; }
.section-head p { color: var(--text); max-width: 32ch; font-size: 16px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 32px); }
.work-examples { margin-top: clamp(44px, 7vw, 92px); }
.work-examples > h3 {
  margin-bottom: clamp(18px, 3vw, 32px);
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -.065em;
  line-height: 1.1;
}
.project { --project-accent: #146144; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.project--doko { display: grid; grid-template-columns: 1.45fr 1fr; grid-column: 1 / -1; }
.project--skat { --project-accent: #8b432b; }
.project--schaf { --project-accent: #2d4682; }
.project--forno { --project-accent: #a32d24; display: grid; grid-template-columns: 1.15fr 1fr; }
.project__visual--forno { min-height: clamp(250px, 30vw, 405px); background: #eee4d8; }
.project__visual--forno img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 51% 50%; }
.project__visual { position: relative; isolation: isolate; min-height: 300px; overflow: hidden; }
.project__visual--doko { min-height: clamp(345px, 35vw, 490px); background: #d9ebdf; }
.project__visual--skat { background: #f1e7dc; }
.project__visual--schaf { background: #e0e8f3; }
.visual-suit { position: absolute; font: 235px/1 Georgia, serif; color: #1d33240c; left: 6%; top: 50%; translate: 0 -50%; }
.doko-screen { position: absolute; width: clamp(140px, 31%, 217px); height: auto; border-radius: 15% / 8%; box-shadow: 14px 24px 36px #233b3038; transition: transform .5s var(--ease); }
.doko-screen--back { left: 54%; top: 16%; transform: rotate(12deg); }
.doko-screen--front { left: 29%; top: 13%; transform: rotate(-10deg); }
.project:focus-within .doko-screen--front, .project:hover .doko-screen--front { transform: rotate(-7deg) translateY(-6px); }
.project:focus-within .doko-screen--back, .project:hover .doko-screen--back { transform: rotate(9deg) translateY(-3px); }
.phone-frame { position: absolute; width: clamp(144px, 33%, 190px); left: 50%; top: 12%; transform: translateX(-50%) rotate(-10deg); border: 5px solid #141c27; border-radius: 16% / 7%; overflow: hidden; box-shadow: 14px 22px 35px #16253736; transition: transform .5s var(--ease); }
.phone-frame img { width: 100%; height: auto; }
.project:hover .phone-frame, .project:focus-within .phone-frame { transform: translateX(-50%) rotate(-6deg) translateY(-6px); }
.project__info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: clamp(23px, 4vw, 56px); }
.project__info .kicker { color: var(--project-accent); }
.project__info h3, .work-examples .project__info h4 { margin: 0; font-size: clamp(31px, 4.1vw, 63px); line-height: 1.03; font-weight: 800; letter-spacing: -.075em; overflow-wrap: anywhere; }
.project__info > p:not(.kicker) { max-width: 40ch; color: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--project-accent, var(--green)); font-size: 14px; font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.about { background: white; }
.about__layout, .contact__layout { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(22px, 6vw, 95px); }
.about .kicker { margin-bottom: 22px; color: var(--green); }
.about h2 { font-size: clamp(44px, 6vw, 88px); }
.about__copy, .contact p { max-width: 45ch; color: var(--text); }
.about__copy p + p { margin-top: 15px; }
.about__copy p:first-child { color: var(--ink); font-size: 20px; font-weight: 750; }
.contact { background: var(--wash); }
.contact__address { margin-top: 18px; }
.contact__address a { color: var(--green); }
.contact__apps { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; }
.contact__apps a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--green); }
.contact__apps a:hover { text-decoration: underline; }
.footer { background: var(--paper); color: var(--text); border-top: 1px solid var(--line); padding-block: 46px 28px; }
.footer__main, .footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.footer__links a { padding-block: 8px; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 21px; font-size: 12px; }
.reveal.is-visible { animation: arrive .65s var(--ease) both; }
@keyframes arrive { from { transform: translateY(16px); } to { transform: translateY(0); } }

/* Shared product structure with app-specific palettes and artwork. */
.product-body { --product: #196446; --product-dark: #102820; --product-light: #edf5ef; --product-art: #d9ebdf; background: #fff; }
.product-body--skat { --product: #85432a; --product-dark: #3a251d; --product-light: #faf3ec; --product-art: #f1e7dc; }
.product-body--schaf { --product: #2d4682; --product-dark: #182847; --product-light: #f1f4fa; --product-art: #e0e8f3; }
.product-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--product-dark); letter-spacing: -.055em; font-size: clamp(17px, 3vw, 24px); font-weight: 800; }
.product-brand__icon { flex: none; border-radius: 8px; }
.product-brand__symbol { display: grid; place-items: center; background: var(--product-light); color: var(--product); border-radius: 8px; width: 34px; height: 34px; font: 23px/1 Georgia, serif; }
.product-nav__back { font-size: 13px; font-weight: 750; text-align: right; }
.product-nav__back:hover { color: var(--product); }
.product-hero { background: var(--product-light); color: var(--ink); }
.product-hero .shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(26px, 6vw, 100px); min-height: 540px; align-items: center; padding-block: 50px; }
.product-hero h1 { font-size: clamp(38px, 5.2vw, 80px); line-height: 1.04; font-weight: 800; letter-spacing: -.074em; margin: 0 0 20px; }
.product-hero h1 span { display: block; margin-top: 10px; color: var(--product); font-size: .51em; line-height: 1.16; letter-spacing: -.04em; }
.product-hero p:not(.kicker) { max-width: 42ch; color: var(--text); font-size: clamp(16px, 1.5vw, 19px); }
.product-hero .button { background: var(--product-dark); color: white; margin-top: 26px; }
.product-hero .button:hover { background: var(--product); }
.product-hero__secondary { margin: 12px 0 0 16px; color: var(--product); }
.product-hero .project__visual { min-height: clamp(310px, 39vw, 495px); border-radius: 12px; }
.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(20px, 4vw, 54px);
  margin-block: 0;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.product-facts dt { color: var(--product); font-size: 13px; font-weight: 800; }
.product-facts dd { margin: 5px 0 0; color: var(--text); font-size: 14px; }
.product-features h2, .product-gallery h2, .product-faq h2, .product-bottom h2 { font-size: clamp(36px, 5vw, 65px); font-weight: 800; letter-spacing: -.07em; line-height: 1.06; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(22px, 6vw, 90px); margin-top: 32px; }
.feature-card { padding-block: 20px; border-top: 1px solid var(--line); }
.feature-card h3 { margin-bottom: 7px; font-size: 22px; letter-spacing: -.045em; }
.feature-card p { color: var(--text); }
.product-gallery { background: var(--product-light); }
.product-gallery__lead { max-width: 66ch; margin-top: 18px; color: var(--text); }
.product-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 42px);
  margin-top: clamp(24px, 4.5vw, 60px);
}
.product-shot__image {
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  border-radius: 12px;
  background: var(--product-art);
}
.product-shot img {
  width: auto;
  height: clamp(235px, 34vw, 430px);
  max-width: 100%;
  object-fit: contain;
  border-radius: 12% / 5%;
  box-shadow: 0 14px 28px #152b252e;
}
.product-shot figcaption { display: grid; gap: 4px; padding-top: 12px; }
.product-shot figcaption strong { font-size: 18px; letter-spacing: -.02em; }
.product-shot figcaption span { color: var(--text); font-size: 14px; }
.product-faq__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(22px, 6vw, 90px); }
.product-faq details { border-top: 1px solid var(--line); }
.product-faq details:last-child { border-bottom: 1px solid var(--line); }
.product-faq summary { padding-block: 15px; cursor: pointer; font-weight: 800; }
.product-faq summary::marker { color: var(--product); }
.product-faq details p { padding: 0 0 17px 20px; color: var(--text); max-width: 60ch; }
.product-bottom { background: var(--product-light); }
.product-bottom .shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 60px); }
.product-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 16px; }
.product-bottom__links .button { background: var(--product-dark); color: white; }
.product-bottom__links .button:hover { background: var(--product); }
.product-download__note { margin-top: 14px; color: var(--text); font-size: 14px; }
.product-footer { background: var(--paper); color: var(--text); border-top: 1px solid var(--line); padding-block: 28px; font-size: 13px; }
.product-footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 26px; }
.product-footer a:hover { text-decoration: underline; }

/* Legal drafts. */
.legal-page .nav__contact { font-size: 14px; font-weight: 700; }
.legal-main { max-width: 800px; padding-block: clamp(56px, 10vw, 120px); }
.legal-main h1 { font-size: clamp(46px, 8vw, 80px); line-height: 1.05; letter-spacing: -.075em; margin-bottom: 28px; }
.legal-main h2 { font-size: 25px; letter-spacing: -.045em; margin: 30px 0 8px; }
.legal-main p { margin-bottom: 12px; color: var(--text); }
.legal-warning { background: #fff0cb; color: #554018; border-left: 3px solid #977019; padding: 15px 19px; border-radius: 4px; }
.legal-placeholder { background: #fff0cb; color: #554018; padding-inline: 3px; }

@media (max-width: 850px) {
  .hero__inner { min-height: 475px; }
  .hero h1 { font-size: clamp(41px, 6vw, 56px); }
  .project__visual { min-height: 265px; }
  .product-hero .shell { min-height: 0; }
}

@media (max-width: 670px) {
  :root { --nav-height: 62px; }
  .nav { flex-wrap: wrap; gap: 0 14px; }
  .brand { font-size: 21px; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--wash); }
  .menu-toggle__icon { display: grid; gap: 4px; }
  .menu-toggle__icon > span { width: 21px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s, opacity .18s; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon > span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon > span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .nav__links { flex-basis: 100%; justify-content: space-between; gap: 8px; padding-bottom: 10px; }
  .nav__links.is-enhanced {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: -1px;
    max-height: calc(100dvh - var(--header-top) - var(--nav-height) - 10px - env(safe-area-inset-bottom, 0px));
    overflow: auto;
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 8px 20px #23462b13;
    padding: 8px 12px 12px;
  }
  .nav__links.is-open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nav__links.is-open a { min-height: 52px; padding: 8px 0; border: 0; border-radius: 0; }
  .nav__links.is-open a + a { border-top: 1px solid var(--line); }
  .nav__links .nav__contact { padding: 0 8px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 18px; }
  .hero__copy { padding: clamp(40px, 9vw, 58px) 0 8px; }
  .hero h1 { font-size: clamp(35px, 10vw, 67px); margin: 18px 0; }
  .hero__actions { margin-top: 21px; }
  .hero__stage { --mark-width: 68%; width: min(100%, 440px); justify-self: center; aspect-ratio: 1.38; }
  .hero__stage::before { top: 85%; }
  .hero-rotate-hint { bottom: 0; }
  .intro__layout, .about__layout, .contact__layout, .product-bottom .shell { grid-template-columns: 1fr; gap: 18px; }
  .intro h2 { margin-top: 0; }
  .work-grid, .project--doko, .project--forno { grid-template-columns: minmax(0, 1fr); }
  .project__visual--doko { min-height: clamp(290px, 71vw, 390px); }
  .project__info { gap: 9px; }
  .project__info .text-link { margin-top: 2px; }
  .product-hero .shell { grid-template-columns: minmax(0, 1fr); padding-block: 45px 24px; }
  .product-hero h1 { font-size: clamp(32px, 9.8vw, 56px); }
  .product-hero h1 span { font-size: max(20px, .51em); }
  .product-facts { grid-template-columns: 1fr; }
  .product-facts > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .product-facts dd { margin: 0; }
  .features-grid, .product-faq__layout { grid-template-columns: 1fr; }
  .product-gallery__grid { grid-template-columns: 1fr; gap: 24px; }
  .product-shot img { height: clamp(280px, 90vw, 395px); }
  .product-hero__secondary { display: flex; width: fit-content; margin-left: 0; }
}

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