@font-face {
  font-family: "Kaisei Decol";
  src: url("fonts/KaiseiDecol-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --cream: #f7f1e1;
  --ink: #1a120c;
  --ticket: #e23d28;
  --green: #2f6b32;
  --paper: #fffdf6;
  --header-h: 4.5rem;
  --page-pad: clamp(1rem, 3.5vw, 2.5rem);
  --stage-max: 92rem;
  --read-max: 72rem;
  --dash: 2px dashed color-mix(in srgb, var(--ticket) 55%, var(--ink));
  --hair: 1px solid color-mix(in srgb, var(--ink) 18%, var(--cream));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: light; scrollbar-color: var(--ticket) var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  caret-color: var(--ticket);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:target { scroll-margin-top: calc(var(--header-h) + 0.75rem); }
::selection { background: var(--ticket); color: #fff; }

.skip:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip:focus-visible {
  position: absolute;
  z-index: 40;
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: var(--dash);
}
.top__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "mark nav lang doors";
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  min-height: var(--header-h);
  width: min(var(--stage-max), 100% - 2 * var(--page-pad));
  margin-inline: auto;
  padding: 0.6rem 0;
}
.top .wordmark { grid-area: mark; }
.top .nav { grid-area: nav; }
.top .lang { grid-area: lang; }
.top .doors { grid-area: doors; }

.wordmark {
  margin: 0;
  font-family: "Kaisei Decol", serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wordmark small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  font-size: 1.05rem;
}
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

.lang {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang button {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0;
}
.lang button.is-on { text-decoration: underline; text-underline-offset: 4px; }

.doors {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.6rem;
  padding: 0 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--paper);
  white-space: nowrap;
}
.phone svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.phone:hover { border-color: var(--ticket); }
.phone--icon {
  width: 2.6rem;
  padding: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(18rem, 56vw, 85svh);
  width: 100%;
  color: var(--cream);
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a120c;
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__photo-house { object-position: 58% 22%; }
.hero__photo-kitchen { object-position: 48% 42%; }
.hero__photo img.is-on { opacity: 1; }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgb(26 18 12 / 0.9) 0%,
      rgb(26 18 12 / 0.78) 28%,
      rgb(26 18 12 / 0.35) 48%,
      rgb(26 18 12 / 0.08) 68%,
      transparent 100%
    ),
    linear-gradient(180deg, rgb(26 18 12 / 0.12) 0%, transparent 24%);
}
.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  width: min(var(--stage-max), 100%);
  margin-inline: auto;
  padding: clamp(2.25rem, 6vh, 3.5rem) var(--page-pad);
}
.hero__copy h1 {
  margin: 0;
  max-width: 16ch;
  font-family: Fraunces, serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  text-wrap: balance;
}
.hero__price {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 22ch;
  font-family: Fraunces, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid color-mix(in srgb, var(--cream) 70%, transparent);
  width: fit-content;
  font-variant-numeric: tabular-nums;
}
.hero__utils {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--cream) 82%, var(--ink));
}
.hero__lead {
  margin: 0;
  max-width: 32ch;
  line-height: 1.4;
}
.hero :focus-visible { outline-color: var(--cream); }
.hero .cta:focus-visible { outline-color: var(--ink); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.cta--form { width: 100%; align-self: stretch; }
.cta--ad {
  margin-top: 0.45rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
}
.cta--hero {
  background: var(--cream);
  color: var(--ink);
}
.cta:hover { background: var(--ticket); color: #fff; }
.cta--hero:hover { color: #fff; }

.facts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.85rem var(--page-pad);
  width: min(var(--stage-max), 100%);
  border-block: var(--hair);
  background: color-mix(in srgb, var(--paper) 70%, var(--cream));
}
.facts li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 0;
  min-width: 0;
}
.facts svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  color: var(--ticket);
}
.facts p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
}

.below {
  width: min(var(--read-max), 100% - 2 * var(--page-pad));
  margin: 0 auto;
  padding: 0.5rem 0 5rem;
}
.below section {
  padding: 2.35rem 0 2.5rem;
  border-top: var(--hair);
}
.below section:first-child {
  border-top: 0;
  padding-top: 2rem;
}
.below h2 {
  font-family: Fraunces, serif;
  font-weight: 400;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}
.ext { color: var(--green); font-weight: 600; }

.kit {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.6rem;
  row-gap: 0.55rem;
}
.kit li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
}
.kit svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  color: var(--green);
}
.kit-notes {
  margin: 1.05rem 0 0;
  padding-top: 0.85rem;
  border-top: var(--hair);
  font-size: 0.95rem;
}

.ads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.ads[hidden] { display: none; }
.ad {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--paper);
  padding: 0;
  overflow: hidden;
  border: var(--dash);
}
.ad img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.ad__body { min-width: 0; padding: 0.75rem 0.9rem; }
.ad p { margin: 0.12rem 0; }
.ad__meta { font-size: 0.92rem; }
.ads-empty {
  margin-top: 1.25rem;
  max-width: 46ch;
}
.ads-empty-cta { margin: 0.9rem 0 0; }
.form-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
  border-top: var(--hair);
  font-weight: 600;
}
.form-pick[hidden] { display: none; }
.form-pick button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proof {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.4rem;
  margin: 1.35rem 0 0;
  min-height: min(28rem, 62vw);
}
.proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proof img:first-child {
  grid-row: 1 / 3;
  object-position: 42% 48%;
}
.proof img:not(:first-child) {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.form-lead {
  max-width: none;
}
.form-doors { white-space: nowrap; }
.tel, .wa {
  display: inline;
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
}
.tel:hover, .wa:hover { color: var(--ticket); border-color: var(--ticket); }

.map {
  margin: 1rem 0 0;
  max-width: 52rem;
}
.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: var(--hair);
  background: var(--paper);
}
.map__open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.map__open svg { width: 1rem; height: 1rem; flex: none; }
.map__open:hover { text-decoration: underline; text-underline-offset: 3px; }

#apskate {
  background: var(--paper);
  padding: 1.75rem 1.4rem 2rem;
  border: var(--hair);
}
.view {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) minmax(16rem, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
}
.view__copy h2 { margin-bottom: 0.45rem; }
.view form { min-width: 0; }
form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0;
}
label { display: grid; gap: 0.25rem; font-weight: 600; }
input, select, textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: inherit;
}
.hp { position: absolute; left: -9999px; }
.form-ok, .form-err { display: none; font-weight: 600; }
.form-ok.is-on, .form-err.is-on { display: block; }
.form-ok { color: var(--green); }
.form-err { color: var(--ticket); }

footer {
  padding: 2rem var(--page-pad);
  border-top: var(--hair);
  font-size: 0.95rem;
}
footer p { max-width: var(--read-max); margin: 0.35rem auto; }

@media (max-width: 839px) {
  :root { --header-h: 6.5rem; }
  .top__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "mark doors"
      "nav lang";
  }
  .nav { justify-content: flex-start; gap: 1.15rem; }
  .hero__photo-house { object-position: 50% 20%; }
  .hero__photo-kitchen { object-position: 50% 42%; }
  .hero__photo::after {
    background:
      linear-gradient(
        90deg,
        rgb(26 18 12 / 0.9) 0%,
        rgb(26 18 12 / 0.78) 42%,
        rgb(26 18 12 / 0.28) 70%,
        transparent 100%
      ),
      linear-gradient(180deg, rgb(26 18 12 / 0.14) 0%, transparent 32%);
  }
  .ads { grid-template-columns: 1fr; }
  #apskate { padding: 1.5rem 1.1rem 1.75rem; }
}

@media (max-width: 639px) {
  .facts {
    flex-wrap: wrap;
    row-gap: 0.7rem;
  }
  .facts li { flex: 1 1 calc(50% - 0.7rem); }
  .kit { grid-template-columns: 1fr; }
  .view { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  .ad { grid-template-columns: 1fr; }
  .ad img { width: 100%; height: 10.5rem; }
  .proof {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .proof img:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 5;
    height: auto;
  }
  .proof img:not(:first-child) {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cta { transition: background 0.2s ease-out; }
  .phone { transition: border-color 0.2s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .cta:hover, .phone:hover { transition: none; }
  .hero__photo img { transition: none; }
}

/* visual/index.html scaffold — boxes come from layout.css */
.comp-frame {
  position: relative;
  width: min(1536px, 100%);
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  background: var(--cream);
  margin-inline: auto;
}
.comp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comp-frame .wordmark { font-size: var(--r-wordmark-font); }
.comp-frame .nav { height: 100%; }
.comp-frame .phone { height: 100%; width: 100%; }
.comp-frame .price {
  display: flex;
  align-items: center;
  font-size: var(--r-price-font);
  height: 100%;
  padding: 0 8%;
  border: 0;
  justify-content: center;
}
.comp-frame .utilities {
  font-size: var(--r-utilities-font);
  border: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.comp-frame .address {
  font-size: var(--r-address-font);
  height: 100%;
}
.comp-frame .cta { height: 100%; width: 100%; }
.comp-frame .r-t1-photo,
.comp-frame .r-t2-photo { padding: 8% 5% 10% 16%; }
.comp-frame .r-t1-photo img,
.comp-frame .r-t2-photo img {
  object-fit: contain;
  object-position: center;
}
.comp-frame .lang {
  position: absolute;
  right: 18%;
  top: 4.2%;
}
