:root {
  --teal-deep: #003943;
  --teal: #1f7a8c;
  --cream: #f2eee5;
  --cream-muted: #e8ceac;
  --white: #fffdf8;
  --ink: #183035;
  --red: #d73224;
  --red-dark: #ae2319;
  --serif: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --condensed: "Montserrat", "Helvetica Neue Condensed Bold", "HelveticaNeue-CondensedBold", "Helvetica Neue Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--cream);
  background: var(--teal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.landing {
  display: grid;
  grid-template-columns: minmax(380px, 42%) minmax(640px, 58%);
  min-height: 100vh;
}

.content-panel {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(circle at 92% 14%, rgba(255,255,255,.08), transparent 28rem),
    var(--teal);
}

.site-header,
.content-inner,
footer {
  width: min(100% - clamp(2.5rem, 7vw, 7rem), 820px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid rgba(242,238,229,.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .95rem;
}
.brand img { width: 44px; height: 44px; border-radius: 2px; }
.brand strong { font-weight: 800; }
.site-header p {
  margin: 0;
  color: var(--cream-muted);
  font: italic .95rem var(--serif);
}

.content-inner { padding: clamp(3.5rem, 7vh, 5.5rem) 0 2rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.35rem;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 800;
}
.eyebrow span { width: 2.3rem; height: 3px; background: #dba044; }

h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--condensed);
  font-size: clamp(3.7rem, 6.2vw, 7.2rem);
  font-stretch: condensed;
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
h1 em {
  display: block;
  margin-top: .18em;
  color: #dba044;
  font-family: var(--condensed);
  font-size: .68em;
  font-style: normal;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.callout {
  margin: 1.35rem 0 0;
  color: var(--white);
  font: 700 clamp(1.55rem, 2.5vw, 2.2rem) var(--serif);
}
.intro {
  max-width: 620px;
  margin: .55rem 0 1.65rem;
  color: var(--cream-muted);
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
  line-height: 1.55;
}

.signup-form {
  padding: clamp(1.15rem, 2.1vw, 1.7rem);
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 25px 70px rgba(0,20,25,.22);
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.fields {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: .75rem;
}
.field {
  display: grid;
  gap: .45rem;
  color: var(--teal-deep);
  font-size: .77rem;
  font-weight: 700;
}
.field b { color: var(--red); }
.field input,
.field select {
  min-width: 0;
  width: 100%;
  height: 50px;
  border: 1px solid #b8b5aa;
  border-radius: 0;
  padding: 0 .9rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.field select {
  cursor: pointer;
}
.field input:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,76,89,.15);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--red); }

.consent {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: .65rem;
  align-items: start;
  margin: .9rem 0 1rem;
  color: #465457;
  font-size: .7rem;
  line-height: 1.4;
}
.consent input {
  width: 1rem;
  height: 1rem;
  margin: .1rem 0 0;
  accent-color: var(--teal);
}

.form-action {
  display: grid;
  align-items: center;
  gap: 1rem;
}
.form-action button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border: 0;
  padding: 0 1.1rem;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  transition: background .16s ease, transform .16s ease;
}
.form-action button:hover { background: var(--red-dark); transform: translateY(-2px); }
.form-action button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status {
  min-height: 1.2rem;
  margin: .65rem 0 0;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 700;
}
.form-status.is-error { color: #a3261c; }
.rgpd-short {
  margin: .35rem 0 0;
  color: #667174;
  font-size: .63rem;
  line-height: 1.42;
}
.rgpd-short a { font-weight: 700; text-underline-offset: .16em; }

.social-section {
  display: grid;
  grid-template-columns: minmax(200px, .72fr) minmax(330px, 1.28fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.6rem;
  padding: 1.35rem;
  border-left: 4px solid #dba044;
  background: rgba(0,57,67,.48);
}
.social-copy > span {
  display: block;
  margin-bottom: .45rem;
  color: var(--cream-muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.social-copy h2 {
  margin: 0;
  color: var(--white);
  font: 700 clamp(1.65rem, 2.4vw, 2.25rem)/.95 var(--condensed);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.social-copy .signature {
  margin: .5rem 0 0;
  color: var(--white);
  font: 700 clamp(1.65rem, 2.4vw, 2.25rem)/.95 var(--condensed);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.social-copy .signature-name { color: #dba044; }
.social-copy p {
  margin: .65rem 0 0;
  color: var(--cream-muted);
  font: .9rem/1.5 var(--serif);
}
.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}
.social-links a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  gap: .65rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(242,238,229,.35);
  color: var(--cream);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.social-links a:hover { background: #dba044; border-color: #dba044; }
.social-links img {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  filter: invert(95%) sepia(5%) saturate(489%) hue-rotate(350deg) brightness(101%) contrast(90%);
}
.social-links a:hover img {
  filter: invert(19%) sepia(24%) saturate(1507%) hue-rotate(142deg) brightness(93%) contrast(101%);
}
.social-links a span {
  overflow: hidden;
  font-size: .75rem;
  font-weight: 700;
  text-overflow: ellipsis;
}
.social-links a:hover span { color: var(--teal-deep); }

footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 1.15rem 0 1.5rem;
  border-top: 1px solid rgba(242,238,229,.12);
  color: rgba(242,238,229,.62);
  font-size: .7rem;
}
footer a { text-underline-offset: .16em; }

.portrait-panel {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1;
  height: 100vh;
  overflow: hidden;
  background: var(--teal-deep);
}
.portrait-panel > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 55% center;
}
.portrait-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(0,57,67,.38), transparent 28%),
    linear-gradient(180deg, transparent 63%, rgba(0,30,36,.62));
}
.portrait-panel p {
  position: absolute;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  color: var(--white);
  font: clamp(1.4rem, 2.3vw, 2.4rem) var(--serif);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #f1b228;
  outline-offset: 3px;
}

.privacy-page {
  min-height: 100vh;
  padding: 3rem 1.25rem;
  color: var(--ink);
  background: var(--cream);
}
.privacy-card {
  width: min(100%, 780px);
  margin: 0 auto;
}
.privacy-card .brand { color: var(--teal-deep); }
.privacy-card h1 {
  margin: 3rem 0 1.5rem;
  color: var(--teal-deep);
  font: 400 clamp(2.5rem, 7vw, 5rem)/.95 var(--serif);
  text-transform: none;
  letter-spacing: -.04em;
}
.privacy-card h2 {
  margin: 2.2rem 0 .65rem;
  color: var(--teal);
  font: 700 1rem var(--sans);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.privacy-card p, .privacy-card li { line-height: 1.7; }
.privacy-card .notice {
  border-left: 4px solid var(--red);
  padding: .2rem 0 .2rem 1rem;
  color: #5f4e4c;
}
.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--teal);
  font-weight: 700;
}

.modal {
  max-width: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 30px 100px rgba(0,20,25,.45);
}
.modal::backdrop {
  background: rgba(0,30,36,.78);
  backdrop-filter: blur(5px);
}
.modal-shell { background: var(--cream); }
.privacy-modal {
  width: min(92vw, 780px);
  max-height: 88vh;
}
.privacy-modal .modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  max-height: 88vh;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(24,48,53,.16);
  padding: 1.2rem 1.35rem;
  background: var(--white);
}
.modal-header h2 {
  margin: 0;
  color: var(--teal-deep);
  font: 700 clamp(1.35rem, 3vw, 2rem)/1 var(--condensed);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0 0 .15em;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}
.modal-close:hover { background: var(--red-dark); }
.privacy-modal-content {
  overflow-y: auto;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem) 2.25rem;
}
.privacy-modal-content h3 {
  margin: 1.8rem 0 .55rem;
  color: var(--teal);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.privacy-modal-content p { line-height: 1.65; }
.privacy-modal-content a {
  color: var(--teal-deep);
  font-weight: 700;
  text-underline-offset: .16em;
}
.privacy-modal-content .notice {
  margin-top: 0;
  border-left: 4px solid #dba044;
  padding: .2rem 0 .2rem 1rem;
  color: #5f4e4c;
}
body:has(dialog[open]) { overflow: hidden; }

.success-modal { width: min(92vw, 520px); }
.success-modal-content {
  display: grid;
  justify-items: start;
  gap: .9rem;
  padding: 1.6rem clamp(1.25rem, 4vw, 2.25rem) 1.9rem;
}
.success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
}
.success-mark svg { width: 28px; height: 28px; }
.success-modal-content p { margin: 0; font-size: .88rem; line-height: 1.6; }
.success-modal-content .success-lead {
  color: var(--teal-deep);
  font: 700 clamp(1.1rem, 2.6vw, 1.4rem)/1.25 var(--condensed);
  letter-spacing: -.01em;
}
.success-modal-content .success-invite { color: #667174; font-size: .8rem; }
.success-modal-action {
  min-height: 52px;
  margin-top: .35rem;
  border: 0;
  padding: 0 1.6rem;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  transition: background .16s ease;
}
.success-modal-action:hover { background: var(--red-dark); }

@media (max-width: 1050px) {
  .landing { grid-template-columns: minmax(0, 38%) minmax(0, 62%); }
  .fields { grid-template-columns: 1fr; }
  .social-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .landing { display: flex; flex-direction: column; }
  .portrait-panel {
    position: relative;
    order: -1;
    width: 100%;
    height: clamp(280px, 62vw, 470px);
  }
  .portrait-panel > img { object-position: 50% 36%; }
  .portrait-panel p { font-size: 1.45rem; }
  .site-header, .content-inner, footer { width: min(100% - 2rem, 700px); }
  .site-header { min-height: 76px; }
  .site-header p { display: none; }
  .content-inner { padding: 2.8rem 0 2rem; }
  h1 { font-size: clamp(3.5rem, 17vw, 6rem); }
  .social-section { margin-top: 2rem; }
}

@media (max-width: 520px) {
  .site-header, .content-inner, footer { width: min(100% - 1.5rem, 700px); }
  .portrait-panel { height: clamp(250px, 74vw, 360px); }
  .content-inner { padding-top: 2.25rem; }
  .eyebrow { margin-bottom: 1rem; }
  h1 { font-size: clamp(3.15rem, 16.5vw, 5rem); }
  .callout { margin-top: 1.15rem; }
  .signup-form { padding: 1rem; }
  .fields { gap: .65rem; }
  .form-action button { width: 100%; }
  .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: .6rem;
  }
  .social-links a {
    width: 100%;
    min-height: 58px;
  }
}

@media (max-width: 360px) {
  h1 { font-size: 2.95rem; }
  .brand { gap: .6rem; font-size: .82rem; }
  .brand img { width: 38px; height: 38px; }
  footer { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
