/* Layout for the About and Contact pages. Shared navigation, typography,
   theme, buttons, and footer come from styles.css and theme.css. */
.page-main {
  --panel-fill: #fff;
  --panel-padding: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

[data-theme="dark"] .page-main {
  --panel-fill: var(--slate);
}

[data-theme="dusk"] .page-main {
  --panel-fill: #202E40;
}

.page-hero {
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-hero .hero-copy {
  max-width: 42rem;
  margin: 0;
  text-wrap: pretty;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

.page-panel {
  min-width: 0;
  padding: var(--panel-padding);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel-fill);
}

.page-panel h2 {
  margin-bottom: .5rem;
  font-size: 1.5rem;
}

.page-panel p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.6;
}

/* About */
.about-facts {
  align-self: start;
}

.about-facts dl {
  margin: 1rem 0 0;
}

.about-facts dl > div {
  padding: .75rem 0;
}

.about-facts dl > div + div {
  border-top: 1px solid var(--line);
}

.about-facts dl > div:last-child {
  padding-bottom: 0;
}

.about-facts dt {
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 0;
  font-weight: 550;
  line-height: 1.5;
}

.about-story {
  padding-block: 0;
}

.about-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
}

.about-chapter + .about-chapter {
  border-top: 1px solid var(--line);
}

.about-number {
  display: grid;
  place-items: center;
  justify-self: start;
  inline-size: 2.5rem;
  min-height: 2.25rem;
  border-radius: .625rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
}

.about-chapter p {
  margin-bottom: .5rem;
}

.about-chapter p:last-child {
  margin-bottom: 0;
}

.about-cta {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

/* Contact */
.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info-intro {
  margin-bottom: 1.25rem;
}

.contact-method {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .875rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-method h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.contact-method p {
  margin: 0;
}

.contact-method a {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-method a:hover {
  text-decoration: underline;
}

.contact-skyline {
  align-self: center;
  width: 100%;
  max-width: 19.5rem;
  height: auto;
  margin-top: auto;
  padding-top: .75rem;
  opacity: .72;
}

[data-theme="light"] .contact-skyline {
  filter: brightness(.62) saturate(.85);
}

#message-form {
  /* The site already sets scroll padding to clear the sticky header. */
  scroll-margin-top: 0;
}

.contact-form-panel header p {
  margin-bottom: 1.5rem;
}

.contact-form-panel form,
.contact-form-row {
  display: grid;
  gap: 1.25rem;
}

.contact-form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form-panel label {
  display: grid;
  gap: .375rem;
  min-width: 0;
  font-size: .875rem;
  font-weight: 600;
}

.contact-form-panel input,
.contact-form-panel textarea {
  width: 100%;
  padding: .75rem .875rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 Inter, Arial, sans-serif;
}

.contact-form-panel input {
  min-height: 3rem;
}

.contact-form-panel textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form-panel input::placeholder,
.contact-form-panel textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-form-panel :is(input, textarea):focus-visible {
  outline-offset: 2px;
}

.contact-form-panel .button {
  width: 100%;
  cursor: pointer;
}

.contact-form-panel .contact-form-status {
  margin: 0 0 .75rem;
}

@media (max-width: 760px) {
  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.9375rem);
  }

  .page-grid,
  .contact-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}


/* Unified glass card chrome and inputs for About & Contact */
.page-panel {
  position: relative;
  border: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  box-shadow: 0 12px 30px rgba(27, 46, 78, 0.05);
  --panel-border: linear-gradient(135deg, rgba(56, 189, 248, 0.42) 0%, rgba(87, 155, 255, 0.34) 52%, rgba(191, 214, 250, 0.65) 100%);
  --panel-aura: radial-gradient(260px 160px at 18% 8%, rgba(56, 189, 248, 0.06), transparent 72%);
}

.page-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: var(--panel-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.page-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--panel-aura);
  pointer-events: none;
}

.page-panel > * {
  position: relative;
  z-index: 1;
}

.about-number {
  background: linear-gradient(145deg, #EAF3FF, #DCEBFF);
  border: 1px solid #BCD7FC;
  color: #24559B;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #EAF3FF, #DCEBFF);
  border: 1px solid #BCD7FC;
  color: #24559B;
}

.contact-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.contact-form-panel input:focus:not(:focus-visible),
.contact-form-panel textarea:focus:not(:focus-visible) {
  outline: none;
}

[data-theme="dark"] .page-hero {
  border-bottom-color: rgba(87, 155, 255, 0.18);
}

[data-theme="dark"] .page-panel {
  background: linear-gradient(180deg, rgba(16, 25, 40, 0.94) 0%, rgba(11, 17, 28, 0.97) 100%);
  box-shadow: 0 20px 44px rgba(3, 7, 15, 0.46);
  --panel-border: linear-gradient(135deg, rgba(56, 214, 245, 0.44) 0%, rgba(87, 155, 255, 0.28) 54%, rgba(87, 155, 255, 0.1) 100%);
  --panel-aura: radial-gradient(280px 170px at 18% 8%, rgba(56, 189, 248, 0.08), transparent 72%);
}

[data-theme="dark"] .about-number,
[data-theme="dark"] .contact-icon {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.24), rgba(24, 42, 74, 0.72));
  border-color: rgba(96, 165, 250, 0.42);
  color: #7DD3FC;
}

[data-theme="dark"] .contact-form-panel input,
[data-theme="dark"] .contact-form-panel textarea {
  background: rgba(10, 16, 28, 0.84);
  border-color: rgba(112, 148, 206, 0.24);
}

[data-theme="dark"] .contact-form-panel input:focus,
[data-theme="dark"] .contact-form-panel textarea:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

[data-theme="dusk"] .page-hero {
  border-bottom-color: rgba(112, 148, 206, 0.28);
}

[data-theme="dusk"] .page-panel {
  background: linear-gradient(180deg, rgba(34, 49, 69, 0.94) 0%, rgba(25, 37, 54, 0.97) 100%);
  box-shadow: 0 18px 40px rgba(5, 10, 18, 0.34);
  --panel-border: linear-gradient(135deg, rgba(56, 214, 245, 0.46) 0%, rgba(87, 155, 255, 0.32) 54%, rgba(112, 148, 206, 0.18) 100%);
  --panel-aura: radial-gradient(280px 170px at 18% 8%, rgba(56, 189, 248, 0.08), transparent 72%);
}

[data-theme="dusk"] .about-number,
[data-theme="dusk"] .contact-icon {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.26), rgba(33, 52, 84, 0.78));
  border-color: rgba(96, 165, 250, 0.46);
  color: #93C5FD;
}

[data-theme="dusk"] .contact-form-panel input,
[data-theme="dusk"] .contact-form-panel textarea {
  background: rgba(21, 32, 48, 0.86);
  border-color: rgba(132, 166, 218, 0.28);
}

[data-theme="dusk"] .contact-form-panel input:focus,
[data-theme="dusk"] .contact-form-panel textarea:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}