:root {
  --white: #fffefa;
  --paper: #f6f1e9;
  --beige: #ded1bf;
  --oak: #b69875;
  --stone: #d9d6ce;
  --grey: #8a8982;
  --charcoal: #20201d;
  --ink: #383631;
  --line: rgba(32, 32, 29, 0.14);
  --shadow: 0 24px 80px rgba(32, 32, 29, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Aptos", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 14px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px clamp(20px, 4vw, 64px);
  color: var(--white);
  transition: background 500ms var(--ease), color 500ms var(--ease), box-shadow 500ms var(--ease), padding 500ms var(--ease);
}

.site-header.is-scrolled {
  padding-block: 14px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--charcoal);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.site-header .brand {
  color: var(--white);
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-header.is-scrolled .brand {
  color: var(--white);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: clamp(38px, 4vw, 52px);
  height: clamp(38px, 4vw, 52px);
  object-fit: contain;
  filter: invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.24));
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.83rem;
}

.nav-links a {
  opacity: 0.84;
  transition: opacity 220ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 260ms var(--ease), background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
}

.nav-cta {
  min-height: 42px;
  padding-inline: 18px;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.button-secondary {
  background: rgba(255, 254, 250, 0.12);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px clamp(22px, 6vw, 96px) 92px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 58% center;
  transform: translateY(var(--parallax, 0));
  will-change: transform;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 22, 19, 0.68), rgba(23, 22, 19, 0.34) 39%, rgba(23, 22, 19, 0.04) 72%),
    linear-gradient(0deg, rgba(23, 22, 19, 0.34), rgba(23, 22, 19, 0) 48%);
}

.hero-content {
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 18px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.66;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(3.35rem, 7vw, 6.9rem);
}

.hero-copy {
  max-width: 520px;
  color: rgba(255, 254, 250, 0.82);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 24px;
  height: 46px;
  border: 1px solid rgba(255, 254, 250, 0.66);
  transform: translateX(-50%);
}

.scroll-indicator span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: var(--white);
  transform: translateX(-50%);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.hero-strip {
  padding: clamp(40px, 5vw, 70px) clamp(22px, 6vw, 96px);
  background: #f3eeee;
}

.hero-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: 26px clamp(22px, 4vw, 78px);
  border-top: 1px solid rgba(32, 32, 29, 0.12);
  border-bottom: 1px solid rgba(32, 32, 29, 0.12);
}

.hero-strip p {
  margin: 0;
  color: rgba(32, 32, 29, 0.82);
  font-size: clamp(0.98rem, 1.1vw, 1.18rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-strip p span {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px 3px;
  border-radius: 50%;
  background: currentColor;
}

.hero-strip-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: clamp(24px, 3vw, 54px);
}

.hero-strip-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
  font-size: clamp(0.98rem, 1.1vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.hero-strip-links span {
  font-size: 0.95rem;
  line-height: 1;
}

.section {
  position: relative;
  padding: clamp(78px, 10vw, 150px) clamp(22px, 6vw, 96px);
}

.flow-section {
  opacity: 0.72;
  transform: translateY(42px);
  filter: blur(2px);
  transition:
    opacity 1100ms var(--ease),
    transform 1100ms var(--ease),
    filter 1100ms var(--ease);
  will-change: opacity, transform, filter;
}

.flow-section.is-flow-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.flow-section.is-flow-current {
  transition-duration: 900ms;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 68px);
}

.section-heading > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(56, 54, 49, 0.72);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.section-heading h2,
.final-cta h2 {
  color: var(--charcoal);
  font-size: clamp(2.02rem, 4.3vw, 4.68rem);
}

.section-heading .eyebrow,
.proof .eyebrow,
.faq .eyebrow,
.final-cta .eyebrow {
  color: var(--oak);
}

.feature-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.feature-card,
.testimonial-card {
  min-height: 280px;
  background: var(--white);
  padding: clamp(28px, 4vw, 54px);
}

.feature-line {
  display: none;
  width: 44px;
  height: 1px;
  margin-bottom: 42px;
  background: var(--oak);
}

h3 {
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 1.65vw, 1.78rem);
  font-weight: 400;
  line-height: 1.08;
}

.feature-card p,
.testimonial-card p,
details p {
  color: rgba(56, 54, 49, 0.74);
  font-size: 1rem;
  line-height: 1.7;
}

.about-studio {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: var(--paper);
}

.about-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--stone);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.96);
}

.about-copy {
  max-width: 720px;
}

.about-copy h2 {
  margin-bottom: 28px;
  color: var(--charcoal);
  font-size: clamp(1.98rem, 3.95vw, 4.32rem);
}

.about-copy p:not(.eyebrow) {
  color: rgba(56, 54, 49, 0.76);
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  line-height: 1.8;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.about-facts span {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--charcoal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, 18vw);
  gap: 18px;
}

.editorial-gallery {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(112px, 9vw);
  gap: clamp(12px, 1.4vw, 20px);
}

.square-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: clamp(12px, 1.4vw, 20px);
}

.project-tile {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: var(--stone);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.editorial-gallery .project-tile {
  min-height: 0;
}

.square-gallery .project-tile {
  aspect-ratio: 1 / 1;
  clip-path: inset(14% 0 14% 0);
  min-height: 0;
  opacity: 1;
  transform: none;
  transition: clip-path 1200ms var(--ease), opacity 900ms var(--ease), transform 1200ms var(--ease);
  will-change: clip-path;
}

.square-gallery .project-tile.is-visible {
  clip-path: inset(0 0 0 0);
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96);
  transform: scale(1.05);
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.square-gallery .project-tile img {
  transform: translate3d(0, var(--gallery-y, 0px), 0) scale(1.1);
  transition: transform 1200ms var(--ease), filter 900ms var(--ease);
  will-change: transform;
}

.project-tile:nth-child(1) img { object-position: 50% 52%; }
.project-tile:nth-child(2) img { object-position: 50% 46%; }
.project-tile:nth-child(3) img { object-position: 50% 50%; }
.project-tile:nth-child(4) img { object-position: 54% 48%; }
.project-tile:nth-child(5) img { object-position: 52% 50%; }
.project-tile:nth-child(6) img { object-position: 50% 48%; }
.project-tile:nth-child(7) img { object-position: 52% 48%; }
.project-tile:nth-child(8) img { object-position: 50% 50%; }
.project-tile:nth-child(9) img { object-position: 50% 52%; }
.project-tile:nth-child(10) img { object-position: 50% 50%; }
.project-tile:nth-child(11) img { object-position: 50% 52%; }
.project-tile:nth-child(12) img { object-position: 50% 50%; }

.square-gallery .project-tile:nth-child(1) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(2) img { object-position: 50% 54%; }
.square-gallery .project-tile:nth-child(3) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(4) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(5) img { object-position: 50% 64%; }
.square-gallery .project-tile:nth-child(6) img { object-position: 50% 52%; }
.square-gallery .project-tile:nth-child(7) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(8) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(9) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(10) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(11) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(12) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(13) img { object-position: 58% 52%; }
.square-gallery .project-tile:nth-child(14) img { object-position: 50% 52%; }
.square-gallery .project-tile:nth-child(15) img { object-position: 48% 52%; }
.square-gallery .project-tile:nth-child(16) img { object-position: 45% 58%; }
.square-gallery .project-tile:nth-child(17) img { object-position: 50% 50%; }
.square-gallery .project-tile:nth-child(18) img { object-position: 43% 56%; }

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 20, 17, 0.68), rgba(20, 20, 17, 0.02) 58%);
  opacity: 0.9;
}

.image-only-gallery .project-tile::after {
  opacity: 0;
}

.project-tile span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2vw, 2rem);
  line-height: 1.05;
}

.project-tile small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.project-tile:hover img {
  filter: saturate(0.98) contrast(1);
  transform: scale(1.01);
}

.square-gallery .project-tile:hover img {
  filter: saturate(0.98) contrast(1);
  transform: translate3d(0, var(--gallery-y, 0px), 0) scale(1.06);
}

.image-only-gallery .project-tile span {
  display: none;
}

.image-only-gallery .project-tile {
  cursor: zoom-in;
}

.image-only-gallery .project-tile:focus-visible {
  outline: 1px solid var(--charcoal);
  outline-offset: 5px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 64px);
  background: rgba(246, 241, 233, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms var(--ease);
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.is-lightbox-open {
  overflow: hidden;
}

.lightbox-stage {
  position: relative;
  width: min(92vw, 1440px);
  height: min(82vh, 860px);
  display: grid;
  place-items: center;
}

.lightbox-image-shell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 950ms var(--ease);
}

.gallery-lightbox.is-ready .lightbox-image-shell {
  clip-path: inset(0 0 0 0);
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.92) contrast(0.98);
  transform: translateY(24px) scale(1.015);
  opacity: 0;
  transition: opacity 720ms var(--ease), transform 950ms var(--ease);
}

.gallery-lightbox.is-ready .lightbox-image {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(32, 32, 29, 0.18);
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.68);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: background 350ms var(--ease), transform 350ms var(--ease);
}

.lightbox-close {
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
}

.lightbox-prev {
  left: clamp(18px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: clamp(18px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--white);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-close:hover {
  transform: scale(1.04);
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 3vw, 34px);
  transform: translateX(-50%);
  color: rgba(32, 32, 29, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-tall {
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.editorial-gallery .tile-hero {
  grid-column: span 4;
  grid-row: span 4;
}

.editorial-gallery .tile-detail {
  grid-column: span 2;
  grid-row: span 2;
}

.editorial-gallery .tile-wide {
  grid-column: span 3;
  grid-row: span 3;
}

.services {
  background: linear-gradient(180deg, var(--paper), #eee6db);
}

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

.service-card {
  display: flex;
  align-items: flex-end;
  min-height: 230px;
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.56);
  transition: transform 320ms var(--ease), background 320ms var(--ease), box-shadow 320ms var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.process {
  background: var(--charcoal);
  color: var(--white);
}

.process .section-heading h2,
.process h3 {
  color: var(--white);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 1px;
  background: rgba(255, 254, 250, 0.18);
  transform-origin: left;
  animation: drawLine 1.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 30% cover 45%;
}

.timeline li {
  position: relative;
  min-height: 170px;
  padding: 66px 20px 0 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 254, 250, 0.72);
  background: var(--charcoal);
  border-radius: 50%;
}

.timeline span {
  display: block;
  margin-bottom: 14px;
  color: var(--oak);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.timeline strong {
  display: block;
  max-width: 160px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.1;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.proof-item {
  min-height: 240px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  margin-bottom: 68px;
  color: var(--oak);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

.proof-item span {
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 700;
}

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

.testimonial-card {
  position: relative;
  min-height: 340px;
}

.quote-mark {
  display: block;
  height: 62px;
  color: var(--oak);
  font-family: var(--serif);
  font-size: 5.6rem;
  line-height: 0.8;
  opacity: 0.5;
}

.testimonial-card small {
  color: var(--charcoal);
  font-weight: 700;
}

.faq-list {
  max-width: 980px;
  margin-left: auto;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  cursor: pointer;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.6vw, 1.45rem);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--oak);
  font-family: var(--sans);
  font-size: 1.4rem;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 720px;
  margin-bottom: 28px;
}

.final-cta {
  min-height: 78svh;
  padding: clamp(78px, 11vw, 150px) clamp(22px, 6vw, 96px);
  background:
    linear-gradient(rgba(246, 241, 233, 0.84), rgba(246, 241, 233, 0.84)),
    url("../assets/farmhouse-02.png") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(44px, 8vw, 118px);
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
}

.contact-copy {
  max-width: 720px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(56, 54, 49, 0.72);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 5vw, 72px);
  border-top: 1px solid rgba(32, 32, 29, 0.16);
  padding-top: 24px;
}

.contact-details a,
.contact-details p {
  margin: 0;
  color: var(--charcoal);
  line-height: 1.45;
}

.contact-details span,
.contact-form label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(32, 32, 29, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(32, 32, 29, 0.16);
  background: rgba(255, 254, 250, 0.72);
  backdrop-filter: blur(18px);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form label {
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(32, 32, 29, 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  line-height: 1.45;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 260ms var(--ease);
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--charcoal);
}

.contact-form ::placeholder {
  color: rgba(56, 54, 49, 0.38);
}

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

.contact-form .button {
  width: 100%;
  margin-top: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px clamp(22px, 6vw, 96px);
  background: var(--charcoal);
  color: rgba(255, 254, 250, 0.82);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 26px;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: invert(1);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

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

@keyframes scrollPulse {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

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

  .flow-section {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .square-gallery .project-tile {
    clip-path: inset(0 0 0 0);
  }

  .square-gallery .project-tile img {
    transform: scale(1.02);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    justify-self: end;
  }

  .feature-grid,
  .testimonial-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-studio {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 420px;
  }

  .masonry-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(240px, 34vw);
  }

  .editorial-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, 32vw);
  }

  .editorial-gallery .tile-hero,
  .editorial-gallery .tile-wide,
  .editorial-gallery .tile-detail {
    grid-column: span 1;
    grid-row: span 1;
  }

  .editorial-gallery .tile-hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .square-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

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

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

  .timeline::before {
    left: 7px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform-origin: top;
    animation-name: drawVertical;
  }

  .timeline li {
    min-height: 118px;
    padding: 10px 0 34px 42px;
  }

  .timeline li::before {
    top: 14px;
    left: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    max-width: 760px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@keyframes drawVertical {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
    gap: 12px;
  }

  .nav-cta {
    min-height: 38px;
    max-width: 188px;
    padding-inline: 12px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .hero {
    align-items: end;
    padding: 112px 20px 78px;
  }

  .hero-image {
    object-position: 68% center;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 50px;
  }

  .hero-strip {
    padding: 24px 20px;
  }

  .hero-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }

  .hero-strip p {
    white-space: normal;
  }

  .hero-strip-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }

  .hero-strip-links a {
    font-size: clamp(0.98rem, 1.1vw, 1.18rem);
  }

  .section {
    padding-inline: 20px;
  }

  .feature-grid,
  .testimonial-grid,
  .service-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .testimonial-card,
  .service-card,
  .proof-item {
    min-height: auto;
  }

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

  .about-image {
    min-height: 360px;
  }

  .masonry-gallery {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-snap-type: x mandatory;
  }

  .project-tile,
  .tile-large,
  .tile-tall,
  .tile-wide,
  .editorial-gallery .tile-hero,
  .editorial-gallery .tile-detail,
  .editorial-gallery .tile-wide {
    flex: 0 0 min(82vw, 360px);
    height: 460px;
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
  }

  .square-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    scroll-snap-type: none;
  }

  .square-gallery .project-tile {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex: initial;
    scroll-snap-align: none;
  }

  .gallery-lightbox {
    padding: 70px 18px 86px;
  }

  .lightbox-stage {
    width: 100%;
    height: 72vh;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: scale(1.04);
  }

  summary {
    min-height: 76px;
  }
}
