:root {
  --bg: #f0eee8;
  --panel: #ffffff;
  --ink: #121212;
  --ink-soft: #5f5f5f;
  --line: #dfdcd4;
  --dark: #0f0f0f;
  --dark-soft: #1a1a1a;
  --accent: #D3FE50;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --radius-xl: 30px;
  --radius-lg: 18px;
  --shadow: 0 22px 50px rgba(10, 10, 10, 0.14);
  --topbar-offset: 0.8rem;
  --topbar-space: 5.6rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #f9f7f1, var(--bg));
  line-height: 1.55;
}

body[data-page="home"] {
  background: #0f0f0f;
  --home-side-gutter: 1rem;
  --home-hero-top: 5.2rem;
  --home-hero-height: clamp(480px, 52vw, 740px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.6rem, 4.8vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

ul,
ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

li + li {
  margin-top: 0.45rem;
}

.mono {
  font-family: var(--mono);
}

.micro-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #8f9288;
}

.site-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--dark);
  color: #f5f5f5;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  position: fixed;
  top: var(--topbar-offset);
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 2rem));
  z-index: 35;
  transition: background-color 0.24s ease, border-color 0.24s ease, backdrop-filter 0.24s ease, box-shadow 0.24s ease;
}

.topbar-light {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
}

.topbar.is-scrolled {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.16);
}

.topbar-light.is-scrolled {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(208, 204, 194, 0.88);
}

.brand {
  letter-spacing: 0.09em;
  font-size: 0.86rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.menu a {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
}

.topbar-light .menu a {
  color: #4e4e4e;
}

.menu a:hover,
.menu a.active {
  background: #ffffff;
  color: #161616;
}

.topbar-light .menu a:hover,
.topbar-light .menu a.active {
  background: #f4f2ec;
}

.menu-toggle {
  display: none;
  border: 1px solid #2f2f2f;
  background: #171717;
  color: #ececec;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
}

.topbar-light .menu-toggle {
  border-color: var(--line);
  background: var(--panel);
  color: #353535;
}

.hero {
  margin-top: 0.8rem;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #111111 0%, #202020 55%, #171717 100%);
  border: 0px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 52vw, 740px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: 0;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.6) 40%, rgba(8, 8, 8, 0.18) 78%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  top: -55px;
  z-index: 2;
  max-width: min(850px, 65%);
  padding: clamp(0.8rem, 2vw, 1.5rem);
}

.hero-copy .micro-label,
.hero-copy p {
  color: rgba(245, 245, 245, 0.78);
}

.hero-sub {
  margin-top: 0.95rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #ffffff;
}

.hero-copy p + p {
  margin-top: 0.78rem;
}

.hero-cta {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: var(--accent);
  color: #191919;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f2f2f2;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: #121212;
  color: #f5f5f5;
}

.btn-dark:hover {
  background: #1e1e1e;
}

.proof {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proof span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
}

body[data-page="home"] .topbar {
  left: var(--home-side-gutter);
  right: var(--home-side-gutter);
  transform: none;
  width: auto;
  background: rgba(12, 12, 12, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-page="home"] .topbar.is-scrolled {
  background: rgba(12, 12, 12, 0.68);
}

body[data-page="home"] main {
  position: relative;
  z-index: 8;
  padding-top: calc(var(--home-hero-top) + var(--home-hero-height));
}

body:not([data-page="home"]) .inner-shell {
  padding-top: var(--topbar-space);
}

body[data-page="home"] .hero {
  margin-top: 0;
  position: fixed;
  left: var(--home-side-gutter);
  right: var(--home-side-gutter);
  top: var(--home-hero-top);
  min-height: var(--home-hero-height);
  z-index: 1;
}

.home-sheet {
  position: relative;
  z-index: 8;
  margin-top: -110px;
  background: var(--panel);
  color: var(--ink);
  border-top: 1px solid #e8e4db;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 1.2rem 1.2rem 1.35rem;
}

.parallax-sheet {
  --parallax-y: 0px;
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

body[data-page="home"] .simple-footer {
  position: relative;
  z-index: 10;
  margin-top: 0;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f0f0f;
  padding: 1.1rem 1.2rem 1.35rem;
}

.studio-board,
.katalog-preview {
  margin-top: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
  padding: 0;
  border: 0;
}

.katalog-preview {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.board-head h2 {
  margin-top: 0.45rem;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.9rem;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}

.service-detail,
.service-cta-card,
.thumb-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.service-item {
  width: auto;
  flex: 0 1 auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.63rem 0.68rem;
  background: #fcfcfb;
  text-align: center;
  color: #3c3c3c;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.service-item.active,
.service-item:hover {
  background: #131313;
  color: #f5f5f5;
  border-color: #131313;
}

.service-detail {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  row-gap: 0.55rem;
  column-gap: 0.45rem;
}

.service-detail-content {
  flex: 1 0 100%;
  margin-top: 0;
  border: 0px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0rem;
}

.detail-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.service-detail h2 {
  margin-top: 0.52rem;
}

.service-detail p {
  margin-top: 0.6rem;
}

.service-detail ul {
  margin-top: 0.8rem;
}

.service-cta-card {
  overflow: hidden;
}

.service-cta-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-cta-card > div {
  padding: 0.9rem;
}

.service-cta-card h3 {
  margin-top: 0.42rem;
  margin-bottom: 0.75rem;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.thumb-card {
  overflow: hidden;
}

.thumb-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.thumb-card p {
  padding: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.simple-footer {
  margin-top: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.light-footer {
  background: #ffffff;
  border: 1px solid var(--line);
}

.simple-footer p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.light-footer p {
  color: #666;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.88rem;
}

.inner-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.4rem auto;
}

.inner-main {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.inner-hero,
.founder-note,
.inner-grid {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.inner-hero p {
  max-width: 760px;
}

.inner-hero h1 {
  margin-top: 0.55rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #121212;
}

.inner-hero p:last-child {
  margin-top: 0.8rem;
}

.inner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  background: transparent;
  border: 0;
  padding: 0;
}

.panel {
  padding: 1rem;
}

.panel > .mono {
  color: #888;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.contact-section {
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  padding: 1.2rem;
}

.contact-head h1 {
  margin-top: 0.48rem;
}

.contact-head p {
  margin-top: 0.55rem;
}

.contact-form-simple {
  margin-top: 1rem;
}

.contact-field + .contact-field {
  margin-top: 0.85rem;
}

.contact-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #2f2f2f;
  margin-bottom: 0.32rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.64rem 0.74rem;
  border-radius: 8px;
  border: 1px solid #d8d4ca;
  font: inherit;
  color: #1f1f1f;
  background: #ffffff;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #131313;
}

.contact-actions {
  margin-top: 0.95rem;
}

.contact-actions .btn {
  border: 0;
  cursor: pointer;
}

.form-status {
  margin-top: 0.7rem;
  min-height: 1.2em;
  font-size: 0.82rem;
}

.form-status.is-info {
  color: #555;
}

.form-status.is-success {
  color: #1f7a2f;
}

.form-status.is-error {
  color: #c0392b;
}

.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;
}

.contact-note-simple {
  font-size: 0.82rem;
  margin-top: 0.85rem;
}

.founder-note {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.founder-note > * {
  min-width: 0;
}

.founder-note-media {
  margin: 0;
}

.founder-note-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 14px;
  object-fit: cover;
}

.founder-note-content {
  min-width: 0;
}

/* Safari fallback to stabilize image sizing inside CSS Grid */
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
  .founder-note-media img {
    display: block;
    height: auto;
    min-height: 260px;
    aspect-ratio: 5 / 6;
    object-fit: cover;
  }
}

.founder-note h2 {
  margin-top: 0.55rem;
  margin-bottom: 0.7rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-cta-card img {
    height: 240px;
  }

  .thumb-grid,
  .katalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-grid,
  .founder-note {
    grid-template-columns: 1fr;
  }

  .founder-note-media img {
    aspect-ratio: 16 / 10;
    min-height: 220px;
    height: auto;
  }

  .hero-overlay {
    min-height: 460px;
  }

  body[data-page="home"] {
    --home-hero-top: 4.9rem;
    --home-hero-height: 460px;
  }

  .home-sheet {
    margin-top: -80px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-offset: 0.5rem;
    --topbar-space: 5.2rem;
  }

  body[data-page="home"] {
    --home-side-gutter: 0.5rem;
    --home-hero-top: 4.4rem;
    --home-hero-height: 500px;
  }

  .topbar {
    width: calc(100% - 1rem);
  }

  .inner-shell {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0.9rem;
    left: 0.9rem;
    background: #101010;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 0.45rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 20;
  }

  .topbar-light .menu {
    background: #fff;
    border-color: var(--line);
  }

  .menu.is-open {
    display: flex;
  }

  .hero-overlay {
    min-height: 500px;
    align-items: center;
  }

  .hero-overlay::after {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.58) 0%, rgba(10, 10, 10, 0.75) 78%);
  }

  .hero-copy {
    max-width: 100%;
  }

  .service-detail {
    padding: 0.8rem;
    row-gap: 0.55rem;
    column-gap: 0.45rem;
  }

  .service-detail-content {
    padding: 0.82rem;
  }

  .service-cta-card img {
    height: 210px;
  }

  .home-sheet {
    margin-top: -42px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 1rem 0.8rem 1rem;
  }

  .thumb-grid,
  .katalog-grid {
    grid-template-columns: 1fr;
  }

  .simple-footer,
  .board-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .founder-note .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .founder-note .hero-cta .btn {
    width: 100%;
  }
}
