:root {
  --ink: #16272f;
  --navy: #101e33;
  --muted: #5b6f76;
  --rule: #d3e0da;
  --rule-soft: #e4ece8;
  --paper: #fcfdfb;
  --wash: #f0f6f2;
  --teal: #0a625a;
  --teal-deep: #084f49;
  --danger: #8d3f43;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 15px/1.6 var(--sans);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #e7eeea; }
button, input { font: inherit; }
a { color: var(--teal); }
[hidden] { display: none !important; }
::selection { background: #c8e6dc; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 720px at 16% 6%, #f7fbf8 0%, transparent 62%),
    radial-gradient(900px 620px at 94% 96%, #dce8e2 0%, transparent 58%),
    #e7eeea;
}
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 30, 51, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 30, 51, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at 44% 34%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 44% 34%, #000 0%, transparent 78%);
}
.ambient::after {
  content: "";
  position: absolute;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  top: -22vw;
  right: -16vw;
  border: 1px solid rgba(10, 98, 90, 0.1);
  border-radius: 50%;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 26px 22px;
}

.sheet {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.88fr);
  background: var(--paper);
  border: 1px solid #c7d6d0;
  box-shadow: 0 1px 0 #fff inset, 0 30px 80px -26px rgba(16, 30, 51, 0.3);
  animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: #92aaa2;
  pointer-events: none;
}
.sheet::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.sheet::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.brief {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3.7vw, 52px) clamp(28px, 4vw, 58px) 24px;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark { color: var(--teal); display: grid; place-items: center; }
.brand-mark svg { width: 21px; height: 25px; display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.mast-rule { flex: 1; height: 1px; background: var(--rule); margin-inline: 6px; }
.folio {
  font: 9.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7e918f;
  white-space: nowrap;
}

.brief-body { flex: 1; padding-top: clamp(30px, 5vh, 54px); }

.overline {
  margin: 0 0 16px;
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.1vw, 57px);
  line-height: 1.17;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--navy);
}
h1 em {
  font-style: italic;
  color: var(--teal);
}

.abstract {
  margin: 22px 0 0;
  max-width: 35em;
  padding-left: 16px;
  border-left: 2px solid #b9d6cc;
  font-size: 14px;
  line-height: 1.9;
  color: #40565e;
}

.figure { margin: clamp(26px, 4vh, 40px) 0 0; }
.figure ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.figure li {
  position: relative;
  padding-top: 20px;
  min-width: 0;
}
.figure li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--paper);
}
.figure li span {
  display: block;
  margin-bottom: 4px;
  font: 9.5px/1 var(--mono);
  letter-spacing: 0.1em;
  color: #80928e;
}
.figure li b { font-size: 13px; font-weight: 650; color: #2b4048; }
.figure figcaption {
  margin-top: 13px;
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7e918f;
}

.method {
  list-style: none;
  margin: clamp(24px, 4vh, 36px) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.method li {
  display: grid;
  grid-template-columns: 30px 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.method li:last-child { border-bottom: 0; }
.method .num { font: 9.5px/1 var(--mono); letter-spacing: 0.08em; color: var(--teal); }
.method strong { font-size: 13px; font-weight: 650; color: #22373f; }
.method .note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.brief-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
  font: 9px/1.6 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7e918f;
}
.brief-foot .dot { color: #b3c5bf; }

.gate {
  display: flex;
  align-items: center;
  padding: clamp(30px, 4vw, 56px);
  border-left: 1px solid var(--rule);
  background:
    linear-gradient(165deg, #f4f9f5 0%, #edf5f0 54%, #e9f1ed 100%);
}
.gate-panel { width: 100%; max-width: 348px; margin: 0 auto; }

.gate-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 36px;
  padding: 5px 10px;
  border: 1px solid #cfe2d9;
  border-radius: 2px;
  background: #f8fbf9;
  font: 9.5px/1 var(--mono);
  letter-spacing: 0.13em;
  color: #3f665f;
}
.gate-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #139d82;
  box-shadow: 0 0 0 3px rgba(19, 157, 130, 0.13);
}

.gate .overline { margin-bottom: 11px; color: #68837c; }
h2 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 33px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.gate-sub {
  margin: 0 0 34px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.field { display: block; margin-bottom: 22px; }
.field > span {
  display: block;
  margin-bottom: 8px;
  font: 9.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #708681;
  transition: color 0.15s ease;
}
.field:focus-within > span { color: var(--teal); }
.field input {
  width: 100%;
  padding: 6px 1px 10px;
  border: 0;
  border-bottom: 1px solid #b4c7c0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  caret-color: var(--teal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9cafaa; font-size: 14px; letter-spacing: 0.02em; }
.field input:focus {
  outline: none;
  border-bottom-color: var(--teal);
  box-shadow: 0 1px 0 0 var(--teal);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s ease-out;
}
#invite { text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--mono); font-size: 14px; }

.form-note {
  margin: -10px 0 18px;
  font-size: 11.5px;
  color: #788d87;
}

.form-message {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  background: #fbeeed;
  color: #7c3539;
  font-size: 13px;
  line-height: 1.65;
}
.form-message.ok {
  border-left-color: #148a74;
  background: #e7f4ee;
  color: #106456;
}

.submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.submit:hover:not(:disabled) { background: var(--teal-deep); }
.submit:active:not(:disabled) { transform: translateY(1px); }
.submit:disabled { opacity: 0.62; cursor: default; }
.submit .arrow { transition: transform 0.16s ease; font-size: 16px; }
.submit:hover:not(:disabled) .arrow { transform: translateX(3px); }

.switch {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.switch a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 98, 90, 0.34);
  padding-bottom: 1px;
}
.switch a:hover { border-bottom-color: var(--teal); }

.fine {
  margin-top: 44px;
  padding-top: 17px;
  border-top: 1px solid #d7e4de;
}
.fine p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: #7b8f89;
}
.fine p + p { margin-top: 3px; }

.page-foot {
  margin: 20px 0 0;
  text-align: center;
  font: 9px/1.6 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d918b;
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.field input:focus-visible { outline: none; }

@media (max-width: 980px) {
  .page { padding: 26px 18px 18px; justify-content: flex-start; }
  .sheet { grid-template-columns: 1fr; }
  .brief { padding: 30px 30px 22px; }
  .brief-body { padding-top: 30px; }
  h1 { font-size: clamp(34px, 6vw, 46px); }
  .gate {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 38px 30px 40px;
  }
  .gate-panel { max-width: 400px; }
  .gate-tag { margin-bottom: 26px; }
}

@media (max-width: 620px) {
  .page { padding: 12px 10px 16px; }
  .brief { padding: 24px 20px 18px; }
  .brief-body { padding-top: 25px; }
  h1 { font-size: 32px; }
  .abstract { font-size: 13.5px; line-height: 1.8; }
  .mast-rule, .folio { display: none; }
  .figure, .method { display: none; }
  .brief-foot { margin-top: 20px; }
  .gate { padding: 30px 20px 34px; }
  h2 { font-size: 29px; }
  .gate-sub { margin-bottom: 28px; }
  .fine { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
  .submit, .submit .arrow { transition: none; }
}
