:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --blue: #2563eb;
  --teal: #0f766e;
  --gold: #c98a1d;
  --coral: #d95f4d;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.topbar {
  background: var(--ink);
  color: #e2e8f0;
  font-size: 0.88rem;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar i {
  color: #5eead4;
  margin-right: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  object-fit: cover;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav__menu a:not(.btn) {
  position: relative;
}

.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--teal);
  transition: transform 180ms ease;
}

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

.nav__menu .btn[aria-current="page"] {
  background: var(--blue);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.45rem;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--small {
  min-height: 38px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.btn--outline {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.btn.is-disabled {
  pointer-events: none;
  opacity: 0.62;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.56) 56%, rgba(15, 23, 42, 0.2)),
    url("lib/img/hero-home.jpg") center / cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(255, 255, 255, 0.94));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  padding-block: 96px 118px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero .eyebrow,
.eyebrow--light {
  color: #7dd3fc;
}

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

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 7rem;
}

#hero-title {
  font-size: clamp(2.75rem, 5vw + 1.2rem, 5.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: 3.35rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.hero__subtitle {
  width: min(680px, 100%);
  color: #e5eefb;
  font-size: 1.28rem;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.34);
  color: #eef6ff;
  font-weight: 700;
}

.stats {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.stat__value {
  display: block;
  color: var(--blue);
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding-block: 96px;
}

.section--soft {
  background:
    linear-gradient(180deg, #f8fafc, #eef6f4);
}

.section--ink {
  background: var(--ink);
  color: #fff;
}

.section__head {
  max-width: 780px;
  margin-bottom: 36px;
}

.section__lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.section__body {
  color: var(--ink-2);
  font-size: 1.04rem;
}

.section__body p:last-of-type {
  margin-bottom: 24px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.92rem;
}

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

.card {
  min-height: 244px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.card > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: #e8f3ff;
  color: var(--blue);
  font-size: 1.35rem;
}

.card p,
.project p,
.timeline__item p,
.cta p,
.footer p {
  color: var(--muted);
  margin-bottom: 0;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.project__media {
  height: 184px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(15, 118, 110, 0.84)),
    url("lib/img/thumb-site.jpg") center / cover;
}

.project__media span {
  position: absolute;
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.project__media--site span:nth-child(1) {
  width: 72%;
  height: 18px;
  left: 22px;
  top: 30px;
}

.project__media--site span:nth-child(2) {
  width: 46%;
  height: 58px;
  left: 22px;
  top: 68px;
}

.project__media--site span:nth-child(3) {
  width: 28%;
  height: 58px;
  right: 22px;
  top: 68px;
}

.project__media--dashboard {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(201, 138, 29, 0.72)),
    url("lib/img/thumb-dashboard.jpg") center / cover;
}

.project__media--dashboard span:nth-child(1) {
  width: 50px;
  height: 112px;
  left: 34px;
  bottom: 28px;
}

.project__media--dashboard span:nth-child(2) {
  width: 50px;
  height: 78px;
  left: 104px;
  bottom: 28px;
}

.project__media--dashboard span:nth-child(3) {
  width: 50px;
  height: 132px;
  left: 174px;
  bottom: 28px;
}

.project__media--automation {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.86), rgba(217, 95, 77, 0.72)),
    url("lib/img/thumb-automation.jpg") center / cover;
}

.project__media--automation span:nth-child(1),
.project__media--automation span:nth-child(2),
.project__media--automation span:nth-child(3) {
  width: 62px;
  height: 62px;
  top: 62px;
}

.project__media--automation span:nth-child(1) {
  left: 28px;
}

.project__media--automation span:nth-child(2) {
  left: 119px;
}

.project__media--automation span:nth-child(3) {
  left: 210px;
}

.project__tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
}

.section--ink .section__head {
  color: #fff;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58)),
    url("lib/img/hero-processo.jpg") center / cover;
}

.page-hero--portfolio {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.5)),
    url("lib/img/hero-portfolio.jpg") center / cover;
}

.page-hero--contact {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5)),
    url("lib/img/hero-contato.jpg") center / cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96));
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 82px 106px;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: 4.5rem;
}

.page-hero p {
  max-width: 680px;
  color: #e2e8f0;
  font-size: 1.18rem;
  margin-bottom: 0;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #dbeafe;
  font-weight: 800;
  font-size: 0.9rem;
}

.breadcrumbs span {
  color: #fff;
}

.portfolio-showcase {
  padding-top: 72px;
}

.carousel-shell {
  position: relative;
  padding: 0 58px 48px;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.carousel__track {
  display: flex;
  transition: transform 360ms ease;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 430px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.carousel-slide__media {
  min-height: 430px;
  background-position: center;
  background-size: cover;
}

.carousel-slide__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.carousel-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.carousel-slide__meta span,
.post-card__meta span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: #e8f3ff;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.78rem;
}

.carousel-slide__body p {
  color: var(--muted);
  font-size: 1.02rem;
}

.carousel-slide__tags,
.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
}

.carousel-slide__tags li,
.post-card__tags li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.carousel__button {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}

.carousel__button--prev {
  left: 0;
}

.carousel__button--next {
  right: 0;
}

.carousel__dots {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.carousel__dots button[aria-current="true"] {
  background: var(--teal);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.post-card__image {
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.post-card__body p {
  color: var(--muted);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.post-card .btn {
  margin-top: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

.contact-aside h2,
.contact-panel h2 {
  font-size: 2.35rem;
}

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

.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.contact-list__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #e4f7f4;
  color: var(--teal);
  font-size: 1.25rem;
}

.contact-list small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.contact-list strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mini-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.mini-card i {
  color: var(--gold);
  font-size: 1.4rem;
}

.mini-card h3 {
  margin: 12px 0 8px;
  font-size: 1rem;
}

.mini-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-note,
.form-feedback {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-feedback {
  min-height: 1.4em;
  margin: 0;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline__item {
  min-height: 218px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.timeline__item span {
  display: inline-flex;
  margin-bottom: 28px;
  color: #5eead4;
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.timeline__item p {
  color: #cbd5e1;
}

.cta {
  padding-block: 82px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.15)),
    #fff;
}

.cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.cta__inner h2 {
  margin-bottom: 12px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer {
  padding-block: 56px 24px;
  background: #24262b;
  color: #fff;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer__brand .brand__text strong {
  color: #fff;
}

.footer__brand .brand__text small {
  color: #94a3b8;
}

.footer__brand p {
  margin: 16px 0 18px;
  max-width: 34ch;
  color: #94a3b8;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  transition: background 160ms ease;
}

.footer__social a:hover {
  background: var(--teal);
}

.footer__col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer__heading {
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

.footer__col a {
  color: #cbd5e1;
  font-weight: 500;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  font-size: 0.85rem;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .nav {
    min-height: 68px;
  }

  .nav__toggle {
    display: grid;
    place-items: center;
  }

  .nav__menu {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
  }

  .nav__menu a {
    padding: 13px 12px;
  }

  .nav__menu a:not(.btn)::after {
    display: none;
  }

  .nav__menu .btn {
    margin-top: 6px;
  }

  .hero {
    min-height: 74svh;
    background-position: center right;
  }

  h1 {
    font-size: 5.1rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero__subtitle {
    font-size: 1.16rem;
  }

  .hero__content {
    padding-block: 78px 100px;
  }

  .stats__grid,
  .cards-grid,
  .timeline,
  .two-column,
  .posts-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 72px;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero h1 {
    font-size: 3.2rem;
  }

  .page-hero__content {
    padding-block: 64px 88px;
  }

  .carousel-shell {
    padding-inline: 0;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
  }

  .carousel-slide__media {
    min-height: 260px;
  }

  .carousel-slide__body {
    padding: 28px;
  }

  .carousel__button {
    top: 214px;
  }

  .carousel__button--prev {
    left: 12px;
  }

  .carousel__button--next {
    right: 12px;
  }

  .carousel__dots {
    left: 0;
    right: 0;
  }

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

  .project__media {
    height: 220px;
  }

  .cta__inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta__actions {
    justify-content: flex-start;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand__text small {
    display: none;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 72svh;
  }

  .hero__actions,
  .cta__actions,
  .form-actions {
    display: grid;
  }

  .hero__actions .btn,
  .cta__actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .page-hero h1 {
    font-size: 2.55rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .carousel-slide__body,
  .contact-panel {
    padding: 20px;
  }

  .carousel__button {
    width: 42px;
    height: 42px;
  }

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

  .hero__highlights {
    display: grid;
  }

  .stats {
    margin-top: -36px;
  }

  .stat,
  .card,
  .project,
  .timeline__item {
    padding: 20px;
  }

  .project__media {
    height: 178px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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