:root {
  --background: #faf7f2;
  --surface: #fffdfa;
  --surface-soft: #f1ebe3;
  --primary: #17636a;
  --primary-deep: #0d3b3f;
  --primary-light: #d8e9e6;
  --accent: #a95736;
  --accent-light: #f2dacb;
  --text: #173235;
  --text-soft: #617174;
  --line: #deddd5;
  --deep-surface: #0d2f33;
  --deep-surface-2: #17474a;
  --shadow: 0 24px 70px rgba(13, 59, 63, 0.12);
  --shadow-soft: 0 12px 36px rgba(13, 59, 63, 0.08);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(220, 232, 228, 0.30), transparent 30%),
    var(--background);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  background: var(--primary-light);
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary-deep);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.eyebrow-light {
  color: #f0f2f1;
}

.section-heading h2 {
  max-width: 680px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 650px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.section-heading.centered {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 58px;
  text-align: center;
}

.section-heading.centered h2 {
  max-width: 790px;
}

.section-heading.centered p {
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(111, 143, 134, 0.24);
}

.button-primary:hover {
  background: var(--primary-deep);
  box-shadow: 0 18px 40px rgba(111, 143, 134, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--primary-light);
  background: var(--surface);
}

.button-light {
  background: #ffffff;
  color: var(--primary-deep);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.site-header.scrolled {
  border-color: rgba(217, 232, 228, 0.8);
  background: rgba(246, 250, 248, 0.86);
  box-shadow: 0 8px 35px rgba(23, 27, 26, 0.05);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 25px rgba(111, 143, 134, 0.20);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.94rem;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 170ms ease;
}

.main-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav .nav-contact {
  padding: 11px 19px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--text);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  padding: 164px 0 94px;
}

.hero-decoration {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.decoration-one {
  top: 70px;
  right: -130px;
  width: 450px;
  height: 450px;
  background: rgba(220, 232, 228, 0.22);
}

.decoration-two {
  bottom: 70px;
  left: -100px;
  width: 280px;
  height: 280px;
  background: rgba(159, 176, 170, 0.10);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 70px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #839d95;
  box-shadow: 0 0 0 5px rgba(129,157,148,0.14);
}

.hero h1 {
  max-width: 720px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.7rem, 7.7vw, 6.9rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  margin-top: 14px;
  color: var(--primary);
  font-style: normal;
}

.hero-text {
  max-width: 670px;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

.hero-facts {
  display: grid;
  max-width: 680px;
  margin-top: 54px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-facts div {
  padding-left: 17px;
  border-left: 2px solid var(--primary-light);
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.hero-facts span {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.visual-card {
  position: absolute;
  z-index: 2;
  top: 40px;
  right: 0;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 34px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.98), rgba(237,247,244,0.94));
  box-shadow: var(--shadow);
}

.visual-card::before {
  position: absolute;
  top: -110px;
  right: -70px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(220, 232, 228, 0.30);
  content: "";
}

.visual-card-header,
.visual-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-card-header {
  border-bottom: 1px solid var(--line);
}

.live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(111, 143, 134, 0.10);
}

.visual-map {
  position: relative;
  height: 400px;
}

.visual-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visual-map path {
  fill: none;
  stroke: url(#lineGradient);
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  stroke-width: 2.2;
  animation: dash 18s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -240; }
}

.map-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 51%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 12px solid rgba(220, 232, 228, 0.28);
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 44px rgba(111, 143, 134, 0.28);
}

.map-center strong {
  margin-top: 15px;
  font-size: 1.5rem;
}

.map-center span {
  align-self: start;
  margin-top: -8px;
  font-size: 0.63rem;
  font-weight: 700;
  opacity: 0.8;
}

.map-node {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 232, 228, 0.9);
  border-radius: 17px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 28px rgba(23, 27, 26, 0.07);
  backdrop-filter: blur(10px);
}

.map-node strong,
.map-node small {
  display: block;
}

.map-node strong {
  margin-top: 7px;
  font-size: 0.8rem;
}

.map-node small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.61rem;
}

.node-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.node-electronics {
  top: 34px;
  left: 26px;
}

.node-systems {
  top: 31px;
  right: 21px;
}

.node-electric {
  right: 83px;
  bottom: 21px;
}

.visual-footer {
  border-top: 1px solid var(--line);
}

.visual-footer span {
  position: relative;
  padding-left: 13px;
}

.visual-footer span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  background: rgba(255,255,255,0.91);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.floating-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 800;
}

.floating-note strong,
.floating-note small {
  display: block;
}

.floating-note strong {
  font-size: 0.75rem;
}

.floating-note small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.61rem;
}

.note-one {
  top: 0;
  left: -15px;
  animation: float 5s ease-in-out infinite;
}

.note-two {
  right: -20px;
  bottom: 3px;
  animation: float 5s ease-in-out 1s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.expertise-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.strip-inner {
  display: flex;
  min-height: 105px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.strip-label {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip-items {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 43px;
}

.strip-items span {
  position: relative;
  font-size: 0.85rem;
  font-weight: 800;
}

.strip-items span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -24px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
  content: "";
  transform: translateY(-50%);
}

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.about-content {
  color: var(--text-soft);
}

.about-content > p + p {
  margin-top: 19px;
}

.about-content .intro {
  margin-bottom: 25px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.principles {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.principles article {
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.principles span {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
}

.principles h3 {
  margin-top: 11px;
  font-size: 0.94rem;
}

.principles p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.services-section {
  background: var(--background);
}

.services-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 33px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.82);
  transition:
    transform 230ms ease,
    box-shadow 230ms ease,
    border-color 230ms ease;
}

.service-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-featured {
  border-color: rgba(111, 143, 134, 0.18);
  background:
    radial-gradient(circle at 90% 5%, rgba(220,232,228,0.34), transparent 28%),
    var(--surface);
}

.featured-label {
  position: absolute;
  top: 0;
  right: 28px;
  padding: 7px 12px;
  border-radius: 0 0 10px 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--primary);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.service-card h3 {
  margin-top: 33px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.service-card > p {
  min-height: 105px;
  margin-top: 17px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.service-card ul {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.service-card li::before {
  position: absolute;
  top: 16px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.project-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(168,185,179,0.12), transparent 33%),
    var(--deep-surface);
  color: #ffffff;
}

.project-heading {
  display: grid;
  margin-bottom: 58px;
  grid-template-columns: 1fr 0.65fr;
  gap: 35px;
}

.project-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.project-heading > p {
  align-self: end;
  color: #e1e6e4;
}

.project-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.07);
  grid-template-columns: 1.17fr 0.83fr;
  backdrop-filter: blur(16px);
}

.project-preview {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 55px;
  background:
    linear-gradient(135deg, rgba(220,232,228,0.95), rgba(168,185,179,0.78));
}

.browser-frame {
  width: 100%;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,0.38);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(23, 27, 26, 0.18);
  transform: rotate(-1.3deg);
}

.browser-toolbar {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 14px;
  padding: 0 13px;
  border-bottom: 1px solid #e8ebe9;
  background: #ffffff;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c2cac7;
}

.browser-address {
  flex: 1;
  padding: 5px 10px;
  border-radius: 99px;
  background: #fafafa;
  color: #737b78;
  font-size: 0.48rem;
}

.browser-page {
  padding: 18px 19px 24px;
}

.preview-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.preview-nav > span:not(.preview-logo) {
  width: 29px;
  height: 4px;
  border-radius: 99px;
  background: #e8ebe9;
}

.preview-logo {
  margin-right: auto;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-hero {
  display: grid;
  align-items: center;
  min-height: 230px;
  padding: 30px 20px;
  grid-template-columns: 1fr 0.75fr;
  gap: 25px;
}

.preview-hero > div:first-child {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.preview-kicker,
.preview-title,
.preview-copy,
.preview-button {
  display: block;
  border-radius: 99px;
}

.preview-kicker {
  width: 50px;
  height: 5px;
  background: var(--accent);
}

.preview-title {
  width: 90%;
  height: 15px;
  margin-top: 18px;
  background: #4b5e59;
}

.preview-title.short {
  width: 70%;
  margin-top: 7px;
}

.preview-copy {
  width: 84%;
  height: 5px;
  margin-top: 18px;
  background: #d8dddb;
}

.preview-copy.small {
  width: 66%;
  margin-top: 6px;
}

.preview-button {
  width: 70px;
  height: 20px;
  margin-top: 21px;
  background: var(--primary);
}

.preview-art {
  position: relative;
  height: 150px;
  border-radius: 40% 60% 65% 35% / 45% 38% 62% 55%;
  background: #e8eeeb;
}

.preview-art span {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
}

.preview-art span:nth-child(1) {
  top: 29px;
  left: 40px;
  width: 62px;
  height: 62px;
}

.preview-art span:nth-child(2) {
  right: 35px;
  bottom: 30px;
  width: 35px;
  height: 35px;
  background: var(--accent);
}

.preview-art span:nth-child(3) {
  right: 50px;
  top: 21px;
  width: 14px;
  height: 14px;
  background: #ffffff;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-cards span {
  height: 70px;
  border: 1px solid #f1f3f2;
  border-radius: 10px;
  background: #ffffff;
}

.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 56px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #f0f2f1;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-info h3 {
  margin-top: 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.project-info > p {
  margin-top: 20px;
  color: #e1e6e4;
  font-size: 0.9rem;
}

.project-details {
  display: grid;
  width: 100%;
  margin-top: 30px;
  padding: 23px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-details span,
.project-details strong {
  display: block;
}

.project-details span {
  color: #a8b5b1;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-details strong {
  margin-top: 7px;
  font-size: 0.78rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 30px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.project-link span {
  transition: transform 180ms ease;
}

.project-link:hover span {
  transform: translate(4px, -4px);
}

.education-section {
  background: var(--surface);
}

.education-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  padding-left: 42px;
  grid-template-columns: 110px 1fr;
  gap: 25px;
}

.timeline-item + .timeline-item {
  margin-top: 50px;
}

.timeline-marker {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.timeline-period {
  padding-top: 2px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-content {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.timeline-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.timeline-content p {
  margin-top: 9px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-content > span {
  display: block;
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.contact-section {
  padding-top: 25px;
  background: var(--surface);
}

.contact-card {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 68px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,0.13), transparent 23%),
    linear-gradient(135deg, var(--primary-deep), var(--deep-surface-2));
  color: #ffffff;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  box-shadow: var(--shadow);
}

.contact-card > div:not(.contact-orb) {
  position: relative;
  z-index: 2;
}

.contact-card h2 {
  max-width: 660px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.contact-card p {
  max-width: 650px;
  margin-top: 23px;
  color: #e9eceb;
}

.contact-actions {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.contact-email {
  color: #f7f7f6;
  font-size: 0.84rem;
  font-weight: 700;
  word-break: break-all;
}

.contact-email:hover {
  color: #ffffff;
}

.contact-orb {
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255,255,255,0.04),
    0 0 0 90px rgba(255,255,255,0.025);
}

.site-footer {
  padding: 46px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand .brand-symbol {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.footer-inner > p,
.footer-inner > a {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.footer-inner > a {
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1060px) {
  .hero-grid {
    gap: 35px;
  }

  .hero-visual {
    min-height: 525px;
  }

  .map-node {
    min-width: 132px;
  }

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

  .service-card:last-child {
    grid-column: 1 / -1;
  }

  .project-preview {
    padding: 36px;
  }

  .project-info {
    padding: 42px;
  }
}

@media (max-width: 880px) {
  .section {
    padding: 90px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 20px;
    left: 20px;
    display: flex;
    visibility: hidden;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 15px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .nav-contact {
    margin-top: 7px;
    text-align: center;
  }

  .hero {
    padding-top: 135px;
  }

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

  .hero-copy {
    text-align: center;
  }

  .availability,
  .hero-actions {
    justify-content: center;
  }

  .hero h1,
  .hero-text {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 580px;
  }

  .visual-card {
    right: 50%;
    transform: translateX(50%);
  }

  .note-one {
    left: 2%;
  }

  .note-two {
    right: 1%;
  }

  .strip-inner {
    flex-direction: column;
    padding: 29px 0;
    gap: 20px;
  }

  .strip-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 32px;
  }

  .about-grid,
  .education-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .project-heading {
    display: block;
  }

  .project-heading > p {
    margin-top: 24px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-preview {
    min-height: 500px;
  }

  .contact-card {
    padding: 50px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 68px;
  }

  .availability {
    font-size: 0.63rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 4.8rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: left;
  }

  .hero-visual {
    min-height: 515px;
    margin-top: 18px;
  }

  .visual-card {
    top: 25px;
    border-radius: 25px;
  }

  .visual-map {
    height: 345px;
  }

  .map-center {
    width: 92px;
    height: 92px;
  }

  .map-node {
    min-width: 117px;
    padding: 10px 11px;
  }

  .map-node small {
    display: none;
  }

  .node-electronics {
    top: 30px;
    left: 13px;
  }

  .node-systems {
    top: 28px;
    right: 10px;
  }

  .node-electric {
    right: 47px;
    bottom: 21px;
  }

  .visual-footer {
    padding: 18px 14px;
    font-size: 0.56rem;
  }

  .floating-note {
    display: none;
  }

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

  .service-card:last-child {
    grid-column: auto;
  }

  .service-card > p {
    min-height: auto;
  }

  .project-preview {
    min-height: 380px;
    padding: 23px;
  }

  .preview-hero {
    min-height: 190px;
    padding: 20px 8px;
  }

  .preview-art {
    height: 120px;
  }

  .project-info {
    padding: 34px 27px;
  }

  .project-details {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-left: 34px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-period {
    padding-top: 0;
  }

  .contact-card {
    padding: 38px 25px;
    border-radius: 26px;
  }

  .contact-actions {
    align-items: stretch;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Identidade cromática: petróleo, cobre e marfim */
body {
  background:
    radial-gradient(circle at 10% 5%, rgba(216, 233, 230, 0.72), transparent 29%),
    radial-gradient(circle at 92% 9%, rgba(242, 218, 203, 0.46), transparent 25%),
    var(--background);
}

::selection {
  background: var(--accent-light);
  color: var(--primary-deep);
}

.site-header.scrolled {
  border-color: rgba(222, 221, 213, 0.9);
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 8px 35px rgba(13, 59, 63, 0.06);
}

.hero-decoration {
  opacity: 0.8;
}

.decoration-one {
  background: rgba(216, 233, 230, 0.64);
}

.decoration-two {
  background: rgba(242, 218, 203, 0.52);
}

.hero h1,
.section-heading h2,
.service-card h3,
.timeline-content h3 {
  color: var(--text);
  letter-spacing: -0.035em;
}

.hero h1 {
  line-height: 0.92;
}

.section-heading h2 {
  line-height: 1;
}

.hero h1 em,
.card-number,
.principles span {
  color: var(--accent);
}

.eyebrow {
  color: var(--primary);
}

.availability,
.button,
.main-nav a,
.strip-label,
.strip-items span,
.card-number,
.project-tags span,
.timeline-period {
  letter-spacing: 0.03em;
}

.brand-symbol,
.button-primary,
.main-nav .nav-contact,
.map-center {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.brand-symbol {
  box-shadow: 0 10px 25px rgba(13, 59, 63, 0.2);
}

.button-primary {
  box-shadow: 0 14px 34px rgba(23, 99, 106, 0.22);
}

.button-primary:hover {
  background: var(--primary-deep);
  box-shadow: 0 18px 40px rgba(13, 59, 63, 0.25);
}

.button-secondary,
.availability,
.expertise-strip {
  background: rgba(255, 253, 250, 0.74);
}

.visual-card {
  border-color: rgba(255, 253, 250, 0.84);
  background:
    linear-gradient(150deg, rgba(255, 253, 250, 0.99), rgba(239, 246, 243, 0.97));
}

.visual-card::before {
  background:
    radial-gradient(circle, rgba(242, 218, 203, 0.56), rgba(216, 233, 230, 0.22) 58%, transparent 72%);
}

.live-indicator,
.availability span {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201, 120, 77, 0.13);
}

.map-center {
  border-color: rgba(216, 233, 230, 0.4);
  box-shadow: 0 18px 44px rgba(13, 59, 63, 0.25);
}

.map-node,
.floating-note {
  border-color: rgba(216, 233, 230, 0.9);
  background: rgba(255, 253, 250, 0.92);
}

.node-icon,
.service-icon,
.floating-note > span {
  background: var(--accent-light);
  color: var(--primary-deep);
}

.service-card {
  background: rgba(255, 253, 250, 0.86);
}

.service-featured {
  border-color: rgba(201, 120, 77, 0.28);
  background:
    radial-gradient(circle at 90% 5%, rgba(242, 218, 203, 0.62), transparent 30%),
    var(--surface);
}

.featured-label {
  background: var(--accent);
}

.service-card:hover {
  border-color: rgba(201, 120, 77, 0.46);
  box-shadow: 0 24px 70px rgba(13, 59, 63, 0.12);
}

.service-card li::before,
.visual-footer span::before {
  background: var(--accent);
}

.project-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 120, 77, 0.2), transparent 33%),
    radial-gradient(circle at 0% 100%, rgba(216, 233, 230, 0.08), transparent 30%),
    var(--deep-surface);
}

.project-heading h2,
.project-info h3,
.contact-card h2 {
  color: #fffdfa;
  letter-spacing: -0.035em;
}

.eyebrow-light,
.project-link {
  color: #edb28e;
}

.project-heading > p,
.project-info > p,
.contact-card p {
  color: #d6e3e1;
}

.project-card {
  border-color: rgba(216, 233, 230, 0.16);
  background: rgba(255, 253, 250, 0.07);
}

.project-preview {
  background:
    linear-gradient(135deg, #fffdfa 0%, #d8e9e6 52%, #e3a17b 100%);
}

.preview-kicker,
.preview-art span:nth-child(2) {
  background: var(--accent);
}

.preview-title {
  background: var(--primary-deep);
}

.project-tags span {
  border-color: rgba(237, 178, 142, 0.28);
  background: rgba(201, 120, 77, 0.1);
  color: #f6d6c2;
}

.project-details span {
  color: #9fc0bc;
}

.contact-card {
  border-color: rgba(216, 233, 230, 0.18);
  background:
    radial-gradient(circle at 90% 20%, rgba(201, 120, 77, 0.24), transparent 25%),
    linear-gradient(135deg, var(--deep-surface), var(--deep-surface-2));
}

.button-light {
  background: #fffdfa;
  color: var(--primary-deep);
}

.contact-email {
  color: #f2c3a6;
}

.contact-email:hover,
.project-link:hover {
  color: #fffdfa;
}

@media (max-width: 880px) {
  .main-nav {
    background: rgba(255, 253, 250, 0.98);
  }
}

/* Solicitação de serviço */
.about-content > p:not(.intro) {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.contact-actions {
  gap: 13px;
}

.contact-actions .button {
  margin-bottom: 6px;
}

.service-request-card {
  display: grid;
  margin-top: 24px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 100%, rgba(216, 233, 230, 0.52), transparent 31%),
    var(--surface);
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 105px;
}

.request-intro h3 {
  max-width: 390px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.request-intro > p:not(.request-privacy) {
  margin-top: 23px;
  color: var(--text-soft);
}

.request-benefits {
  margin-top: 34px;
  list-style: none;
}

.request-benefits li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.request-benefits li:first-child {
  border-top: 1px solid var(--line);
}

.request-benefits span {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
}

.request-privacy {
  margin-top: 27px;
  padding-left: 16px;
  border-left: 2px solid var(--primary-light);
  color: var(--text-soft);
  font-size: 0.7rem;
  line-height: 1.55;
}

.request-workspace {
  min-width: 0;
}

.service-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(250, 247, 242, 0.72);
}

.form-grid,
.dynamic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 18px;
}

.form-field,
.dynamic-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label,
.dynamic-field label {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.form-field label span,
.dynamic-field label span,
.form-submit-row p span {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea,
.dynamic-field input,
.dynamic-field select {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.form-field input,
.form-field select,
.dynamic-field input,
.dynamic-field select {
  padding: 0 14px;
}

.form-field textarea {
  min-height: 150px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.dynamic-field input::placeholder {
  color: #8b9899;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.dynamic-field input:focus,
.dynamic-field select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 99, 106, 0.1);
}

.form-field select:disabled {
  cursor: not-allowed;
  background: #efeee9;
  color: #899294;
}

.form-field small {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.66rem;
}

.dynamic-placeholder {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--text-soft);
  font-size: 0.72rem;
  text-align: center;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 27px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.form-submit-row > p {
  color: var(--text-soft);
  font-size: 0.68rem;
}

.form-status {
  min-height: 1.2em;
  margin-top: 13px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.message-preview {
  margin-top: 18px;
  padding: 29px;
  border: 1px solid rgba(169, 87, 54, 0.28);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 218, 203, 0.7), transparent 34%),
    #fbf4ed;
}

.message-preview[hidden] {
  display: none;
}

.message-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.message-preview-header > div > span {
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-preview h4 {
  margin-top: 4px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.preview-check {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.message-text {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(222, 221, 213, 0.9);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.88);
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.whatsapp-send {
  width: 100%;
}

@media (max-width: 960px) {
  .service-request-card {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .request-intro h3 {
    max-width: 620px;
  }

  .request-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .request-benefits li,
  .request-benefits li:first-child {
    align-items: flex-start;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
  }
}

@media (max-width: 640px) {
  .service-request-card {
    padding: 34px 20px 20px;
    border-radius: 26px;
  }

  .request-benefits,
  .form-grid,
  .dynamic-fields {
    grid-template-columns: 1fr;
  }

  .form-field-full,
  .dynamic-placeholder {
    grid-column: auto;
  }

  .service-form {
    padding: 22px 17px;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit-row .button {
    order: -1;
  }

  .form-status {
    text-align: left;
  }

  .message-preview {
    padding: 22px 17px;
  }
}

/* Ícone oficial da marca */
.brand-symbol {
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(23, 99, 106, 0.14);
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(13, 59, 63, 0.12);
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
