:root {
  --ink: #102236;
  --paper: #f3f4ec;
  --white: #fffef8;
  --blue: #4a63ff;
  --orange: #ff6a35;
  --lime: #c9ff38;
  --line: rgba(16, 34, 54, 0.19);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.diagonal {
  transform: rotate(-45deg);
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.brand-dot {
  color: var(--orange);
}

.open-mark {
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.open-mark-door {
  position: absolute;
  width: 14px;
  height: 24px;
  border: 2px solid var(--lime);
  border-right: 0;
  left: 8px;
  top: 7px;
}

.open-mark .icon {
  width: 16px;
  margin-left: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.76rem;
  font-weight: 800;
}

nav > a:not(.header-link) {
  transition: color 180ms ease;
}

nav > a:not(.header-link):hover {
  color: var(--blue);
}

.header-link {
  min-height: 44px;
  padding: 0 17px;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: background 180ms ease;
}

.header-link:hover {
  background: var(--blue);
}

.hero {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 720px;
  padding-top: 66px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(16, 34, 54, 0.32) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to right, transparent 20%, black 65%);
}

.hero-grid {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.88fr);
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.19em;
  font-weight: 900;
}

.eyebrow {
  display: flex;
  gap: 18px;
  align-items: center;
  color: #617082;
  margin-bottom: 30px;
}

.eyebrow span {
  color: var(--orange);
}

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

h1 {
  font-size: clamp(4rem, 7.4vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: -0.078em;
  margin: 0 0 34px;
  font-weight: 900;
}

h1 em {
  color: var(--blue);
  font-style: normal;
  position: relative;
  display: inline-block;
}

h1 em::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: -0.04em;
  bottom: -0.07em;
  height: 0.08em;
  background: var(--orange);
  transform: rotate(-2deg);
}

.hero-text {
  max-width: 520px;
  color: #586979;
  font-size: 1.08rem;
  line-height: 1.68;
}

.primary-button {
  min-height: 56px;
  margin-top: 20px;
  padding: 0 22px;
  background: var(--lime);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.door-scene {
  height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.scene-label {
  position: absolute;
  top: 4px;
  right: 17%;
  padding: 8px 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  transform: rotate(4deg);
}

.door-frame {
  width: min(380px, 84vw);
  height: 360px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 16px 16px 0 var(--blue);
  position: relative;
  z-index: 3;
  animation: door-breathe 5s ease-in-out infinite;
}

.door-top {
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid var(--ink);
}

.door-panel {
  height: calc(100% - 54px);
  margin-left: 26%;
  padding: 36px 27px;
  border-left: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.door-panel::before {
  content: "MY PLACE";
  position: absolute;
  top: 22px;
  left: 27px;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  font-weight: 900;
  opacity: 0.58;
}

.door-panel p {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.07em;
  word-break: break-word;
  margin-bottom: 22px;
}

.door-button {
  width: 58px;
  height: 58px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.path-tab {
  position: absolute;
  min-height: 45px;
  padding: 0 15px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  z-index: 4;
  box-shadow: 5px 5px 0 var(--ink);
}

.path-tab-one {
  background: var(--orange);
  color: var(--white);
  left: 2%;
  top: 96px;
  transform: rotate(-5deg);
}

.path-tab-two {
  background: var(--lime);
  right: -2%;
  top: 178px;
  transform: rotate(4deg);
}

.path-tab-three {
  background: var(--white);
  left: 0;
  bottom: 68px;
  transform: rotate(3deg);
}

.scene-note {
  position: absolute;
  font-size: 0.54rem;
  letter-spacing: 0.17em;
  font-weight: 900;
  color: #778392;
}

.note-one {
  left: 6%;
  top: 35px;
}

.note-two {
  right: 2%;
  bottom: 22px;
}

.hero-footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 25px;
  font-size: 0.56rem;
  letter-spacing: 0.17em;
  font-weight: 900;
  color: #74818e;
}

.scroll-line {
  height: 1px;
  background: var(--line);
}

.statement {
  padding: 128px max(24px, calc((100vw - 1240px) / 2));
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 0.34fr 1.66fr;
  gap: 40px;
}

.section-label {
  color: var(--orange);
  margin-bottom: 0;
}

.statement-copy h2,
.pattern-heading h2,
.places-intro h2,
.final-copy h2 {
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.068em;
  font-weight: 900;
  margin-bottom: 0;
}

.statement-copy h2 span {
  color: var(--lime);
}

.statement-copy > p {
  max-width: 520px;
  margin: 42px 0 0 auto;
  color: #aab4bf;
  font-size: 1rem;
  line-height: 1.75;
}

.pattern-section {
  padding: 128px max(24px, calc((100vw - 1240px) / 2));
  background: var(--white);
}

.pattern-heading {
  display: grid;
  grid-template-columns: 0.34fr 1.66fr;
  align-items: end;
  margin-bottom: 80px;
}

.pattern-builder {
  padding: 28px;
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 0.45fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 72px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.builder-prefix,
.builder-path,
.builder-result {
  min-height: 114px;
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.builder-path {
  background: var(--lime);
}

.builder-result {
  background: var(--orange);
  color: var(--white);
  align-items: center;
  gap: 12px;
}

.builder-prefix small,
.builder-path small,
.builder-result small {
  font-size: 0.53rem;
  letter-spacing: 0.16em;
  font-weight: 900;
  opacity: 0.58;
  margin-bottom: 11px;
}

.builder-prefix strong,
.builder-path strong {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  letter-spacing: -0.045em;
}

.builder-plus,
.builder-equals {
  font-size: 1.8rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.example-card {
  min-height: 350px;
  padding: 24px;
  border: 2px solid var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.example-card:hover {
  transform: translateY(-7px);
  box-shadow: 8px 8px 0 var(--ink);
}

.card-blue {
  background: var(--blue);
  color: var(--white);
}

.card-orange {
  background: var(--orange);
  color: var(--white);
}

.card-lime {
  background: var(--lime);
}

.card-index,
.card-type {
  font-size: 0.57rem;
  letter-spacing: 0.16em;
  font-weight: 900;
}

.card-type {
  position: absolute;
  right: 24px;
  top: 24px;
  opacity: 0.64;
}

.example-card h3 {
  margin: auto 0 25px;
  font-size: clamp(2.1rem, 3.1vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}

.example-card h3 small {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  opacity: 0.62;
}

.card-arrow {
  width: 56px;
  height: 56px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
}

.places {
  padding: 128px max(24px, calc((100vw - 1240px) / 2));
  background: var(--paper);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.places-intro .section-label {
  margin-bottom: 28px;
}

.places-list {
  border-top: 1px solid var(--ink);
}

.places-list article {
  min-height: 170px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 55px 1fr 72px;
  align-items: center;
  gap: 20px;
}

.place-number {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--orange);
}

.place-copy h3 {
  font-size: 1.35rem;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

.place-copy p {
  max-width: 440px;
  color: #657381;
  line-height: 1.55;
  font-size: 0.88rem;
  margin-bottom: 0;
}

.mini-shape {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

.shape-circle {
  border-radius: 50%;
  background: var(--blue);
}

.shape-arrow {
  background: var(--orange);
  color: var(--white);
}

.shape-square {
  background: var(--lime);
  border: 1px solid var(--ink);
  transform: rotate(12deg);
}

.final-section {
  min-height: 600px;
  padding: 112px max(24px, calc((100vw - 1240px) / 2));
  background: var(--blue);
  color: var(--white);
}

.final-section .section-label {
  color: var(--lime);
  margin-bottom: 76px;
}

.final-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.final-copy h2 span {
  color: var(--lime);
}

.final-copy > a {
  width: 116px;
  height: 116px;
  background: var(--orange);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: transform 220ms ease;
}

.final-copy > a:hover {
  transform: rotate(45deg);
}

.final-copy > a .icon {
  width: 40px;
  height: 40px;
}

footer {
  width: min(1240px, calc(100% - 48px));
  min-height: 120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: #64717e;
  font-size: 0.7rem;
}

footer p {
  margin-bottom: 0;
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

@keyframes door-breathe {
  0%,
  100% {
    transform: perspective(800px) rotateY(-3deg) translateY(0);
  }
  50% {
    transform: perspective(800px) rotateY(2deg) translateY(-8px);
  }
}

@media (max-width: 960px) {
  nav > a:not(.header-link) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .door-scene {
    height: 510px;
  }

  .statement,
  .pattern-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .pattern-builder {
    grid-template-columns: 1fr;
  }

  .builder-plus,
  .builder-equals {
    min-height: 30px;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .example-card {
    min-height: 280px;
  }

  .places {
    grid-template-columns: 1fr;
    gap: 70px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  footer {
    width: min(100% - 32px, 1240px);
  }

  .site-header {
    min-height: 74px;
  }

  .header-link {
    min-height: 39px;
    padding: 0 12px;
  }

  .header-link .icon {
    display: none;
  }

  nav {
    font-size: 0.68rem;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-grid {
    gap: 24px;
  }

  h1 {
    font-size: clamp(3.45rem, 17vw, 5.2rem);
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .door-scene {
    height: 440px;
  }

  .door-frame {
    height: 310px;
    width: min(320px, 82vw);
    box-shadow: 10px 10px 0 var(--blue);
  }

  .door-panel {
    padding: 28px 20px;
  }

  .door-panel p {
    font-size: 2.35rem;
  }

  .path-tab {
    font-size: 0.62rem;
  }

  .path-tab-one {
    left: 0;
  }

  .path-tab-two {
    right: 0;
  }

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

  .hero-footer span:last-child {
    display: none;
  }

  .statement,
  .pattern-section,
  .places,
  .final-section {
    padding: 88px 20px;
  }

  .statement-copy h2,
  .pattern-heading h2,
  .places-intro h2,
  .final-copy h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .statement-copy > p {
    margin-left: 0;
  }

  .pattern-heading {
    margin-bottom: 54px;
  }

  .pattern-builder {
    padding: 16px;
    margin-bottom: 52px;
  }

  .builder-prefix,
  .builder-path,
  .builder-result {
    min-height: 98px;
  }

  .example-card {
    min-height: 250px;
  }

  .places-list article {
    min-height: 190px;
    grid-template-columns: 36px 1fr 48px;
    gap: 12px;
  }

  .mini-shape {
    width: 44px;
    height: 44px;
  }

  .final-section {
    min-height: 500px;
  }

  .final-section .section-label {
    margin-bottom: 54px;
  }

  .final-copy {
    align-items: flex-end;
  }

  .final-copy > a {
    width: 76px;
    height: 76px;
  }

  .final-copy > a .icon {
    width: 28px;
    height: 28px;
  }

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

  footer p:nth-child(2) {
    display: none;
  }

  footer p:last-child {
    text-align: right;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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