:root {
  color-scheme: light;
  --green: #356B29;
  --deep: #244C2B;
  --ink: #233C2B;
  --muted: #516B55;
  --ivory: #F3EEE2;
  --line: #CCD8C2;
  --shadow: 0 19px 48px rgba(33, 69, 35, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 13% 3%, rgba(158, 191, 146, .28), transparent 45%),
    radial-gradient(ellipse at 94% 96%, rgba(208, 219, 184, .43), transparent 49%),
    #F3EEE2;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #24749B;
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.site {
  width: 100%;
  max-width: 474px;
  padding: max(12px, env(safe-area-inset-top)) 12px max(28px, env(safe-area-inset-bottom));
  margin: 0 auto;
}
.design-switcher {
  position: sticky;
  top: max(7px, env(safe-area-inset-top));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  margin-bottom: 15px;
  background: rgba(238, 240, 226, .94);
  border: 1px solid rgba(255, 255, 255, .91);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 25px rgba(45, 77, 42, .09);
}
.switch-button {
  min-width: 0;
  min-height: 47px;
  padding: 9px 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #3A5B3D;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.switch-button.is-selected {
  color: #FFFFFF;
  background: var(--deep);
  box-shadow: 0 4px 10px rgba(24, 67, 37, .17);
}
.switch-button:active { transform: scale(.985); }
.card-panel {
  overflow: hidden;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: rgba(248, 245, 234, .94);
  box-shadow: var(--shadow);
  animation: enter .3s ease both;
}
@keyframes enter {
  from { opacity: .78; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px 18px;
  min-height: 138px;
  background: rgba(247, 244, 235, .66);
}
.brand-header img {
  display: block;
  width: 126px;
  height: auto;
  max-height: 112px;
  object-fit: contain;
}
.glass-brand { background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(243,238,226,.45)); }
.portrait {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  object-position: center 27%;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.88);
  box-shadow: 0 6px 17px rgba(26, 64, 30, .16);
}
.classic-identity, .qr-identity {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
}
.classic-identity {
  min-height: 120px;
  background: linear-gradient(125deg, #2E5F2C, #457C35);
  color: #fffef8;
}
.identity-text { flex: 1; min-width: 0; }
.identity-text h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(22px, 6vw, 29px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.identity-text p { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }
.classic-content { padding: 23px 23px 25px; }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:active { transform: scale(.99); }
.button.primary { color: #FFFFFF; background: var(--green); box-shadow: 0 5px 15px rgba(50,105,34,.15); }
.button.primary:hover { background: #2D5E24; }
.button.secondary { color: #315E2B; background: rgba(255,255,255,.22); border-color: #B8CBAE; }
.button.secondary:hover { background: rgba(255,255,255,.55); }
.classic-content > .secondary { margin-top: 10px; }
.icon { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.section-title {
  margin: 29px 0 10px;
  color: var(--green);
  font: 400 20px/1.2 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -.025em;
}
.list-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  border-bottom: 1px solid #D5E1CE;
  color: var(--green);
  text-decoration: none;
}
.list-link > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.list-link strong { font-size: 12.5px; line-height: 1.2; }
.list-link small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.list-symbol {
  width: 39px;
  height: 39px;
  border: 1px solid #D5E1CE;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.37);
}
.list-link .chevron { color: #75A067; font-size: 26px; font-weight: 200; }
.quick-actions, .button-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.quick-actions { margin-top: 18px; }
.quick-actions a {
  min-width: 0;
  min-height: 47px;
  padding: 12px 5px;
  border: 1px solid #B8CBAE;
  border-radius: 10px;
  color: #315E2B;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  display: grid;
  place-items: center;
}
.location {
  margin: 20px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #3D6938;
  font-size: 12px;
}
.location .icon { width: 15px; height: 15px; }

/* NFC inspired card */
.nfc-panel { background: #F3EEE2; }
.tap-card {
  position: relative;
  display: block;
  width: calc(100% - 30px);
  min-height: 235px;
  margin: 1px 15px 14px;
  padding: 25px 24px;
  overflow: hidden;
  color: #FFFFFF;
  text-align: left;
  background: linear-gradient(125deg, #244C2B, #3B742C 68%, #55894B);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 19px;
  box-shadow: 0 16px 30px rgba(26, 68, 34, .2);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease;
}
.tap-card:active { transform: scale(.985); }
.nfc-panel.is-open .tap-card { box-shadow: 0 0 0 3px #B7D1A8, 0 18px 34px rgba(26,68,34,.16); }
.tap-portrait { position: absolute; top: 22px; left: 22px; width: 70px; height: 70px; }
.nfc-mark { position: absolute; top: 25px; right: 25px; width: 41px; height: 41px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; }
.tap-name {
  display: block;
  margin-top: 99px;
  font: 400 clamp(25px, 7.3vw, 33px)/1.1 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -.035em;
}
.tap-role { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; color: #EDF6E9; }
.tap-label { display: block; margin-top: 18px; font-size: 12px; font-weight: 650; color: #F3F7E9; }
.tap-instruction { margin: 0 14px 20px; font-size: 12px; color: #536C55; line-height: 1.4; text-align: center; }
.nfc-reveal {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height .65s ease, opacity .27s ease, transform .27s ease, visibility 0s linear .65s;
}
.nfc-panel.is-open .nfc-reveal {
  max-height: 900px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: max-height .65s ease, opacity .27s ease .1s, transform .27s ease .1s, visibility 0s;
}
.reveal-inner { padding: 22px 20px 14px; border-top: 1px solid #D2DDC9; }
.connect-heading {
  margin: 0 0 17px;
  font: 400 31px/1.2 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  text-align: center;
  letter-spacing: -.035em;
}
.reveal-inner > .button.secondary { margin-top: 9px; }
.button-row { margin-top: 9px; }
.button-row .button { min-width: 0; padding-left: 5px; padding-right: 5px; font-size: 12px; }
.contact-details { margin: 23px 0 0; }
.contact-details > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid #D1DCC8; }
.contact-details dt { font-size: 12px; font-weight: 700; color: #356B29; }
.contact-details dd { margin: 0; min-width: 0; max-width: 75%; text-align: right; color: var(--ink); overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
.contact-details a { text-decoration: none; }
.nfc-note { margin: 4px 24px 22px; color: #506A53; font-size: 11px; line-height: 1.5; text-align: center; }

/* QR Connect */
.qr-panel { background: #F8F6ED; }
.qr-brand { padding-bottom: 4px; min-height: 125px; }
.qr-identity { padding: 10px 24px 20px; border-bottom: 1px solid #DCE3D5; }
.qr-identity .portrait { width: 68px; height: 68px; }
.qr-identity .identity-text h1 { font-size: clamp(21px, 6vw, 27px); }
.qr-identity .identity-text p { color: #536C55; font-size: 11.5px; }
.qr-content { padding: 22px 22px 27px; text-align: center; }
.qr-content h2 { margin: 0; font: 400 37px/1.13 "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.045em; }
.qr-content > p { max-width: 300px; margin: 8px auto 17px; color: #526B54; font-size: 13px; line-height: 1.5; }
.qr-code {
  width: min(100%, 247px);
  margin: 0 auto 18px;
  padding: 14px;
  border: 1px solid #DAE2D6;
  border-radius: 17px;
  background: #FFFFFF;
  box-shadow: 0 12px 25px rgba(33,69,35,.09);
}
.qr-code img { display: block; width: 100%; height: auto; }
.qr-content .button-row { margin: 9px 0; }
.site-footer { text-align: center; margin: 23px 0 0; font-size: 11px; color: #4E6852; letter-spacing: .02em; }
.site-footer span { margin: 0 7px; }
.toast {
  position: fixed;
  z-index: 50;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 450px;
  margin: 0 auto;
  padding: 13px 17px;
  border-radius: 13px;
  color: #FFFFFF;
  background: #244C2B;
  box-shadow: 0 9px 22px rgba(20,57,33,.25);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 360px) {
  .site { padding-left: 9px; padding-right: 9px; }
  .classic-identity, .qr-identity { gap: 11px; padding-left: 15px; padding-right: 15px; }
  .classic-identity .portrait { width: 64px; height: 64px; }
  .classic-content { padding-left: 18px; padding-right: 18px; }
  .identity-text h1 { font-size: 22px; }
  .tap-card { padding-left: 19px; padding-right: 19px; }
  .tap-name { font-size: 25px; }
  .reveal-inner { padding-left: 15px; padding-right: 15px; }
}
@media (min-width: 700px) {
  .site { padding-top: 42px; padding-bottom: 55px; }
  .design-switcher { top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
