/* AKOS MOTION — foglio di stile statico */

:root {
  --petrol-950: #071e24;
  --petrol-900: #0c2c34;
  --petrol-800: #123c46;
  --petrol-700: #1c5160;
  --sage-500: #8bafa5;
  --sage-200: #d5e4df;
  --sage-100: #e7f1ee;
  --sage-050: #f3f7f6;
  --aqua-500: #55b8a5;
  --aqua-700: #14695c;
  --cream: #f7f8f6;
  --white: #ffffff;
  --ink: #1a2a30;
  --muted: #3e4e54;
  --line: rgba(18, 60, 70, 0.12);
  --shadow: 0 18px 50px rgba(18, 60, 70, 0.08);
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1.5rem;
  color-scheme: light;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-600.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-700.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}

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

p,
ul,
ol,
dl,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.logo,
.btn,
.kicker,
.footer-title {
  font-family: Manrope, "Segoe UI", sans-serif;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--petrol-800);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.85rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--petrol-800);
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--petrol-800);
  outline-offset: 3px;
}

::selection {
  background: #cfe6df;
  color: var(--petrol-800);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--petrol-800);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 0.75rem;
  outline-color: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4.25rem, 8vw, 7.25rem) 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

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

.section--sage {
  background: #e7f0ed;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-700);
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.measure {
  max-width: 40rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  display: block;
  --icon-stroke: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--petrol-800);
  font: inherit;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--petrol-800);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--petrol-900);
}

.btn--ghost {
  border-color: rgba(18, 60, 70, 0.22);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--petrol-800);
  background: var(--white);
}

.btn--light {
  background: var(--cream);
  color: var(--petrol-800);
}

.btn--light:hover {
  background: var(--white);
}

.btn:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: transparent;
  border-color: rgba(18, 60, 70, 0.28);
  border-style: dashed;
  opacity: 1;
}

.btn:disabled:hover {
  background: transparent;
  transform: none;
}

.btn:disabled .icon {
  transform: none;
}

.btn__tag {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--petrol-800);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pending {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.1rem 0.7rem;
  border: 1px dashed rgba(18, 60, 70, 0.35);
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--petrol-800);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 248, 246, 0.88);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(18, 60, 70, 0.05);
}

.site-header.is-scrolled::before {
  background: rgba(247, 248, 246, 0.94);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--petrol-800);
  text-decoration: none;
}

.logo__mark {
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
}

.mark-bg {
  fill: currentColor;
}

.mark-line {
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-bar {
  fill: none;
  stroke: var(--aqua-500);
  stroke-width: 2;
  stroke-linecap: round;
}

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

.logo__name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo__motion {
  margin-top: 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--aqua-700);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--petrol-800);
  background: rgba(139, 175, 165, 0.28);
}

.nav-cta {
  margin-left: 0.45rem;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--petrol-800);
  cursor: pointer;
}

.nav-toggle .icon--close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon--menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

/* Hero */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(4rem, 7vw, 6rem);
}

.hero__glow {
  position: absolute;
  z-index: 0;
  width: 42rem;
  height: 42rem;
  right: -12rem;
  top: -14rem;
  background: radial-gradient(circle, rgba(139, 175, 165, 0.45), transparent 68%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 3rem);
}

.hero__copy > * + * {
  margin-top: 1.15rem;
}

.hero h1 {
  margin-top: 0.2rem;
}

.line {
  display: block;
}

.accent {
  color: var(--aqua-700);
}

.motion-line {
  display: block;
  width: 8.5rem;
  height: auto;
  margin-bottom: 0.2rem;
  color: var(--aqua-500);
}

.motion-line path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1.6s var(--ease) 0.15s forwards;
}

.hero__lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 2rem 0 0;
  padding: 1.2rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero__points strong {
  display: block;
  color: var(--petrol-800);
  font-family: Manrope, sans-serif;
  font-size: 0.98rem;
}

.hero__points span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.frame {
  position: relative;
  overflow: hidden;
  background: var(--sage-200);
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__frame {
  aspect-ratio: 4 / 5;
  border-radius: 1.6rem 1.6rem 6.5rem 1.6rem;
  box-shadow: var(--shadow);
  animation: settle 0.9s var(--ease);
}

.hero__chip {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3.4rem;
  max-width: 16rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--petrol-800);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: var(--shadow);
}

.media-credit {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(12, 44, 52, 0.78);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* About */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__copy > * + * {
  margin-top: 1rem;
}

.about__frame {
  aspect-ratio: 4 / 5;
  border-radius: 1.6rem 1.6rem 1.6rem 5.5rem;
  box-shadow: var(--shadow);
}

.about__figure {
  position: relative;
  margin: 0;
}

.about__figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1.4rem -1.1rem -1.1rem 1.4rem;
  border-radius: 1.6rem;
  background: var(--sage-200);
}

.about__frame {
  position: relative;
  z-index: 1;
}

.note-card {
  margin-top: 1.5rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(18, 60, 70, 0.08);
  border-radius: 1.15rem;
  background: var(--sage-050);
}

.note-card p + p {
  margin-top: 0.3rem;
}

.note-card__label {
  font-family: Manrope, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-700);
}

.note-card p:last-child {
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.value {
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--white);
}

.value__index {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--sage-500);
  font-family: Manrope, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.value p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Services */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.4rem 1.3rem 1.25rem;
  border: 1px solid rgba(18, 60, 70, 0.08);
  border-radius: 1.35rem;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--petrol-800);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.service-card:hover .service-card__icon,
.service-card:focus-within .service-card__icon {
  background: var(--petrol-800);
  color: var(--cream);
}

.service-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.85rem 0 0;
  border: 0;
  background: none;
  color: var(--aqua-700);
  font: inherit;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.card-link .icon {
  transition: transform 0.25s var(--ease);
}

.card-link:hover .icon {
  transform: translateX(3px);
}

.section-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Approach */

.approach__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.approach__intro > * + * {
  margin-top: 1rem;
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
}

.step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__index {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--petrol-800);
  font-family: Manrope, sans-serif;
  font-weight: 700;
}

.step__rail::after {
  content: "";
  width: 1px;
  flex: 1;
  min-height: 1.6rem;
  background: linear-gradient(var(--sage-500), rgba(139, 175, 165, 0.05));
}

.step:last-child .step__rail::after {
  display: none;
}

.step__body {
  padding-bottom: 1.6rem;
}

.step__body p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.approach__photo {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  aspect-ratio: 16 / 7;
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
}

.approach__photo img {
  object-position: center 62%;
}

/* CTA */

.cta {
  padding-top: 0;
}

.cta__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(85, 184, 165, 0.28), transparent 32%),
    linear-gradient(145deg, var(--petrol-700), var(--petrol-900) 58%, var(--petrol-950));
  color: var(--cream);
}

.cta__panel h2,
.cta__copy p {
  color: var(--cream);
}

.cta__copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.cta__copy p {
  margin-top: 0.9rem;
  color: #d7e7e3;
  font-size: 1.1rem;
}

.cta__panel .btn {
  position: relative;
  z-index: 1;
  flex: none;
}

.cta__arc {
  position: absolute;
  width: min(34rem, 80%);
  right: -4rem;
  bottom: -3.5rem;
  color: rgba(247, 248, 246, 0.18);
  pointer-events: none;
}

.site-footer :focus-visible,
.cta__panel :focus-visible {
  outline-color: var(--cream);
}

/* Contact */

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.contact__intro > * + * {
  margin-top: 1rem;
}

.contact-data {
  display: grid;
  gap: 0.85rem;
  margin: 1.6rem 0 0;
}

.contact-data div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.contact-data dt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--petrol-800);
  font-weight: 600;
}

.contact-data dd {
  margin: 0;
  text-align: right;
}

.future-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-card,
.hours-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
}

.contact-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hours {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.hours li > span:first-child {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.contact-hint {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.map {
  position: relative;
  display: grid;
  min-height: 11rem;
  place-items: end start;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(247, 248, 246, 0.1), rgba(247, 248, 246, 0.92) 78%),
    var(--sage-100);
}

.map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(18, 60, 70, 0.18);
}

.map p {
  position: relative;
  margin: 0;
  padding: 1.1rem 1.2rem;
  color: var(--petrol-800);
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--petrol-900);
  color: #d7e4e1;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 0.8fr;
  gap: 2rem 1.5rem;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1rem;
  color: #c5d6d2;
}

.logo--on-dark {
  color: var(--cream);
}

.logo--on-dark .mark-bg {
  fill: var(--cream);
}

.logo--on-dark .mark-line {
  stroke: var(--petrol-800);
}

.logo--on-dark .logo__motion {
  color: #b7e4d8;
}

.footer-title {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(247, 248, 246, 0.12);
  color: #c5d6d2;
  font-size: 0.92rem;
}

.footer-base p {
  margin: 0;
}

/* To top */

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--petrol-800);
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(18, 60, 70, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--petrol-900);
}

.to-top:focus-visible {
  outline-color: var(--aqua-500);
}

/* Dialog */

.modal {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.modal[open] {
  width: min(38rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
}

.modal::backdrop {
  background: rgba(7, 30, 36, 0.62);
}

.modal__card {
  position: relative;
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: 1.7rem 1.45rem 1.4rem;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(7, 30, 36, 0.28);
}

.modal__card h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  padding-right: 2.5rem;
}

.modal__card p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.modal__note {
  font-size: 0.92rem;
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--petrol-800);
  cursor: pointer;
}

.modal__close:hover {
  background: var(--sage-100);
}

.modal__card .btn {
  margin-top: 1.2rem;
}

/* Legal and 404 */

.legal {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal__article {
  width: min(44rem, calc(100% - 2.5rem));
}

.legal__article > * + * {
  margin-top: 1rem;
}

.legal__status {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--petrol-800);
  font-size: 0.85rem;
  font-weight: 700;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 0.4rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal a:not(.btn) {
  color: var(--aqua-700);
  font-weight: 600;
}

.legal .btn {
  margin-top: 0.6rem;
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes settle {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

/* Responsive */

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    height: calc(100dvh - var(--header-h));
    width: 100%;
    margin: 0;
    padding: 1.25rem 1.25rem 2rem;
    background: rgba(247, 248, 246, 0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    overflow: auto;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-list a {
    min-height: 3rem;
    padding: 0.7rem 0.35rem;
    font-size: 1.35rem;
    font-family: Manrope, sans-serif;
    font-weight: 700;
    color: var(--petrol-800);
  }

  .nav-cta {
    margin: 0.4rem 0 0;
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 1040px) and (scripting: none) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding: 0 0 1rem;
    background: transparent;
    overflow: visible;
  }

  .header-bar {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .site-header {
    height: auto;
  }
}

@media (max-width: 980px) {
  .service-grid,
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .approach__layout,
  .contact__layout,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: 0;
  }

  .about__figure::before {
    inset: auto 1rem -0.8rem 1rem;
    height: 70%;
  }

  .approach__intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .service-grid,
  .values,
  .hero__points,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__frame,
  .about__frame {
    border-radius: 1.25rem;
  }

  .approach__photo {
    aspect-ratio: 4 / 3;
  }

  .cta__panel {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 1.4rem;
  }

  .contact-data div,
  .hours li {
    grid-template-columns: 1fr;
    display: grid;
    justify-content: start;
    text-align: left;
  }

  .contact-data dd {
    text-align: left;
  }

  .hero__actions .btn,
  .contact-actions .btn,
  .cta__panel .btn {
    width: 100%;
  }

  .footer-base {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .container,
  .legal__article {
    width: min(1160px, calc(100% - 1.5rem));
  }

  h1 {
    font-size: 2.15rem;
  }
}

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

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

  [data-reveal],
  .service-card:hover,
  .service-card:focus-within,
  .btn:hover .icon,
  .card-link:hover .icon {
    opacity: 1 !important;
    transform: none !important;
  }

  .motion-line path {
    stroke-dashoffset: 0;
  }
}

@media print {
  .site-header,
  .to-top,
  .nav-toggle,
  .cta,
  .modal,
  .hero__actions,
  .card-link {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section,
  .site-footer {
    background: white;
    color: black;
  }
}
