:root {
  --orange: #d86e08;
  --orange-dark: #b75b05;
  --orange-soft: #fff2e6;
  --green: #5d9e45;
  --earth: #8a5a42;
  --ink: #17110d;
  --muted: #6d625c;
  --paper: #f8f8f8;
  --white: #ffffff;
  --line: rgba(23, 17, 13, 0.12);
  --shadow: 0 24px 70px rgba(23, 17, 13, 0.16);
  --content: min(1160px, 70vw);
}

* {
  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;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--content);
  margin: 0 auto;
  padding: 14px 0;
  color: var(--white);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 96px;
  background: linear-gradient(180deg, rgba(23, 17, 13, 0.76), rgba(23, 17, 13, 0));
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.92;
}

.menu-toggle {
  display: none;
  place-items: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(216, 110, 8, 0.46);
  box-shadow: 0 0 22px rgba(216, 110, 8, 0.7);
  cursor: pointer;
}

.menu-toggle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(1) brightness(3);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 17, 13, 0.82), rgba(183, 91, 5, 0.55) 45%, rgba(216, 110, 8, 0.08)),
    linear-gradient(180deg, rgba(23, 17, 13, 0.08), rgba(23, 17, 13, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 92vh;
  width: var(--content);
  margin: 0 auto;
  padding: 120px 0 80px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #ffb15f;
}

h1,
h2,
h3 {
  font-family: Montserrat, sans-serif;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 6.6rem);
  line-height: 0.95;
  max-width: 900px;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: 1rem;
}

.subtitle {
  margin: 24px 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  font-weight: 800;
}

.note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  margin-top: 24px;
  color: var(--ink);
  background: var(--white);
}

.secondary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  text-align: center;
  box-shadow: 0 16px 34px rgba(23, 17, 13, 0.2);
}

.section-pad {
  padding: 110px 0;
}

.section-heading {
  width: var(--content);
  margin: 0 auto 34px;
}

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

.calculator-shell {
  display: grid;
  gap: 18px;
  width: var(--content);
  margin: 0 auto;
}

.input-panel,
.plan-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 17, 13, 0.08);
}

.input-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 20px;
}

.input-control {
  display: grid;
  align-content: start;
}

.input-panel label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
}

.input-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 16px;
  font: 800 1.8rem Montserrat, sans-serif;
  outline: none;
}

.input-row input.pending-terms {
  opacity: 0.48;
}

.input-row span {
  padding: 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  grid-column: span 2;
}

.terms-inline {
  display: grid;
  align-items: start;
  min-height: auto;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.terms-inline label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

#termsLink {
  padding: 0;
  border: 0;
  color: var(--orange-dark);
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  cursor: pointer;
}

.summary-list div {
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.summary-list dd {
  margin: 8px 0 0;
  font: 900 1.35rem Montserrat, sans-serif;
}

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

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-head {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.plan-head span {
  display: block;
  font-weight: 800;
  opacity: 0.9;
}

.plan-head strong {
  font: 800 1.75rem Montserrat, sans-serif;
}

.plan-head small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-gain {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: var(--orange-soft);
}

.plan-gain span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.plan-gain strong {
  color: var(--orange-dark);
  font: 900 1.65rem Montserrat, sans-serif;
}

.plan-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 36px);
  min-height: 44px;
  margin: 0 18px 18px;
  border: 1px solid rgba(216, 110, 8, 0.28);
  border-radius: 8px;
  color: var(--orange-dark);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.plan-more span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 0.86rem;
}

.plan-body {
  display: none;
  gap: 12px;
  padding: 0 18px 18px;
}

.plan-card.open .plan-body {
  display: grid;
}

.metric {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric strong {
  font-size: 1.05rem;
}

.metric small {
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 0.8rem;
}

.feature-block {
  padding-top: 12px;
  border-top: 1px solid rgba(23, 17, 13, 0.12);
}

.feature-block h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 800 0.9rem Montserrat, sans-serif;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: list-item;
  margin-left: 18px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.calculator-warning span {
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
}

.calculator-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(216, 110, 8, 0.22);
  border-radius: 8px;
  color: var(--earth);
  background: var(--orange-soft);
  font-weight: 700;
}

.download-button {
  justify-self: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 16px 34px rgba(216, 110, 8, 0.24);
  font-weight: 900;
  cursor: pointer;
}

.pain-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr);
  width: 100%;
  min-height: 560px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.pain-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 42% center;
}

.pain-copy {
  align-self: center;
  padding: clamp(34px, 6vw, 82px);
}

.pain-copy h2,
.experience h2,
.cta h2 {
  color: var(--white);
}

.pain-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
  line-height: 1.7;
}

.departments {
  background: var(--paper);
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: var(--content);
  margin: 0 auto;
}

.department-grid article {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 20px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.department-grid article:hover,
.department-grid article:focus {
  transform: translateY(-8px);
  border-color: rgba(216, 110, 8, 0.42);
  box-shadow: var(--shadow);
  outline: none;
}

.dept-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 34px rgba(216, 110, 8, 0.28);
  font-weight: 900;
  font-size: 1.15rem;
}

.dept-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: invert(1) brightness(3);
}

.dept-number {
  font: 900 1rem Montserrat, sans-serif;
}

.department-grid p,
.department-grid ul {
  display: none;
}

.experience {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  width: 100%;
  margin: 0;
  padding: 122px calc((100% - var(--content)) / 2);
  border-radius: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark) 48%, var(--ink));
}

.experience .secondary-button {
  min-width: 190px;
}

.experience > div {
  width: min(820px, 100%);
}

.experience .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

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

.carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  width: var(--content);
  margin: 0 auto;
}

.carousel-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 2.2rem;
  cursor: pointer;
}

.project-card {
  position: relative;
  display: grid;
  min-height: clamp(260px, 28vw, 420px);
  overflow: hidden;
  align-items: stretch;
  padding: 0;
  background: var(--ink);
  isolation: isolate;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.88fr);
  gap: 24px;
  width: var(--content);
  margin: 14px auto 0;
  padding: 20px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 17, 13, 0.08);
}

.project-title {
  display: grid;
  gap: 14px;
}

.project-title h3 {
  max-width: 720px;
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  line-height: 0.96;
  text-wrap: balance;
}

.sold-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}

.project-location {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 1.45;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-stat {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(216, 110, 8, 0.18);
  border-radius: 8px;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
  text-align: center;
}

.project-stat span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.project-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--orange-dark);
  font: 800 clamp(1rem, 1.7vw, 1.45rem) Montserrat, sans-serif;
  line-height: 1.05;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 17, 13, 0.24);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--orange);
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: var(--content);
  margin: 14px auto 0;
}

.project-thumb {
  position: relative;
  min-height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  cursor: pointer;
}

.project-thumb.active {
  border-color: var(--orange);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-thumb:hover img,
.project-thumb.active img {
  opacity: 1;
  transform: scale(1.04);
}

.project-thumb span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  color: var(--white);
  font-weight: 900;
  font-size: 0.66rem;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

.cta {
  display: grid;
  grid-template-columns: minmax(420px, 1.18fr) minmax(320px, 0.82fr);
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0 calc((100% - var(--content)) / 2);
  overflow: hidden;
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
}

.cta-copy {
  align-self: center;
  padding: clamp(46px, 7vw, 96px);
}

.cta-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  font-size: 1.1rem;
}

.contact-card {
  display: grid;
  gap: 6px;
  width: min(520px, 100%);
  margin-top: 26px;
  padding: 22px;
  color: var(--ink);
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.contact-card strong {
  font: 800 1.4rem Montserrat, sans-serif;
}

.contact-card a {
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 1.6rem;
  text-decoration: none;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
}

.whatsapp-button {
  background: #25d366;
}

.call-button {
  background: var(--orange);
}

.contact-card .official-site {
  justify-self: center;
  margin-top: 8px;
  color: var(--earth);
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-photo {
  min-height: 580px;
}

.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.department-modal {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(23, 17, 13, 0.68);
  backdrop-filter: blur(8px);
}

.department-arrow {
  position: fixed;
  z-index: 49;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 18px 42px rgba(23, 17, 13, 0.28);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.department-arrow-prev {
  left: max(18px, calc((100vw - 900px) / 2 - 72px));
}

.department-arrow-next {
  right: max(18px, calc((100vw - 900px) / 2 - 72px));
}

.department-modal.show {
  display: grid;
}

.department-dialog {
  position: relative;
  display: grid;
  gap: 30px;
  width: min(760px, 85vw);
  max-height: min(720px, 82vh);
  overflow: auto;
  padding: 34px 34px 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.department-dialog .dept-icon {
  width: 88px;
  height: 88px;
}

.department-dialog .dept-icon img {
  width: 54px;
  height: 54px;
}

.department-dialog h3 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.department-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.department-dialog ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.department-modal-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  object-fit: cover;
}

.department-modal-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 4px;
}

.department-dialog li {
  margin-bottom: 12px;
}

.department-modal-list {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}


.department-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(23, 17, 13, 0.72);
  backdrop-filter: blur(10px);
}

.terms-modal.show {
  display: grid;
}

.terms-dialog {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  justify-items: center;
}

.terms-dialog img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.terms-dialog h2 {
  text-align: center;
  font-size: 1.7rem;
}

.terms-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.terms-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 700;
}

.terms-check a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-detail {
  max-height: min(360px, 46vh);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(216, 110, 8, 0.22);
  border-radius: 8px;
  color: var(--muted);
  background: var(--orange-soft);
  line-height: 1.5;
  font-size: 0.9rem;
}

.terms-detail h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.terms-detail p {
  margin: 0 0 12px;
}

.terms-detail strong {
  color: var(--ink);
}

.terms-dialog .primary-button {
  width: 100%;
  margin-top: 4px;
  color: var(--white);
  background: var(--orange);
}

.terms-dialog .primary-button:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  :root {
    --content: 85vw;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    display: none;
    width: min(260px, calc(100vw - 40px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(23, 17, 13, 0.94);
    box-shadow: 0 0 34px rgba(216, 110, 8, 0.45);
  }

  body.menu-open .nav-links {
    display: grid;
  }

  .input-panel,
  .pain-section,
  .cta {
    grid-template-columns: 1fr;
  }

  .input-panel {
    align-items: stretch;
  }

  .summary-list {
    grid-column: auto;
  }

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

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

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

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

  .project-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --content: 85vw;
  }

  .site-header {
    padding-top: 10px;
  }

  .brand span {
    font-size: 0.94rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    min-height: 86vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(23, 17, 13, 0.52), rgba(183, 91, 5, 0.74) 54%, rgba(23, 17, 13, 0.84)),
      rgba(216, 110, 8, 0.24);
  }

  .section-pad {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .summary-list,
  .project-stats {
    grid-template-columns: 1fr;
  }

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

  .department-grid article {
    grid-template-columns: auto 1fr;
    place-items: center start;
    min-height: 96px;
    padding: 16px;
    text-align: left;
  }

  .department-grid article h3 {
    align-self: center;
  }

  .department-grid .dept-icon {
    width: 48px;
    height: 48px;
  }

  .department-grid .dept-icon img {
    width: 28px;
    height: 28px;
  }

  .terms-detail {
    max-height: 42vh;
  }

  .pain-section {
    min-height: auto;
  }

  .pain-copy {
    padding: 32px 20px;
  }

  .carousel {
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
  }

  .project-card {
    min-height: 250px;
  }

  .project-content {
    padding: 18px;
  }

  .project-stat {
    min-height: 88px;
  }

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

  .project-thumb {
    min-height: 52px;
  }

  .cta {
    position: static;
    min-height: auto;
    isolation: auto;
    padding-left: calc((100% - var(--content)) / 2);
    padding-right: calc((100% - var(--content)) / 2);
  }

  .cta::after {
    display: none;
  }

  .cta-copy {
    position: static;
    align-self: end;
    padding: 34px 20px;
  }

  .cta-photo {
    position: static;
    min-height: auto;
    order: -1;
    height: 520px;
  }

  .cta-photo img {
    object-position: center 18%;
  }

  .department-dialog {
    width: 85vw;
    padding: 22px;
  }

  .department-arrow {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.6rem;
  }

  .department-arrow-prev {
    left: 8px;
  }

  .department-arrow-next {
    right: 8px;
  }

  .department-modal-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .department-dialog .dept-icon {
    width: 64px;
    height: 64px;
  }

  .department-dialog .dept-icon img {
    width: 38px;
    height: 38px;
  }

  .site-footer {
    padding: 30px calc((100% - var(--content)) / 2);
  }

  .site-footer div {
    display: grid;
  }
}
