/* Quiet Perspective — responsive brand styles */
:root {
  color-scheme: light;
  --evergreen: #0a383d;
  --evergreen-deep: #062c30;
  --evergreen-mid: #285d5d;
  --sage: #a9c2b4;
  --ivory: #fefaeb;
  --paper: #fffdf5;
  --sand: #efe4c8;
  --gold: #d9b66d;
  --gold-soft: #efdbad;
  --ink-soft: #637775;
  --shadow: 0 34px 95px rgba(6, 44, 48, .16), 0 8px 24px rgba(6, 44, 48, .06);
  --card-width: 1000px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--evergreen);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.78), transparent 43%),
    linear-gradient(145deg, #fdf9eb 0%, #f6efd9 52%, #edf0e4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: auto 0 0;
  height: 27vh;
  min-height: 180px;
  content: "";
  background:
    linear-gradient(165deg, transparent 0 18%, rgba(169,194,180,.16) 18.2% 32%, transparent 32.2%),
    linear-gradient(175deg, transparent 0 42%, rgba(10,56,61,.055) 42.2% 66%, transparent 66.2%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  opacity: .52;
  animation: drift 13s ease-in-out infinite alternate;
}
.ambient--one {
  width: 240px; height: 240px; top: 8%; left: -90px;
  background: radial-gradient(circle at 38% 38%, rgba(217,182,109,.45), rgba(217,182,109,0) 70%);
}
.ambient--two {
  width: 340px; height: 340px; top: 20%; right: -150px;
  background: radial-gradient(circle at 42% 42%, rgba(88,139,125,.24), rgba(88,139,125,0) 70%);
  animation-delay: -4s;
}
.ambient--three {
  width: 190px; height: 190px; bottom: -55px; left: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(217,182,109,.23), rgba(217,182,109,0) 70%);
  animation-delay: -8s;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4.2vw, 52px) clamp(10px, 2.5vw, 28px) clamp(20px, 3vw, 34px);
}

.profile-card {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--card-width));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: clamp(23px, 3vw, 34px);
  background: rgba(255,253,245,.92);
  box-shadow: var(--shadow);
  animation: card-arrive .8s cubic-bezier(.2,.75,.25,1) both, card-float 9s ease-in-out 900ms infinite;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .profile-card {
    background: rgba(255,253,245,.84);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}
.profile-card::before {
  position: absolute;
  z-index: -1;
  top: -165px;
  right: -105px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(217,182,109,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(217,182,109,.035), 0 0 0 46px rgba(217,182,109,.025);
  content: "";
  pointer-events: none;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 29px 24px 0;
  color: #8a927d;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .22em;
  text-align: center;
}
.topline-mark {
  width: 23px;
  height: 1px;
  flex: 0 1 23px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.topline-mark:last-child { transform: rotate(180deg); }
.topline-text { white-space: nowrap; }

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 33px 36px 18px;
  text-align: center;
}
.logo-halo {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(217,182,109,.56);
  border-radius: 50%;
  background: linear-gradient(145deg, #fffef8, #f4ebd1);
  box-shadow: 0 8px 24px rgba(10,56,61,.09), inset 0 0 0 7px rgba(255,255,255,.6);
}
.logo-halo::before,
.logo-halo::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}
.logo-halo::before { top: 14px; right: 18px; }
.logo-halo::after { bottom: 17px; left: 13px; width: 4px; height: 4px; background: #87a899; }
.brand-mark {
  display: block;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
}
.handle {
  margin: 0 0 9px;
  color: #758877;
  font-size: .79rem;
  font-weight: 650;
  letter-spacing: .14em;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 11px;
  color: var(--evergreen);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.tagline {
  max-width: 510px;
  margin-bottom: 0;
  color: #506866;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}
.sunrise-rule {
  display: flex;
  width: 138px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.sunrise-rule span {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8b37e);
}
.sunrise-rule span:last-child { transform: rotate(180deg); }
.sunrise-rule i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #c69f54;
  border-radius: 50%;
  background: #f9e8bd;
  box-shadow: 0 0 0 4px rgba(217,182,109,.12);
}

.links-section { padding: 16px 52px 43px; }
.section-heading { margin-bottom: 23px; text-align: center; }
.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #987b43;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .2em;
}
h2 {
  margin-bottom: 7px;
  color: var(--evergreen);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -.025em;
}
.section-heading p { margin-bottom: 0; color: var(--ink-soft); font-size: .88rem; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.social-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(10,56,61,.095);
  border-radius: 17px;
  background: rgba(255,255,255,.78);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(10,56,61,.035);
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.social-card:focus-visible {
  z-index: 2;
  outline: 3px solid rgba(194,158,87,.88);
  outline-offset: 3px;
  background: #fffef9;
  box-shadow: 0 8px 22px rgba(10,56,61,.1);
}
.social-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(10,56,61,.055);
  border-radius: 13px;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease;
}
.social-icon img { display: block; width: 31px; height: 31px; object-fit: contain; }
.social-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.social-name {
  overflow: hidden;
  color: var(--evergreen);
  font-size: .86rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-detail {
  overflow: hidden;
  color: #72827c;
  font-size: .68rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-arrow {
  justify-self: end;
  align-self: start;
  color: #9d8350;
  font-size: 1rem;
  line-height: 1;
  opacity: .8;
  transition: transform .22s ease, opacity .22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .social-card:hover {
    z-index: 1;
    transform: translateY(-3px);
    border-color: rgba(194,158,87,.62);
    background: #fffef9;
    box-shadow: 0 12px 24px rgba(10,56,61,.095);
  }
  .social-card:hover .social-icon {
    transform: scale(1.045) rotate(-2deg);
    box-shadow: 0 4px 11px rgba(10,56,61,.08);
  }
  .social-card:hover .social-arrow { transform: translate(2px,-2px); opacity: 1; }
}
.social-card:active { transform: translateY(-1px) scale(.995); }

.profile-footer {
  position: relative;
  overflow: hidden;
  padding: 33px 24px 24px;
  background: linear-gradient(125deg, #0a383d 0%, #0d4546 55%, #1c5953 100%);
  color: #fbf7e9;
  text-align: center;
}
.profile-footer::before,
.profile-footer::after {
  position: absolute;
  z-index: 0;
  right: -6%;
  left: -6%;
  height: 80px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.profile-footer::before { top: -60px; background: rgba(217,182,109,.15); transform: rotate(-2deg); }
.profile-footer::after { top: -42px; background: rgba(255,253,245,.08); transform: rotate(2deg); }
.footer-wave { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.footer-wave span {
  position: absolute;
  right: -20px;
  bottom: -95px;
  width: 240px;
  height: 180px;
  border: 1px solid rgba(240,219,173,.15);
  border-radius: 50%;
}
.footer-wave span:nth-child(2) { right: 90px; bottom: -112px; width: 250px; height: 180px; }
.footer-wave span:nth-child(3) { right: auto; bottom: -120px; left: -80px; width: 240px; height: 175px; }
.footer-brand, .footer-note, .copyright { position: relative; z-index: 1; }
.footer-brand {
  margin-bottom: 5px;
  color: #fff8e5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: .01em;
}
.footer-note { margin-bottom: 22px; color: #d9e3d8; font-size: .8rem; line-height: 1.55; }
.copyright { margin-bottom: 0; color: rgba(244,239,220,.72); font-size: .68rem; letter-spacing: .04em; }

@keyframes drift {
  from { transform: translate3d(0, -8px, 0) scale(1); }
  to { transform: translate3d(12px, 18px, 0) scale(1.06); }
}
@keyframes card-arrive {
  from { transform: translateY(14px) scale(.995); }
  to { transform: translateY(0) scale(1); }
}
@keyframes card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
/* Give medium-width tablets more room for platform names: two columns until 620px. */
@media (max-width: 1000px) {
  .profile-card { width: min(100%, 760px); }
  .links-section { padding-right: clamp(22px, 5vw, 42px); padding-left: clamp(22px, 5vw, 42px); }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .page-shell { justify-content: flex-start; padding: 16px 10px 18px; }
  .profile-card { width: 100%; border-radius: 23px; }
  .topline { gap: 9px; padding: 23px 12px 0; font-size: .53rem; letter-spacing: .15em; }
  .topline-mark { width: 15px; flex-basis: 15px; }
  .profile-header { padding: 27px 20px 15px; }
  .logo-halo { width: 112px; height: 112px; margin-bottom: 14px; }
  .brand-mark { width: 90px; height: 90px; }
  h1 { font-size: clamp(2.05rem, 9.6vw, 2.8rem); }
  .tagline { max-width: 360px; font-size: 1rem; }
  .links-section { padding: 14px 15px 27px; }
  .section-heading { margin-bottom: 19px; }
  .social-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .social-card { min-height: 74px; padding: 11px 13px; }
  .social-icon { width: 44px; height: 44px; }
  .social-card { grid-template-columns: 44px minmax(0, 1fr) 16px; }
  .social-name { font-size: .88rem; }
  .social-detail { font-size: .7rem; }
  .profile-footer { padding: 30px 18px 21px; }
}

@media (max-width: 360px) {
  .page-shell { padding-right: 7px; padding-left: 7px; }
  .topline { gap: 7px; font-size: .49rem; letter-spacing: .12em; }
  .topline-mark { flex-basis: 12px; }
  .profile-header { padding-right: 15px; padding-left: 15px; }
  .links-section { padding-right: 11px; padding-left: 11px; }
  .social-card { gap: 10px; padding-right: 10px; padding-left: 10px; }
  .footer-note { max-width: 270px; margin-right: auto; margin-left: auto; }
}

@media (max-height: 760px) and (min-width: 621px) {
  .page-shell { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .profile-card { animation: none; }
}
