:root {
  --bg: #121212;
  --surface: #ecebe7;
  --text: #F0F0F0;
  --muted: #A0A0A0;
  --line: rgba(17, 17, 17, 0.13);
  --radius: 18px;
  --shell: 1380px;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#main {
  background-image: url("/assets/herobg.png");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}
p {
  font-family: "Google Sans Code", monospace;
  font-optical-sizing: auto;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.section { padding-block: 116px; }

.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px;
  transform: translateY(-150%); background: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav-wrap { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { width: 120px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: .86rem; }
.desktop-nav a { color: #252522; transition: opacity .2s ease; }
.desktop-nav a:hover { opacity: .55; }
.nav-cta { justify-self: end; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 500 !important; font-size: .9rem; transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: #3BDA7F; color: #111; }
.button-dark:hover { background: #2a2a29; color: #fff; }
.button-light { background: transparent; border-color: rgba(17,17,17,.26); }
.button-light:hover { background: #fff; }
.button-white { background: #fff; color: #111; }

.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 0; position: relative; justify-self: end; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: #111; transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

.eyebrow { margin: 0 0 20px; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #3BDA7F; }
.eyebrow-light { color: #3BDA7F; }

.hero { min-height: 690px; padding-top: 145px; padding-bottom: 110px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin: 0; max-width: 1080px; font-size: clamp(3.5rem, 6.4vw, 6.75rem); line-height: 1.1;
  letter-spacing: -0.065em; font-weight: 500;
}
.hero-copy { max-width: 680px; margin: 34px auto 0; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.availability { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; color: #5b5b56; font-size: .83rem; }
.status-dot { width: 7px; height: 7px; background: #59a86a; border-radius: 50%; box-shadow: 0 0 0 5px rgba(89,168,106,.12); }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-heading h2, .services-intro h2, .about-copy h2, .contact-card h2 {
  margin: 0; font-size: clamp(2.2rem, 4.1vw, 4.6rem); line-height: 1; letter-spacing: -0.055em; font-weight: 500;
}
.text-link { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 650; border-bottom: 1px solid transparent; padding-bottom: 3px; }
.text-link:hover { border-color: currentColor; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { min-width: 0; }
.project-preview { display: block; aspect-ratio: 1.28; border-radius: var(--radius); overflow: hidden; position: relative; background: #ddd; }
.project-preview::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(17,17,17,.08); border-radius: inherit; pointer-events: none; }
.browser-frame { position: absolute; inset: 5.5% 4.5% 4%; border-radius: 9px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.22); transition: transform .6s var(--ease); }
.project-preview:hover .browser-frame { transform: scale(1.025) translateY(-3px); }
.browser-nav { height: 13%; display: flex; align-items: center; justify-content: space-between; padding: 0 6%; font-size: clamp(.35rem, .6vw, .62rem); }
.browser-nav span { opacity: .62; }
.browser-dark { background: #191816; color: white; }
.browser-dark .browser-nav { background: rgba(255,255,255,.025); }
.project-preview-fraimic { background: radial-gradient(circle at 77% 28%, #5f4b34 0 10%, transparent 29%), linear-gradient(135deg, #2d2924, #0e0e0d); }
.browser-hero { height: 87%; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; padding: 6%; background: linear-gradient(115deg, #181715, #29241f); }
.browser-hero small, .scene-copy small { letter-spacing: .12em; font-size: .46rem; opacity: .62; }
.browser-hero h3, .scene-copy h3 { font-size: clamp(1.15rem, 2.2vw, 2.45rem); line-height: .98; letter-spacing: -.04em; margin: 10px 0 6px; font-weight: 500; }
.browser-hero p { font-size: .6rem; opacity: .7; margin: 0 0 15px; }
.mini-button { display: inline-flex; background: #fff; color: #111; border-radius: 3px; padding: 7px 9px; font-size: .48rem; font-weight: 700; }
.canvas-art { width: 78%; aspect-ratio: .78; justify-self: center; background: #412c1a; padding: 7%; box-shadow: 0 15px 35px rgba(0,0,0,.35); }
.canvas-art span { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 50% 54%, #f6a544 0 9%, #345c58 10% 12%, transparent 13%), linear-gradient(#d4c57d 0 48%, #376f74 49% 68%, #183e48 69%); }

.project-preview-peaceful { background: #d8d6d1; }
.browser-light { background: #f3f1ec; }
.interior-scene { height: 87%; display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; padding: 8%; background: #f5f3ee; overflow: hidden; }
.scene-copy h3 { color: #161616; }
.mini-button-outline { background: transparent; border: 1px solid rgba(17,17,17,.4); }
.sofa { align-self: end; height: 54%; border-radius: 10px 10px 3px 3px; background: linear-gradient(#c4b9a6, #aea28e); box-shadow: inset 0 -12px 18px rgba(0,0,0,.08), 0 12px 30px rgba(86,74,55,.14); position: relative; display: flex; gap: 5px; padding: 4%; }
.sofa::after { content: ""; position: absolute; width: 20%; height: 45%; right: -8%; bottom: -16%; background: #9a8e7d; border-radius: 50%; filter: blur(.2px); }
.sofa i { flex: 1; background: rgba(255,255,255,.12); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }

.project-preview-bevis { background: #bbbcb8; }
.browser-outdoor { background: #e9e9e5; }
.mountain-scene { height: 87%; position: relative; overflow: hidden; background: linear-gradient(#bfc8ca 0 48%, #59615d 49%); }
.mountains { position: absolute; inset: 18% -6% -10%; background: linear-gradient(145deg, transparent 0 28%, #737c79 29% 44%, transparent 45%), linear-gradient(35deg, transparent 0 28%, #4e5654 29% 50%, transparent 51%), linear-gradient(155deg, transparent 0 20%, #929a96 21% 47%, transparent 48%); opacity: .95; }
.outdoor-copy { position: absolute; left: 7%; bottom: 10%; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.outdoor-copy h3 { color: #fff; }

.project-meta { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; }
.project-meta h3 { margin: 0 0 7px; font-size: 1.02rem; letter-spacing: -.02em; }
.project-meta p, .project-description { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.project-meta > span { font-size: .72rem; color: #999991; }
.project-description { margin-top: 8px; max-width: 92%; }

.services-section { border-top: 1px solid var(--line);
 background-image: url("/assets/servicesbg.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.services-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.services-copy { max-width: 440px; justify-self: end; color: var(--muted); line-height: 1.55; }
.services-copy p { margin: 0 0 24px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 78px; border-top: 1px solid var(--line); }
.service-card { padding: 30px 30px 0 0; min-height: 220px; border-right: 1px solid var(--line); }
.service-card:not(:first-child) { padding-left: 30px; }
.service-card:last-child { border-right: 0; }
.service-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; font-size: .72rem; font-weight: 700; }
.service-card h3 { margin: 23px 0 10px; font-size: 1.14rem; letter-spacing: -.02em; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .9rem; }

.about-section { display: grid; grid-template-columns: 1fr .95fr; gap: 90px; align-items: center; }
.about-body { max-width: 670px; margin: 28px 0 36px; color: var(--muted); line-height: 1.65; font-size: 1.02rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 36px; }
.facts div { display: flex; flex-direction: column; gap: 8px; }
.facts strong { font-size: clamp(1.2rem, 2vw, 1.85rem); letter-spacing: -.035em; }
.facts span { color: var(--muted); font-size: .8rem; }
.photo-placeholder { margin: 0; }
.photo-placeholder img { width: 100%; aspect-ratio: 1.05; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.photo-placeholder figcaption { margin-top: 10px; text-align: right; color: #92928c; font-size: .74rem; }

.process-section { border-top: 1px solid var(--line);
 background-image: url("/assets/processbg.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.process-heading > p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.55; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 50px; }
.process-step { min-height: 190px; padding: 0 30px; border-left: 1px solid var(--line); }
.process-step:first-child, .process-step:nth-child(5) { border-left: 0; padding-left: 0; }
.process-step span { display: block; font-size: .72rem; color: #3BDA7F; margin-bottom: 32px; }
.process-step h3 { margin: 0 0 12px; font-size: 1.02rem; }
.process-step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .88rem; }

.testimonial-section { border-top: 1px solid var(--line); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { margin: 0; padding: 28px; min-height: 285px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.28); display: flex; flex-direction: column; justify-content: space-between; }
.testimonial p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.14rem; line-height: 1.4; }
.testimonial footer { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.testimonial footer strong { font-size: .82rem; }
.testimonial footer span { color: var(--muted); font-size: .78rem; }
.placeholder-note { margin: 14px 0 0; color: #9a9a92; font-size: .72rem; }

.contact-section { padding-bottom: 40px; }
.contact-card { min-height: 390px; border-radius: 20px; padding: clamp(34px, 5.4vw, 78px); color: #fff; display: grid; grid-template-columns: 1.1fr .65fr; gap: 80px; align-items: end; position: relative; overflow: hidden; background: radial-gradient(circle at 86% 18%, rgba(255,255,255,.12), transparent 28%), linear-gradient(145deg, #191919, #090909); }
.contact-card::before { content: ""; position: absolute; right: -10%; bottom: -52%; width: 58%; aspect-ratio: 1; transform: rotate(-8deg); background: linear-gradient(145deg, transparent 0 34%, rgba(255,255,255,.06) 35% 50%, transparent 51%), linear-gradient(35deg, transparent 0 36%, rgba(255,255,255,.04) 37% 53%, transparent 54%); }
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { font-size: clamp(2.6rem, 5vw, 5.3rem); }
.contact-side { justify-self: end; max-width: 390px; }
.contact-side p { color: rgba(255,255,255,.65); line-height: 1.55; margin: 0 0 24px; }
.footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .shell { width: min(calc(100% - 44px), var(--shell)); }
  .nav-wrap { grid-template-columns: 1fr auto; }
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { position: fixed; inset: 82px 0 auto; min-height: calc(100dvh - 82px); background: var(--bg); padding: 42px 22px; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
  .mobile-menu:not([hidden]) { display: flex; }
  .mobile-menu a { font-size: clamp(2rem, 8vw, 3.1rem); letter-spacing: -.045em; padding: 8px 0; }

  .hero { min-height: 620px; padding-top: 115px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); }
  .services-intro { grid-template-columns: 1fr; gap: 34px; }
  .services-copy { justify-self: start; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(3), .service-card:nth-child(4) { border-top: 1px solid var(--line); }
  .service-card:nth-child(3) { padding-left: 0; }
  .about-section { gap: 44px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .facts div { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 42px; }
  .process-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial:last-child { grid-column: 1 / -1; }
  .contact-card { grid-template-columns: 1fr; gap: 54px; }
  .contact-side { justify-self: start; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .section { padding-block: 80px; }
  .nav-wrap { min-height: 70px; }
  .mobile-menu { inset: 70px 0 auto; min-height: calc(100dvh - 70px); }

  .hero { min-height: auto; padding-top: 94px; padding-bottom: 82px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero-title { font-size: clamp(2.65rem, 12.5vw, 3.9rem); line-height: 1.1; }
  .hero-title br { display: none; }
  .hero-copy { margin-top: 25px; font-size: 1rem; line-height: 1.55; }
  .hero-actions { width: 100%; flex-direction: column; margin-top: 28px; }
  .hero-actions .button { width: 100%; }
  .availability { margin-top: 22px; }

  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 28px; }
  .section-heading h2, .services-intro h2, .about-copy h2 { font-size: clamp(2.45rem, 11.8vw, 3.8rem); }

  .project-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 10px; gap: 14px; scrollbar-width: none; }
  .project-grid::-webkit-scrollbar { display: none; }
  .project-card, .project-card:last-child { min-width: 86vw; max-width: none; grid-column: auto; scroll-snap-align: start; }
  .project-preview { aspect-ratio: 1.18; }
  .browser-frame { inset: 5% 4% 3.5%; }
  .browser-hero h3, .scene-copy h3 { font-size: clamp(1.35rem, 7vw, 2rem); }
  .project-description { max-width: 100%; }

  .services-intro { gap: 25px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .service-card, .service-card:not(:first-child) { padding: 28px 0; border-right: 0; border-top: 1px solid var(--line); min-height: 0; }
  .service-card:first-child { border-top: 0; }

  .about-section { grid-template-columns: 1fr; gap: 42px; }
  .about-body { margin-top: 24px; }
  .facts div { grid-template-columns: 130px 1fr; }
  .photo-placeholder { order: -1; }
  .photo-placeholder img { aspect-ratio: 1.12; }
  .photo-placeholder figcaption { text-align: left; }

  .process-heading > p { max-width: none; }
  .process-grid { grid-template-columns: 1fr; row-gap: 0; margin-top: 28px; }
  .process-step, .process-step:first-child, .process-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0; min-height: 0; }
  .process-step span { margin-bottom: 16px; }

  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial, .testimonial:last-child { grid-column: auto; min-height: 240px; }

  .contact-section { width: 100%; }
  .contact-card { border-radius: 0; min-height: 460px; padding: 52px 16px; }
  .contact-card h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .footer { min-height: 90px; }
}

/* --- Refyne v3 refinements --- */
h1 {
  font-weight: 500;
  line-height: 1;
}

/* Keep the three experience facts visually centered. */
.facts {
  align-items: start;
}
.facts > div {
  align-items: center;
  text-align: center;
}
.facts strong,
.facts span {
  width: 100%;
  text-align: center;
}

/* Keep header CTA text crisp in Chromium/Safari. */
.nav-cta,
.nav-cta:hover {
  transform: none !important;
}
.nav-cta {
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  backface-visibility: hidden;
}

/* Solid-black final CTA, without the decorative background graphic. */
.contact-card {
  background: #000;
}
.contact-card::before {
  display: none;
}

/* Contact page */
.contact-main {
  padding-top: 104px;
  padding-bottom: 120px;
      padding-left: 40px;
    padding-right: 40px;
}
.contact-intro {
  max-width: 900px;
  margin-bottom: 66px;
}
.contact-intro .eyebrow {
  margin-bottom: 24px;
}
.contact-title {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3.6rem, 5vw, 7.4rem);
  letter-spacing: -0.065em;
}
.contact-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}
.contact-form-wrap {
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 30px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.form-field label span {
  color: #8d8d86;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,.24);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 12px 0 15px;
  outline: none;
  transition: border-color .2s ease;
}
.form-field textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.55;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #6c6c67 50%), linear-gradient(135deg, #6c6c67 50%, transparent 50%);
  background-position: calc(100% - 8px) calc(50% - 2px), calc(100% - 3px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #111;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9a9a94;
  opacity: 1;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.form-actions .button {
  min-width: 155px;
}
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-footer {
  margin-top: 90px;
}

@media (max-width: 1050px) {
  .facts > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  .contact-main {
    padding-top: 86px;
  }
}

@media (max-width: 700px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .facts > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
  .facts strong {
    font-size: clamp(1rem, 4.7vw, 1.35rem);
    line-height: 1.05;
  }
  .facts span {
    font-size: .7rem;
    line-height: 1.3;
  }
  .contact-main {
    padding-top: 74px;
    padding-bottom: 82px;
  }
  .contact-intro {
    margin-bottom: 48px;
  }
  .contact-title {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }
  .contact-lead {
    margin-top: 24px;
  }
  .contact-form-wrap {
    padding-top: 32px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .form-field-full,
  .form-actions {
    grid-column: auto;
  }
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-actions .button {
    width: 100%;
  }
  .contact-footer {
    margin-top: 64px;
  }
}

/* --- Refyne v4 refinements --- */

/* Keep the stats visually centered, but align the stats row with the About paragraph. */
.about-copy .facts {
  width: min(100%, 670px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-left: 0;
  margin-right: 0;
}
.about-copy .facts > div {
  min-width: 0;
}
.about-copy .facts > div:first-child {
  justify-self: start;
}

/* Mobile Selected Work: keep a real left gutter for the first project card. */
@media (max-width: 700px) {
  .work-section .project-grid {
    margin-inline: 0;
    padding: 0 0 10px;
  }

  .work-section .project-card,
  .work-section .project-card:last-child {
    min-width: min(86vw, calc(100vw - 32px));
  }

  /* Make the About facts larger and use the full available width on mobile. */
  .about-copy .facts {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
  }

  .about-copy .facts > div,
  .about-copy .facts > div:first-child {
    justify-self: stretch;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .about-copy .facts strong {
    font-size: clamp(1.25rem, 6.1vw, 1.65rem);
    line-height: 1;
  }

  .about-copy .facts span {
    font-size: clamp(.76rem, 3.25vw, .9rem);
    line-height: 1.25;
  }
}


/* --- Refyne v5: About facts spacing --- */

/* Desktop: size each fact by its content, then distribute the visible gaps evenly.
   This keeps the first fact anchored to the paragraph's left edge. */
.about-copy .facts {
  display: flex;
  width: min(100%, 670px);
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  margin-left: 0;
  margin-right: 0;
}

.about-copy .facts > div,
.about-copy .facts > div:first-child {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  justify-self: auto;
  align-items: center;
  text-align: center;
}

/* Mobile: three large, full-width rows stacked vertically. */
@media (max-width: 700px) {
  .about-copy .facts {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 34px;
  }

  .about-copy .facts > div,
  .about-copy .facts > div:first-child {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 0;
  }

  .about-copy .facts strong {
    width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1;
  }

  .about-copy .facts span {
    width: 100%;
    font-size: clamp(.88rem, 3.8vw, 1rem);
    line-height: 1.25;
  }
}

/* =========================================================
   REFYNE DARK THEME + HOMEPAGE REFINEMENTS
   ========================================================= */
:root {
  --bg: #121212;
  --surface: #111111;
  --text: #F0F0F0;
  --muted: #A0A0A0;
  --line: rgba(255, 255, 255, .14);
  --green: #3BDA7F;
  --orange: #d9af5f;
}

html { color-scheme: dark; }
body { background: var(--bg); color: var(--text); }
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.site-header.scrolled { border-color: var(--line); }
.desktop-nav a { color: rgba(255,255,255,.82); }
.desktop-nav a:hover { color: #fff; opacity: 1; }
.menu-toggle span { background: #f5f5f5; }
.mobile-menu {
   background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.eyebrow { color: #3BDA7F; }
.eyebrow-light { color: var(--green); }

.button-dark {
  background: var(--green);
  color: #050505;
}
.button-dark:hover {
  background: #f5f5f5;
  color: #050505;
}
.button-light {
  color: #f5f5f5;
  border-color: rgba(255,255,255,.28);
}
.button-light:hover {
  background: #f5f5f5;
  color: #050505;
}
.button-white { background: #f5f5f5; color: #050505; }
.button-white:hover { background: var(--green); color: #050505; }

.hero-title { color: #f5f5f5; }
.hero-copy { color: var(--muted); }
.text-link { color: #f5f5f5; }
.text-link:hover { color: var(--green); }

.project-preview::after {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.project-meta > span,
.process-step span { color: #3BDA7F; }

.services-section,
.process-section,
.testimonial-section { border-color: var(--line); }
.service-grid { border-color: var(--line); }
.service-card { border-color: var(--line); }
.service-icon {
  background: #151515;
  color: #3BDA7F;
  border: 1px solid rgba(255,255,255,.12);
}
.about-body,
.services-copy,
.process-heading > p,
.process-step p,
.project-meta p,
.project-description { color: var(--muted); }
.photo-placeholder img { border-color: var(--line); }

/* Smaller, editorial portrait instead of a half-section image. */
.about-section {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(48px, 7vw, 100px);
}
.photo-placeholder {
  width: min(100%, 330px);
  justify-self: end;
}
.photo-placeholder img {
  aspect-ratio: .82;
  object-fit: cover;
  border-radius: 16px;
}
.facts strong { color: #f5f5f5; }
.facts span { color: var(--muted); }

/* Keep testimonial markup available for later, but don't render it now. */
.testimonial-section[hidden] { display: none !important; }

/* Contact form also follows the dark palette. */
.form-field label { color: #f5f5f5; }
.form-field label span { color: #777; }
.form-field input,
.form-field select,
.form-field textarea {
  color: #f5f5f5;
  border-bottom-color: rgba(255,255,255,.24);
}
.form-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #aaa 50%),
    linear-gradient(135deg, #aaa 50%, transparent 50%);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--green); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #777; }
.form-note { color: var(--muted); }

/* A more designed CTA: soft green light + large curved orbital graphic. */
.contact-section { padding-top: 20px; }
.contact-card {
  min-height: 440px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: clamp(36px, 5.4vw, 78px);
    background:
    radial-gradient(
      ellipse at 85% 50%,
      rgba(59, 218, 127, 0.14),
      transparent 45%
    ),
    linear-gradient(135deg, #1B2520, #18201C);
  border: 1px solid rgba(59, 218, 127, 0.16);
  isolation: isolate;
}
.contact-card::before {
  display: block;
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: -14%;
  top: -42%;
  width: 76%;
  height: 180%;
  background:
    radial-gradient(ellipse at 52% 48%, rgba(59,218,127,.2), transparent 28%),
    radial-gradient(ellipse at 54% 50%, rgba(255,255,255,.11), transparent 48%);
  filter: blur(28px);
  opacity: .9;
}
.contact-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(78%, 850px);
  aspect-ratio: 1;
  right: -17%;
  top: -60%;
  border-radius: 50%;
  background: conic-gradient(
    from 205deg,
    transparent 0deg,
    transparent 70deg,
    rgba(255,255,255,.05) 100deg,
    rgba(59,218,127,.5) 124deg,
    rgba(255,255,255,.7) 138deg,
    rgba(255,255,255,.12) 151deg,
    transparent 180deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  filter: blur(.35px);
  opacity: .95;
}
.contact-card > * { z-index: 2; }
.contact-card h2 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.5vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.contact-accent { color: var(--green); }
.contact-side {
  max-width: 400px;
  position: relative;
}
.contact-side p { color: rgba(255,255,255,.72); }
.contact-side .button { box-shadow: 0 8px 30px rgba(255,255,255,.08); }

.footer { border-color: var(--line); color: var(--muted); }
.footer a:hover { color: var(--green); }

/* Hero: keep the message readable and its three-line desktop rhythm. */
.hero-title {
  max-width: 1240px;
  font-size: clamp(3.35rem, 6.1vw, 6.4rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.045em;
}

/* Responsive refinements */
@media (max-width: 1050px) {
  .about-section {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 44px;
  }
  .photo-placeholder { width: min(100%, 270px); }
  .contact-card::after { right: -24%; top: -42%; width: 85%; }
}
@media (max-width: 700px) {
  .hero-title {
    font-size: clamp(2.45rem, 10.2vw, 3.6rem);
    line-height: 1.1;
  }
  .hero-title br { display: initial; }
  .about-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .photo-placeholder {
    order: -1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
    .photo-placeholder img {
    width: 100%;
    max-width: none;
  }
  .photo-placeholder img { aspect-ratio: .82; }
  .contact-card {
    min-height: 510px;
    padding: 48px 22px;
    gap: 42px;
    border-radius: 18px;
  }
  .contact-card::before {
    width: 115%;
    height: 90%;
    top: 10%;
    right: -38%;
    filter: blur(22px);
  }
  .contact-card::after {
    width: 105%;
    right: -48%;
    top: -8%;
  }
  .contact-card h2 {
    font-size: clamp(2.65rem, 12.2vw, 4rem);
  }
  .contact-side { max-width: 100%; }
  .contact-side p { max-width: 340px; }
}
.project-preview-fraimic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.project-preview-fraimic:hover img {
  filter: grayscale(0%);
}
.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}


/* Project page */

.project-page {
  padding-top: 160px;
  padding-bottom: 120px;
}

.project-intro {
  margin-bottom: 64px;
}

.project-intro h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 28px;
}

.project-subheading {
  max-width: 650px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.project-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-content {
  max-width: 720px;
  margin: 80px 0;
}

.project-content p {
  font-size: 18px;
  line-height: 1.8;
}

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

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-footer {
  margin-top: 100px;
}

.project-back-link {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.project-back-link:hover {
  opacity: 0.6;
}


/* ==========================
   Project pages
========================== */

.project-page {
  padding-top: 130px;
  padding-bottom: 100px;
}

/* Intro */

.project-intro {
  margin-bottom: 64px;
}

.project-intro h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(3.35rem, 6.1vw, 6.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.065em;
}

.project-subheading {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.6;
}

/* Main project image */

.project-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Description */

.project-overview {
  padding-top: 90px;
  padding-bottom: 90px;
}

.project-description-text {
  max-width: 760px;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Project details */

.project-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.project-details > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-details span {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-details strong {
  font-size: .95rem;
  font-weight: 500;
}

/* Gallery */

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

.project-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* CTA */

.project-cta {
  padding-top: 120px;
}

/* Tablet */

@media (max-width: 1050px) {
  .project-page {
    padding-top: 110px;
  }

  .project-overview {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .project-page {
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .project-intro {
    margin-bottom: 36px;
  }

  .project-intro h1 {
    font-size: clamp(2.65rem, 12.5vw, 3.9rem);
  }

  .project-subheading {
    margin-top: 22px;
    font-size: 1rem;
  }

  .project-overview {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .project-description-text {
    font-size: 1rem;
  }

  .project-details {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .project-details > div {
    gap: 8px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-cta {
    padding-top: 60px;
  }
}
.green {
  color: #3BDA7F !important;
}
.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-back-link:hover {
  color: #3BDA7F;
}
