:root {
  color-scheme: light;
  --paper: #F5F2EC;
  --ink: #0C1412;
  --patina: #1E3330;
  --rule: rgb(30 51 48 / 28%);
  font-family: "niveau-grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-image:
    linear-gradient(rgb(30 51 48 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(30 51 48 / 4%) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page {
  width: 100%;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.identity, .intro, .contact-inner, footer p {
  width: min(100% - 112px, 1200px);
  margin-inline: auto;
}

.identity { padding-block: 48px 64px; }
.identity img { display: block; width: 184px; max-width: 100%; height: auto; }
main { flex: 1; }

.intro {
  position: relative;
  border-inline: 1px solid var(--rule);
  padding: clamp(32px, 5vw, 68px);
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  left: -13px;
  right: -13px;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.intro::before { top: 12px; }
.intro::after { bottom: 12px; }

.eyebrow {
  margin: 0 0 32px;
  color: var(--patina);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6.5vw, 86px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.02em;
}

h1 span { display: block; }

.description {
  max-width: 640px;
  margin: 32px 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

.offerings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.offerings li {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.contact {
  --rust: #B7410E;
  --monitor: #923409;
  margin-top: 24px;
  padding: 28px 0 36px;
  background: linear-gradient(to bottom, transparent 0 240px, var(--rust) 240px 100%);
}
/* Reserve the original composition's space without stretching the shorter bubble. */
.contact-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 64px max-content minmax(calc(452px + clamp(48px, 6vw, 80px)), auto); align-items: start; }
.monitor { position: relative; grid-column: 1 / 9; grid-row: 1 / 4; width: 97%; margin: 38px 0 0 1.5%; }
/* Chat app .msg-user geometry and solid Patina Void shadow, scaled for these panels. */
.invitation, .form-panel { position: relative; z-index: 1; background: #FFFEF9; border: 1px solid var(--rule); border-radius: 10px; }
.invitation { grid-column: 1 / 7; grid-row: 2; width: min(560px, 100%); transform: translateX(clamp(-160px, calc((1200px - 100vw) / 2 + 32px), 0px)); margin: 0; padding: 20px 24px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; box-shadow: -6px 6px 0 var(--patina); }
.form-panel { grid-column: 3 / 13; grid-row: 3; width: calc(100% - 60px); max-width: 760px; justify-self: end; margin: 24px 60px 0 0; padding: 24px; box-shadow: 6px 6px 0 var(--patina); }
.housing { position: relative; background: var(--monitor); border-radius: 22px; padding: 18px 18px 26px; }
.housing::after { content: ""; position: absolute; bottom: 11px; right: 24px; width: 4px; height: 4px; border-radius: 50%; background: var(--paper); opacity: .65; }
.pedestal { position: relative; height: 114px; }
.pedestal::before { content: ""; position: absolute; left: 40%; width: 12%; height: 106px; top: 0; background: var(--monitor); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.pedestal::after { content: ""; position: absolute; left: 28%; width: 36%; height: 12px; bottom: 0; background: var(--monitor); border-radius: 50% 50% 3px 3px / 65% 65% 3px 3px; }
.screen { aspect-ratio: 1.55; background: #EFEBE4; border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form-details { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; }
.field label span { margin-left: 6px; font-size: 12px; color: #3A5560; }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #718078; border-radius: 4px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: #FFFEF9; }
.field textarea { resize: vertical; }
.message-field { display: flex; flex-direction: column; }
.message-field textarea { flex: 1 0 auto; }
.form-status { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 16px; }
.form-status button { min-height: 48px; padding: 12px 20px; border: 1px solid #718078; border-radius: 4px; font: inherit; color: #3A5560; background: #deded6; cursor: not-allowed; }
.form-status p { margin: 0; color: #3A5560; font-size: 14px; line-height: 1.5; }
footer { padding-block: 32px; color: var(--paper); background: #B7410E; }
footer p { font-size: 12px; line-height: 1.5; }

.skip-link {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 16px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--patina); outline-offset: 4px; }

@media (min-width: 901px) {
  .contact-inner { grid-template-rows: 64px max-content max-content; }
  /* Below the form: 6px shadow, 32px screen, 26px bezel, 114px stand. */
  .form-panel { margin-bottom: 178px; }
  .monitor { align-self: stretch; }
  .housing { height: calc(100% - 114px); }
  .screen { height: 100%; aspect-ratio: auto; }
}

@media (max-width: 900px) {
  .contact-inner { grid-template-rows: 48px auto 100px auto; }
  .monitor { grid-column: 2 / 12; grid-row: 1 / 5; width: 100%; margin: 20px 0 0; }
  .invitation { grid-column: 1 / 12; width: auto; transform: none; }
  .form-panel { grid-column: 2 / 13; grid-row: 4; width: auto; max-width: none; justify-self: stretch; margin: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 700px) {
  .identity, .intro, .contact-inner, footer p { width: calc(100% - 48px); }
  .monitor { grid-column: 1 / 13; }
  .housing { padding: 10px 10px 22px; border-radius: 15px; }
  .invitation { padding: 16px; }
  .form-panel { grid-column: 1 / 13; padding: 24px 20px; }
  .pedestal { height: 74px; }
  .pedestal::before { height: 68px; }
  .pedestal::after { height: 10px; }
  .identity { padding-block: 32px 40px; }
  .identity img { width: 158px; }
  .intro { padding: 40px 24px; }
  .eyebrow { margin-bottom: 24px; }
  .description { margin-top: 24px; }
  .offerings { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .offerings li { padding-top: 12px; }
  footer { padding-block: 28px; }
}

.contact-privacy { font-size: 12px; line-height: 1.5; color: #3A5560; margin: 16px 0; }
#contact-verification { max-width: 100%; }
.form-status button:enabled { color: #FFFEF9; background: var(--patina); cursor: pointer; }
.form-status button:enabled:hover { background: #294740; }
