@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Playfair+Display:wght@500&display=swap');

:root {
  --ink: #171714;
  --paper: #f2efe8;
  --line: rgba(23, 23, 20, 0.18);
  --white: #fff;
  --container: 1080px;
  --gutter: 16px;
  --page: min(var(--container), calc(100% - (2 * var(--gutter))));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: var(--page);
  min-height: 64px;
  padding: 12px 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  white-space: nowrap;
}
.brand-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font: 500 16px/1 "Playfair Display", serif;
}
.main-nav, .header-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.language-switch {
  display: flex;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
}
.lang-btn {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
}
.lang-btn.active { background: #fff; color: var(--ink); }

.hero {
  position: relative;
  width: var(--page);
  min-height: 620px;
  margin: 0 auto;
  color: #fff;
  overflow: hidden;
}
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image {
  background: url('./images/hero.jpg') center/cover no-repeat;
}
.hero-overlay { background: linear-gradient(90deg, rgba(12,12,11,.78), rgba(12,12,11,.2)); }
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 108px 20px 118px;
}
.hero-kicker, .eyebrow {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1, h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
.hero h1 {
  max-width: 10ch;
  margin-top: 16px;
  font-size: clamp(38px, 11vw, 58px);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-text {
  max-width: 34rem;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.65;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.button {
  min-height: 46px;
  max-width: 100%;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
}
.button-light { background: #fff; color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.hero-link, .line-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
}
.hero-meta {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 76px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 13px;
  display: grid;
  justify-items: center;
  color: rgba(255,255,255,.84);
  transform: translateX(-50%);
  transition: opacity .28s ease, transform .28s ease;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue.is-hidden { opacity: 0; transform: translate(-50%,10px); pointer-events: none; }
.scroll-mouse {
  position: relative;
  width: 25px;
  height: 39px;
  border: 1.5px solid currentColor;
  border-radius: 15px;
}
.scroll-wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  transform: translateX(-50%);
  animation: scroll-wheel 1.65s cubic-bezier(.45,0,.25,1) infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 0; transform: translate(-50%,0); }
  18% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,13px); }
}

.section-pad {
  width: var(--page);
  margin: 0 auto;
  padding: 60px 0;
}
.section-index { display: none; }
.intro, .personal, .section-heading, .services, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}
.intro h2, .personal h2, .section-heading h2, .services h2, .statement h2, .contact h2 {
  margin-top: 13px;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.06;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.intro-text, .personal-copy, .section-heading > *, .services-title, .service-list, .contact-head, .contact-data, .contact-form { min-width: 0; }
.intro-text p, .personal-copy > p:not(.eyebrow), .section-heading > p, .contact-data > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}
.intro-text .line-link { margin-top: 22px; }

.personal { border-top: 1px solid var(--line); }
.personal-photo {
  width: 100%;
  aspect-ratio: 4/4.5;
  background: url('./images/portrait.jpg') center 25%/cover no-repeat;
}
.personal-signature {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.personal-signature strong { font-size: 14px; }
.personal-signature span { font-size: 12px; opacity: .65; }

.projects { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 32px; }
.project-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; }
.project-card { min-width: 0; }
.project-photo { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.photo-bath { background-image: url('./images/project-bathroom.jpg'); }
.photo-living { background-image: url('./images/project-terrace.jpg'); }
.photo-terrace { background-image: url('./images/project-living.jpg'); }
.project-info {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 9px;
  padding-top: 14px;
}
.project-info > span { font-size: 10px; opacity: .55; }
.project-info h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.project-info p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; opacity: .65; }

.services { border-top: 1px solid var(--line); }
.service-list article {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  gap: 12px 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.service-list article > span { grid-row: 1 / span 2; font-size: 10px; opacity: .55; }
.service-list h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.service-list p { margin: 0; font-size: 13px; line-height: 1.6; opacity: .7; }

.statement {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  background: #1b1b18;
  color: #fff;
  overflow: hidden;
}
.statement-photo {
  min-height: 280px;
  background: url('./images/craft.jpg') center/cover no-repeat;
}
.statement-copy { min-width: 0; padding: 56px 20px; }
.statement h2 { margin-bottom: 30px; }
.process-steps > div {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.process-steps span { font-size: 10px; opacity: .55; }
.process-steps p { margin: 0; font-size: 14px; line-height: 1.5; }

.contact { border-top: 1px solid var(--line); }
.contact-layout { margin-top: 34px; }
.contact-data { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-data a { max-width: 100%; font-size: 15px; overflow-wrap: anywhere; }
.contact-data span { font-size: 13px; line-height: 1.5; opacity: .7; overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.contact-form label { display: grid; gap: 8px; min-width: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { width: 100%; }

footer {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
footer > div { display: flex; flex-wrap: wrap; gap: 12px 20px; }
footer p { margin: 0; opacity: .6; }

.game-section { border-top: 1px solid var(--line); }
.game-intro { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.game-intro h2 { margin-top: 13px; font: 500 clamp(38px, 8vw, 54px)/1.06 "Playfair Display", Georgia, serif; letter-spacing: -.035em; }
.game-intro > p:last-child { margin: 18px auto 0; max-width: 500px; font-size: 14px; line-height: 1.7; }
.game-shell { width: min(100%, 430px); margin: 0 auto; }
.game-status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.game-status span { padding: 10px 8px; background: #f8f6f1; text-align: center; }
.game-status small { display: block; font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.game-status strong { display: block; margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
.game-stage { position: relative; width: 100%; margin-top: 12px; overflow: hidden; border: 1px solid #332e27; border-radius: 14px; box-shadow: 0 12px 26px rgba(30, 25, 18, .16); background: #d9d1c1; }
#parkett-game { display: block; width: 100%; height: auto; touch-action: none; cursor: pointer; image-rendering: auto; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: linear-gradient(rgba(24,22,19,.1), rgba(24,22,19,.42)); color: #fff; }
.game-overlay[hidden] { display: none; }
.game-overlay-card { width: min(100%, 310px); padding: 22px 18px; border: 1px solid rgba(255,255,255,.36); border-radius: 10px; background: rgba(27,25,21,.82); box-shadow: 0 8px 24px rgba(0,0,0,.2); transform: translateY(-82px); }
.game-overlay h3 { margin: 0; font: 500 32px/1.05 "Playfair Display", Georgia, serif; }
.game-overlay p { margin: 12px 0 0; font-size: 13px; line-height: 1.55; }
.game-overlay .button { margin-top: 18px; }
.game-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.game-controls[hidden] { display: none; }
.game-icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 18px; }
.game-icon-button:disabled { cursor: default; opacity: .38; }
.game-hint { margin: 14px 0 0; text-align: center; font-size: 11px; opacity: .7; }
.game-back-link { display: inline-block; margin-top: 15px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 600; }
.game-icon-button:focus-visible, #parkett-game:focus-visible { outline: 3px solid #8b6847; outline-offset: 3px; }

.legal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(155,109,66,.12), transparent 24rem),
    var(--paper);
}
.legal-nav {
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-back { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 600; }
.legal-page { width: var(--page); margin: 0 auto; padding: 24px 0 72px; }
.legal-hero {
  position: relative;
  min-height: 310px;
  padding: 58px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(125deg, #211e1a 0%, #403326 62%, #705039 100%);
  color: #fff;
}
.legal-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -110px;
  width: 310px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018);
}
.legal-hero > * { position: relative; z-index: 1; }
.legal-hero h1 { max-width: 900px; margin: 12px 0 0; font: 500 clamp(48px,10vw,78px)/.98 "Playfair Display", Georgia, serif; letter-spacing: -.045em; overflow-wrap: break-word; }
.legal-hero > p:last-child { max-width: 580px; margin: 22px 0 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.7; }
.legal-layout { display: grid; gap: 28px; padding-top: 46px; }
.legal-aside { padding-top: 5px; }
.legal-aside .legal-number { display: block; font: 500 42px/1 "Playfair Display", Georgia, serif; color: #9c704d; }
.legal-aside p { max-width: 230px; margin: 13px 0 0; font-size: 11px; line-height: 1.65; letter-spacing: .05em; text-transform: uppercase; opacity: .62; }
.legal-content { min-width: 0; display: grid; gap: 16px; }
.legal-notice {
  padding: 18px 20px;
  display: grid;
  gap: 5px;
  border-left: 4px solid #b47b48;
  background: #e9dfcf;
  font-size: 12px;
  line-height: 1.55;
}
.legal-notice strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.legal-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.44);
}
.legal-label { margin: 0 0 11px; color: #8a5c37; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.legal-card h2 { margin: 0 0 17px; font: 500 clamp(24px,5vw,32px)/1.12 "Playfair Display", Georgia, serif; letter-spacing: -.025em; }
.legal-card p, .legal-card address { margin: 0; max-width: 72ch; font-style: normal; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-card p + p { margin-top: 14px; }
.legal-card-grid { display: grid; gap: 12px; }
.legal-facts { margin: 0; }
.legal-facts > div { padding: 13px 0; display: grid; gap: 5px; border-top: 1px solid var(--line); }
.legal-facts dt { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .58; }
.legal-facts dd { margin: 0; font-size: 13px; line-height: 1.55; }
.legal-page mark { padding: 1px 4px; background: #eadbbf; color: #654424; }
.legal-credit { margin-top: 8px; padding: 24px 2px 0; border-top: 1px solid var(--line); }
.legal-credit p, .legal-updated { margin: 0; font-size: 11px; line-height: 1.65; opacity: .68; }
.legal-updated { margin-top: 10px; }
.legal-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-footer a[aria-current="page"] { padding-bottom: 3px; border-bottom: 1px solid currentColor; }

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .site-header { min-height: 72px; padding-inline: 22px; }
  .brand { font-size: 11px; letter-spacing: .1em; }
  .brand-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .header-cta { display: inline-flex; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
  .hero { min-height: 660px; }
  .hero-content { padding: 136px 32px 126px; }
  .hero h1 { font-size: clamp(54px, 8.5vw, 76px); }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-meta { left: 32px; right: 32px; }
  .section-pad { padding-block: 78px; }
  .intro h2, .personal h2, .section-heading h2, .services h2, .statement h2, .contact h2 { font-size: clamp(40px, 6vw, 54px); }
  .personal { grid-template-columns: minmax(220px,.82fr) minmax(0,1fr); align-items: center; gap: 46px; }
  .personal-photo { aspect-ratio: 4/5; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-large { grid-column: 1 / -1; }
  .project-large .project-photo { aspect-ratio: 16/8.5; }
  .contact-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-form .full, .contact-form .button { grid-column: 1 / -1; }
  .contact-form .button { width: auto; justify-self: start; }
  footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .legal-hero { min-height: 350px; padding: 66px 44px; }
  .legal-card { padding: 34px 32px; }
  .legal-card-grid { grid-template-columns: minmax(0,.8fr) minmax(220px,1fr); align-items: start; gap: 32px; }
  .legal-facts > div { grid-template-columns: minmax(150px,.42fr) 1fr; gap: 24px; }
  .legal-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .site-header {
    min-height: 76px;
    padding-inline: 28px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  }
  .main-nav { display: flex; align-items: center; gap: 26px; font-size: 12px; }
  .header-actions { justify-self: end; }
  .hero { min-height: 700px; }
  .hero-content { padding: 158px 54px 132px; }
  .hero-meta { left: 54px; right: 54px; }
  .section-pad { padding-block: 96px; }
  .intro { grid-template-columns: 70px minmax(0,1.2fr) minmax(260px,.8fr); align-items: start; gap: 34px; }
  .section-index { display: block; font-size: 11px; opacity: .5; padding-top: 7px; }
  .intro h2, .personal h2, .section-heading h2, .services h2, .statement h2, .contact h2 { font-size: clamp(46px, 4.5vw, 60px); }
  .section-heading { grid-template-columns: minmax(0,1fr) minmax(240px,.45fr); align-items: end; }
  .project-grid { grid-template-columns: 1.12fr .88fr; gap: 48px 30px; }
  .project-large { grid-column: auto; grid-row: span 2; }
  .project-large .project-photo { aspect-ratio: 4/5; }
  .project-shifted { margin-top: 52px; }
  .services { grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 64px; align-items: start; }
  .statement { grid-template-columns: 1fr 1fr; min-height: 590px; }
  .statement-copy { padding: 72px 54px; display: flex; flex-direction: column; justify-content: center; }
  .contact-layout { grid-template-columns: .72fr 1.28fr; gap: 64px; }
  .legal-page { padding-top: 32px; }
  .legal-layout { grid-template-columns: 210px minmax(0,1fr); gap: 60px; padding-top: 64px; }
  .legal-aside { position: sticky; top: 24px; align-self: start; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 12px; }
  .brand { font-size: 9px; gap: 6px; }
  .brand-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .lang-btn { min-width: 31px; padding-inline: 4px; }
  .hero-content { padding-inline: 16px; }
  .hero-meta { left: 16px; right: 16px; }
  .hero h1 { font-size: clamp(35px, 10.5vw, 42px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-wheel { animation: none; }
  .scroll-cue { transition: none; }
}
