/* =========================================================
   FONTS / VARIABLES
========================================================= */

@font-face {
  font-family: 'Tenor Sans';
  src: url('media/tenor-sans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #fff;
  --white: #fff;
  --ink: #202020;
  --muted: #555;
  --line: #d5d5d5;
  --serif: 'Baskerville', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Minerva Modern', 'MinervaModern Regular', 'Tenor Sans', Arial, sans-serif;
  --gutter: clamp(22px, 5.2vw, 88px);
}

/* =========================================================
   RESET / TYPOGRAPHY
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  color: inherit;
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(38px, 5.4vw, 80px);
}
h2 {
  font-size: clamp(33px, 3.8vw, 58px);
}
h3 {
  font-size: clamp(19px, 2.15vw, 30px);
}
em {
  font-weight: 400;
  font-style: normal;
}
p + p {
  margin-top: 1.2em;
}
:focus-visible {
  outline: 2px solid #606060;
  outline-offset: 5px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--white);
  padding: 8px 14px;
  z-index: 9;
}
.skip:focus {
  top: 16px;
}
.micro {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.wrap {
  max-width: none;
  padding-inline: 0;
  width: min(100% - var(--gutter) * 2, 1330px);
  margin-inline: auto;
}
.section {
  padding-block: clamp(80px, 11vw, 174px);
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.top {
  position: relative;
  z-index: 2;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  background: var(--paper);
}
.top::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  justify-items: center;
  align-items: center;
  column-gap: 10px;
  line-height: 1;
  color: inherit;
  width: max-content;
}
.brand-symbol {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 28px;
  grid-row: 1 / span 2;
}
.brand-symbol i {
  width: 3px;
  height: 34%;
  border-radius: 3px;
  background: currentColor;
}
.brand-symbol i:nth-child(1) {
  height: 35%;
}
.brand-symbol i:nth-child(2) {
  height: 49%;
}
.brand-symbol i:nth-child(3) {
  height: 61%;
}
.brand-symbol i:nth-child(4) {
  height: 74%;
}
.brand-symbol i:nth-child(5) {
  height: 87%;
}
.brand-symbol i:nth-child(6) {
  height: 100%;
}
.brand-symbol i:nth-child(7) {
  height: 75%;
}
.brand-symbol i:nth-child(8) {
  height: 51%;
}
.brand-symbol i:nth-child(9) {
  height: 26%;
}
.wordmark {
  font-family: var(--serif);
  font-size: 47px;
  letter-spacing: -0.082em;
  padding-right: 0.07em;
}
.wordmark span {
  font-size: 0.62em;
  font-style: italic;
  margin-inline: 0.1em;
}
.brand-name {
  font-size: 8px;
  letter-spacing: 0.24em;
  margin-top: 5px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.head-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}
.head-contact span {
  font-size: 15px;
}
.menu-toggle {
  border: 0;
  background: none;
  padding: 10px 0 10px 13px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-toggle i {
  display: block;
  width: 27px;
  height: 11px;
  border-block: 1px solid;
  transition: transform 0.25s;
}
.menu-toggle[aria-expanded='true'] i {
  transform: rotate(-25deg);
}
.menu {
  position: absolute;
  right: var(--gutter);
  top: calc(100% - 1px);
  padding: 23px 30px;
  min-width: min(335px, calc(100vw - 44px));
  background: var(--paper);
  color: var(--ink);
  display: grid;
  box-shadow: 0 18px 45px #00000021;
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.32s ease,
    translate 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  transition:
    opacity 0.32s ease,
    translate 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    display 0.38s allow-discrete;
}
.menu[hidden] {
  opacity: 0;
  translate: 0 -12px;
  pointer-events: none;
}
@starting-style {
  .menu:not([hidden]) {
    opacity: 0;
    translate: 0 -12px;
  }
}
.menu a {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.menu a:last-child {
  border: 0;
}
.menu a:hover {
  text-decoration: underline;
}

/* =========================================================
   HERO
========================================================= */

.intro {
  text-align: center;
  padding: clamp(32px, 4vw, 74px) var(--gutter) clamp(34px, 4vw, 64px);
}
.overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  margin-bottom: 21px;
}
.overline span {
  width: 21px;
  border-top: 1px solid #777;
}
.hero-word {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
}
.hero-word > * {
  display: inline-block;
  padding-block: 0.08em;
}
.intro-copy {
  font-size: clamp(15px, 1.32vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  margin-top: 20px;
}
.line-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  padding: 0 0 8px;
  margin-top: 23px;
  text-align: left;
}
.line-link span {
  font-size: 17px;
  transition: transform 0.2s;
}
.line-link:hover span {
  transform: translate(3px, 2px);
}
.hero-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero-frame img {
  height: clamp(410px, 52vw, 790px);
  object-position: 50% 54%;
}
.hero-images {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide:not(:first-child) {
  position: absolute;
  inset: 0;
}
.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}
.hero-slide.is-leaving {
  z-index: 0;
  opacity: 1;
}
.hero-frame .hero-slide--showroom {
  object-position: center 47%;
}
.hero-frame .hero-slide--bedroom,
.hero-frame .hero-slide--bathroom,
.hero-frame .hero-slide--atelier {
  object-position: center;
}

.hero-frame figcaption {
  position: absolute;
  inset: auto var(--gutter) 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: white;
  z-index: 1;
}
.hero-controls,
.hero-pagination {
  display: flex;
  align-items: center;
}
.hero-controls {
  grid-column: 2;
  gap: 8px;
}
.hero-pagination button,
.hero-pause {
  display: grid;
  place-items: center;
  border: 0;
  width: 32px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
}
.hero-pagination button::before {
  content: '';
  width: 14px;
  height: 2px;
  background: currentColor;
  opacity: 0.62;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}
.hero-pagination button[aria-current='true']::before {
  width: 24px;
  opacity: 1;
}
.hero-controls button:focus-visible {
  outline-color: white;
}
.hero-pause {
  font-size: 15px;
}
.hero-frame .film-trigger {
  grid-column: 3;
  justify-self: end;
}
.hero-frame::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #000000bd);
}
.film-trigger {
  border: 1px solid #fff;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.film-trigger:hover {
  text-decoration: underline;
}

/* =========================================================
   PHILOSOPHY / APPROACH
========================================================= */

.kicker {
  color: var(--muted);
  margin-bottom: 24px;
}
.philosophy {
  display: grid;
  grid-template-columns: 1.17fr 0.83fr;
  align-items: end;
  gap: clamp(45px, 8vw, 130px);
}
.prose {
  max-width: 530px;
}
.prose p,
.section-heading > p:last-child,
.approach-copy > p:last-child,
.contact h2 + p {
  color: var(--muted);
}
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  color: var(--ink);
  align-items: center;
}
.approach > img {
  height: clamp(420px, 43vw, 640px);
  object-position: center 57%;
}
.approach-copy {
  align-self: center;
  padding: clamp(35px, 7.5vw, 130px) max(var(--gutter), calc((100vw - 1330px) / 2))
    clamp(35px, 7.5vw, 130px) clamp(36px, 6.5vw, 115px);
}
.approach-copy h2 {
  font-size: clamp(30px, 3.45vw, 53px);
}
.approach-copy .kicker,
.approach-copy > p:last-child {
  color: var(--muted);
}
.approach-copy > p:last-child,
.contact h2 + p {
  margin-top: 26px;
  max-width: 38ch;
}

/* =========================================================
   SERVICES / PROPERTY OWNERS
========================================================= */

.section-heading {
  margin-bottom: clamp(32px, 5.5vw, 88px);
}
.section-heading > p:last-child:not(.kicker) {
  margin-top: 22px;
  max-width: 42ch;
}
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
}
.service-items article {
  border-top: 1px solid var(--line);
  padding-block: 17px;
}
.service-items article:last-child {
  border-bottom: 1px solid var(--line);
}
.service-items h3 {
  font-size: clamp(17px, 1.55vw, 24px);
  overflow-wrap: anywhere;
}
.service-items article p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 46ch;
}
.concept-cover {
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.concept-cover .play {
  z-index: 1;
}
.concept-film .media-caption {
  flex-wrap: wrap;
}
.owners {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

/* =========================================================
   PROJECTS / FILM
========================================================= */

.feature-grid {
  width: min(100%, 1000px);
  margin-inline: auto;
}
.film-card {
  background: var(--paper);
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
}
.film-card img,
.film-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-card img {
  object-position: 50% 53%;
}
.film-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.film-preview.is-playing {
  opacity: 1;
}
.film-card img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.film-card:hover img {
  transform: scale(1.055);
}
.play {
  display: grid;
  place-items: center;
  position: absolute;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}
.play {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: clamp(54px, 6vw, 76px);
  transition:
    scale 0.35s ease,
    background-color 0.35s ease;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 30px;
}
.film-card:is(:hover, :focus-visible) .play {
  scale: 1.12;
  background: #f2f2f2;
}
.feature-grid .media-caption {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.media-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
}
.text-button {
  background: none;
  border: 0;
  border-bottom: 1px solid;
  padding: 0 0 3px;
  text-align: left;
}

/* =========================================================
   RENOVATION / GALLERY
========================================================= */

.renovation {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.comparisons {
  --bs-gutter-x: clamp(18px, 4vw, 60px);
  --bs-gutter-y: 35px;
}
.portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 60px);
}
.compare-frame {
  --split: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}
.compare-frame img {
  position: absolute;
  inset: 0;
  height: 100%;
}
.comparison--kitchen img {
  object-position: center 55%;
}
.comparison--kitchen img.after {
  object-position: center 64%;
}
.compare-frame .after {
  clip-path: inset(0 0 0 var(--preview-split, var(--split)));
}
.before-tag,
.after-tag {
  position: absolute;
  bottom: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px;
}
.before-tag {
  left: 12px;
}
.after-tag {
  right: 12px;
}
.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--preview-split, var(--split));
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}
.divider span {
  white-space: nowrap;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
}
.compare-control {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.divider span {
  transition:
    scale 0.3s ease,
    box-shadow 0.3s ease;
}
.compare-frame:has(.compare-control:is(:focus-visible, :hover)) .divider span {
  scale: 1.13;
  box-shadow: 0 0 0 5px #ffffff55;
}
.compare-frame:has(.compare-control:active) .divider span {
  scale: 0.96;
}
.compare-frame:focus-within {
  outline: 2px solid #606060;
  outline-offset: 5px;
}

/* =========================================================
   TEAM
========================================================= */

.portraits img {
  aspect-ratio: 4 / 5;
  object-position: 50% 28%;
  background: var(--paper);
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.contact address {
  font-style: normal;
  margin-top: 29px;
}
.contact .philosophy {
  align-items: start;
}
#contact-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  margin-bottom: 18px;
}
#contact-form input,
#contact-form textarea {
  border: 1px solid #a8a8a8;
  background: var(--paper);
  border-radius: 0;
  padding: 11px;
  width: 100%;
  min-height: 43px;
  font-size: 16px;
}
#contact-form textarea {
  resize: vertical;
}
#contact-form .line-link {
  margin-top: 4px;
}
#draft-result {
  margin-top: 20px;
  font-size: 14px;
}
#draft-result p + p {
  margin-top: 12px;
}
#draft-result textarea {
  margin-top: 14px;
}

/* =========================================================
   FOOTER
========================================================= */

.foot {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 54px 0 23px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
}
.footer-main p {
  margin-top: 18px;
}
.footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(22px, 5vw, 80px);
  align-content: start;
  row-gap: 8px;
}
.footer-main nav a:hover,
.footer-end a:hover {
  text-decoration: underline;
}
.footer-end {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* =========================================================
   MEDIA DIALOGS
========================================================= */

dialog {
  width: min(calc(100% - 28px), 550px);
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
#film-dialog {
  width: min(calc(100% - 28px), clamp(280px, calc((100dvh - 86px) * 0.563), 500px));
}
#concept-dialog {
  width: min(calc(100% - 28px), 1050px);
}
#concept-dialog video {
  aspect-ratio: 910 / 512;
  background: #111;
}
#film-dialog video {
  aspect-ratio: 512 / 910;
  background: #111;
}
dialog[open] {
  animation: media-dialog-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes media-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
dialog::backdrop {
  background: #000000b3;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 7px 12px 7px 17px;
}
.dialog-bar h2 {
  font-size: 11px;
  letter-spacing: 0.17em;
}
.dialog-close {
  border: 0;
  background: none;
  font-size: 27px;
  line-height: 1;
  width: 44px;
  height: 44px;
}
dialog video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 86px);
  object-fit: contain;
  background: var(--paper);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
  .top {
    min-height: 72px;
  }
  .wordmark {
    font-size: 39px;
  }
  .brand-name {
    font-size: 7px;
  }
  .header-actions {
    gap: 16px;
  }
  .menu-toggle {
    gap: 9px;
  }
  .menu-toggle i {
    width: 23px;
  }
  h1 {
    font-size: clamp(31px, 7.5vw, 54px);
  }
  h2 {
    font-size: clamp(29px, 6.5vw, 44px);
  }
  .intro {
    padding-top: 44px;
    padding-bottom: 37px;
  }
  .hero-frame figcaption {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
    bottom: 12px;
  }
  .hero-caption {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
  .hero-frame .film-trigger {
    grid-column: 2;
    grid-row: 1;
  }
  .hero-frame img {
    height: clamp(290px, 78vw, 490px);
    object-position: 50% 53%;
  }
  .hero-frame .hero-slide--bathroom {
    object-position: 66% center;
  }
  .hero-frame .hero-slide--atelier {
    object-position: 47% center;
  }
  .philosophy,
  .approach {
    grid-template-columns: 1fr;
  }
  .philosophy {
    gap: 26px;
  }
  .approach > img {
    height: clamp(280px, 80vw, 510px);
  }
  .approach-copy {
    padding: 55px var(--gutter) 65px;
  }
  .services-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .portraits {
    gap: 13px;
  }
  .portraits .media-caption {
    display: block;
  }
  .portraits .media-caption .micro {
    display: block;
    margin-top: 6px;
  }
  .footer-main {
    flex-wrap: wrap;
  }
  .footer-end {
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  .head-contact {
    display: none;
  }
  .intro-copy br {
    display: none;
  }
  .media-caption .micro {
    font-size: 9px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

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

/* =========================================================
   SCROLL PROGRESS
========================================================= */

.scroll-progress {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ink);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}

/* =========================================================
   APPROVED MEDIA AND SECTION LAYOUT
========================================================= */

#eigentuemer .philosophy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(22px, 3.3vw, 52px);
  text-align: center;
  padding-block: clamp(66px, 8.1vw, 124px);
}
#eigentuemer .prose {
  max-width: 63ch;
  width: 100%;
}

#projekte .film-card {
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
#projekte .film-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 58%, #0003);
}
#projekte .film-card .play {
  z-index: 1;
}
#projekte .media-caption {
  min-height: 51px;
}

#renovation .comparisons {
  --bs-gutter-x: clamp(14px, 2.4vw, 36px);
  --bs-gutter-y: 25px;
}

@media (min-width: 761px) {
  #renovation .comparisons > * {
    width: 33.333333%;
  }
}

@media (max-width: 760px) {
  #projekte .film-card {
    aspect-ratio: 4 / 3;
  }
}
