@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Mittel.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Fett.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Apfel Grotezk Brukt"; src: url("../fonts/ApfelGrotezk-Brukt.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cooper"; src: url("../fonts/Cooper-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --pink:   #FF2756;
  --lime:   #C2FF27;
  --aqua:   #27FFD0;
  --violet: #6427FF;
  --ink:    #0E0E0E;
  --paper:  #F5F2EA;

  --display: "Apfel Grotezk", system-ui, sans-serif;
  --sans:  "Apfel Grotezk", system-ui, sans-serif;
  --brukt: "Apfel Grotezk Brukt", "Apfel Grotezk", system-ui, sans-serif;
  --cooper: "Cooper", "Cooper Black", Georgia, serif;
  --mono:  "Space Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 88px);
  --line: 2.5px;
  --shadow: 6px 6px 0 var(--ink);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M2 2v24L26 2zM7 7v8.5L15.5 7z' fill='%23C2FF27' fill-rule='evenodd' stroke='%230E0E0E' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M2 6h2.5M2 10h2.5M2 14h2.5M2 18h2.5M2 22h2.5' stroke='%230E0E0E' stroke-width='1.2'/%3E%3C/svg%3E") 2 2, auto; }
a, button, label, summary, [role="button"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M2 2v24L26 2zM7 7v8.5L15.5 7z' fill='%23FF2756' fill-rule='evenodd' stroke='%230E0E0E' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M2 6h2.5M2 10h2.5M2 14h2.5M2 18h2.5M2 22h2.5' stroke='%230E0E0E' stroke-width='1.2'/%3E%3C/svg%3E") 2 2, pointer; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: .6em 1em; background: var(--lime); border: var(--line) solid var(--ink);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1.5rem;
}
.kicker::before {
  content: ""; width: 1.1em; height: .8em;
  background: var(--pink); border: 2px solid var(--ink);
  clip-path: polygon(0 40%, 50% 0, 100% 40%, 100% 100%, 0 100%);
}

.section-title {
  font: 700 clamp(2.6rem, 7vw, 7rem)/.92 var(--display);
  letter-spacing: -.025em;
}
.section-title--xl { font-size: clamp(3.4rem, 13vw, 13rem); }

.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; will-change: transform; }
[data-split] .split-word { overflow: clip; overflow-clip-margin: .2em; padding-bottom: .06em; margin-bottom: -.06em; }

.pill {
  display: inline-flex; align-items: center;
  padding: .55em 1.15em;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font: 700 .8rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease-bounce), background-color .2s;
}
.pill:hover, .pill[aria-current] {
  background: var(--lime);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--ink);
}
.pill--solid { background: var(--ink); color: var(--paper); }
.pill--solid:hover { color: var(--ink); background: var(--aqua); }
.pill--big { font-size: 1rem; padding: 1em 1.8em; }
.site-header__nav .pill { border-width: 1.5px; border-radius: 0; padding: .6em 1em .62em; transition: transform .25s var(--ease-out), background-color .2s, color .2s; }
.site-header__nav .pill:hover, .site-header__nav .pill[aria-current] { transform: translateY(-2px); box-shadow: none; }
.site-header__nav .pill--lang { background: var(--paper); }
.site-header__nav .pill--lang:hover { background: var(--lime); }

.btn-house {
  position: relative;
  display: inline-flex; align-items: flex-end; justify-content: center;
  min-width: min(100%, 26rem);
  padding: 2.6rem 2.4rem 1.4rem;
  font: 700 clamp(1.1rem, 2vw, 1.5rem)/1.1 var(--display);
  text-decoration: none;
  text-align: center;
  transition: transform .45s var(--ease-bounce);
}
.btn-house span { position: relative; }
.btn-house__shape {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(6px 6px 0 var(--ink));
  transition: filter .45s var(--ease-bounce);
}
.btn-house__shape polygon {
  fill: var(--pink); stroke: var(--ink); stroke-width: var(--line);
  stroke-linejoin: round; transition: fill .2s;
}
.btn-house:hover { transform: translate(-4px, -4px) rotate(-1.5deg); }
.btn-house:hover .btn-house__shape { filter: drop-shadow(10px 10px 0 var(--ink)); }
.btn-house:hover polygon { fill: var(--lime); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
  pointer-events: none;
  transition: transform .5s var(--ease-out);
}
.site-header > * { pointer-events: auto; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__logo { display: block; width: clamp(64px, 7vw, 92px); transition: transform .5s var(--ease-bounce); }
.site-header__logo:hover { transform: rotate(-8deg) scale(1.06); }
.site-header__nav { display: flex; gap: .5rem; }

.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgb(100 39 255 / .14) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(100 39 255 / .14) 1px, transparent 1px),
    linear-gradient(to right, rgb(100 39 255 / .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(100 39 255 / .06) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: center;
  user-select: none;
}

.hero__plan {
  position: absolute;
  inset: 88px var(--gutter) 18px;
  border: 1.5px solid rgb(100 39 255 / .5);
  pointer-events: none;
}
.plan-label { position: absolute; color: var(--violet); padding: 6px 8px; }
.plan-label--tl { top: 0; left: 0; }
.plan-label--tr { top: 0; right: 0; }
.plan-label--bl { bottom: 0; left: 0; z-index: 3; }
.plan-label--br { bottom: 0; right: 0; z-index: 3; }

.plan-dim {
  position: relative; width: 100%;
  height: 1.5px; background: var(--violet);
  transform-origin: center;
}
.plan-dim::before, .plan-dim::after {
  content: ""; position: absolute; top: -6px; width: 1.5px; height: 13px; background: var(--violet);
}
.plan-dim::before { left: 0; }
.plan-dim::after { right: 0; }
.plan-dim span {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  padding: 0 .8em; background: var(--paper); color: var(--violet);
}

.hero__center {
  position: absolute; inset: 22% var(--gutter) auto;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
}
.hero__title {
  text-align: center;
  font: 700 clamp(2.6rem, 7.5vw, 8.5rem)/.95 var(--cooper);
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero__line { display: inline-block; margin: 0 .1em; }

.hero__sub {
  font-size: .82rem;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.hero__canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.hero__canvas.is-grabbing { cursor: grabbing; }
.hero__canvas.is-over { cursor: grab; }

.marquee {
  position: relative; z-index: 3;
  overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-block: var(--line) solid var(--ink);
  padding: .9rem 0;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: .5em; padding-right: .5em; }
.marquee__item {
  font: 400 clamp(2rem, 5.5vw, 5rem)/1 var(--brukt);
  text-transform: lowercase;
  white-space: nowrap;
}
.marquee__house { height: clamp(1.6rem, 4vw, 3.6rem); width: auto; flex: none; }

.studio { padding: clamp(80px, 18vh, 200px) var(--gutter); }
.studio__text {
  max-width: 22ch;
  font: 400 clamp(2rem, 5.2vw, 5.4rem)/1.06 var(--sans);
  letter-spacing: -.03em;
}
.studio__text .split-word { opacity: .14; transition: opacity .25s; }
.studio__text.no-js-anim .split-word, .pinfo__summary.no-js-anim .split-word { opacity: 1; }

.hl {
  color: inherit;
  padding: 0 .1em;
  background: linear-gradient(var(--c), var(--c)) no-repeat 0 60% / 0% 86%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .7s var(--ease-out), color .3s .15s;
}
.hl.is-on { background-size: 100% 86%; }
.hl .split-word { opacity: inherit; }
.hl--pink { --c: var(--pink); }
.hl--lime { --c: var(--lime); }
.hl--aqua { --c: var(--aqua); }
.hl--violet { --c: var(--violet); }
.hl--violet.is-on { color: var(--paper); }

.studio__cta { margin-top: clamp(48px, 9vh, 96px); }

.work { padding: 0 var(--gutter) clamp(80px, 14vh, 160px); }
.work__head { margin-bottom: clamp(40px, 8vh, 80px); }
.work__stack { display: grid; gap: 6vh; }
.work__more { margin-top: 8vh; text-align: center; }

.pcard {
  position: sticky;
  top: calc(96px + var(--i, 0) * 16px);
  transform-origin: center top;
}
.pcard__link { display: block; text-decoration: none; }
.pcard__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "head screen" "title screen" "foot screen";
  column-gap: clamp(20px, 4vw, 64px);
  min-height: min(78svh, 720px);
  padding: clamp(18px, 3vw, 40px);
  background: var(--c, var(--pink));
  border: var(--line) solid var(--ink);
}

.pcard--pink   { --c: var(--pink); }
.pcard--lime   { --c: var(--lime); }
.pcard--aqua   { --c: var(--aqua); }
.pcard--violet { --c: var(--violet); color: var(--paper); }

.pcard__head { grid-area: head; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.pcard__status { margin-left: auto; padding: .2em .6em; border: 2px solid currentColor; border-radius: 99px; }
.pcard__title {
  grid-area: title; align-self: center;
  margin: 1.4rem 0;
  font: 700 clamp(2rem, 4.2vw, 4.4rem)/.95 var(--display);
  letter-spacing: -.03em;
  hyphens: auto;
}
.pcard__foot { grid-area: foot; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.pcard__summary { max-width: 34ch; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.35; }
.pcard__go { flex: none; padding: .55em 1em; background: var(--ink); color: var(--paper); border-radius: 99px; transition: background-color .2s, color .2s; }
.pcard--violet .pcard__go { background: var(--paper); color: var(--ink); }
.pcard__link:hover .pcard__go { background: var(--lime); color: var(--ink); }
.pcard__screen { grid-area: screen; align-self: center; }

.browser {
  background: var(--paper); color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-bottom: var(--line) solid var(--ink);
}
.browser__url { opacity: .6; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser__view { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__view img, .browser__view video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.browser__view video { object-fit: contain; object-position: center; background: #fff; }
.pcard__link:hover .browser__view img { transform: scale(1.04); }
.browser__empty {
  display: grid; place-items: center; height: 100%;
  background-image:
    linear-gradient(to right, rgb(100 39 255 / .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(100 39 255 / .12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.browser__empty .house { width: 46%; transition: transform .7s var(--ease-bounce); filter: drop-shadow(6px 6px 0 var(--ink)); }
.pcard__link:hover .browser__empty .house { transform: rotate(-8deg) translateY(-6%) scale(1.06); }

.build { border-top: var(--line) solid var(--ink); background: #fff; }
.build__pin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  min-height: 100svh;
  padding: 110px var(--gutter) 60px;
}
.build .section-title { font-size: clamp(2.2rem, 4.6vw, 4.6rem); margin-bottom: 2.5rem; }
.build__steps { display: grid; gap: 1.1rem; counter-reset: s; }
.build__step {
  padding: .5rem 0;
  opacity: .35;
  transition: opacity .4s;
}
.build__step.is-active { opacity: 1; }
.build__step.is-done { opacity: .6; }
.build__room { color: var(--violet); }
.build__title { font: 400 clamp(1.2rem, 1.9vw, 1.8rem)/1.1 var(--brukt); margin: .2rem 0 0; }
.build__step.is-active .build__title, .build__step.is-done .build__title { font-family: var(--display); font-weight: 700; }
.build__desc {
  display: grid; grid-template-rows: 0fr;
  max-width: 46ch; font-size: .98rem; line-height: 1.45;
  transition: grid-template-rows .5s var(--ease-out);
}
.build__desc > span { overflow: hidden; }
.build__step.is-active .build__desc { grid-template-rows: 1fr; }

.build__drawing {
  aspect-ratio: 1;
  width: 100%;
  max-width: calc(100svh - 170px);
  justify-self: center;
  display: grid; place-items: center;
  border: 1.5px solid rgb(100 39 255 / .5);
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgb(100 39 255 / .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(100 39 255 / .12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.blueprint { width: 88%; overflow: visible; }
.bp-ink { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.bp-thick { stroke-width: 5; }
.bp-dashed { fill: none; stroke: var(--violet); stroke-dasharray: 10 8; }
.bp-dim { stroke: var(--violet); stroke-width: 1.5; }
.bp-hatch line { stroke: var(--ink); stroke-width: 1.5; }
.bp-bricks rect { fill: none; stroke: rgb(14 14 14 / .25); stroke-width: 1.5; }
.bp-text { font: 700 12px var(--mono); fill: var(--violet); text-transform: uppercase; }
.bp-code { font: 700 18px var(--mono); fill: var(--ink); }
.bp-layer { transform-box: fill-box; }

.toolbox { padding: clamp(80px, 14vh, 160px) var(--gutter) 0; background: var(--paper); border-top: var(--line) solid var(--ink); }
.toolbox__head { margin-bottom: 4vh; }
.toolbox__pit {
  position: relative;
  display: flex; flex-wrap: wrap; align-content: flex-end; gap: .5rem;
  height: clamp(420px, 70svh, 720px);
  margin-inline: calc(var(--gutter) * -1);
  padding: 2rem var(--gutter);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.tag {
  display: inline-block;
  min-width: 4.2em;
  padding: .5em .9em .55em;
  border: var(--line) solid var(--ink);
  border-radius: 3px;
  font: 700 clamp(1.1rem, 2.6vw, 2.4rem)/1 var(--display);
  text-align: center;
  white-space: nowrap;
  background: var(--c);
}
.tag--pink { --c: var(--pink); }
.tag--lime { --c: var(--lime); }
.tag--aqua { --c: var(--aqua); }
.tag--violet { --c: var(--violet); color: var(--paper); }
.toolbox__pit.is-physics .tag {
  position: absolute; left: 0; top: 0;
  cursor: grab;
  will-change: transform;
  visibility: hidden;
}
.toolbox__pit.is-physics.is-live .tag { visibility: visible; }
.toolbox__pit.is-grabbing .tag { cursor: grabbing; }

.contact {
  position: relative;
  overflow: hidden;
  background: var(--pink);
  border-top: var(--line) solid var(--ink);
}
.contact__inner { padding: clamp(80px, 16vh, 180px) var(--gutter) clamp(40px, 6vh, 80px); }
.contact__title {
  max-width: 14ch;
  font: 700 clamp(3rem, 8.6vw, 9.6rem)/.88 var(--display);
  letter-spacing: -.03em;
}
.contact__text { max-width: 38ch; margin: 2rem 0 2.5rem; font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.contact__mail {
  display: inline-block;
  max-width: 100%;
  padding: .3em .8em .4em;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  font: 700 clamp(1.2rem, 4.4vw, 4.4rem)/1.1 var(--sans);
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s;
}
.contact__mail:hover { background: var(--lime); }

.contact__houses {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1vw;
  padding: 0 var(--gutter);
  margin-top: 4vh;
}
.contact__house { width: 15%; height: auto; transform-origin: bottom center; }
.contact__house:nth-child(2) { width: 18%; }
.contact__house:nth-child(4) { width: 13%; }
.contact__house:nth-child(5) { width: 16%; }

.site-footer { position: relative; height: 50px; color: var(--ink); }
.site-footer__row {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--ink);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 2rem;
  padding: 8px var(--gutter) 14px;
  font: 700 .78rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fhouse {
  position: relative;
  display: inline-grid;
  grid-template-columns: 0fr;
  align-items: end;
  min-width: 34px;
  height: 28px;
  text-decoration: none;
  transition: grid-template-columns .5s var(--ease-out), height .5s var(--ease-out), padding .5s var(--ease-out);
}
.fhouse__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fhouse__label { position: relative; overflow: hidden; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.fhouse:hover, .fhouse:focus-visible { grid-template-columns: 1fr; height: 6.4em; padding: 0 1.4em .9em; }
.fhouse:hover .fhouse__label, .fhouse:focus-visible .fhouse__label { opacity: 1; transition: opacity .3s .18s; }
.fhouse:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .site-footer { height: auto; }
  .site-footer__row { position: static; }
  .fhouse { grid-template-columns: 1fr; height: 6.4em; padding: 0 1.4em .9em; transition: none; }
  .fhouse__label { opacity: 1; }
}

.phero {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: 190px var(--gutter) clamp(28px, 4vw, 48px);
  background: var(--c);
  border-bottom: var(--line) solid var(--ink);
  overflow: hidden;
}
.phero--pink { --c: var(--pink); }
.phero--lime { --c: var(--lime); }
.phero--aqua { --c: var(--aqua); }
.phero--violet { --c: var(--violet); color: var(--paper); }
.phero--violet .pill { color: var(--ink); }
.phero__top {
  position: absolute; top: 110px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.phero__title {
  position: relative; z-index: 1;
  font: 700 clamp(2.2rem, 4.6vw, 4.2rem)/1 var(--display);
  letter-spacing: -.025em;
}
.phero__house {
  flex: none;
  width: clamp(64px, 8vw, 112px);
}
.phero__house polygon { fill: var(--paper); }
.phero--violet .phero__house polygon { fill: var(--lime); }

body.tpl-project { background: #fff; }

.pinfo {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 6vw;
  padding: clamp(64px, 12vh, 140px) var(--gutter);
}
.pinfo__meta { display: grid; gap: 0; align-content: start; }
.pinfo__meta div { padding: .9rem 0; border-top: var(--line) solid var(--ink); }
.pinfo__meta div:last-child { border-bottom: var(--line) solid var(--ink); }
.pinfo__meta dt { opacity: .6; margin-bottom: .2rem; }
.pinfo__meta dd { font-weight: 500; font-size: 1.15rem; }
.pinfo__summary {
  font: 500 clamp(1.6rem, 3.4vw, 3.2rem)/1.1 var(--sans);
  letter-spacing: -.025em;
  margin-bottom: 3rem;
}
.pinfo__summary .split-word { opacity: .14; }

.prose { max-width: 62ch; font-size: 1.15rem; line-height: 1.6; }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--lime); }

.pgallery { padding: 0 var(--gutter) clamp(64px, 12vh, 140px); }
.pgallery[data-gallery] {
  position: relative;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.pgallery__track { display: flex; gap: 4px; height: 100%; width: max-content; padding: 0 var(--gutter); }
.pgallery__slide {
  flex: none;
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
  height: 100%;
  margin: 0;
  padding: 74px 0 58px;
}
.pgallery__media { flex: 1; min-height: 0; display: flex; align-items: center; }
.pgallery__media img, .pgallery__media video {
  display: block;
  width: auto; height: auto;
  max-height: 100%;
  max-width: calc(100vw - 2 * var(--gutter));
  object-fit: contain;
  background: #fff;
}
.pgallery__slide figcaption { opacity: .7; }
.pgallery__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 16px var(--gutter);
}
.pgallery__count { font-size: .8rem; letter-spacing: .04em; white-space: nowrap; }
.pgallery__next { border-width: 1.5px; border-radius: 0; background: var(--lime); transition: transform .25s var(--ease-out), background-color .2s; }
.pgallery__next:hover { transform: translateY(-2px); box-shadow: none; background: var(--aqua); }
.is-in-gallery .site-header.is-hidden { transform: none; }
@media (max-width: 767px) {
  .pgallery[data-gallery] { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .pgallery[data-gallery]::-webkit-scrollbar { display: none; }
  .pgallery__track { gap: 0; padding: 0; }
  .pgallery__slide { width: 100vw; height: auto; padding: 24px var(--gutter) 12px; scroll-snap-align: center; }
  .pgallery__media img, .pgallery__media video { width: 100%; height: auto; max-width: none; }
  .pgallery__bar { position: sticky; left: 0; width: 100vw; padding-bottom: 32px; justify-content: center; }
  .pgallery__next { display: none; }
}
.site-plan {
  display: grid; justify-items: center; gap: 1.5rem;
  padding: 10vh 2rem;
  border: 2px dashed var(--violet);
  color: var(--violet);
  background-image:
    linear-gradient(to right, rgb(100 39 255 / .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(100 39 255 / .1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.site-plan .house { width: min(320px, 60%); filter: drop-shadow(8px 8px 0 var(--ink)); }

.pnext {
  display: flex; align-items: center; gap: 1.2rem 2rem; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px) var(--gutter);
  background: var(--c);
  border-top: var(--line) solid var(--ink);
  text-decoration: none;
}
.pnext--pink { --c: var(--pink); }
.pnext--lime { --c: var(--lime); }
.pnext--aqua { --c: var(--aqua); }
.pnext--violet { --c: var(--violet); color: var(--paper); }
.pnext__title {
  font: 700 clamp(1.3rem, 2.2vw, 1.9rem)/1.1 var(--display);
  letter-spacing: -.02em;
  transition: transform .4s var(--ease-out);
}
.pnext__house {
  order: -1;
  width: 44px;
  transition: transform .5s var(--ease-bounce);
}
.pnext:hover .pnext__title { transform: translateX(6px); }
.pnext:hover .pnext__house { transform: rotate(-10deg); }

.listing { padding: 140px var(--gutter) 14vh; }
.listing__head { margin-bottom: 8vh; }
.listing__count { margin-top: 1.5rem; }
.basic { padding: 160px var(--gutter) 14vh; }
.basic .prose { margin-top: 3rem; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-3vh); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6vh); } }

@media (max-width: 900px) {
  .pcard__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "head" "title" "screen" "foot";
    min-height: 0;
    row-gap: 1.2rem;
  }
  .pcard__title { margin: .2rem 0 0; }
  .pcard { top: calc(76px + var(--i, 0) * 10px); }
  .pcard__foot { flex-direction: column; align-items: flex-start; }

  .build__pin { grid-template-columns: 1fr; min-height: 0; padding-top: 80px; }
  .build__drawing { order: -1; max-width: 520px; width: 100%; justify-self: center; }
  .build__step { opacity: 1; }
  .build__desc { grid-template-rows: 1fr; }

  .pinfo { grid-template-columns: 1fr; }
  .pinfo__body { order: -1; }
}

@media (max-width: 640px) {
  .site-header__nav .pill:not(.pill--solid):not(.pill--lang) { display: none; }
  .hero__plan { inset: 76px 12px 12px; }
  .plan-label--tr, .plan-label--br { display: none; }
  .hero__center { top: 20%; }
  .hero__title { font-size: 14vw; }
  .hero__sub { white-space: normal; text-align: center; }
  .contact__houses { gap: 2px; }
  .phero { padding-top: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .studio__text .split-word, .pinfo__summary .split-word { opacity: 1; }
  .hl { background-size: 100% 86%; }
  .build__step { opacity: 1; }
}

.contact .kicker::before { background: var(--lime); }
.pnext__house polygon { fill: var(--paper); }

.loader { display: none; }
.is-loading { overflow: hidden; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--paper);
}
.loader__logo { width: min(320px, 60vw); overflow: visible; }
.loader__front, .loader__layer {
  stroke: var(--ink); stroke-width: 5.5; stroke-linejoin: miter;
}
.loader__front { fill: transparent; }
.loader__layer { fill: var(--pink); opacity: 0; }
.loader__text, .loader__final { opacity: 0; }

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  border-top: var(--line) solid var(--ink);
  background: #fff;
}
.pricing .section-title { font-size: clamp(2.2rem, 4.6vw, 4.6rem); }
.pricing__intro { max-width: 40ch; margin-top: 1.6rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45; }
.pricing__start {
  display: inline-flex; flex-direction: column; gap: .4rem;
  margin-top: 2.4rem;
  padding: 1rem 1.4rem 1.1rem;
  border: var(--line) solid var(--ink);
  background: var(--lime);
}
.pricing__start strong { font: 700 clamp(2rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.02em; }

.quote { border-bottom: var(--line) solid var(--ink); }
.quote__row {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr);
  padding: 1.4rem 0;
  border-top: var(--line) solid var(--ink);
}
.quote__num { padding-top: .45em; color: var(--violet); }
.quote__line { display: flex; align-items: baseline; gap: .8rem; }
.quote__title { font: 700 clamp(1.25rem, 2vw, 1.75rem)/1.15 var(--display); letter-spacing: -.01em; }
.quote__leader {
  flex: 1; min-width: 2rem;
  border-bottom: 2px dotted var(--ink);
  transform-origin: left;
  translate: 0 -.25em;
}
.quote__price { font: 700 clamp(1.1rem, 1.7vw, 1.5rem)/1.15 var(--display); white-space: nowrap; }
.quote__text { max-width: 48ch; margin-top: .45rem; font-size: 1rem; line-height: 1.45; opacity: .75; }
.quote__row--extra .quote__num { color: var(--pink); font-size: 1.1rem; }

.pricing__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
  margin-top: 2rem;
}
.pricing__note { max-width: 36ch; font-size: 1rem; }

@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
  .quote__row { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .quote__line { flex-wrap: wrap; }
  .quote__leader { display: none; }
  .quote__price { flex-basis: 100%; color: var(--violet); }
}

.pill--lang { min-width: 2.6em; justify-content: center; background: transparent; }
