@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

:root {
  --paper: #edf3f5;
  --paper-soft: #d8e5e8;
  --text: #18333b;
  --muted: #58717a;
  --line: #a8c0c7;
  --sand: #f06449;
  --sage: #9cc7c5;
  --sage-dark: #007f86;
  --charcoal: #10272e;
  --serif: "Space Grotesk", Verdana, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
}

body.dynamics-page {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.45;
}

body.dynamics-page a {
  color: inherit;
  text-decoration: none;
}

.back-link {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  color: var(--charcoal);
  background: var(--sand);
  font: 700 11px var(--sans);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 8px 14px;
  border: 1px solid var(--paper);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  min-width: 140px;
}

.back-link:hover,
.back-link:focus {
  color: var(--paper);
  background: var(--charcoal);
}

.dynamics-shell {
  min-height: 100vh;
  background: var(--paper);
  position: relative;
}

.site-header {
  min-height: 94px;
  padding: 14px 40px 14px 76px;
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(520px, 1fr) auto;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--charcoal);
  transform: rotate(-12deg);
  background: transparent;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--charcoal);
  border-left: 2px solid var(--charcoal);
  border-radius: 50% 0 0 50%;
  transform: rotate(18deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-bottom: 2px solid var(--charcoal);
  border-right: 2px solid var(--charcoal);
  border-radius: 0 50% 0 50%;
  transform: rotate(18deg);
}

.brand-mark-one,
.brand-mark-two {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
}

.brand-mark-one { transform: rotate(45deg); }
.brand-mark-two { transform: rotate(-45deg); }

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--serif);
  font-size: clamp(30px, 2vw, 34px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.05;
  letter-spacing: .02em;
}

.brand-subtitle {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .20em;
  text-transform: uppercase;
  margin-top: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  line-height: 1;
  padding: 10px 0;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 260ms ease, border-color 260ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 270ms ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
  color: var(--sage-dark);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  background: var(--charcoal);
  color: var(--paper);
}

.site-main {
  min-height: calc(100vh - 94px);
}

.dynamics-home {
  min-height: calc(100vh - 94px);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero-stage {
  min-height: 530px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 36px 60px 0;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(90deg, rgba(248,244,232,.8), transparent);
}

.hero-graphic-wrap {
  width: min(760px, 62vw);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-graphic {
  position: relative;
  width: min(740px, 62vw);
  height: min(360px, 32vw);
  min-width: 640px;
  min-height: 280px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 320ms ease;
}

.hero-slide.active-slide {
  opacity: 1;
}

.arrow {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 260ms ease, color 260ms ease;
}

.arrow-left { left: 64px; top: 50%; transform: translateY(-50%); }
.arrow-right { right: 64px; top: 50%; transform: translateY(-50%); }

.arrow:hover {
  background: var(--charcoal);
  color: var(--paper);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: -16px;
}

.control-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--charcoal);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.control-dot.active-dot {
  background: var(--charcoal);
}

.hero-explore {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.explore-icon {
  font-size: 22px;
}

.explore-label {
  font-size: 11px;
}

.page-section {
  min-height: calc(100vh - 94px);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 80px;
}

.page-content-wrap {
  width: min(1240px, calc(100vw - 160px));
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(420px, 0.96fr);
  gap: 40px;
  align-items: center;
}

.page-copy {
  padding: 36px 0;
}

.page-kicker {
  color: var(--sage-dark);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.page-copy h1 {
  font-family: var(--serif);
  color: var(--charcoal);
  font-weight: 500;
  font-size: clamp(56px, 4vw, 76px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 24px;
}

.page-lead {
  font-family: var(--sans);
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.8;
  max-width: 660px;
}

.page-detail {
  font-family: var(--sans);
  color: var(--muted);
  line-height: 1.8;
  max-width: 680px;
}

.page-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 26px;
  max-width: 680px;
}

.page-stats .stat-number {
  font-family: var(--serif);
  display: block;
  color: var(--charcoal);
  font-size: clamp(34px, 2.8vw, 42px);
  line-height: 1;
}

.page-stats .stat-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-top: 8px;
}

.page-image {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-image img {
  width: 100%;
  max-height: 560px;
  min-height: 420px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.10);
}

.contact-wrap {
  grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--charcoal);
  margin-top: 24px;
}

.contact-form {
  background: var(--paper-soft);
  padding: 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  padding: 12px 0;
  outline: none;
  font-family: var(--sans);
  font-size: 12px;
}

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

.form-button {
  width: fit-content;
  background: var(--charcoal);
  color: var(--paper);
  border: 1px solid var(--charcoal);
  padding: 14px 28px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.form-button:hover {
  background: var(--paper);
  color: var(--charcoal);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-graphic-wrap {
    width: min(620px, 92vw);
  }

  .hero-graphic {
    min-width: 420px;
  }

  .page-section {
    padding: 40px 30px;
  }

  .page-content-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-stats {
    flex-wrap: wrap;
  }
}

/* Design Dynamics_1 visual system */
.dynamics-shell,
.site-header,
.dynamics-home,
.page-section { background: var(--paper); }

.site-header {
  min-height: 112px;
  padding-left: 92px;
  border-bottom: 3px solid var(--charcoal);
}

.brand-mark {
  border-radius: 4px;
  border-color: var(--sand);
  background: var(--charcoal);
  transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark::after { border-color: var(--sand); }
.brand-mark-one,
.brand-mark-two { background: var(--sand); }
.brand-title { font-weight: 700; letter-spacing: -.06em; }
.brand-subtitle { color: var(--sage-dark); }

.nav-link { position: relative; color: var(--charcoal); letter-spacing: .04em; }
.nav-link:hover,
.nav-link.active,
.nav-link:focus { color: var(--sand); }
.nav-link::after { background: var(--sand); }

.social-link { border-radius: 4px; border-color: var(--sage-dark); color: var(--sage-dark); }
.social-link:hover { background: var(--sand); color: var(--charcoal); border-color: var(--sand); }
.back-link { background: var(--sand); color: var(--charcoal); border-radius: 0 0 4px 0; }

.hero-stage { min-height: 570px; padding-top: 58px; }
.hero-stage::before { width: 180px; background: linear-gradient(90deg, rgba(216,229,232,.9), transparent); }
.hero-graphic { border: 8px solid var(--charcoal); box-shadow: 18px 18px 0 var(--sand); }
.arrow { border-radius: 4px; border-color: var(--sand); color: var(--sand); background: var(--charcoal); }
.arrow:hover { background: var(--sand); color: var(--charcoal); }
.hero-controls { gap: 8px; margin-top: -8px; }
.control-dot { border-radius: 2px; border-color: var(--sage-dark); }
.control-dot.active-dot { background: var(--sand); border-color: var(--sand); }
.hero-explore { color: var(--sage-dark); }

.page-section { padding-top: 64px; padding-bottom: 64px; }
.page-copy h1 { font-weight: 700; letter-spacing: -.07em; color: var(--charcoal); }
.page-kicker { color: var(--sand); }
.page-lead { color: var(--text); line-height: 1.55; }
.page-detail { color: var(--muted); }
.page-stats { border-top: 3px solid var(--charcoal); }
.page-stats .stat-number { color: var(--sage-dark); font-weight: 700; }
.page-image img { border: 8px solid var(--charcoal); box-shadow: 18px 18px 0 var(--sage); }

.contact-page { align-items: flex-start; }
.contact-wrap { grid-template-columns: minmax(300px, .75fr) minmax(520px, 1.25fr); align-items: start; }
.contact-page .page-copy { padding-top: 22px; }
.contact-list { color: var(--sage-dark); }
.contact-form { background: var(--charcoal); border: none; padding: 34px; color: var(--paper); box-shadow: 18px 18px 0 var(--sand); }
.contact-form label { color: var(--sage); }
.contact-form input,
.contact-form textarea { color: var(--paper); border-bottom-color: #49636b; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a8c0c7; }
.form-button { background: var(--sand); color: var(--charcoal); border-color: var(--sand); cursor: pointer; }
.form-button:hover { background: var(--paper); color: var(--charcoal); }
.contact-extra { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; margin-top: 28px; }
.contact-address { border-left: 4px solid var(--sand); padding: 10px 0 10px 16px; color: var(--text); font-size: 14px; line-height: 1.7; }
.contact-address strong { display: block; color: var(--sage-dark); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.map-panel { position: relative; min-height: 230px; overflow: hidden; border: 1px solid var(--sage-dark); background: #b8d1cf; }
.map-panel::before { content: ""; position: absolute; inset: 0; opacity: .55; background: linear-gradient(28deg, transparent 43%, #f2e8d2 44% 47%, transparent 48%), linear-gradient(118deg, transparent 36%, #f2e8d2 37% 40%, transparent 41%), linear-gradient(168deg, transparent 61%, #8fb9b6 62% 72%, transparent 73%); }
.map-road { position: absolute; display: block; height: 10px; background: rgba(248,243,226,.88); transform-origin: left center; box-shadow: 0 1px 0 rgba(16,39,46,.08); }
.map-road-one { width: 140%; left: -20%; top: 38%; transform: rotate(-18deg); }
.map-road-two { width: 120%; left: -10%; top: 68%; transform: rotate(14deg); }
.map-road-three { width: 92%; left: 27%; top: 12%; transform: rotate(78deg); }
.map-pin { position: absolute; left: 52%; top: 48%; width: 24px; height: 24px; border: 6px solid var(--paper); border-radius: 50% 50% 50% 0; background: var(--sand); transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(16,39,46,.28); }
.map-pin::after { content: ""; position: absolute; width: 6px; height: 6px; left: 3px; top: 3px; border-radius: 50%; background: var(--charcoal); }
.map-label { position: absolute; left: 16px; top: 16px; color: var(--charcoal); font: 700 11px/1.4 var(--sans); letter-spacing: .13em; }
.map-label small { color: var(--sage-dark); font-size: 9px; }
.map-link { position: absolute; right: 12px; bottom: 12px; padding: 9px 11px; background: var(--charcoal); color: var(--paper) !important; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.map-link:hover { background: var(--sand); color: var(--charcoal) !important; }

@media (max-width: 960px) {
  .site-header { padding-left: 20px; }
  .hero-graphic { min-width: 0; width: min(740px, 82vw); box-shadow: 10px 10px 0 var(--sand); }
  .contact-extra { grid-template-columns: 1fr; }
}
