@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #f8fbfd;
  --paper-warm: #eef4f8;
  --ink: #061729;
  --ink-soft: #17354d;
  --muted: #536f83;
  --rule: #c9d7e1;
  --accent: #168fe2;
  --accent-light: #72c7ff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --shell: min(100% - 2.5rem, 91rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

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

ul {
  list-style: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(134, 184, 220, 0.2);
  background: rgba(3, 16, 29, 0.97);
  color: #fff;
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  width: var(--shell);
  min-height: 4.75rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  width: 5.9rem;
  min-width: 5.9rem;
  height: 4.15rem;
  flex: 0 0 5.9rem;
  overflow: hidden;
  align-items: center;
  justify-items: center;
  border-radius: 0.28rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.18s ease;
}

.brand:hover {
  box-shadow: 0 0 0 2px rgba(89, 186, 255, 0.7);
}

.brand:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.brand::before {
  width: 5.7rem;
  height: 4rem;
  content: "";
  background-image: url("images/logo-andrea-baldoni.jpg");
  background-position: center 49%;
  background-repeat: no-repeat;
  background-size: 7.25rem 7.25rem;
}

.brand-mark,
.brand-copy {
  display: none;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

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

.brand-copy strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 0.32rem;
  color: #b8cad9;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 1.45vw, 1.65rem);
}

.main-nav a {
  position: relative;
  display: block;
  padding: 1.8rem 0 1.55rem;
  color: #e7f0f6;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1.2rem;
  left: 0;
  height: 2px;
  content: "";
  background: #21a5f6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #68c5ff;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--accent-light);
}

.display-title {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid transparent;
  padding: 0.72rem 1.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: 0.18s ease;
}

.button-blue {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-blue:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button-outline:hover {
  border-color: var(--accent);
  background: var(--accent);
}

/* Home */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 41rem;
  overflow: hidden;
  background: #041221;
  color: #fff;
}

.hero-collage,
.hero-shade,
.hero-blueprint,
.hero-panel {
  position: absolute;
  inset: 0;
}

.hero-collage {
  z-index: -3;
}

.hero-panel {
  background-position: center;
  background-size: cover;
}

.hero-panel-engineer {
  right: 34%;
  background-image: url("images/restauro-strutturale.jpeg");
  background-position: center 42%;
  filter: saturate(0.84) contrast(1.08);
}

.hero-panel-town {
  left: 59%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  background-image: url("images/cantiere-aereo.jpeg");
  background-position: 56% center;
  filter: saturate(0.84) contrast(1.06);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 14, 27, 0.84), rgba(3, 16, 30, 0.77), rgba(4, 20, 36, 0.34) 68%, rgba(2, 18, 34, 0.1)),
    linear-gradient(0deg, rgba(1, 13, 25, 0.44), transparent 56%);
}

.hero-blueprint {
  z-index: -1;
  width: 52%;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(42, 154, 226, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 154, 226, 0.24) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}

.hero-content {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(4.8rem, 8vw, 7.4rem) 0 4.5rem;
}

.hero-content h1 {
  max-width: 9ch;
  margin-top: 0.75rem;
  font-size: clamp(4.1rem, 8vw, 7.2rem);
  line-height: 0.78;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.22);
}

.hero-lede {
  max-width: 37rem;
  margin-top: 1.4rem;
  color: #f2f8fc;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.45;
}

.hero-lede strong {
  color: #28a7ff;
}

.hero-values {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.3rem;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-values li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-values span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid #209fed;
  border-radius: 50%;
  color: #45b6ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.specializations {
  padding: 3.2rem 0 3.6rem;
  background: #fff;
}

.section-heading {
  text-align: center;
}

.section-heading h2,
.funding-copy h2,
.portfolio-heading h2,
.platform-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.specialization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.3rem;
}

.specialization-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem clamp(1.2rem, 3vw, 3.5rem);
  text-align: center;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.specialization-card-link:hover {
  background: #fff;
  box-shadow: 0 1rem 2.8rem rgba(19, 54, 79, 0.09);
  transform: translateY(-3px);
}

.specialization-card-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.specialization-card + .specialization-card {
  border-left: 1px solid #d4dce4;
}

.specialization-number {
  position: absolute;
  right: 1.4rem;
  top: -0.5rem;
  color: #0b3153;
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.35;
}

.specialization-icon {
  width: 4.1rem;
  height: 4.1rem;
  color: var(--accent);
}

.specialization-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.specialization-card h3 {
  margin-top: 0.7rem;
  color: #0d86d8;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.specialization-card p {
  max-width: 27rem;
  margin-top: 0.7rem;
  color: #203144;
  font-size: 0.83rem;
  line-height: 1.55;
}

.specialization-action {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1rem;
  align-items: center;
  gap: 0.35rem;
  color: #087ed1;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.specialization-action span {
  transition: transform 0.18s ease;
}

.specialization-card-link:hover .specialization-action span {
  transform: translateX(4px);
}

.platform-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 2.5rem;
  background: radial-gradient(circle at 90% 35%, rgba(20, 137, 213, 0.18), transparent 30%), #06172a;
  color: #fff;
}

.platform-section::before {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 33rem;
  height: 22rem;
  content: "";
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(43, 162, 234, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 162, 234, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: rotate(-9deg);
}

.platform-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2.4rem;
}

.platform-intro h2 {
  max-width: 10ch;
}

.platform-intro > p:not(.eyebrow) {
  margin-top: 1.1rem;
  color: #d9e7f3;
  font-size: 0.82rem;
  line-height: 1.6;
}

.platform-intro .button {
  margin-top: 1.4rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 8.7rem;
  border: 1px solid rgba(143, 190, 223, 0.27);
  background: rgba(7, 27, 47, 0.7);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.platform-card:hover {
  border-color: #299fe9;
  background: rgba(13, 50, 80, 0.82);
  transform: translateY(-2px);
}

.platform-card-link:focus-visible,
.software-card-link:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.platform-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.platform-name span {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid #1d9ce9;
  border-radius: 50%;
  color: #59baff;
  font-size: 0.56rem;
  font-weight: 800;
}

.platform-name strong {
  font-size: 1.05rem;
}

.platform-card p {
  margin-top: 0.65rem;
  color: #d3e1ed;
  font-size: 0.67rem;
}

.card-action {
  display: inline-flex;
  margin-top: auto;
  padding-top: 0.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #59baff;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.card-action span {
  transition: transform 0.18s ease;
}

.platform-card-link:hover .card-action span,
.software-card-link:hover .card-action span {
  transform: translateX(3px);
}

.software-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 14rem repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(143, 190, 223, 0.24);
  padding-top: 1.1rem;
}

.software-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.66rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.software-label span {
  width: 3px;
  height: 2.6rem;
  background: #23a8fa;
}

.software-card {
  display: flex;
  flex-direction: column;
  min-height: 5.7rem;
  border: 1px solid rgba(143, 190, 223, 0.25);
  padding: 0.85rem 1rem;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.software-card-link:hover {
  border-color: #299fe9;
  background: rgba(13, 50, 80, 0.82);
  transform: translateY(-2px);
}

.software-card strong {
  font-size: 1.2rem;
}

.software-card p {
  margin-top: 0.35rem;
  color: #c9d9e6;
  font-size: 0.66rem;
}

.software-card .card-action {
  justify-content: flex-start;
  padding-top: 0.45rem;
}

.funding-section {
  display: grid;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1.28fr);
  min-height: 25rem;
  background: #fff;
}

.funding-image {
  min-height: 25rem;
  background-image: linear-gradient(90deg, rgba(8, 29, 50, 0.04), rgba(8, 29, 50, 0.22)), url("images/finanziamenti-enti-locali.jpeg");
  background-position: center 58%;
  background-size: cover;
}

.funding-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem clamp(2rem, 5vw, 5.4rem);
}

.funding-lede {
  margin-top: 0.45rem;
  color: #0b91e5;
  font-size: 1.05rem;
  font-weight: 800;
}

.funding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.funding-steps li {
  position: relative;
  padding-right: 1rem;
  text-align: center;
}

.step-number {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto 0.55rem;
  place-items: center;
  border: 1px solid #118edc;
  border-radius: 50%;
  color: #087dc5;
  font-weight: 800;
}

.funding-steps strong {
  font-family: var(--display);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.funding-steps p {
  margin-top: 0.35rem;
  color: #2d3b4a;
  font-size: 0.68rem;
}

.step-arrow {
  position: absolute;
  right: -0.25rem;
  top: 1.05rem;
  color: #5c7489;
}

.funding-copy > .button {
  align-self: flex-start;
  margin-top: 1.6rem;
}

.portfolio-section {
  overflow: hidden;
  padding: 3.3rem 0 0;
  background: radial-gradient(circle at 78% 20%, rgba(31, 133, 201, 0.13), transparent 31%), #051529;
  color: #fff;
}

.portfolio-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.portfolio-heading > a {
  color: #25a8fb;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-image {
  aspect-ratio: 1.8 / 1;
  overflow: hidden;
  background: #0c2943;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
  transition: 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.035);
  filter: saturate(1);
}

.project-card h3 {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.project-card p {
  margin-top: 0.25rem;
  color: #dbe7ef;
  font-size: 0.7rem;
}

.project-card > span {
  display: inline-flex;
  margin-top: 0.6rem;
  border: 1px solid rgba(37, 168, 251, 0.55);
  padding: 0.22rem 0.48rem;
  color: #83cefb;
  font-size: 0.58rem;
}

.credential-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(17rem, 1.15fr);
  margin-top: 1.8rem;
  border-top: 1px solid rgba(157, 197, 226, 0.22);
}

.credential {
  min-height: 8.3rem;
  padding: 1.35rem 1.5rem;
  border-right: 1px solid rgba(157, 197, 226, 0.22);
}

.credential > span {
  color: #a9c1d2;
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.credential > strong {
  display: block;
  color: #249ff0;
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1;
}

.credential > p {
  color: #dbe7ef;
  font-size: 0.67rem;
}

.credential-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  border-right: 0;
}

.credential-contact .button {
  align-self: flex-start;
}

/* Internal pages */
.tool-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% 35%, rgba(31, 157, 236, 0.2), transparent 30%), #06172a;
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.tool-hero::after {
  position: absolute;
  right: -7rem;
  bottom: -8rem;
  width: 36rem;
  height: 25rem;
  content: "";
  opacity: 0.1;
  background-image: linear-gradient(rgba(43, 162, 234, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 162, 234, 0.5) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotate(-8deg);
}

.tool-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.breadcrumb {
  display: flex;
  margin-bottom: 1.7rem;
  align-items: center;
  gap: 0.55rem;
  color: #a9c2d5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.tool-hero h1 {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.service-detail .tool-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 6.5vw, 5.7rem);
  line-height: 0.94;
}

.service-detail .tool-source a {
  display: block;
}

.service-detail .tool-source a + a {
  margin-top: 0.55rem;
}

.tool-hero .lede {
  max-width: 46rem;
  margin-top: 1.5rem;
  color: #d6e6f1;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.tool-monogram {
  display: grid;
  width: clamp(9rem, 18vw, 15rem);
  aspect-ratio: 1;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(89, 186, 255, 0.55);
  border-radius: 50%;
  color: #59baff;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tool-body {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
}

.tool-copy h2,
.tool-help h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
}

.tool-copy > p {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.tool-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.tool-highlight {
  border-top: 2px solid var(--accent);
  background: #fff;
  padding: 1.25rem;
}

.tool-highlight strong {
  display: block;
  font-size: 0.85rem;
}

.tool-highlight p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.tool-source {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  padding: 1.15rem 1.25rem;
}

.tool-source span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-source a {
  display: inline-block;
  margin-top: 0.35rem;
  color: #087ed1;
  font-size: 0.8rem;
  font-weight: 800;
}

.tool-source a:hover {
  text-decoration: underline;
}

.tool-help {
  position: sticky;
  top: 6.3rem;
  border: 1px solid #b9d0df;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(19, 54, 79, 0.08);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.tool-help > p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.tool-help-list {
  margin-top: 1.4rem;
}

.tool-help-list li {
  position: relative;
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0 0.9rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.6;
}

.tool-help-list li::before {
  position: absolute;
  left: 0;
  top: 1.05rem;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.tool-help .button {
  width: 100%;
  margin-top: 1.2rem;
}

.tool-back {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 4rem;
}

.tool-back a {
  color: #087ed1;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-warm);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
}

.page-hero h1 {
  max-width: 13ch;
  margin-top: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: -0.035em;
  text-transform: none;
}

#about-title,
#faq-title {
  max-width: 18ch;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  line-height: 1.03;
}

.page-hero .lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.page-hero-side {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.profile-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: linear-gradient(#dff4ff, #89a9c2);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.profile-frame span {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.about-body,
.contact-body,
.faq-body {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.side-note {
  align-self: start;
  border-top: 1px solid var(--accent);
  padding-top: 1.25rem;
}

.side-note h2,
.side-note h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
}

.side-note li,
.side-note p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.prose {
  max-width: 49rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.prose p + p {
  margin-top: 1.35rem;
}

.prose .button {
  margin-top: 2rem;
}

.faq-intro {
  max-width: 49rem;
}

.faq-search {
  display: block;
  margin: 0 0 2rem;
}

.faq-search label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.faq-search input {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  background: transparent;
  padding: 1rem;
  outline: none;
}

.faq-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 143, 226, 0.12);
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item[hidden] {
  display: none;
}

.faq-item summary {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.6rem 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-number {
  color: var(--accent);
  font-size: 0.72rem;
}

.faq-category {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-question {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.faq-plus {
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 52rem;
  padding: 0 2rem 1.75rem 3.5rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.no-results {
  padding: 2rem 0;
  color: var(--muted);
}

.faq-cta {
  display: flex;
  margin-top: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--rule);
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.faq-cta h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
}

.faq-cta p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(3rem, 8vw, 6rem);
}

.contact-services li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  color: var(--ink-soft);
}

.contact-services span:first-child {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
}

.privacy-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-card {
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: var(--paper-warm);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgba(6, 23, 41, 0.08);
}

.contact-card h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
}

.contact-card > p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
}

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

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

.form-field label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.required {
  color: var(--accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  background: var(--paper);
  padding: 0.95rem 1rem;
  outline: none;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 143, 226, 0.12);
}

.contact-form .button {
  justify-self: start;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.direct-email {
  margin-top: 1.25rem !important;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-size: 0.8rem;
}

.direct-email a {
  color: var(--accent);
  font-weight: 800;
}

.direct-email a:hover {
  text-decoration: underline;
}

.contact-hint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
}

.contact-hint h2 {
  max-width: 18ch;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
}

.contact-hint p {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(141, 185, 215, 0.22);
  background: #030f1d;
  color: #d7e4ed;
}

.footer-main,
.footer-bottom {
  width: var(--shell);
  margin-inline: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 3rem;
  padding: 3rem 0 2.2rem;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-brand span {
  display: block;
  margin-top: 0.25rem;
  color: #4cb7f7;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 30rem;
  margin-top: 0.8rem;
  color: #9fb6c7;
  font-size: 0.75rem;
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-nav a {
  color: #c9d9e5;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #4cb7f7;
}

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

.footer-contact span {
  color: #91aabd;
  font-size: 0.68rem;
}

.footer-contact strong {
  margin-top: 0.2rem;
  color: #fff;
  font-size: 0.9rem;
}

.footer-contact a {
  margin-top: 1rem;
  color: #4cb7f7;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(141, 185, 215, 0.16);
  padding: 1rem 0;
  color: #7992a5;
  font-size: 0.62rem;
}

@media (max-width: 1130px) {
  .nav-shell {
    min-height: 4.25rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 4.25rem;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 4.25rem);
    overflow: auto;
    border-top: 1px solid rgba(134, 184, 220, 0.2);
    background: #061729;
    padding: 0.6rem 1.25rem 1.1rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .main-nav a {
    border-bottom: 1px solid rgba(134, 184, 220, 0.16);
    padding: 0.85rem 0;
  }

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

  .platform-layout {
    grid-template-columns: 1fr;
  }

  .platform-intro h2 {
    max-width: 18ch;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .credential-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .credential-contact {
    grid-column: 1 / -1;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(157, 197, 226, 0.22);
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 2rem, 91rem);
  }

  .brand {
    width: 5.05rem;
    min-width: 5.05rem;
    height: 3.7rem;
    flex-basis: 5.05rem;
  }

  .brand::before {
    width: 4.85rem;
    height: 3.55rem;
    background-size: 6.4rem 6.4rem;
  }

  .brand-copy strong {
    font-size: 0.8rem;
  }

  .brand-copy small {
    font-size: 0.48rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .home-hero {
    min-height: 39rem;
  }

  .hero-panel-engineer {
    right: 0;
    background-position: center 38%;
  }

  .hero-panel-town {
    display: none;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(2, 14, 27, 0.86), rgba(3, 17, 31, 0.58)), linear-gradient(0deg, rgba(1, 13, 25, 0.52), transparent);
  }

  .hero-content {
    padding-top: 4rem;
  }

  .hero-content h1 {
    font-size: clamp(3.65rem, 18vw, 5.6rem);
  }

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

  .specialization-card {
    padding: 1.6rem 0.4rem;
  }

  .specialization-card + .specialization-card {
    border-top: 1px solid #d4dce4;
    border-left: 0;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .software-row,
  .funding-section,
  .page-hero-grid,
  .tool-hero-grid,
  .tool-layout,
  .about-grid,
  .contact-layout,
  .contact-hint {
    grid-template-columns: 1fr;
  }

  .tool-monogram {
    width: 8rem;
    margin: 0;
  }

  .tool-help {
    position: static;
  }

  .funding-image {
    min-height: 17rem;
  }

  .funding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 0.5rem;
  }

  .funding-steps li:nth-child(2) .step-arrow {
    display: none;
  }

  .portfolio-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .project-grid,
  .credential-strip {
    grid-template-columns: 1fr;
  }

  .credential {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(157, 197, 226, 0.22);
  }

  .credential-contact {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
    border-top: 0;
  }

  .page-hero {
    padding: 4rem 0;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .profile-frame {
    aspect-ratio: 1 / 1;
  }

  .faq-cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form-field-wide {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 450px) {
  .main-nav ul,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-values {
    gap: 0.7rem 1rem;
  }

  .hero-values li {
    width: calc(50% - 0.5rem);
  }

  .funding-copy {
    padding-inline: 1.25rem;
  }

  .faq-answer {
    padding-left: 0;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-highlights {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
