:root {
  --bg: #090c15;
  --gold: #c8a97e;
  --gold-light: #e5cbab;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(200, 169, 126, 0.45);
  --card-bg: rgba(255, 255, 255, 0.025);
  --field-bg: rgba(13, 17, 28, 0.7);
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200, 169, 126, 0.07), transparent 70%), #090c15;
  color: var(--text-main);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

canvas#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Shared Site Header & Navigation
   ========================================================================== */
header.site-header {
  width: 100%;
  max-width: 1080px;
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #f8fafc;
}

.brand .logo-horizontal {
  height: 66px;
  width: auto;
  aspect-ratio: 620 / 120;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand .logo-monogram {
  height: 60px;
  width: 60px;
  display: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-link,
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all .2s ease;
  min-height: 40px;
}

.nav-link:hover,
.nav-back:hover {
  color: #f8fafc;
  border-color: rgba(200, 169, 126, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Shared Typography, Badges & Footer
   ========================================================================== */
.intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 169, 126, 0.28);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #e2e8f0;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

h1 {
  margin: 1.8rem 0 1rem;
  font-size: clamp(2.35rem, 7.5vw, 5.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #ffffff 35%, #e2e8f0 70%, #c8a97e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p.sub {
  font-size: clamp(0.96rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 400;
}

footer {
  margin-top: 3.5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  font-size: .75rem;
  color: #64748b;
  letter-spacing: .18em;
  font-weight: 400;
  text-align: center;
  position: relative;
  z-index: 2;
}

footer .footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.9;
}

/* ==========================================================================
   Home Page (.page-home)
   ========================================================================== */
.page-home main {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  width: min(980px, 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-home p.sub {
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.rot {
  width: 100%;
  min-height: 2.2em;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #cbd5e1;
  font-weight: 400;
  margin-bottom: 1.2rem;
  position: relative;
  letter-spacing: -.01em;
}

.rot span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all .7s ease;
}

.rot span.on {
  opacity: 1;
  transform: none;
}

.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3.2rem;
  text-align: left;
}

.cards .card {
  padding: 1.8rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.cards .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--x, 50%) var(--y, 0%), rgba(200, 169, 126, 0.09), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}

.cards .card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.cards .card:hover::before {
  opacity: 1;
}

.cards .card > * {
  position: relative;
}

.num {
  font-size: .8rem;
  letter-spacing: .25em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .8rem;
}

.cards .card h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -.01em;
}

.cards .card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.redact {
  display: inline-block;
  height: .8em;
  width: 5.5em;
  vertical-align: middle;
  border-radius: 3px;
  background: rgba(200, 169, 126, 0.16);
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  cursor: pointer;
  font: inherit;
  color: #f8fafc;
  padding: .95rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 126, 0.4);
  background: rgba(200, 169, 126, 0.08);
  backdrop-filter: blur(10px);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .25s ease;
  min-height: 48px;
}

.contact:hover {
  background: rgba(200, 169, 126, 0.16);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(200, 169, 126, 0.12);
}

/* ==========================================================================
   Contact Page (.page-contact)
   ========================================================================== */
.page-contact main {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  padding: 1.5rem 1.5rem 5rem;
  flex: 1;
}

.page-contact h1 {
  margin: 1.4rem 0 .8rem;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-container .card {
  padding: 2.2rem;
  border-radius: 16px;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.form-container .card h2 {
  font-size: 1.35rem;
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: 1.4rem;
  letter-spacing: -.01em;
}

.form-group {
  margin-bottom: 1.3rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

label span.req {
  color: var(--gold);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--field-bg);
  border: 1px solid var(--border);
  color: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #475569;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
  background: rgba(18, 23, 38, 0.85);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23c8a97e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

select option {
  background: #0c0f1c;
  color: #f8fafc;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  cursor: pointer;
  font: inherit;
  color: #f8fafc;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 126, 0.4);
  background: rgba(200, 169, 126, 0.12);
  backdrop-filter: blur(10px);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .84rem;
  font-weight: 600;
  transition: all .25s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
  background: rgba(200, 169, 126, 0.22);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(200, 169, 126, 0.15);
}

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

.status-box {
  display: none;
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.status-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #ecfdf5;
}

.status-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fef2f2;
}

.confirmation-view {
  display: none;
  text-align: center;
  padding: 1.8rem 1rem;
}

.confirmation-view.active {
  display: block;
  animation: fadeIn .35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.18);
}

.confirmation-view h2 {
  font-size: 1.6rem;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.confirmation-view p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 1.8rem;
}

.confirmation-view p strong,
.confirmation-view p span {
  color: #f8fafc;
  font-weight: 500;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: .7rem 1.4rem;
  border-radius: 999px;
  transition: all .2s ease;
}

.btn-reset:hover {
  border-color: var(--gold);
  background: rgba(200, 169, 126, 0.1);
  color: #f8fafc;
}

/* ==========================================================================
   Expertise Page (.page-expertise)
   ========================================================================== */
.page-expertise main {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  padding: 0.5rem 1.5rem 4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-expertise .intro {
  margin-bottom: 1.2rem;
}

.page-expertise .badge {
  padding: .42rem 1.1rem;
  font-size: .74rem;
}

.page-expertise .dot {
  background: var(--gold);
  animation: pulseGold 2.5s infinite;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(200, 169, 126, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(200, 169, 126, 0); }
}

.page-expertise h1 {
  margin: 1.1rem 0 .6rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.page-expertise p.sub {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.65;
}

.ecosystem-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(580px, 72vh, 760px);
  margin: 0.5rem auto 1.5rem;
  user-select: none;
}

svg.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.conn-line {
  stroke: rgba(200, 169, 126, 0.2);
  stroke-width: 1.4;
  fill: none;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}

.conn-line.active {
  stroke: rgba(229, 203, 171, 0.85);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(200, 169, 126, 0.55));
}

.conn-line.dimmed {
  opacity: 0.25;
}

.conn-pulse {
  fill: var(--gold-light);
  opacity: 0.75;
  filter: drop-shadow(0 0 6px rgba(200, 169, 126, 0.9));
}

.oval-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(22, 29, 47, 0.88), rgba(11, 15, 26, 0.92));
  border: 1px solid rgba(200, 169, 126, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, opacity 0.28s ease;
  padding: 0.75rem 1.55rem;
  min-width: 148px;
  min-height: 62px;
  text-align: center;
}

.oval-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(200, 169, 126, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.oval-node:hover,
.oval-node.active {
  border-color: var(--gold-light);
  background: linear-gradient(145deg, rgba(32, 41, 66, 0.95), rgba(16, 21, 36, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 28px rgba(200, 169, 126, 0.28), inset 0 1px 0 rgba(229, 203, 171, 0.25);
  z-index: 6;
}

.oval-node:hover::before,
.oval-node.active::before {
  opacity: 1;
}

.oval-node.dimmed {
  opacity: 0.45;
}

.oval-node .node-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.18rem;
}

.oval-node .node-label {
  font-size: 0.94rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.oval-node.leadership {
  min-width: 163px;
  min-height: 68px;
  padding: 0.83rem 1.7rem;
  border-color: rgba(200, 169, 126, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 169, 126, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.oval-node.leadership .node-kicker {
  font-size: 0.68rem;
  color: var(--gold-light);
}

.oval-node.leadership .node-label {
  font-size: 1.04rem;
  font-weight: 700;
}

.oval-node.central {
  min-width: 220px;
  min-height: 98px;
  padding: 1.1rem 2.4rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(200, 169, 126, 0.22), rgba(15, 20, 34, 0.95) 75%);
  border: 1.5px solid rgba(200, 169, 126, 0.65);
  box-shadow: 0 0 45px rgba(200, 169, 126, 0.22), 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 5;
}

.oval-node.central::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px dashed rgba(200, 169, 126, 0.28);
  animation: orbitSpin 28s linear infinite;
  pointer-events: none;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.oval-node.central .node-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--gold-light);
}

.oval-node.central .node-label {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #e5cbab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail-popup {
  position: absolute;
  width: min(350px, calc(100vw - 2rem));
  padding: 1.35rem 1.45rem;
  border-radius: 16px;
  background: rgba(11, 15, 26, 0.94);
  border: 1px solid rgba(200, 169, 126, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 169, 126, 0.16);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.detail-popup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.popup-close {
  display: none;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.popup-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.popup-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.popup-sub {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.popup-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.popup-list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.7rem;
  display: grid;
  gap: 0.38rem;
}

.popup-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.popup-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.42rem;
  flex-shrink: 0;
}

.hint-bar {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 760px) {
  .page-expertise header.site-header { padding: 1.15rem 1.1rem; }
  .page-expertise .brand .logo-horizontal { height: 51px; }
  .page-expertise .nav-link { padding: .48rem .75rem; font-size: 0.76rem; }
  .page-expertise main { padding: 0.3rem 0.75rem 3rem; }
  .page-expertise .intro { padding: 0 0.5rem; margin-bottom: 0.6rem; }
  .ecosystem-wrapper { height: 730px; margin: 0.25rem auto 1rem; }
  .oval-node { min-width: 98px; min-height: 44px; padding: 0.42rem 0.8rem; }
  .oval-node .node-kicker { font-size: 0.5rem; letter-spacing: 0.15em; margin-bottom: 0.1rem; }
  .oval-node .node-label { font-size: 0.75rem; }
  .oval-node.leadership { min-width: 112px; min-height: 50px; padding: 0.48rem 0.95rem; }
  .oval-node.leadership .node-kicker { font-size: 0.55rem; }
  .oval-node.leadership .node-label { font-size: 0.83rem; }
  .oval-node.central { min-width: 126px; min-height: 64px; padding: 0.6rem 1.1rem; }
  .oval-node.central .node-kicker { font-size: 0.55rem; }
  .oval-node.central .node-label { font-size: 0.98rem; }
  .detail-popup {
    position: fixed;
    left: 0.9rem !important;
    right: 0.9rem !important;
    bottom: 0.9rem !important;
    top: auto !important;
    width: auto;
    max-width: 460px;
    margin: 0 auto;
    z-index: 50;
    padding: 1.25rem 1.3rem;
  }
  .popup-close { display: inline-flex; }
  .page-expertise footer { margin-top: 2.2rem; font-size: .68rem; letter-spacing: .14em; }
}

@media (max-width: 640px) {
  header.site-header { padding: 1.15rem 1.1rem; }
  .brand .logo-horizontal { height: 51px; }
  .nav-link, .nav-back { padding: .48rem .75rem; font-size: 0.76rem; }
  .page-home main { padding: 1.2rem 1.1rem 3rem; }
  .page-home .badge { font-size: .7rem; padding: .4rem .95rem; letter-spacing: .18em; }
  .page-home h1 { margin: 1.3rem 0 .8rem; }
  .rot { min-height: 2.9em; margin-bottom: 1rem; }
  .page-home p.sub { margin-bottom: 2.2rem; line-height: 1.65; }
  .cards { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.2rem; }
  .cards .card { padding: 1.35rem 1.25rem; }
  .contact { width: 100%; max-width: 320px; }
  .page-contact main { padding: 0.8rem 1.1rem 3rem; }
  .page-contact .intro { margin-bottom: 2.2rem; }
  .page-contact h1 { margin: 0.8rem 0 0.6rem; }
  .form-container .card { padding: 1.45rem 1.2rem; }
  .btn-submit { min-height: 48px; }
  footer { margin-top: 2.6rem; font-size: .68rem; letter-spacing: .14em; }
}

@media (max-width: 480px) {
  .brand .logo-horizontal { display: none; }
  .brand .logo-monogram { display: block; }
}
