/* ============================================================
   Gessura — footer: big link, prompt field, quiet bar
   ============================================================ */

.g3-foot {
  margin-top: var(--pad);
  background: var(--coal);
}

/* -- the giant link into the generator ----------------------- */

.g3-foot-biglink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 6vh, 70px) clamp(24px, 6vw, 110px);
  border-block: 1px solid var(--hairline);
  transition: background var(--t-base) var(--ease);
}
.g3-foot-biglink:hover { background: rgba(255, 255, 255, .02); }
.g3-foot-biglink-text {
  font-weight: 200;
  font-size: clamp(40px, 6.5vw, 110px);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--bone);
  transition: color var(--t-base) var(--ease);
}
.g3-foot-biglink-arrow {
  font-weight: 200;
  font-size: clamp(36px, 5vw, 84px);
  color: var(--bone-faint);
  transition: translate .5s var(--ease), color var(--t-base) var(--ease);
}
.g3-foot-biglink:hover .g3-foot-biglink-arrow {
  translate: 18px 0;
  color: var(--ember);
}

/* -- the grid ------------------------------------------------- */

.g3-foot-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: clamp(36px, 5vw, 90px);
  padding-block: clamp(56px, 7vh, 90px);
}

.g3-foot-brand { display: grid; gap: 22px; justify-items: start; align-content: start; }
.g3-foot-word img { height: 34px; width: auto; display: block; mix-blend-mode: screen; }
.g3-foot-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--bone-faint);
  max-width: 40ch;
}

/* the working prompt field */
.g3-foot-prompt {
  display: flex;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-ctl);
  overflow: hidden;
  transition: border-color var(--t-quick) var(--ease);
}
.g3-foot-prompt:focus-within { border-color: var(--ember); }
.g3-foot-prompt-input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 12px 16px;
  background: #101013;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  color: var(--bone);
}
.g3-foot-prompt-input::placeholder { color: var(--bone-faint); }
.g3-foot-prompt-input:focus { outline: none; }
.g3-foot-prompt-go {
  padding-inline: 20px;
  background: #1B1B1F;
  border: 0;
  border-left: 1px solid var(--hairline);
  color: var(--bone);
  font-size: 20px;
  cursor: pointer;
  transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.g3-foot-prompt-go:hover { background: var(--ember); color: var(--ember-ink); }

.g3-foot-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 6px;
}
.g3-foot-head {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 6px;
}
.g3-foot-col > a {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--bone-soft);
  width: fit-content;
  transition: color var(--t-quick) var(--ease), padding-left var(--t-base) var(--ease);
}
.g3-foot-col > a:hover { color: var(--bone); padding-left: 6px; }

/* -- the bar -------------------------------------------------- */

.g3-foot-bar {
  position: relative;
  background: #070708;
}
.g3-foot-seam {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
}
.g3-foot-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 20px 24px;
}
.g3-foot-stamp {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-ctl);
  color: var(--bone-soft);
  background: #101013;
}

/* the big mark closes the grid on the right */
.g3-foot-mark {
  margin: 0;
  align-self: center;
  justify-self: end;
}
.g3-foot-mark img {
  width: clamp(140px, 14vw, 230px);
  height: auto;
  transition: rotate 1.2s var(--ease);
  /* dissolve the render's own black square into the page */
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
}
.g3-foot-mark:hover img { rotate: 120deg; }

/* bar composition */
.g3-foot-bar-brand { display: inline-flex; align-items: center; gap: 12px; }
.g3-foot-bar-brand img { width: 34px; height: 34px; mix-blend-mode: screen; }
.g3-foot-bar-nav { display: inline-flex; gap: 26px; }
.g3-foot-bar-nav a {
  font-size: 13px;
  color: var(--bone-faint);
  transition: color var(--t-quick) var(--ease);
}
.g3-foot-bar-nav a:hover { color: var(--bone); }
.g3-foot-top {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-ctl);
  color: var(--bone-soft);
  font-size: 13px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.g3-foot-top:hover { border-color: var(--ember); color: var(--bone); }

@media (max-width: 1024px) {
  .g3-foot-grid { grid-template-columns: 1fr 1fr; }
  .g3-foot-brand { grid-column: span 2; }
  .g3-foot-mark { grid-column: span 2; justify-self: center; }
}
@media (max-width: 640px) {
  .g3-foot-grid { grid-template-columns: 1fr; }
  .g3-foot-brand,
  .g3-foot-mark { grid-column: auto; }
  .g3-foot-prompt { max-width: none; }
  .g3-foot-bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .g3-foot-biglink-text { font-size: clamp(30px, 9vw, 44px); }
}
