/* Supporting sections for the TriNeuron Studio gallery. */
.how-section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(145deg, #02050c, #07101b 60%, #02050c);
  overflow: hidden;
}
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.how-layout > * {
  min-width: 0;
}
.how-intro h2 {
  margin: 25px 0 24px;
}
.how-intro > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}
.dimension-art {
  height: 245px;
  width: min(100%, 400px);
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  margin-top: 38px;
  perspective: 700px;
}
.dimension-art:before {
  content: "";
  position: absolute;
  inset: 25% 17%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #2ee6ff1c, transparent 70%);
  filter: blur(22px);
}
.dimension-orbit {
  position: absolute;
  width: 78%;
  height: 68%;
  border: 1px solid #2ee6ff38;
  border-radius: 50%;
  transform: rotateX(58deg) rotateZ(-30deg);
  box-shadow: 0 0 20px #2ee6ff08;
}
.dimension-orbit:nth-child(2) {
  width: 62%;
  height: 84%;
  border-color: #b7ff5a40;
  transform: rotateY(52deg) rotateZ(27deg);
}
.dimension-orbit:nth-child(3) {
  width: 86%;
  height: 49%;
  border-color: #8ca7cb29;
  transform: rotateZ(26deg);
}
.dimension-art > span {
  font-size: 78px;
  font-weight: 650;
  letter-spacing: -6px;
  color: var(--text);
  line-height: 1.2;
  text-shadow: 0 0 35px #2ee6ff40;
  transform: rotate(-8deg);
}
.dimension-art > span > span {
  color: var(--cyan);
  font-size: 46px;
  vertical-align: top;
  display: inline-block;
  margin: 4px 0 0 3px;
}
.dimension-art > i {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 3px;
  white-space: nowrap;
  font-style: normal;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  padding: 30px 0 33px;
  border-top: 1px solid var(--line);
}
.steps li:first-child {
  padding-top: 5px;
  border-top: 0;
}
.steps li > span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--cyan);
  margin-bottom: 14px;
  font-weight: 600;
}
.steps h3 {
  font-size: 23px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -0.65px;
  margin: 0 0 13px;
  color: var(--text);
}
.steps p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 470px;
  margin: 0;
}
.steps a {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef3fb3d;
}
.steps a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.brief-section {
  padding: 116px 0;
  background:
    radial-gradient(ellipse at 16% 10%, #2ee6ff09, transparent 50%), #030710;
  border-top: 1px solid var(--line);
}
.brief-layout {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 105px;
  align-items: start;
}
.brief-layout > * {
  min-width: 0;
}
.brief-intro h2 {
  margin: 25px 0 26px;
}
.brief-intro > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 455px;
}
.studio-contact {
  padding-top: 37px;
  margin-top: 35px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 40px;
}
.studio-contact h3 {
  margin: 0 0 21px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
}
.contact-actions {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}
.contact-actions > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  padding: 18px 18px 19px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff05, #ffffff02);
  border-radius: 12px;
  min-width: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.contact-label {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.contact-actions strong {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.5;
  white-space: nowrap;
}
.contact-actions > a > span:last-child {
  align-self: center;
  color: var(--cyan);
  font-size: 18px;
}
.contact-actions > a:hover {
  border-color: #2ee6ff70;
  background: #2ee6ff09;
}
.studio-website {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 23px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.studio-website:hover {
  color: var(--cyan);
}
#brief-form {
  border: 1px solid #a4c9f125;
  border-radius: 18px;
  padding: 33px;
  background: linear-gradient(145deg, #0c1726e8, #070e18);
  box-shadow: 0 25px 70px #0003;
  min-width: 0;
}
.form-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.form-heading h3 {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.6;
  margin: 0;
  letter-spacing: -0.4px;
}
.form-heading > span:last-child {
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
#brief-form label {
  display: block;
  font-size: 12px;
  color: #c2cfe2;
  line-height: 1.7;
  margin-bottom: 9px;
}
#brief-form input,
#brief-form select,
#brief-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #94c5ff24;
  border-radius: 8px;
  background: #020710a8;
  color: var(--text);
  padding: 13px 14px;
  margin-bottom: 21px;
  font: inherit;
  font-size: 13px;
  line-height: 1.75;
  transition:
    border-color 0.2s,
    background 0.2s;
  color-scheme: dark;
}
#brief-form input::placeholder,
#brief-form textarea::placeholder {
  color: #72839c;
  opacity: 1;
}
#brief-form input:hover,
#brief-form select:hover,
#brief-form textarea:hover {
  border-color: #94c5ff45;
}
#brief-form input:focus,
#brief-form select:focus,
#brief-form textarea:focus {
  border-color: var(--cyan);
  background: #050d18;
}
#brief-form textarea {
  resize: vertical;
  min-height: 112px;
}
#brief-form select {
  padding-right: 32px;
  text-overflow: ellipsis;
}
#brief-form > .button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 4px;
}
.brief-note {
  font-size: 10px;
  line-height: 1.9;
  color: #8191aa;
  margin: 17px 0 0;
  max-width: 385px;
}
#brief-output {
  padding-top: 26px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
#brief-output[hidden] {
  display: none;
}
#brief-output textarea {
  min-height: 210px;
  font-size: 12px;
  line-height: 1.9;
}
.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brief-actions button {
  border: 1px solid #2ee6ff42;
  border-radius: 6px;
  background: #2ee6ff08;
  color: var(--cyan);
  padding: 10px 15px;
  font: inherit;
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}
.brief-actions button:hover {
  background: #2ee6ff17;
  border-color: var(--cyan);
}
#brief-status {
  font-size: 11px;
  line-height: 1.8;
  color: var(--lime);
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.site-footer {
  padding: 0 0 30px;
  background: #02050c;
  color: var(--muted);
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-top > p {
  margin: 0 0 0 auto;
  font-size: 13px;
  line-height: 1.8;
  color: #b7c5d9;
}
.back-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #9abbd936;
  border-radius: 50%;
  color: var(--text);
  font-size: 21px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.back-top:hover {
  background: #2ee6ff10;
  border-color: var(--cyan);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 27px;
  font-size: 10px;
  line-height: 1.9;
}
.footer-contact {
  display: flex;
  gap: 26px;
  align-items: center;
}
.footer-bottom a:hover {
  color: var(--cyan);
}
#preview-dialog {
  box-sizing: border-box;
  max-width: none;
  width: calc(100% - 32px);
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #8cb3db36;
  border-radius: 16px;
  overflow: hidden;
  color: var(--text);
  background: #070d17;
  box-shadow: 0 30px 120px #0009;
  color-scheme: dark;
}
#preview-dialog[open] {
  display: flex;
  flex-direction: column;
}
#preview-dialog::backdrop {
  background: #01040bdd;
  backdrop-filter: blur(12px);
}
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: #0b1422;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.preview-toolbar > div:first-child {
  flex: 1;
  min-width: 0;
}
.preview-label {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--cyan);
  display: block;
  margin-bottom: 4px;
}
.preview-toolbar h2 {
  font-size: 17px !important;
  line-height: 1.5 !important;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0;
  overflow-wrap: anywhere;
}
.device-switch {
  display: flex;
  gap: 4px;
  flex: none;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #020710;
}
.device-switch button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  line-height: 1.6;
  padding: 8px 15px;
  cursor: pointer;
  white-space: nowrap;
}
.device-switch button[aria-pressed="true"] {
  background: #2ee6ff1c;
  color: var(--cyan);
}
#preview-open {
  font-size: 11px;
  line-height: 1.7;
  color: #c7d8ed;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
#preview-open:hover {
  color: var(--cyan);
}
#preview-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
#preview-close:hover {
  border-color: var(--cyan);
  background: #2ee6ff0d;
}
.preview-stage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #192338, #080f1b);
}
#preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 45px #0005;
  color-scheme: light;
}
.preview-stage.mobile #preview-frame {
  border-radius: 16px;
}
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: #0b1422;
  font-size: 11px;
  line-height: 1.7;
  flex: none;
}
.preview-footer > span {
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
#choose-template {
  border: 0;
  border-radius: 6px;
  background: var(--lime);
  color: #101908;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
  padding: 10px 16px;
  flex: none;
  cursor: pointer;
  white-space: nowrap;
}
#choose-template:hover {
  background: #d1ff96;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 13px 21px;
  background: #122033;
  border: 1px solid #2ee6ff45;
  border-radius: 9px;
  box-shadow: 0 12px 50px #0006;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1100px) {
  .how-layout {
    gap: 60px;
  }
  .brief-layout {
    gap: 55px;
  }
  .contact-actions {
    grid-template-columns: 1fr;
  }
  .contact-actions > a {
    grid-template-columns: 1fr auto;
    padding: 16px 18px;
  }
  .contact-label {
    grid-column: auto;
    align-self: center;
  }
  .contact-actions strong {
    grid-column: 1;
    grid-row: 2;
  }
  .contact-actions > a > span:last-child {
    grid-column: 2;
    grid-row: 1/3;
  }
  #brief-form {
    padding: 28px;
  }
  .form-heading {
    flex-wrap: wrap;
  }
  .form-heading > span:last-child {
    display: none;
  }
}
@media (max-width: 800px) {
  .how-section {
    padding: 80px 0;
  }
  .how-layout {
    gap: 40px;
  }
  .steps h3 {
    font-size: 21px;
  }
  .steps p {
    font-size: 13px;
  }
  .brief-section {
    padding: 85px 0;
  }
  .brief-layout {
    gap: 35px;
    grid-template-columns: 1fr 0.94fr;
  }
  #brief-form {
    padding: 23px;
  }
  .preview-toolbar {
    gap: 12px;
    padding: 13px 16px;
  }
  .device-switch button {
    padding: 7px 11px;
  }
  .footer-top {
    gap: 22px;
  }
  .footer-top > p {
    font-size: 11px;
    max-width: 150px;
  }
  .footer-bottom {
    gap: 15px;
  }
  .footer-contact {
    gap: 15px;
  }
}
@media (max-width: 620px) {
  .how-section {
    padding: 66px 0;
  }
  .how-layout,
  .brief-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .how-intro h2,
  .brief-intro h2 {
    margin-top: 20px;
    margin-bottom: 22px;
  }
  .how-intro > p:not(.eyebrow),
  .brief-intro > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.9;
  }
  .dimension-art {
    height: 210px;
    margin: 22px auto 0;
    max-width: 330px;
  }
  .dimension-art > span {
    font-size: 65px;
  }
  .dimension-art > span > span {
    font-size: 37px;
  }
  .steps li {
    padding: 25px 0 28px;
  }
  .steps li:first-child {
    border-top: 1px solid var(--line);
    padding-top: 27px;
  }
  .steps h3 {
    font-size: 22px;
    line-height: 1.5;
  }
  .steps p {
    font-size: 13px;
  }
  .brief-section {
    padding: 68px 0;
  }
  .brief-layout {
    gap: 37px;
  }
  .studio-contact {
    padding-top: 27px;
    margin-top: 27px;
  }
  .contact-actions {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .contact-actions > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 13px;
  }
  .contact-label {
    font-size: 9px;
  }
  .contact-actions strong {
    font-size: 17px;
    letter-spacing: -0.5px;
  }
  .contact-actions > a > span:last-child {
    display: none;
  }
  .studio-website {
    font-size: 10px;
    gap: 10px;
  }
  #brief-form {
    padding: 24px 21px;
    border-radius: 14px;
  }
  .form-heading {
    padding-bottom: 21px;
    margin-bottom: 22px;
  }
  .form-heading h3 {
    font-size: 17px;
  }
  #brief-form input,
  #brief-form select,
  #brief-form textarea {
    font-size: 13px;
    padding: 12px;
    margin-bottom: 19px;
  }
  .brief-note {
    font-size: 10px;
  }
  .footer-top {
    flex-wrap: wrap;
    padding: 31px 0 27px;
    gap: 20px;
  }
  .footer-top > .brand-lockup {
    flex: 1;
  }
  .footer-top > p {
    order: 3;
    max-width: none;
    width: 100%;
    margin: 0;
    font-size: 12px;
  }
  .back-top {
    width: 40px;
    height: 40px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 10px;
    gap: 12px 20px;
    padding-top: 23px;
  }
  .footer-bottom > span {
    width: 100%;
  }
  .footer-contact {
    margin-left: auto;
    gap: 15px;
  }
  .site-footer {
    padding-bottom: 25px;
  }
  #preview-dialog {
    width: 100%;
    height: 100dvh;
    max-width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
  }
  .preview-toolbar {
    flex-wrap: wrap;
    gap: 11px;
    padding: 12px;
  }
  .preview-toolbar > div:first-child {
    order: 0;
    flex: 1;
    min-width: 0;
    flex-basis: calc(100% - 52px);
  }
  .preview-toolbar h2 {
    font-size: 15px !important;
  }
  #preview-close {
    order: 1;
    width: 34px;
    height: 34px;
  }
  .device-switch {
    order: 2;
  }
  .device-switch button {
    font-size: 10px;
    padding: 7px 11px;
  }
  #preview-open {
    order: 3;
    margin-left: auto;
    font-size: 10px;
  }
  .preview-stage {
    padding: 8px;
  }
  .preview-footer {
    padding: 10px 12px;
    gap: 12px;
    font-size: 9px;
  }
  #choose-template {
    padding: 9px 11px;
    font-size: 10px;
  }
  .toast {
    font-size: 11px;
    padding: 12px 16px;
    bottom: 18px;
  }
}
@media (max-width: 360px) {
  .contact-actions {
    grid-template-columns: 1fr;
  }
  .contact-actions > a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
  }
  .contact-actions strong {
    grid-row: 2;
    grid-column: 1;
    font-size: 20px;
  }
  .contact-actions > a > span:last-child {
    display: block;
    grid-row: 1/3;
    grid-column: 2;
  }
  .footer-contact {
    width: 100%;
    margin-left: 0;
  }
  #brief-form {
    padding: 22px 16px;
  }
  .brief-actions button {
    padding: 9px 12px;
  }
  .preview-footer {
    align-items: flex-start;
  }
  .preview-footer > span {
    max-width: 47%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-actions > a,
  .back-top,
  .brief-actions button,
  #brief-form input,
  #brief-form select,
  #brief-form textarea,
  .toast {
    transition: none;
  }
  .dimension-art > span {
    transform: none;
  }
}
