/* Shaw Circle Capital — Institutional Marketing Site
   Palette: #171B1F, #22272E, #1D4E79, #88CFF0, #CBEEFB
   Typography: EB Garamond (display) + Sora (body) */

:root {
  --bg: #171B1F;
  --bg-alt: #22272E;
  --bg-card: #1E2329;
  --brand: #1D4E79;
  --accent: #88CFF0;
  --accent-soft: #CBEEFB;
  --lavender: #B798EC;
  --green: #77B57F;
  --rose: #D28A8B;
  --heading: #F0EDE8;
  --body: #9BA3AB;
  --muted: #4C5961;
  --rule: rgba(255, 255, 255, 0.06);
  --rule-brand: rgba(29, 78, 121, 0.35);
  --glow: rgba(136, 207, 240, 0.06);
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Sora", system-ui, sans-serif;
  --max-w: 1200px;
  --pad-y: clamp(100px, 14vh, 160px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--heading); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--heading); }

.wrap {
  width: 87%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.margin-line {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.margin-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 1px;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: marginPulse 3.5s ease-in-out infinite;
}

.margin-line--right::after {
  animation-delay: 0s;
}

@keyframes marginPulse {
  0% { top: -40%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.margin-line--left {
  left: 5%;
}

.margin-line--right {
  right: 5%;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { max-width: 620px; }
p + p { margin-top: 1rem; }

.label {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(23, 27, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 28px; width: auto; opacity: 0.95; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9BA3AB;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--heading); }

.nav-links a.active {
  color: #88CFF0;
  text-decoration: underline;
  text-decoration-color: #88CFF0;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.nav-cta.active {
  background: rgba(29, 78, 121, 0.15);
  border-color: var(--accent);
}

.nav-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--rule-brand);
  border-radius: 2px;
  color: var(--accent) !important;
  transition: background 0.3s, border-color 0.3s;
}

.nav-cta:hover {
  background: rgba(29, 78, 121, 0.15);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 20vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(29, 78, 121, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, var(--glow), transparent);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  animation: gridPulse 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-super {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: none;
}

.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--body);
  letter-spacing: 0.02em;
  max-width: 90%;
  text-align: center;
  line-height: 1.6;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.underline-accent {
  text-decoration: underline dotted;
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
  text-decoration-thickness: 0.75px;
}

/* ---- Sections ---- */
section { padding: var(--pad-y) 0; position: relative; }
section + section { border-top: 1px solid var(--rule); }
.bg-alt { background: var(--bg-alt); }

/* ---- Split layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split h2 { margin-top: 0.5rem; }

/* ---- Section center header ---- */
.section-center { text-align: center; margin-bottom: 1rem; }
.section-center h2 { margin-top: 0.5rem; }

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--rule); }

.stat-val {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--heading);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-lbl {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--body);
}

/* ---- Mission ---- */
.mission-text p {
  font-size: 1.15rem;
  line-height: 1.75;
}

/* ---- Timeline ---- */
.timeline { margin-top: 4rem; }

.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.tl-item + .tl-item { border-top: 1px solid var(--rule); }

.tl-year {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--heading);
  padding-top: 0.1rem;
}

.tl-item p {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 100%;
}

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 207, 240, 0.4);
  box-shadow: 0 0 30px rgba(136, 207, 240, 0.1), 0 0 60px rgba(136, 207, 240, 0.05);
}

.team-card-icon {
  margin-bottom: 2rem;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  min-height: 100px;
  color: var(--heading);
  border: 2px solid var(--rule-brand);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.team-card:nth-child(1) .team-card-icon img { height: 100px; }
.team-card:nth-child(2) .team-card-icon img { height: 92px; }
.team-card:nth-child(3) .team-card-icon img { height: 68px; }
.team-card:nth-child(4) .team-card-icon img { height: 74px; }

.team-card-icon img {
  width: auto;
  border: none;
  outline: none;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.team-card-icon {
  border: none;
}

.team-card:hover .team-card-icon img {
  filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(136, 207, 240, 0.4));
}

.team-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.member-role {
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  color: var(--body);
}

/* ---- Media / Press ---- */

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.press-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.press-card:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 207, 240, 0.4);
  box-shadow: 0 0 30px rgba(136, 207, 240, 0.08), 0 0 60px rgba(136, 207, 240, 0.04);
}

.press-source {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.press-title {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
}

.press-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}

/* ---- Philosophy ---- */
#philosophy { position: relative; overflow: hidden; padding-bottom: calc(var(--pad-y) + 30px); }

.philosophy-intro {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.philosophy-intro p {
  font-size: 1.15rem;
  line-height: 1.75;
  text-align: center;
  max-width: 700px;
}

.moat-water {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.8) 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.8) 60%, transparent);
}

.moat-water--top { top: 0; }
.moat-water--bottom { bottom: 0; transform: scaleY(-1); }

.moat-water svg {
  width: 200%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.moat-wave {
  fill: rgba(136, 207, 240, 0.18);
}

.moat-wave--top {
  animation: moatFlow 13s linear infinite;
}

.moat-wave--bottom {
  animation: moatFlow 9s linear infinite reverse;
}

@keyframes moatFlow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.principle-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 207, 240, 0.4);
  box-shadow: 0 0 30px rgba(136, 207, 240, 0.08), 0 0 60px rgba(136, 207, 240, 0.04);
}

.principle-card h3 { margin-bottom: 1rem; }

.principle-body {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 1.5rem;
}

.principle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  justify-content: center;
}

.principle-tag {
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.6rem 1.5rem;
  white-space: nowrap;
  min-width: 230px;
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}

.principle-card:hover .principle-tag {
  border-color: var(--rule-brand);
  color: var(--accent);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-top: 0.5rem; margin-bottom: 2rem; }

.contact-item { margin-bottom: 1.5rem; }

.contact-item-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-item a,
.contact-item p {
  font-size: 1.15rem;
  color: var(--heading);
  max-width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(136, 207, 240, 0.1);
}

.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select option { background: var(--bg-card); }

.btn-submit {
  align-self: flex-start;
  padding: 0.85rem 2.5rem;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--heading);
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
  background: rgba(29, 78, 121, 0.8);
  box-shadow: 0 0 40px rgba(136, 207, 240, 0.15), 0 0 80px rgba(136, 207, 240, 0.05);
}

.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  display: none;
}

.form-status.success,
.form-status.error {
  display: block;
  opacity: 1;
  background: rgba(136, 207, 240, 0.08);
  border: 1px solid rgba(136, 207, 240, 0.28);
  color: var(--accent-soft);
  box-shadow: 0 0 12px rgba(136, 207, 240, 0.08);
  transition: opacity 0.65s ease;
}

.form-status.hiding {
  opacity: 0;
}

/* ---- Footer ---- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 26px; margin-bottom: 1rem; opacity: 0.8; }
.footer-brand p { font-size: 1.15rem; color: var(--muted); max-width: 400px; }

.footer-col h4 {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 1.15rem; color: var(--body); transition: color 0.3s; }
.footer-col a:hover { color: var(--heading); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.footer-disclaimer {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 100%;
}

.footer-copyright {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* ---- Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---- Ring decorations ---- */
.hero-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 65vw;
  max-width: 900px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(136, 207, 240, 0.3));
  animation: ringPulseGlow 5s ease-in-out infinite;
}


.contact-rings {
  position: absolute;
  left: -15%;
  bottom: -10%;
  width: 35vw;
  max-width: 500px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  animation: ringDrift 30s ease-in-out infinite;
}

@keyframes ringPulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 0 30px rgba(136, 207, 240, 0.15));
    opacity: 0.1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 0 200px rgba(136, 207, 240, 0.85));
    opacity: 0.5;
  }
}

@keyframes ringDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -8px); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .wrap { width: 85%; }
  .margin-line--left { left: 3%; }
  .margin-line--right { right: 3%; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(23, 27, 31, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-toggle { display: block; }

  .stats { grid-template-columns: 1fr; gap: 2rem; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--rule); padding-top: 2rem; }

  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }

  .team-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }

  .principles { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.8rem; }
  .hero-rings { width: 90vw; opacity: 0.08; }
  .moat-water { height: 50px; }
  .contact-rings { display: none; }
}
