:root {
    --paper: #f2efe8;
    --ink: #1f1a17;
    --panel: rgba(26, 22, 19, 0.9);
    --line: rgba(0, 0, 0, 0.45);
    --row2-bg: rgb(245, 238, 228);
    --txt-color:rgba(255, 255, 255, 0.82);
    --bg-ratio: 1.85;
    --row-1-h: 4%;
    --row-2-h: 8.5%;
    --row-3-h: 30%;
    --row-4-h: 18%;
    --row-5-h: 26.7%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Caveat", cursive;
    user-select: none;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: calc(100vw * var(--bg-ratio));
    overflow-x: hidden;
    color: var(--ink);
    background-color: #1e5071;
    background-image: url("assets/bg.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 101.5vw auto;
}

.page-bg {
    height: calc(100vw * var(--bg-ratio));
    min-height: calc(100vw * var(--bg-ratio));
    /* width: min(40vw, 680px); */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* zoom: 1.08; */
}

@supports not (zoom: 1) {
    .page-bg {
        transform: scale(1.08);
        transform-origin: top center;
        width: min(85vw, 630px);
    }
}

.row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-1 {
    flex: 0 0 var(--row-1-h);
}

.row-2 {
    flex: 0 0 var(--row-2-h);
    display: block;
}

.row-3 {
    flex: 0 0 var(--row-3-h);
}

.row-4 {
    flex: 0 0 var(--row-4-h);
    align-items: stretch;
    justify-content: space-between;
    background: var(--row2-bg);
}

.row-5 {
    flex: 0 0 var(--row-5-h);
    align-items: flex-start;
    background: white;
}

.creations {
    width: 100%;
    height: 100%;
    padding: 2.5% 6% 3%;
}

.creations h2 {
    width: fit-content;
    margin: 0 auto 4%;
    padding: 0.1em 1.1em 0.16em;
    background: #000;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 400;
    line-height: 1;
}

.creations-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 5vw, 72px);
    align-items: start;
}

.creation-card {
    margin: 0;
    padding: clamp(10px, 1.2vw, 20px);
    background: #e7c5a9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.creation-card > img:not(.creation-actions) {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.creation-actions {
    width: 82%;
    margin: 4px auto -13px;
    height: auto;
    display: block;
    object-fit: contain;
    top: 20px;
    position: relative;
}

.appointment-qr {
    margin: clamp(32px, 5vw, 64px) auto 0;
    text-align: center;
}

.appointment-qr img {
    width: min(220px, 60vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

.appointment-qr p {
    margin: 14px 0 0;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    font-weight: 700;
}

.site-title {
    font-size: clamp(2.2rem, 5.8vw, 3.4rem);
    text-align: center;
    letter-spacing: 0.03em;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
    padding: 7px 60px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-bar {
    align-self: center;
    width: 100%;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #000;
    color: #fff;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    display: none;
    visibility: hidden;
}

.nav-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    padding: 9px 0;
    cursor: pointer;
}

.row-2-panel {
    position: relative;
    height: 100%;
    width: 100%;
    background: var(--row2-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-content: center;
    justify-content: center;
    gap: 4px 12px;
}

.row-2-decor {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.row-2-left {
    display: none;
}

.row-2-center {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    transform: none;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    position: relative;
    justify-content: center;
    align-content: center;
}

.frame-photo {
    width: 100%;
    display: block;
    background: none;
}

.row-2-right {
    grid-column: 2;
    grid-row: 1;
    position: static;
    width: min(16vw, 160px);
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-photo {
    width: 78%;
    height: auto;
    display: block;
}

.row-2-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    z-index: 2;
    width: auto;
    margin: 0;
    transform: translateY(-10px);
    color: var(--ink);
    font-family: "Caveat", cursive;
    font-size: clamp(1rem, 1.7vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.row-2-subtitle::before,
.row-2-subtitle::after {
    display: inline-block;
    width: 28px;
    height: 1px;
    margin: 0 10px 0.35em;
    background: var(--ink);
    content: "";
    opacity: 0.55;
}

.content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 24px;
    justify-content: center;
    align-items: end;
    position: relative;
}

.left, .middle, .right {
    justify-content: center;
    align-items: center;
    display: flex;
    margin-top: -40%;
    padding-bottom: 12%;
    flex-direction: column;
}

.cone {
  width: 220px;
  height: 120px;
  background: #000;
  border-radius: 110px 110px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cone span {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 15%;
  color: #fff;
}

.cadre {
  width: 220px;
  height: 285px;
  align-items: center;
  justify-content: center;
  display: flex;
  overflow: hidden;
  background:#e6c6ac;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.cadre img {
    width: 85%;
    height: 85%;
  object-fit: cover;
  display: block;
}

.services {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.arrow-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    position: relative;
    margin-bottom: 8px;
}

.arrow-container img {
  display: block;
  width: 180px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.12));
}

.arrow-container #left-arrow {
  transform: translateX(40px) rotate(45deg) translateY(40px);
}

.arrow-container #middle-arrow {
  width: 170px;
  transform:rotate(180deg);
}

.arrow-container #right-arrow {
  transform: translateX(-30px) rotate(-28deg) translateY(24px);
}

.services-title {
  font-size: clamp(2rem, 2.6vw, 3.3rem);
  line-height: 1;
  font-weight: 500;
  color: #14110f;
  margin-top: 4px;
  text-align: center;
}

.services-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.row-4-left {
    flex: 0 0 64%;
    color: var(--ink);
    padding: 2.2% 2.5% 1.5%;
    font-size: clamp(1.25rem, 2.35vw, 2.15rem);
    line-height: 1.35;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.row-4-left p {
    max-width: 100%;
}

.row-4-left p + p {
    margin-top: 1.5%;
}

.row-4-right {
    flex: 0 0 27%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.row-4-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border: 2px solid #1f5a7b;
    border-radius: 0 0 48% 48% / 0 0 30% 30%;
}

footer {
    width: 100%;
    text-align: center;
    padding: 10px;
    color: var(--ink);
    font-size: 1.5rem;
    display: flex;
    background-color: white;
    justify-content: center;
    text-align: center;
    position: static;
}

a:hover {
    text-decoration: underline;
    color: #000;
    background-color: var(--paper);
    border: 1px solid #000;
}

a:active {
    color: #000;
    background-color: var(--paper);
    border: 1px solid #000;
    transform: translateY(1px);
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35);
}