:root {
  --pink: #E52C4E;
  --purple: #501B48;
  --ink: #0f172a;
  --cream: #F7F4EF;
  --muted: #64748b;
  --line: #e2e8f0;
  --gradient: linear-gradient(90deg, var(--pink), var(--purple));
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink)
}

body.no-scroll {
  overflow: hidden
}

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

button {
  font: inherit
}

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

.container {
  max-width: 1600px;
  margin: 0 auto
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  padding: .85rem 1.75rem;
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(80, 27, 72, .18);
  transition: .2s ease
}

.btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 12px rgba(80, 27, 72, .28));
  box-shadow: 0 14px 28px rgba(80, 27, 72, .22)
}

.btn:active {
  transform: scale(.97);
  box-shadow: 0 6px 14px rgba(80, 27, 72, .22)
}

.icon-arrow {
  width: 1rem;
  height: 1rem;
  transition: .3s ease
}

.btn:hover .icon-arrow,
.portfolio-open:hover .icon-arrow {
  transform: translate(3px, -3px)
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(15, 23, 42, .88);
  color: #fff;
  backdrop-filter: blur(18px)
}

.header-inner {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem
}

.logo-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer
}

.logo {
  height: 2.5rem;
  width: auto
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em
}

.main-nav a {
  transition: .2s ease
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff
}

.desktop-contact {
  display: none
}

.hamburger {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer
}

.hamburger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: .25s
}

.hamburger.open span:first-child {
  transform: translateY(8px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
  opacity: 0
}

.hamburger.open span:last-child {
  transform: translateY(-8px) rotate(-45deg)
}

.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 81px;
  height: calc(100vh - 81px);
  display: none;
  flex-direction: column;
  z-index: 45;
  background: var(--ink);
  padding: 1.5rem 1.5rem 1.75rem;
  overflow: hidden
}

.mobile-menu.open {
  display: flex;
  animation: fadeIn .24s ease
}

.mobile-menu-links {
  display: grid;
  gap: .5rem
}

.mobile-menu a {
  border-radius: 1rem;
  padding: 1rem;
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em
}

.mobile-menu a.active,
.mobile-menu a:hover {
  background: #fff;
  color: var(--ink)
}

.mobile-menu-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.5rem
}

.mobile-menu-bottom .btn {
  width: 100%
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: #fff
}

.hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 56.25vw;
  min-height: 100%;
  width: 177.78vh;
  min-width: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3)
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .76) 44%, rgba(0, 0, 0, .42) 100%)
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  background: linear-gradient(to top, var(--cream), transparent)
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  align-items: end;
  gap: 2.5rem;
  padding: 9rem 1.5rem 5rem
}

.eyebrow-line {
  border-left: 2px solid var(--pink);
  padding-left: 1.25rem;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .34em
}

.hero h1 {
  max-width: 70rem;
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 7vw, 8.4rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.04em
}

@media (max-width:1201px) {
  .hero h1 {
    font-size: clamp(4rem, 10vw, 8.4rem)
  }
}

.hero-side {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 2rem
}

.hero-side p {
  max-width: 38rem;
  color: rgba(255, 255, 255, .76);
  font-size: 1.125rem;
  line-height: 2
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.25rem
}

.desktop-only {
  display: none !important
}

.section {
  padding: 5rem 1.5rem
}

.section-lg {
  padding: 6rem 1.5rem
}

.white {
  background: #fff
}

.cream {
  background: var(--cream)
}

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

.section-intro {
  display: grid;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
  margin-bottom: 3.5rem
}

.eyebrow {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .42em
}

.section-title {
  max-width: 68rem;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em
}

.page-header {
  background: var(--ink);
  color: #fff;
  padding: 8rem 1.5rem 5rem
}

.page-header-grid {
  display: grid;
  gap: 2.5rem
}

.page-title {
  max-width: 64rem;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.055em
}

.page-copy {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 2rem;
  color: rgba(255, 255, 255, .7);
  font-size: 1.125rem;
  line-height: 2
}

.about-grid {
  display: grid;
  gap: 3rem
}

.about-grid h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em
}

.about-copy {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  color: #475569;
  font-size: 1.125rem;
  line-height: 2
}

.services-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.service-card {
  min-height: 380px;
  border-bottom: 1px solid var(--line);
  padding: 2rem;
  transition: .45s ease
}

.service-card:hover {
  background: var(--cream)
}

.service-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem
}

.service-number {
  color: #cbd5e1;
  font-size: .875rem;
  font-weight: 900
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem
}

.service-card h3 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.045em
}

.service-card p {
  max-width: 24rem;
  color: #475569;
  line-height: 1.75
}

.portfolio-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1)
}

.portfolio-card {
  position: relative;
  height: 520px;
  overflow: hidden;
  border: 0;
  background: #111827;
  color: #fff;
  text-align: left;
  cursor: pointer
}

.portfolio-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: .75;
  transition: .7s ease
}

.portfolio-card:hover img {
  transform: scale(1.05);
  opacity: .95
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink), rgba(15, 23, 42, .2), transparent)
}

.portfolio-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2rem
}

.portfolio-content h3 {
  margin: .5rem 0 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em
}

.portfolio-content p {
  color: rgba(255, 255, 255, .55)
}

.portfolio-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem
}

.portfolio-count {
  color: rgba(255, 255, 255, .35);
  font-size: .875rem;
  font-weight: 900
}

.portfolio-open {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  padding: .5rem 1rem;
  color: rgba(255, 255, 255, .82);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .2em;
  backdrop-filter: blur(10px);
  transition: .25s
}

.portfolio-card:hover .portfolio-open {
  background: #fff;
  color: var(--ink)
}

.process-list {
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1
}

.process-item+.process-item {
  border-top: 1px solid #cbd5e1
}

.process-toggle {
  width: 100%;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 2rem 0;
  text-align: left;
  cursor: pointer
}

.process-num {
  font-size: 1.875rem;
  font-weight: 900
}

.process-toggle h3 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -.05em
}

.process-arrow {
  width: 2rem;
  height: 2rem;
  color: #cbd5e1;
  transition: .25s
}

.process-toggle:hover .process-arrow {
  color: var(--pink);
  transform: translate(8px, -8px)
}

.process-item.open .process-arrow {
  color: var(--pink);
  transform: rotate(45deg)
}

.process-text {
  display: none;
  max-width: 48rem;
  padding-bottom: 2rem;
  color: #475569;
  font-size: 1.125rem;
  line-height: 1.75
}

.process-item.open .process-text {
  display: block
}

.reason-grid {
  display: grid;
  gap: 1px;
  background: var(--line)
}

.reason-card {
  background: #fff;
  padding: 2rem;
  transition: .25s
}

.reason-card:hover {
  background: var(--cream)
}

.reason-card svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--pink);
  margin-bottom: 2.5rem
}

.reason-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.025em
}

.reason-card small {
  display: block;
  margin-top: 2.5rem;
  color: #cbd5e1;
  font-weight: 900
}

.cta-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end
}

.cta-grid h2 {
  max-width: 66rem;
  margin: 0;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em
}

.cta-grid p {
  color: rgba(255, 255, 255, .68);
  font-size: 1.125rem;
  line-height: 2
}

.contact-grid {
  display: grid;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1
}

.contact-block {
  padding: 2rem;
  border-bottom: 1px solid #cbd5e1;
  transition: .25s
}

.contact-block:hover {
  background: #fff
}

.contact-block svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--pink);
  margin-bottom: 3rem
}

.contact-block p {
  margin: .5rem 0;
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .28em
}

.contact-block span {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -.035em
}

.project-hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 8rem 1.5rem 4rem
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink), rgba(15, 23, 42, .7), rgba(15, 23, 42, .3))
}

.project-hero-content {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end
}

.project-hero h1 {
  max-width: 64rem;
  margin: 0;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.065em
}

.project-hero p {
  max-width: 42rem;
  color: rgba(255, 255, 255, .72);
  font-size: 1.125rem;
  line-height: 2
}

.gallery-grid {
  display: grid;
  gap: 1rem
}

.gallery-item {
  position: relative;
  height: 20rem;
  overflow: hidden;
  border: 0;
  border-radius: 1.5rem;
  background: #e2e8f0;
  cursor: pointer
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .7s
}

.gallery-item:hover img {
  transform: scale(1.05)
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: .25s
}

.gallery-item:hover::after {
  background: rgba(15, 23, 42, .25)
}

.gallery-item span {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  padding: .5rem 1rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: 0;
  transition: .25s;
  backdrop-filter: blur(10px)
}

.gallery-item:hover span {
  opacity: 1
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .92);
  padding: 1rem;
  backdrop-filter: blur(8px)
}

.modal.open {
  display: flex
}

.modal-card {
  width: 100%;
  max-width: 72rem;
  overflow: hidden;
  border-radius: 1.8rem;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .45)
}

.modal-image {
  height: 68vh;
  background: #0f172a
}

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

.modal-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  padding: 1rem 1.25rem
}

.modal-info p {
  margin: .25rem 0 0;
  color: #64748b;
  font-size: .875rem
}

.modal-btn {
  position: absolute;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s
}

.modal-btn:hover {
  background: #fff;
  color: var(--ink)
}

.modal-close {
  top: 1.25rem;
  right: 1.25rem
}

.modal-prev {
  left: 1.25rem
}

.modal-next {
  right: 1.25rem
}

.legal-content {
  display: grid;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto
}

.legal-text {
  color: #475569;
  font-size: 1.125rem;
  line-height: 1.9
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 1.5rem 1.5rem
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent)
}

.footer::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: var(--gradient);
  opacity: .15;
  filter: blur(50px)
}

.footer-inner {
  position: relative;
  z-index: 1
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: 2.5rem
}

.footer p {
  color: rgba(255, 255, 255, .62);
  line-height: 1.8
}

.footer-title {
  margin: 0 0 1.25rem;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .34em
}

.footer-links {
  display: grid;
  gap: .75rem
}

.footer-links a,
.footer-links button {
  width: max-content;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, .58);
  font-size: .875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  cursor: pointer;
  text-align: left;
  transition: .2s
}

.footer-links a:hover,
.footer-links button:hover {
  color: #fff
}

.footer-contact {
  display: grid;
  gap: 1rem;
  color: rgba(255, 255, 255, .62)
}

.footer-contact a,
.footer-contact div {
  display: flex;
  align-items: center;
  gap: .75rem
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  color: var(--pink)
}

.socials {
  display: flex;
  gap: 1rem;
  padding-top: .5rem
}

.socials a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: var(--pink);
  transition: .2s
}

.socials a:hover {
  border-color: rgba(229, 44, 78, .5);
  color: #fff
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, .45);
  font-size: .875rem
}

.made-by {
  font-weight: 700
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease
}

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

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@media (min-width:640px) {
  .hero-actions {
    flex-direction: row
  }
}

@media (min-width:1024px) {

  .main-nav,
  .desktop-contact {
    display: flex
  }

  .desktop-only {
    display: inline-flex !important
  }

  .hamburger {
    display: none
  }

  .logo {
    height: 3rem
  }

  .header-inner {
    padding-left: 3rem;
    padding-right: 3rem
  }

  .hero-content {
    grid-template-columns: 1.18fr .82fr;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 7rem
  }

  .hero-side {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .2);
    padding-top: 0;
    padding-left: 2.5rem
  }

  .section {
    padding: 5rem 3rem
  }

  .section-lg {
    padding: 8rem 3rem
  }

  .page-header {
    padding: 9rem 3rem 6rem
  }

  .page-header-grid {
    grid-template-columns: 1fr .48fr;
    align-items: end
  }

  .page-copy {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .2);
    padding-top: 0;
    padding-left: 2.5rem
  }

  .section-intro {
    grid-template-columns: 1.2fr 1fr;
    align-items: end
  }

  .about-grid {
    grid-template-columns: .55fr 1fr
  }

  .about-copy {
    grid-template-columns: 1fr 1fr
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .service-card {
    border-bottom: 0;
    border-right: 1px solid var(--line)
  }

  .service-card:last-child {
    border-right: 0
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .process-toggle {
    grid-template-columns: .18fr 1fr .12fr
  }

  .process-text {
    margin-left: 18%
  }

  .reason-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .contact-block {
    border-bottom: 0;
    border-right: 1px solid #cbd5e1
  }

  .contact-block:last-child {
    border-right: 0
  }

  .cta-grid {
    grid-template-columns: 1fr .45fr
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .gallery-item {
    height: 420px
  }

  .gallery-item.wide {
    grid-column: span 2
  }

  .modal {
    padding: 2rem
  }

  .modal-image {
    height: 76vh
  }

  .modal-info {
    padding: 1rem 1.75rem
  }

  .modal-prev {
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem
  }

  .modal-next {
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem
  }

  .footer {
    padding-left: 3rem;
    padding-right: 3rem
  }

  .footer-grid {
    grid-template-columns: 1.05fr .7fr .7fr .85fr
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center
  }

  .legal-content {
    grid-template-columns: .35fr 1fr
  }
}

@media (min-width:1024px) and (max-width:1199px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start
  }

  .hero-actions .btn {
    width: max-content;
    max-width: 100%
  }
}

@media (min-width:768px) and (max-width:1023px) {
  .header-inner {
    padding-left: 2rem;
    padding-right: 2rem
  }

  .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 6rem
  }

  .hero h1 {
    font-size: clamp(4.5rem, 12vw, 6.8rem)
  }

  .hero-side {
    max-width: 42rem
  }

  .section,
  .section-lg {
    padding-left: 2rem;
    padding-right: 2rem
  }

  .page-header {
    padding-left: 2rem;
    padding-right: 2rem
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .service-card:nth-child(odd) {
    border-right: 1px solid var(--line)
  }

  .service-card:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .reason-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:767px) {
  .hide-mobile {
    display: none !important
  }

  .page-header {
    padding-top: 7rem
  }

  .section-title {
    font-size: 2.6rem
  }

  .service-card {
    min-height: 320px
  }

  .portfolio-card {
    height: 430px
  }

  .project-hero h1 {
    font-size: 3.4rem
  }

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

  .footer .logo {
    height: 3rem
  }
}

/* Responsive refinements for tablet / small desktop widths */
@media (min-width:1024px) and (max-width:1199px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-width: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-child(2n) {
    border-right: 0;
  }

  .service-card:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .service-card h3 {
    font-size: clamp(2rem, 4vw, 2.35rem);
  }

  .service-card p {
    max-width: 100%;
  }

  .section-lg.cream .about-grid {
    grid-template-columns: 1fr;
  }

  .section-lg.cream .section-title {
    max-width: 900px;
    font-size: clamp(3rem, 6vw, 4.6rem);
  }

  .section-lg.cream .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-lg.cream .contact-block {
    min-width: 0;
    padding: 2rem 1.6rem;
  }

  .section-lg.cream .contact-block span {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width:1023px) {

  .services-grid,
  .contact-grid,
  .section-lg.cream .about-grid {
    min-width: 0;
  }

  .service-card,
  .contact-block {
    min-width: 0;
  }
}

@media (max-width:767px) {
  .contact-block span {
    overflow-wrap: anywhere;
  }
}


/* Hero responsive corrections requested */
@media (min-width:640px) {
  .hero-actions .desktop-only {
    display: inline-flex !important;
  }
}

@media (max-width:639px) {
  .hero-actions .desktop-only {
    display: none !important;
  }
  .hero h1 {
    
  }
}

@media (min-width:1024px) and (max-width:1201px) {
  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 0.5rem;
    text-align: left;
  }

  .hero-side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-left: 0;
    padding-top: 2rem;
    max-width: 44rem;
  }

  .hero-side p {
    max-width: 42rem;
  }

  .hero-actions {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: max-content;
    max-width: 100%;
  }
}

@media (min-width:1201px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Device polish down to 360px */
html,
body {
  width: 100%;
}

body,
button,
a,
p,
h1,
h2,
h3,
span,
small {
  overflow-wrap: anywhere;
}

.btn,
.eyebrow,
.eyebrow-line,
.main-nav,
.mobile-menu a,
.portfolio-open,
.footer-title,
.footer-links a,
.footer-links button,
.contact-block p,
.section-title,
.page-title,
.hero h1,
.about-grid h2,
.cta-grid h2,
.project-hero h1,
.service-card h3 {
  letter-spacing: 0;
}

.btn {
  max-width: 100%;
  min-height: 44px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  width: fit-content;
}

.portfolio-open,
.footer-contact a,
.footer-contact div,
.footer-links a {
  max-width: 100%;
}

.section-intro .btn,
.cta-grid .btn,
.hero-actions .btn {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 72px;
    padding: .85rem 1rem;
  }

  .logo {
    height: 2.15rem;
    max-width: 11rem;
    object-fit: contain;
  }

  .hamburger {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .mobile-menu {
    top: 72px;
    height: calc(100dvh - 72px);
    padding: 1rem;
    overflow-y: auto;
  }

  .mobile-menu a {
    padding: .9rem;
    line-height: 1.25;
  }

  .mobile-menu-bottom .btn {
    width: 100%;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    min-height: 100svh;
    padding: 5.25rem 1rem 2rem;
    align-content: center;
    align-items: center;
    justify-content: stretch;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 4.1rem);
    line-height: .96;
  }

  .eyebrow-line {
    margin-bottom: .75rem;
    padding-left: .9rem;
    font-size: .78rem;
    line-height: 1.35;
  }

  .hero-side {
    border-top: 0;
    padding-top: .35rem;
  }

  .hero-side p {
    margin: 0;
  }

  .hero-side p,
  .page-copy,
  .cta-grid p,
  .project-hero p,
  .about-copy,
  .legal-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-actions {
    width: 100%;
    gap: .6rem;
    margin-top: .85rem;
  }

  .hero-actions .btn,
  .cta-grid .btn {
    width: 100%;
  }

  .hero-actions .desktop-only {
    display: none !important;
  }

  .section,
  .section-lg {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-lg {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .page-header {
    padding: 6.25rem 1rem 3.5rem;
  }

  .section-intro {
    gap: 1rem;
    padding-bottom: 1.75rem;
    margin-bottom: 2.25rem;
  }

  .section-title,
  .page-title,
  .about-grid h2 {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    line-height: 1.04;
  }

  .cta-grid h2,
  .project-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
    line-height: 1;
  }

  .service-card {
    min-height: auto;
    padding: 1.45rem;
  }

  .service-card h3 {
    font-size: clamp(1.85rem, 10vw, 2.35rem);
    line-height: 1.05;
  }

  .service-card p {
    max-width: 100%;
  }

  .portfolio-card {
    height: 360px;
  }

  .portfolio-content {
    padding: 1.25rem;
  }

  .portfolio-content h3 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.08;
  }

  .portfolio-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1rem;
  }

  .portfolio-open {
    padding: .55rem .8rem;
    font-size: .72rem;
    line-height: 1.15;
  }

  .process-toggle {
    grid-template-columns: 1fr auto;
    gap: .75rem 1rem;
    padding: 1.45rem 0;
  }

  .process-toggle h3 {
    grid-column: 1 / -1;
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.05;
  }

  .process-arrow {
    width: 1.65rem;
    height: 1.65rem;
  }

  .reason-card,
  .contact-block {
    padding: 1.4rem;
  }

  .contact-block svg {
    margin-bottom: 2rem;
  }

  .contact-block span {
    display: block;
    font-size: clamp(1.08rem, 6vw, 1.35rem);
  }

  .project-hero {
    min-height: 72svh;
    padding: 6.5rem 1rem 3rem;
  }

  .project-hero-content {
    min-height: 52svh;
  }

  .project-hero .btn {
    width: fit-content;
    max-width: 100%;
  }

  .gallery-grid {
    gap: .75rem;
  }

  .gallery-item {
    height: 15rem;
    border-radius: 1rem;
  }

  .gallery-item span {
    right: .8rem;
    bottom: .8rem;
    opacity: 1;
    padding: .45rem .75rem;
    font-size: .7rem;
  }

  .modal {
    padding: .6rem;
  }

  .modal-card {
    border-radius: 1rem;
  }

  .modal-image {
    height: min(68svh, 520px);
  }

  .modal-info {
    align-items: flex-start;
    flex-direction: column;
    padding: .85rem 1rem;
  }

  .modal-info strong {
    font-size: .8rem;
  }

  .modal-btn {
    width: 2.65rem;
    height: 2.65rem;
  }

  .modal-prev {
    left: .75rem;
  }

  .modal-next {
    right: .75rem;
  }

  .footer {
    padding: 3rem 1rem 1.25rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-contact a,
  .footer-contact div {
    align-items: flex-start;
    line-height: 1.4;
  }

  .footer-bottom {
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .btn {
    padding: .78rem 1rem;
    font-size: .78rem;
  }

  .hero-content {
    padding-left: .85rem;
    padding-right: .85rem;
    padding-top: 5rem;
    padding-bottom: 1.9rem;
  }

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

  .section-title,
  .page-title,
  .about-grid h2 {
    font-size: clamp(1.9rem, 10vw, 2.35rem);
  }

  .portfolio-card {
    height: 330px;
  }

  .portfolio-content {
    padding: 1rem;
  }

  .gallery-item {
    height: 13.5rem;
  }
}


/* Social icon alignment fix */
.footer-contact .socials {
  align-items: center;
}

.socials a {
  line-height: 0;
}

.socials a svg {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-contact .socials {
    align-items: center;
  }

  .socials a {
    align-items: center;
    justify-content: center;
  }
}
