:root {
  --stone: #f4efe7;
  --sand: #d9cbb7;
  --warm-white: #fbf8f2;
  --charcoal: #171714;
  --soft-charcoal: #2d2c27;
  --olive: #59604a;
  --bronze: #9b7d54;
  --line: rgba(23, 23, 20, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}

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

.page {
  overflow: hidden;
}

header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  mix-blend-mode: difference;
  transition: background 0.3s ease, padding 0.3s ease;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

nav a.active::after,
nav a:hover::after {
  width: 100%;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  color: #fff;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, width 0.3s ease;
}

.hamburger span:nth-child(2) {
  width: 18px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 24px;
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
}

/* Mobile Popover Menu */
#mobile-menu {
  border: none;
  margin: 0;
  margin-left: auto;
  height: 100vh;
  width: 340px;
  max-width: 85%;
  background: var(--soft-charcoal);
  color: var(--warm-white);
  padding: 120px 44px 44px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  
  /* Layout */
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 55;
  
  /* Transition state */
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    display 0.4s allow-discrete,
    overlay 0.4s allow-discrete;
  transition-behavior: allow-discrete;
}

#mobile-menu:is(:popover-open, .\:popover-open) {
  display: flex;
  transform: translateX(0);
  opacity: 1;

  @starting-style {
    transform: translateX(100%);
    opacity: 0;
  }
}

#mobile-menu::backdrop {
  background-color: rgba(23, 23, 20, 0);
  backdrop-filter: blur(0px);
  transition:
    display 0.4s allow-discrete,
    overlay 0.4s allow-discrete,
    background-color 0.4s ease,
    backdrop-filter 0.4s ease;
  transition-behavior: allow-discrete;
}

#mobile-menu:is(:popover-open, .\:popover-open)::backdrop {
  background-color: rgba(23, 23, 20, 0.55);
  backdrop-filter: blur(6px);

  @starting-style {
    background-color: rgba(23, 23, 20, 0);
    backdrop-filter: blur(0px);
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-nav-links a {
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-nav-links a:hover {
  color: var(--sand);
  padding-left: 8px;
}

.mobile-nav-footer {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.46);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 160px 44px 58px;
  color: white;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.32), rgba(0,0,0,0.62)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=85") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.16), transparent 26%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.8);
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  font-size: clamp(58px, 9vw, 136px);
  letter-spacing: -0.06em;
  max-width: 1040px;
}

.hero-bottom {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(260px, 560px) auto;
  gap: 38px;
  align-items: end;
}

.hero p {
  font-size: clamp(17px, 1.45vw, 22px);
  color: rgba(255,255,255,0.86);
  font-weight: 300;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all .25s ease;
  cursor: pointer;
  background: transparent;
  color: inherit;
  font-family: inherit;
}

.btn:hover {
  background: #fff;
  color: var(--charcoal);
  border-color: #fff;
}

.btn.dark {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn.dark:hover {
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
}

section {
  padding: 110px 44px;
}

/* Intro Section */
.intro {
  background: var(--stone);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 70px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 22px;
  font-weight: 500;
}

.intro h2,
.philosophy h2,
.projects h2,
.process h2,
.cta h2 {
  font-size: clamp(42px, 6vw, 88px);
  letter-spacing: -0.045em;
}

.lead {
  font-size: clamp(23px, 3vw, 42px);
  font-family: "Playfair Display", serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 900px;
}

.copy {
  margin-top: 32px;
  max-width: 650px;
  color: rgba(23,23,20,0.72);
  font-size: 17px;
}

/* Services Section */
.services {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 680px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 38px;
  color: white;
  min-height: 620px;
}

.service-card:nth-child(1) {
  background: url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1400&q=85") center/cover no-repeat;
}

.service-card:nth-child(2) {
  background: url("https://images.unsplash.com/photo-1600607688960-e095ff83135c?auto=format&fit=crop&w=1400&q=85") center/cover no-repeat;
}

.service-card:nth-child(3) {
  background: url("https://images.unsplash.com/photo-1604014237800-1c9102c219da?auto=format&fit=crop&w=1400&q=85") center/cover no-repeat;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.74), rgba(0,0,0,0.16));
  transition: opacity .35s ease;
}

.service-card:hover::before {
  opacity: 0.86;
}

.service-inner {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.number {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: clamp(34px, 3.6vw, 56px);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.service-card p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  max-width: 340px;
}

/* Projects Section */
.projects {
  background: var(--warm-white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto 32px;
}

.section-head p {
  max-width: 430px;
  color: rgba(23,23,20,0.66);
}

/* Portfolio Filters UI */
.portfolio-filters {
  display: flex;
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto 44px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--charcoal);
  color: var(--warm-white);
  border-color: var(--charcoal);
}

.project-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.project-card {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: var(--sand);
  cursor: pointer;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), display 0.4s allow-discrete;
}

.project-card.small {
  min-height: 243px;
}

.project-card.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.95);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .55s ease;
}

.project-card:hover img {
  transform: scale(1.045);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 65%);
}

.project-info {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 28px;
  color: white;
}

.project-info h3 {
  font-size: 34px;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}

.project-info span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.project-stack {
  display: grid;
  gap: 24px;
}

/* Philosophy Section */
.philosophy {
  background: var(--soft-charcoal);
  color: var(--warm-white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.philosophy .section-label {
  color: var(--sand);
}

.philosophy p {
  color: rgba(251,248,242,0.72);
  font-size: 18px;
  max-width: 560px;
}

.feature-list {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 42px;
}

.feature-list div {
  border-bottom: 1px solid rgba(255,255,255,0.16);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,248,242,0.72);
}

.image-panel {
  min-height: 620px;
  background: url("https://images.unsplash.com/photo-1600607687644-c7171b42498f?auto=format&fit=crop&w=1500&q=85") center/cover no-repeat;
}

/* Process Section */
.process {
  background: var(--stone);
}

.process-grid {
  max-width: 1320px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step {
  padding: 30px 24px 54px;
  min-height: 320px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step span {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--bronze);
}

.step h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.step p {
  color: rgba(23,23,20,0.66);
  font-size: 14px;
}

/* CTA Section */
.cta {
  min-height: 78vh;
  color: white;
  background:
    linear-gradient(to right, rgba(0,0,0,0.72), rgba(0,0,0,0.28)),
    url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2200&q=85") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.cta-inner {
  max-width: 780px;
}

.cta p {
  margin: 28px 0 34px;
  color: rgba(255,255,255,0.78);
  font-size: 20px;
  max-width: 620px;
}

/* Footer Section */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.72);
  padding: 34px 44px;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer a {
  transition: color 0.25s ease;
}

footer a:hover {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================
   MODAL DIALOGS STYLING (Modern Top-Layer)
   ========================================== */

dialog {
  border: none;
  background: var(--warm-white);
  color: var(--charcoal);
  padding: 44px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(23, 23, 20, 0.22);
  margin: auto;
  overflow-y: auto;
  position: fixed;
  inset: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  
  /* Transition Properties for top layer */
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: 
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    display 0.4s allow-discrete,
    overlay 0.4s allow-discrete;
  transition-behavior: allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
  
  @starting-style {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}

dialog::backdrop {
  background-color: rgba(23, 23, 20, 0);
  backdrop-filter: blur(0px);
  transition:
    display 0.4s allow-discrete,
    overlay 0.4s allow-discrete,
    background-color 0.4s ease,
    backdrop-filter 0.4s ease;
  transition-behavior: allow-discrete;
}

dialog[open]::backdrop {
  background-color: rgba(23, 23, 20, 0.65);
  backdrop-filter: blur(8px);
  
  @starting-style {
    background-color: rgba(23, 23, 20, 0);
    backdrop-filter: blur(0px);
  }
}

/* Dialog Components */
.dialog-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--charcoal);
  transition: all 0.25s ease;
  z-index: 10;
}

.dialog-close-btn:hover {
  background: var(--charcoal);
  color: var(--warm-white);
  transform: rotate(90deg);
  border-color: var(--charcoal);
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  margin-top: 14px;
}

.project-gallery-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--stone);
  border-radius: 4px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.25);
}

.project-info-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info-sidebar h2 {
  font-size: 38px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.project-info-sidebar .project-type {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
  margin-bottom: 24px;
}

.project-specs-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.project-spec-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(23, 23, 20, 0.5);
  font-weight: 500;
}

.project-spec-value {
  font-weight: 500;
}

.project-description {
  font-size: 15px;
  color: rgba(23, 23, 20, 0.72);
  line-height: 1.6;
}

/* Enquiry Form Dialogue Styling */
.enquiry-dialog-container {
  max-width: 760px;
}

.enquiry-dialog-container h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.enquiry-dialog-container p {
  color: rgba(23, 23, 20, 0.6);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(23, 23, 20, 0.6);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  color: var(--charcoal);
  transition: all 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 2px rgba(155, 125, 84, 0.15);
}

/* Modern HTML Form validation with :user-invalid and fallback class */
.form-group input:is(:user-invalid, .is-invalid),
.form-group select:is(:user-invalid, .is-invalid),
.form-group textarea:is(:user-invalid, .is-invalid) {
  border-color: #b3261e;
  box-shadow: 0 0 0 2px rgba(179, 38, 30, 0.1);
}

.form-error {
  font-size: 11px;
  color: #b3261e;
  margin-top: 4px;
  display: none;
}

.form-group input:is(:user-invalid, .is-invalid) + .form-error,
.form-group select:is(:user-invalid, .is-invalid) + .form-error,
.form-group textarea:is(:user-invalid, .is-invalid) + .form-error {
  display: block;
}

.form-submit-row {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.form-submit-row .btn {
  min-width: 160px;
}

/* Success View inside Enquiry Modal */
.success-screen {
  text-align: center;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.success-screen svg {
  color: var(--olive);
  width: 64px;
  height: 64px;
}

.success-screen h3 {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.success-screen p {
  color: rgba(23, 23, 20, 0.68);
  font-size: 16px;
  max-width: 440px;
  margin: 0 auto 12px;
}

/* Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  dialog, 
  #mobile-menu, 
  .carousel-slide,
  .project-card,
  .service-card::before,
  .project-card img {
    transition: none !important;
    transform: none !important;
  }
  
  @starting-style {
    dialog[open],
    #mobile-menu:is(:popover-open, .\:popover-open) {
      transform: none !important;
      opacity: 1 !important;
    }
  }
}

/* ==========================================
   RESPONSIVE OVERRIDES (Mockup matching)
   ========================================== */

@media (max-width: 980px) {
  header {
    padding: 24px;
    mix-blend-mode: normal;
    background: transparent;
  }

  /* When mobile menu popover is open, force header text to white color on charcoal drawer */
  header.menu-open {
    color: #fff;
  }

  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero,
  section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-bottom,
  .intro-grid,
  .philosophy,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-card {
    min-height: 520px;
  }

  .section-head {
    display: block;
    margin-bottom: 24px;
  }

  .section-head p {
    margin-top: 24px;
  }

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

  .step {
    min-height: 240px;
    padding: 28px 20px 38px;
  }

  footer {
    display: block;
  }

  footer div + div {
    margin-top: 12px;
  }
  
  .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }

  .image-panel {
    min-height: 320px;
  }

  section {
    padding: 80px 24px;
  }
}

/* ==========================================
   MOBILE PHONE SPECIFIC OVERRIDES (<= 480px)
   ========================================== */
@media (max-width: 480px) {
  .hero,
  section {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding: 60px 16px;
  }

  .hero {
    padding: 130px 16px 44px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
    letter-spacing: -0.04em;
    line-height: 1.05;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-bottom {
    margin-top: 28px;
    gap: 24px;
  }

  .button-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .button-row .btn {
    width: 100%;
  }

  .intro h2,
  .philosophy h2,
  .projects h2,
  .process h2,
  .cta h2 {
    font-size: clamp(30px, 8vw, 40px);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .lead {
    font-size: 22px;
    line-height: 1.25;
  }

  .copy {
    font-size: 15px;
    margin-top: 20px;
  }

  .service-card {
    min-height: 440px;
    padding: 24px;
  }

  .portfolio-filters {
    margin-bottom: 28px;
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 10px;
  }

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

  .project-card.small {
    min-height: 220px;
  }

  .project-info {
    left: 20px;
    bottom: 20px;
  }

  .project-info h3 {
    font-size: 26px;
  }

  /* Dialogue adjustments for phones */
  dialog {
    padding: 28px 16px 20px;
    width: 95%;
    max-height: 94vh;
  }

  .dialog-close-btn {
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
  }

  .project-detail-layout {
    margin-top: 18px;
    gap: 20px;
  }

  .project-info-sidebar h2 {
    font-size: 26px;
    line-height: 1.1;
  }

  .project-specs-list {
    margin: 16px 0;
    padding: 16px 0;
    gap: 10px;
  }

  .project-description {
    font-size: 14px;
  }

  .enquiry-dialog-container h2 {
    font-size: 28px;
  }

  .enquiry-dialog-container p {
    margin-bottom: 20px;
  }

  .form-grid {
    gap: 14px;
  }

  .form-group label {
    font-size: 10px;
  }

  .form-group input, 
  .form-group select, 
  .form-group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .form-submit-row {
    margin-top: 24px;
  }

  .form-submit-row .btn {
    width: 100%;
  }

  .success-screen {
    padding: 24px 10px;
    gap: 16px;
  }

  .success-screen svg {
    width: 48px;
    height: 48px;
  }

  .success-screen h3 {
    font-size: 26px;
  }

  .success-screen p {
    font-size: 14px;
  }

  /* Step processes list */
  .process-grid {
    margin-top: 28px;
  }

  .step {
    padding: 24px 16px 32px;
    min-height: 200px;
  }

  .step h3 {
    font-size: 22px;
  }

  footer {
    padding: 28px 16px;
  }
}
