:root {
  --ink: #141513;
  --ink-soft: #242521;
  --paper: #f6f2ea;
  --bone: #e8dfd3;
  --clay: #d8c8b8;
  --brick: #8b493a;
  --brick-dark: #68362d;
  --brick-light: #c9836f;
  --white: #fffdf8;
  --muted: #6f6d67;
  --line: rgba(20, 21, 19, 0.16);
  --max: 1420px;
  --pad: clamp(24px, 4.8vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.047em;
}

h2 {
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1;
}

h3 {
  letter-spacing: -0.022em;
}

::selection {
  background: var(--brick);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--brick-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  height: 94px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-fixed {
  position: fixed;
  height: 72px;
  background: rgba(20, 21, 19, 0.94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 17px;
  font-weight: 690;
  letter-spacing: 0.045em;
  line-height: 1;
  text-decoration: none;
}

.brand b {
  color: var(--brick-light);
  font-weight: 800;
}

.brand__mark {
  width: 31px;
  height: 39px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2.4;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-cta) {
  opacity: 0.82;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 11px 18px;
  background: var(--brick);
  color: #fff;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(960px, 100svh);
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.hero__image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 11, 0.83) 0%, rgba(11, 12, 11, 0.52) 40%, rgba(11, 12, 11, 0.07) 72%),
    linear-gradient(0deg, rgba(11, 12, 11, 0.8) 0%, rgba(11, 12, 11, 0.05) 52%),
    linear-gradient(180deg, rgba(11, 12, 11, 0.38) 0%, transparent 24%);
  content: "";
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
}

.hero__copy {
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 180px var(--pad) 106px;
}

.hero__place {
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 15px;
  line-height: 1.4;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(56px, 6vw, 86px);
  line-height: 0.92;
}

.hero__lead {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 27px;
}

.button {
  display: inline-flex;
  width: max-content;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
  transition: transform 150ms ease;
}

.button:hover svg {
  transform: translateX(4px);
}

.button--primary {
  background: var(--brick);
  color: #fff;
}

.button--primary:hover {
  background: var(--brick-dark);
}

.text-link {
  padding-block: 4px;
  color: inherit;
  font-size: 15px;
  font-weight: 690;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 6px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link--accent {
  color: var(--brick-light);
  text-decoration-color: rgba(201, 131, 111, 0.45);
}

.hero__facts {
  position: absolute;
  right: var(--pad);
  bottom: 108px;
  z-index: 1;
  display: flex;
  width: 250px;
  flex-direction: column;
  gap: 21px;
  margin: 0;
}

.hero__facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.hero__facts dt {
  order: 2;
  color: rgba(255, 253, 248, 0.66);
  font-size: 13px;
  font-weight: 650;
}

.hero__facts dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
}

.section {
  padding: clamp(88px, 9vw, 142px) var(--pad);
}

.intro.section {
  display: grid;
  width: 100%;
  min-height: 800px;
  padding: 0;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: auto 1fr;
  background: var(--paper);
}

.intro__heading {
  align-self: end;
  padding: clamp(90px, 9vw, 140px) clamp(42px, 6vw, 98px) 34px var(--pad);
  grid-column: 1;
  grid-row: 1;
}

.intro__heading h2 {
  max-width: 610px;
  margin-bottom: 0;
}

.intro__body {
  padding: 0 clamp(42px, 6vw, 98px) clamp(86px, 9vw, 138px) var(--pad);
  grid-column: 1;
  grid-row: 2;
}

.intro__body p {
  max-width: 610px;
  margin-bottom: 19px;
  color: #4f504c;
  font-size: 18px;
  line-height: 1.66;
}

.intro__body p:last-child {
  margin-bottom: 0;
}

.intro__image {
  position: relative;
  min-height: 800px;
  margin: 0;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1 / 3;
}

.intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
}

.intro__image figcaption {
  position: absolute;
  right: 22px;
  bottom: 19px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.48);
}

.apartments.section {
  padding: 0;
  background: var(--ink);
  color: var(--white);
}

.apartments__layout {
  display: grid;
  min-height: 930px;
  grid-template-columns: minmax(0, 1.06fr) minmax(560px, 0.94fr);
}

.apartments__facade {
  position: relative;
  min-height: 930px;
  overflow: hidden;
  background: var(--ink-soft);
}

.apartments__facade::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 56%, rgba(12, 13, 12, 0.44) 100%),
    linear-gradient(0deg, rgba(12, 13, 12, 0.56), transparent 30%);
  content: "";
}

.apartments__facade > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.floor-picker {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.floor-picker button {
  position: absolute;
  top: var(--floor-y);
  right: clamp(26px, 4vw, 62px);
  display: flex;
  width: 46px;
  height: 54px;
  align-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 23px 23px 2px 2px;
  background: rgba(20, 21, 19, 0.78);
  color: #fff;
  transform: translateY(-50%);
  transition: width 170ms ease, background 170ms ease, border-color 170ms ease;
  backdrop-filter: blur(8px);
}

.floor-picker button span {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 52px;
  place-items: center;
  font-size: 16px;
  font-weight: 760;
}

.floor-picker button b {
  padding-right: 15px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 640;
}

.floor-picker button:hover,
.floor-picker button:focus-visible,
.floor-picker button.is-active {
  width: 116px;
  border-color: var(--brick);
  background: var(--brick);
}

.floor-hint {
  position: absolute;
  right: clamp(26px, 4vw, 62px);
  bottom: 30px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 14px;
  font-weight: 650;
}

.apartments__panel {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: clamp(78px, 7vw, 114px) clamp(36px, 5vw, 82px);
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(48px, 5.2vw, 72px);
}

.section-heading p {
  max-width: 550px;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.68);
  font-size: 17px;
  line-height: 1.62;
}

.floor-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.floor-filter button {
  min-width: 44px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 253, 248, 0.26);
  background: transparent;
  color: rgba(255, 253, 248, 0.72);
  font-size: 14px;
  font-weight: 680;
}

.floor-filter button:hover,
.floor-filter button.is-active {
  border-color: var(--brick-light);
  background: var(--brick);
  color: #fff;
}

.apartment-list {
  min-width: 0;
}

.apartment-list__head,
.apartment-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(150px, 1.35fr) 0.72fr 0.95fr 0.8fr;
  gap: 15px;
}

.apartment-list__head {
  padding: 0 15px 12px;
  color: rgba(255, 253, 248, 0.46);
  font-size: 12px;
  font-weight: 700;
}

.apartment-row {
  width: 100%;
  min-height: 68px;
  padding: 11px 15px;
  border: 0;
  border-top: 1px solid rgba(255, 253, 248, 0.13);
  background: transparent;
  color: var(--white);
  text-align: left;
  transition: background 140ms ease, padding 140ms ease;
}

.apartment-row:last-child {
  border-bottom: 1px solid rgba(255, 253, 248, 0.13);
}

.apartment-row:hover,
.apartment-row:focus-visible {
  padding-right: 20px;
  padding-left: 20px;
  background: rgba(255, 253, 248, 0.07);
}

.apartment-row[hidden] {
  display: none;
}

.apartment-row b {
  min-width: 0;
  font-size: 16px;
  line-height: 1.3;
}

.apartment-row b small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 253, 248, 0.5);
  font-size: 13px;
  font-weight: 500;
}

.apartment-row span {
  color: rgba(255, 253, 248, 0.77);
  font-size: 15px;
  white-space: nowrap;
}

.status {
  width: max-content;
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.1;
}

.status--free {
  background: #cfe0cd;
  color: #183f26;
}

.status--reserved {
  background: #e6d3af;
  color: #654012;
}

.status--sold {
  background: #d0d0cc;
  color: #50514e;
}

.filter-empty {
  margin: 28px 0 0;
  color: rgba(255, 253, 248, 0.68);
}

.materials.section {
  display: block;
  padding: 0;
  background: var(--paper);
}

.materials__image {
  height: clamp(560px, 70vw, 840px);
  max-height: 76svh;
  overflow: hidden;
}

.materials__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}

.materials__content {
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(86px, 9vw, 136px) var(--pad);
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(65px, 8vw, 130px);
}

.materials__content h2 {
  max-width: 560px;
  margin-bottom: 0;
}

.materials__list {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 45px 52px;
}

.materials__list article {
  display: grid;
  align-items: start;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 18px;
}

.material-swatch {
  position: relative;
  display: block;
  width: 72px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(20, 21, 19, 0.12);
  border-radius: 0;
  appearance: none;
  background-color: #d8d0c4;
  background-image: url("/volv-kodud/assets/volv-material-samples.webp");
  background-repeat: no-repeat;
  background-size: 320% auto;
  cursor: zoom-in;
  grid-row: 1 / 3;
  transition: border-color 150ms ease, transform 150ms ease;
}

.material-swatch::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  content: "+";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.material-swatch:hover,
.material-swatch:focus-visible {
  border-color: rgba(20, 21, 19, 0.44);
  transform: scale(1.025);
}

.material-swatch--floor {
  background-position: 0 50%;
}

.material-swatch--kitchen {
  background-position: 66% 12%;
}

.material-swatch--bathroom {
  background-position: 72% 56%;
}

.material-swatch--walls {
  background-position: 100% 92%;
}

.materials__list h3 {
  grid-column: 2;
  margin-bottom: 8px;
  font-size: 18px;
}

.materials__list p {
  grid-column: 2;
  margin-bottom: 0;
  color: #555651;
  font-size: 16px;
  line-height: 1.62;
}

.gallery.section {
  padding: clamp(86px, 8vw, 124px) var(--pad) clamp(96px, 9vw, 142px);
  background: var(--clay);
  color: var(--ink);
}

.gallery__heading,
.gallery__track {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.gallery__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.gallery__heading h2 {
  margin-bottom: 0;
}

.gallery__controls {
  display: flex;
  gap: 9px;
}

.gallery__controls button {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(20, 21, 19, 0.34);
  background: transparent;
  color: var(--ink);
  place-items: center;
  transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
}

.gallery__controls button:not(:disabled):hover,
.gallery__controls button:not(:disabled):focus-visible {
  background: var(--ink);
  color: var(--white);
}

.gallery__controls button:disabled {
  cursor: default;
  opacity: 0.28;
}

.gallery__controls svg,
.lightbox__nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.gallery__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  outline-offset: 8px;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  position: relative;
  flex: 0 0 clamp(520px, 61vw, 870px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--ink-soft);
  scroll-snap-align: start;
}

.gallery__item::after {
  position: absolute;
  right: 17px;
  bottom: 17px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  content: "+";
  font-size: 24px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
  transform: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery__item:hover img {
  transform: scale(1.025);
}

.location.section {
  display: block;
  padding: clamp(96px, 10vw, 150px) var(--pad);
  background: var(--ink);
  color: var(--white);
}

.location__copy,
.location__times {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.location__copy {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(380px, 1.2fr) minmax(280px, 0.65fr);
  gap: clamp(60px, 10vw, 160px);
}

.location__copy h2 {
  max-width: 800px;
  margin-bottom: 0;
  grid-row: 1;
}

.location__copy p {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 18px;
  line-height: 1.65;
}

.location__times {
  display: grid;
  margin-top: clamp(72px, 8vw, 112px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 68px);
}

.location__times article {
  display: grid;
  align-items: start;
  grid-template-columns: 46px 1fr;
  gap: 17px;
}

.location__times svg {
  width: 41px;
  height: 41px;
  fill: none;
  stroke: var(--brick-light);
  stroke-linecap: square;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.location__times h3 {
  margin-bottom: 4px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 15px;
  font-weight: 650;
}

.location__times b {
  display: block;
  margin-bottom: 1px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.location__times p {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.53);
  font-size: 14px;
}

.contact.section {
  display: grid;
  align-items: start;
  padding: clamp(92px, 10vw, 148px) var(--pad);
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  gap: clamp(70px, 11vw, 175px);
  background: var(--bone);
  color: var(--ink);
}

.contact__intro {
  justify-self: end;
  width: min(100%, 580px);
}

.contact__intro h2 {
  margin-bottom: 28px;
}

.contact__intro p {
  max-width: 530px;
  margin-bottom: 27px;
  color: #52534e;
  font-size: 18px;
  line-height: 1.64;
}

.contact__intro > a {
  color: var(--brick-dark);
  font-size: 17px;
  font-weight: 720;
  text-underline-offset: 5px;
}

.contact-form {
  width: min(100%, 720px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  margin-bottom: 23px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid rgba(20, 21, 19, 0.38);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 253, 248, 0.34);
  color: var(--ink);
  font-size: 16px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brick);
  background: rgba(255, 253, 248, 0.58);
  box-shadow: 0 0 0 2px var(--brick);
}

.consent {
  display: grid;
  align-items: start;
  margin: 1px 0 25px;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  color: #5d5d57;
  font-size: 14px;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brick);
}

.consent a {
  color: var(--brick-dark);
  font-weight: 680;
}

.contact-form .button {
  background: var(--brick);
}

.contact-form .button:hover {
  background: var(--brick-dark);
}

.form-status {
  min-height: 25px;
  margin: 17px 0 0;
  color: var(--brick-dark);
  font-size: 15px;
  font-weight: 650;
}

.site-footer {
  display: grid;
  min-height: 200px;
  align-items: center;
  padding: 48px var(--pad);
  grid-template-columns: 1fr auto 1fr;
  gap: 35px;
  background: var(--ink);
  color: var(--white);
}

.site-footer > div {
  display: flex;
  gap: 28px;
}

.site-footer > div a {
  color: rgba(255, 253, 248, 0.7);
  font-size: 14px;
  text-decoration: none;
}

.site-footer > div a:hover {
  color: #fff;
}

.site-footer > p {
  justify-self: end;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.5);
  font-size: 13px;
}

.brand--footer {
  width: max-content;
}

.apartment-dialog,
.lightbox {
  width: min(1120px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

.apartment-dialog::backdrop,
.lightbox::backdrop {
  background: rgba(10, 11, 10, 0.84);
  backdrop-filter: blur(5px);
}

.dialog-close,
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 43px;
  height: 43px;
  padding: 0 0 3px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
  place-items: center;
}

.dialog-layout {
  display: grid;
  min-height: 610px;
  grid-template-columns: 1.08fr 0.92fr;
}

.dialog-plan {
  display: grid;
  min-height: 610px;
  padding: clamp(35px, 5vw, 70px);
  background: var(--bone);
  place-items: center;
}

.dialog-plan img {
  width: 100%;
  max-height: 480px;
}

.dialog-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(38px, 5vw, 72px);
}

.dialog-copy h2 {
  margin-bottom: 15px;
  font-size: clamp(42px, 5vw, 66px);
}

.dialog-copy > p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
}

.dialog-copy dl {
  display: grid;
  margin-bottom: 38px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
}

.dialog-copy dl div {
  min-width: 0;
}

.dialog-copy dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.dialog-copy dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.lightbox {
  position: relative;
  width: min(1420px, calc(100% - 40px));
  max-width: none;
  background: transparent;
  box-shadow: none;
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 40px);
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  place-items: center;
  transform: translateY(-50%);
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__nav--previous {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

.lightbox__count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 3;
  padding: 7px 12px;
  background: rgba(20, 21, 19, 0.82);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transform: translateX(-50%);
}

.lightbox__count[hidden] {
  display: none;
}

.legal-page,
.error-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-page .site-header,
.error-page .site-header {
  position: relative;
  background: var(--ink);
}

.legal-back {
  color: rgba(255, 253, 248, 0.78);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 5px;
}

.legal-main {
  padding: clamp(72px, 8vw, 118px) var(--pad);
}

.legal-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.legal-shell h1 {
  margin-bottom: 23px;
  font-size: clamp(44px, 5.4vw, 66px);
  line-height: 1;
}

.legal-intro {
  max-width: 650px;
  margin-bottom: 50px;
  color: #555650;
  font-size: 18px;
}

.legal-shell section {
  margin-bottom: 34px;
}

.legal-shell section:last-child {
  margin-bottom: 0;
}

.legal-shell section h2 {
  margin-bottom: 8px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.legal-shell section p {
  margin-bottom: 0;
  color: #4d4e49;
  font-size: 17px;
  line-height: 1.67;
}

.legal-shell section a {
  color: var(--brick-dark);
  font-weight: 680;
}

.site-footer--compact {
  min-height: 150px;
  grid-template-columns: 1fr 1fr;
}

.error-main {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: calc(100vh - 94px);
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.error-main::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 10, 0.9), rgba(10, 11, 10, 0.38) 62%, rgba(10, 11, 10, 0.08)),
    linear-gradient(0deg, rgba(10, 11, 10, 0.72), transparent 55%);
  content: "";
}

.error-main > div {
  z-index: 1;
  width: min(100%, 760px);
  padding: 100px var(--pad);
}

.error-main > div > p {
  margin-bottom: 17px;
  color: var(--brick-light);
  font-size: 16px;
  font-weight: 750;
}

.error-main h1 {
  margin-bottom: 21px;
  font-size: clamp(50px, 6vw, 80px);
  line-height: 0.96;
}

.error-main > div > span {
  display: block;
  max-width: 480px;
  margin-bottom: 31px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 17px;
}

.error-main > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.has-motion .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .apartments__facade {
    min-height: min(760px, 72vw);
  }

  .apartments__panel {
    width: min(100%, 850px);
    margin: 0 auto;
    padding-top: 90px;
    padding-bottom: 100px;
  }

  .location__times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 70px;
  }
}

@media (max-width: 1050px) {
  .hero {
    min-height: 880px;
  }

  .hero__copy {
    padding-bottom: 220px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .hero__facts {
    right: auto;
    bottom: 58px;
    left: var(--pad);
    width: min(650px, calc(100% - 2 * var(--pad)));
    flex-direction: row;
    gap: clamp(28px, 7vw, 80px);
  }

  .hero__facts div {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .hero__facts dt {
    order: 0;
  }

  .intro.section {
    min-height: 720px;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .intro__image {
    min-height: 720px;
  }

  .materials__content {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .materials__content h2 {
    max-width: 740px;
  }

  .contact.section {
    grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
    gap: 60px;
  }
}

@media (max-width: 940px) {
  .site-header {
    height: 78px;
  }

  .menu-button {
    position: relative;
    z-index: 23;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
  }

  .menu-button i,
  .menu-button i::before {
    display: block;
    width: 23px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease;
  }

  .menu-button i::before {
    transform: translateY(7px);
  }

  .menu-button[aria-expanded="true"] i {
    transform: rotate(45deg) translateY(3px);
  }

  .menu-button[aria-expanded="true"] i::before {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 22;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    padding: 110px var(--pad) 50px;
    background: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    transform: translateX(100%);
    transition: transform 230ms ease;
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav a:not(.nav-cta) {
    opacity: 1;
  }

  .nav-cta {
    margin-top: 15px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
  }

  .intro.section {
    display: block;
    min-height: 0;
  }

  .intro__heading {
    padding: 88px var(--pad) 30px;
  }

  .intro__body {
    padding: 0 var(--pad) 76px;
  }

  .intro__image {
    height: 650px;
    min-height: 0;
  }

  .gallery__item {
    flex-basis: min(74vw, 690px);
  }

  .location__copy {
    display: block;
  }

  .location__copy h2 {
    max-width: 760px;
    margin-bottom: 30px;
  }

  .location__copy p {
    max-width: 600px;
  }

  .contact.section {
    grid-template-columns: 1fr;
  }

  .contact__intro {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > div {
    display: none;
  }

  .error-main > div {
    padding-top: 110px;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 21px;
  }

  body {
    font-size: 16px;
  }

  h2 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .site-header,
  .site-header.is-fixed {
    height: 70px;
  }

  .brand {
    font-size: 16px;
  }

  .brand__mark {
    width: 25px;
    height: 32px;
  }

  .menu-button span {
    display: none;
  }

  .hero {
    min-height: 800px;
  }

  .hero__image img {
    object-position: 62% center;
  }

  .hero__copy {
    padding-top: 120px;
    padding-bottom: 232px;
  }

  .hero__place {
    margin-bottom: 23px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 27px;
    font-size: clamp(48px, 15vw, 63px);
    line-height: 0.93;
  }

  .hero__lead {
    margin-bottom: 29px;
    font-size: 17px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero__facts {
    bottom: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .hero__facts dd {
    font-size: 21px;
  }

  .hero__facts dt {
    font-size: 12px;
  }

  .intro__heading {
    padding-top: 79px;
  }

  .intro__body p,
  .location__copy p,
  .contact__intro p {
    font-size: 17px;
  }

  .intro__image {
    height: 500px;
  }

  .apartments__facade {
    min-height: 540px;
  }

  .apartments__facade > img {
    object-position: 58% center;
  }

  .floor-picker button {
    right: 19px;
  }

  .floor-hint {
    right: 19px;
    bottom: 22px;
  }

  .apartments__panel {
    padding: 76px var(--pad) 82px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    margin-bottom: 18px;
    font-size: clamp(46px, 14vw, 60px);
  }

  .floor-filter {
    gap: 6px;
    margin-bottom: 25px;
  }

  .floor-filter button {
    min-width: 40px;
    min-height: 40px;
    padding: 7px 11px;
    font-size: 13px;
  }

  .apartment-list__head {
    display: none;
  }

  .apartment-row {
    min-height: 0;
    padding: 22px 2px;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
  }

  .apartment-row:hover,
  .apartment-row:focus-visible {
    padding: 22px 10px;
  }

  .apartment-row b {
    grid-column: 1 / 3;
    font-size: 18px;
  }

  .apartment-row span {
    display: flex;
    flex-direction: column;
    font-size: 16px;
  }

  .apartment-row span::before {
    margin-bottom: 1px;
    color: rgba(255, 253, 248, 0.44);
    font-size: 11px;
    font-weight: 700;
  }

  .apartment-row span:nth-of-type(1)::before {
    content: "Suurus";
  }

  .apartment-row span:nth-of-type(2)::before {
    content: "Hind";
  }

  .apartment-row .status {
    align-self: end;
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .materials__image {
    height: 510px;
    max-height: none;
  }

  .materials__content {
    padding: 76px var(--pad) 84px;
    gap: 48px;
  }

  .materials__list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery.section {
    padding-top: 76px;
    padding-bottom: 82px;
  }

  .gallery__heading {
    align-items: center;
    margin-bottom: 31px;
  }

  .gallery__controls button {
    width: 44px;
    height: 44px;
  }

  .gallery__track {
    gap: 10px;
  }

  .gallery__item {
    flex-basis: calc(100vw - 64px);
    aspect-ratio: 4 / 3;
  }

  .lightbox__nav {
    top: auto;
    bottom: 14px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .lightbox__nav--previous {
    left: 14px;
  }

  .lightbox__nav--next {
    right: 14px;
  }

  .location.section {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .location__times {
    margin-top: 61px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 39px 18px;
  }

  .location__times article {
    grid-template-columns: 36px 1fr;
    gap: 11px;
  }

  .location__times svg {
    width: 33px;
    height: 33px;
  }

  .location__times b {
    font-size: 26px;
  }

  .contact.section {
    padding-top: 79px;
    padding-bottom: 84px;
    gap: 50px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    min-height: 170px;
    grid-template-columns: 1fr;
  }

  .site-footer > p {
    justify-self: start;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-plan {
    min-height: 330px;
    padding: 45px 28px;
  }

  .dialog-copy {
    padding: 42px 28px;
  }

  .dialog-copy dl {
    gap: 18px;
  }

  .apartment-dialog {
    max-height: calc(100dvh - 20px);
  }

  .lightbox {
    width: calc(100% - 20px);
  }

  .legal-main {
    padding-top: 66px;
  }

  .legal-intro {
    margin-bottom: 43px;
    font-size: 17px;
  }

  .site-footer--compact {
    grid-template-columns: 1fr;
  }

  .error-main {
    min-height: calc(100vh - 70px);
  }

  .error-main > div {
    padding-top: 90px;
    padding-bottom: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .has-motion .reveal {
    opacity: 1;
    transform: none;
  }
}
