

:root {
  --ink: #1c1b19;
  --muted: #76726a;
  --paper: #f4f3ef;
  --line: #dcd9d1;
  --orange: #e65e2c;
  --warm: #f0e6d8;
  --display: "Playfair Display", Georgia, serif;
  --body: "DM Sans", sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* Edit #3C-3 Starts Here */

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0.72);
  backdrop-filter: blur(4px);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 300 28px/1 var(--body);
  cursor: pointer;
}

.auth-modal-close:hover {
  color: var(--ink);
}

.auth-modal-eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
}

.auth-modal-dialog h2 {
  margin: 0 0 18px;
  font: 400 36px/1.05 var(--display);
}

.auth-modal-dialog > p:not(.auth-modal-eyebrow) {
  max-width: 380px;
  margin: 0 auto 28px;
  color: var(--muted);
  font: 400 16px/1.6 var(--body);
}

.auth-modal-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--orange);
  color: #fff;
  font: 600 11px/1 var(--mono);
  letter-spacing: .06em;
  text-decoration: none;
  transition:
    transform .15s ease,
    opacity .15s ease;
}

.auth-modal-login:hover {
  transform: translateY(-1px);
  opacity: .92;
}

@media (max-width: 600px) {
  .auth-modal-dialog {
    padding: 42px 24px 32px;
  }

  .auth-modal-dialog h2 {
    font-size: 30px;
  }

  .auth-modal-login {
    width: 100%;
  }
}

/* Edit #3C-3 Ends Here */

/* ========================================
   HEADER
   ======================================== */

.site-header {
  height: 76px;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  text-decoration: none;
  letter-spacing: .06em;
  white-space: nowrap;
}

.brand strong {
  color: var(--orange);
  font-weight: 500;
}

.brand-mark {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--orange);
  font: 500 12px/1 var(--display);
}

nav {
  display: flex;
  gap: clamp(17px, 2.5vw, 38px);
  align-items: center;
}

nav a {
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  color: #57544d;
}

nav .nav-build {
  color: var(--orange);
}


/* ========================================
   COMMON PAGE WIDTH
   ======================================== */

.intro,
.gallery-section,
.starting-points,
.connection {
  max-width: 1440px;
  margin: auto;
  padding-left: clamp(22px, 4vw, 64px);
  padding-right: clamp(22px, 4vw, 64px);
}


/* ========================================
   INTRO
   ======================================== */

.intro {
  padding-top: clamp(74px, 11vw, 156px);
  padding-bottom: clamp(58px, 9vw, 118px);
}

.eyebrow,
.gallery-heading,
.card-head,
.card-footer,
.start-panel > p,
.micro-instruction {
  font: 500 10px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--orange);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 8vw;
  align-items: end;
}

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

h1 {
  margin-bottom: 0;
  font: 600 clamp(46px, 7.1vw, 108px)/.91 var(--display);
  letter-spacing: -.055em;
  max-width: 930px;
}

h1 em,
h2 em {
  color: var(--orange);
  font-weight: 600;
}

.intro-copy {
  padding-bottom: 8px;
  max-width: 400px;
}

.intro-copy p {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.015em;
}

.intro-copy .intro-instruction {
  margin: 27px 0 0;
  color: var(--muted);
  font: 500 11px/1.45 var(--mono);
  letter-spacing: -.02em;
}

.micro-instruction {
  margin: clamp(60px, 9vw, 124px) 0 0;
  color: var(--muted);
}


/* ========================================
   GALLERY
   ======================================== */

.gallery-section {
  padding-bottom: clamp(96px, 12vw, 168px);
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
}

.gallery-heading p {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(22px, 2.8vw, 46px);
  row-gap: clamp(48px, 6vw, 82px);
  padding-top: 30px;
}

.design-card {
  min-width: 0;
  animation: rise .6s both;
}

.design-card:nth-child(2) {
  animation-delay: .04s;
}

.design-card:nth-child(3) {
  animation-delay: .08s;
}

.design-card:nth-child(4) {
  animation-delay: .12s;
}

.design-card:nth-child(5) {
  animation-delay: .16s;
}

.design-card:nth-child(6) {
  animation-delay: .20s;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  color: var(--muted);
}

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

.card-head p {
  margin: 0;
  font-size: 9px;
  letter-spacing: .03em;
}

.design-card h2 {
  margin: 0;
  font: 600 clamp(25px, 2.4vw, 35px)/1 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.descriptor {
  margin: 7px 0 19px;
  color: #615e58;
  font-size: 12px;
  line-height: 1.25;
}

.preview-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.browser-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.42 / 1;
  border: 1px solid #cfcac0;
  background: #fff;
  box-shadow: 0 9px 18px rgba(32, 28, 21, .08);
  transition: transform .32s ease, box-shadow .32s ease;
}

.preview-link:hover .browser-frame {
  transform: translateY(-4px);
  box-shadow: 0 16px 25px rgba(32, 28, 21, .14);
}

.browser-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 9px;
  background: var(--ink);
  color: #fff;
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .97;
}

.preview-cta b {
  font-size: 13px;
  color: var(--orange);
  margin-left: 3px;
}

.description {
  min-height: 57px;
  margin: 18px 0 14px;
  color: #55524d;
  font-size: 13px;
  line-height: 1.48;
  letter-spacing: -.01em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.prompt-button {
  padding: 9px 11px;
  border: 1px solid #aaa49a;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color .2s,
    background .2s,
    color .2s;
}

.prompt-button:hover {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.prompt-button b {
  color: var(--orange);
  font-size: 12px;
}


/* ========================================
   CLOSING GALLERY PANEL
   ======================================== */

.start-panel {
  position: relative;
  min-height: 100%;
  padding: clamp(23px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--orange);
  color: #1c1b19;
}

.start-panel::before {
  content: "";
  position: absolute;
  top: -42%;
  right: -35%;
  width: 95%;
  aspect-ratio: 1;
  border: 1px solid rgba(28, 27, 25, .25);
  border-radius: 50%;
  box-shadow:
    0 0 0 23px rgba(28, 27, 25, .11),
    0 0 0 47px rgba(28, 27, 25, .07);
}

.start-panel > * {
  position: relative;
  z-index: 1;
}

.start-panel > p {
  margin: 0;
}

.start-panel h2 {
  margin: clamp(34px, 5vw, 66px) 0 24px;
  font: 600 clamp(30px, 3.6vw, 52px)/.91 var(--display);
  letter-spacing: -.06em;
}

.start-panel h2 em {
  color: #fff5e6;
}

.start-panel div {
  display: flex;
  gap: 10px;
  max-width: 302px;
}

.start-panel div p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.panel-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  margin-top: 5px;
  background: #fff5e6;
}

.start-panel a {
  width: fit-content;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.start-panel a b {
  margin-left: 6px;
  font-size: 15px;
}


/* ========================================
   HOW IT WORKS
   ======================================== */

.starting-points {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 9vw;
  padding-top: clamp(80px, 10vw, 142px);
  padding-bottom: clamp(88px, 10vw, 148px);
  border-top: 1px solid var(--line);
}

.starting-points h2,
.connection h2 {
  margin-bottom: 0;
  font: 600 clamp(33px, 4.3vw, 62px)/.96 var(--display);
  letter-spacing: -.06em;
}

.starting-copy > p {
  max-width: 510px;
  margin: 5px 0 62px;
  font-size: 16px;
  line-height: 1.58;
  color: #4f4c46;
  letter-spacing: -.015em;
}

.process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}

.process div {
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.process span {
  color: var(--orange);
  font: 500 9px/1 var(--mono);
}

.process strong {
  display: block;
  margin-top: 14px;
  font: 600 18px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.process p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.process > b {
  padding-top: 11px;
  color: var(--orange);
  font: 400 17px/1 var(--display);
}


/* ========================================
   XBOT77 + ORANGE
   ======================================== */

.connection {
  padding-top: clamp(68px, 9vw, 120px);
  padding-bottom: clamp(82px, 10vw, 136px);
  background: #e8e3da;
}

.connection h2 {
  max-width: 610px;
}

.connection > p:last-child {
  max-width: 475px;
  margin: 30px 0 0;
  color: #55514a;
  font-size: 15px;
  line-height: 1.55;
}


/* ========================================
   FOOTER
   ======================================== */

footer {
  min-height: 106px;
  padding: 0 clamp(22px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
}

footer p:nth-child(2) {
  text-align: center;
}


/* ========================================
   ANIMATION
   ======================================== */

@keyframes rise {

  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 900px) {

  .gallery-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .starting-points {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro-copy {
    max-width: 560px;
  }

  .process {
    max-width: 590px;
  }

  .start-panel {
    min-height: 390px;
  }

}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 600px) {

  .site-header {
    height: 66px;
  }

  .brand {
    font-size: 10px;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 9px;
  }

  nav a:not(.nav-build) {
    display: none;
  }

  .intro {
    padding-top: 64px;
  }

  .intro-grid {
    gap: 29px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .intro-copy p {
    font-size: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }

  .gallery-heading {
    font-size: 9px;
  }

  .design-card h2 {
    font-size: 32px;
  }

  .browser-frame {
    aspect-ratio: 1.38 / 1;
  }

  .description {
    min-height: 0;
  }

  .start-panel {
    min-height: 345px;
  }

  .starting-points {
    gap: 39px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .process > b {
    display: none;
  }

  .process div {
    display: grid;
    grid-template-columns: 36px auto;
    column-gap: 8px;
  }

  .process strong {
    margin-top: 0;
  }

  .process p {
    grid-column: 2;
  }

  .connection h2,
  .starting-points h2 {
    font-size: 38px;
  }

  footer {
    min-height: 137px;
    grid-template-columns: 1fr auto;
    padding-top: 25px;
    padding-bottom: 25px;
  }

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

  footer p:last-child {
    text-align: right;
    font-size: 9px;
  }

}

