:root {
  --paper: #f9f7f2;
  --ivory: #f1ede5;
  --stone: #e4ddd2;
  --ink: #29231e;
  --espresso: #2d241e;
  --bronze: #967851;
  --bronze-light: #d1bb96;
  --line: #d2c9bd;
  --muted: #6e655b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.preview-note {
  min-height: 34px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  background: var(--espresso);
  font-size: 0.7rem;
}

.site-header {
  position: relative;
  z-index: 5;
  min-height: 92px;
  border-bottom: 1px solid rgba(41, 35, 30, 0.08);
  background: var(--paper);
}

.brand img,
.footer-brand img {
  height: auto;
}

.site-header nav a {
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  color: #494239;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--bronze);
}

.site-header nav a.is-active {
  border-bottom-color: var(--bronze);
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.67rem;
  letter-spacing: 0.2em;
}

.section-wrap {
  padding-top: clamp(4.75rem, 8.5vw, 8rem);
  padding-bottom: clamp(4.75rem, 8.5vw, 8rem);
}

.text-link {
  min-height: 2.7rem;
  border-bottom-color: rgba(150, 120, 81, 0.55);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.text-link.light-link {
  border-bottom-color: rgba(241, 237, 229, 0.65);
}

.page-hero {
  background: var(--ivory);
}

.page-hero h1,
.article-hero h1 {
  max-width: 1000px;
  line-height: 0.99;
}

.page-lead {
  max-width: 690px;
  color: #5e564d;
  font-size: 1.08rem;
  line-height: 1.8;
}

.review-note {
  border-top-color: rgba(150, 120, 81, 0.5);
  border-bottom-color: rgba(150, 120, 81, 0.32);
  background: rgba(241, 237, 229, 0.66);
}

.service-row {
  border-top-color: var(--line);
}

.service-row:last-of-type {
  border-bottom-color: var(--line);
}

.service-main > p:not(.service-kicker) {
  max-width: 680px;
  color: var(--muted);
}

.service-main ul li::marker,
.prep-list li::marker {
  color: var(--bronze);
}

.process-steps > li {
  border-top-color: var(--line);
}

.project-card__image,
.studio-profile-image img,
.studio-home-photo img,
.studio-portfolio-image img,
.image-gallery img {
  background: var(--stone);
}

.project-card__image img,
.featured-project > img,
.studio-portfolio-image img {
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card__link:hover .project-card__image img,
.studio-portfolio-image:hover img {
  transform: scale(1.018);
}

.contact-first-step {
  background: var(--ivory);
}

.contact-button {
  border-color: var(--bronze);
  background: var(--espresso);
  color: var(--paper);
  transition: background-color 180ms ease, color 180ms ease;
}

.contact-button:hover {
  background: var(--bronze);
}

.site-footer {
  background: var(--espresso);
}

.site-footer a:focus-visible,
.hero-slider button:focus-visible,
.hero-slider a:focus-visible {
  outline: 2px solid var(--bronze-light);
  outline-offset: 4px;
}

.hero-slider {
  position: relative;
  isolation: isolate;
  height: clamp(620px, 78vh, 840px);
  min-height: 620px;
  overflow: hidden;
  background: var(--espresso);
  color: #fff;
  touch-action: pan-y;
}

.hero-slider__slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 850ms ease, visibility 850ms ease;
}

.hero-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__image,
.hero-slide__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide__image {
  object-fit: cover;
}

.hero-slide__shade {
  background:
    linear-gradient(90deg, rgba(31, 25, 21, 0.78) 0%, rgba(31, 25, 21, 0.58) 34%, rgba(31, 25, 21, 0.14) 78%),
    linear-gradient(0deg, rgba(25, 21, 18, 0.5), transparent 34%);
}

.hero-slider .hero-content {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: 17%;
  left: clamp(2rem, 9vw, 9rem);
  width: min(660px, 68%);
  transform: none;
}

.hero-project-label {
  display: block;
  margin: 0 0 1.2rem;
  color: var(--bronze-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-slider h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(4.3rem, 8.4vw, 8.5rem);
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.hero-slider h1 em {
  color: #f0e9df;
}

.hero-slider .hero-copy {
  max-width: 490px;
  margin: 1.4rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-slider .hero-caption {
  z-index: 2;
  right: 19rem;
  bottom: 1.9rem;
  left: clamp(2rem, 5vw, 5rem);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.hero-slider__controls {
  display: none;
}

.hero-slider.is-enhanced .hero-slider__controls {
  position: absolute;
  z-index: 4;
  right: clamp(1.25rem, 5vw, 5rem);
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-slider__control {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.63);
  border-radius: 50%;
  background: rgba(45, 36, 30, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.hero-slider__control:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-slider__control svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.hero-slider__pagination {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.25rem;
}

.hero-slider__dot {
  position: relative;
  width: 30px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-slider__dot::after {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  content: "";
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-slider__dot.is-active::after {
  border-color: var(--bronze-light);
  background: var(--bronze-light);
  transform: scale(1.15);
}

.hero-slider__play-icon {
  display: none;
}

.hero-slider__toggle[aria-pressed="true"] .hero-slider__pause-icon {
  display: none;
}

.hero-slider__toggle[aria-pressed="true"] .hero-slider__play-icon {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .hero-slider {
    height: clamp(620px, 78vh, 780px);
  }

  .hero-slider .hero-content {
    left: 7vw;
    width: 75%;
  }

  .hero-slider h1 {
    font-size: clamp(4.2rem, 10vw, 7rem);
  }

  .hero-slider .hero-caption {
    left: 7vw;
  }
}

@media (max-width: 680px) {
  .preview-note {
    padding: 0.45rem 7%;
    line-height: 1.5;
  }

  .site-header {
    min-height: 0;
    padding: 1rem 7% 0.8rem;
    gap: 0.65rem;
  }

  .brand img {
    width: 145px;
  }

  .site-header nav {
    gap: 0.15rem 1.05rem;
  }

  .site-header nav a {
    min-height: 1.9rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .section-wrap {
    padding: 4.5rem 7%;
  }

  .hero-slider {
    height: min(84svh, 760px);
    min-height: 640px;
  }

  .hero-slide__shade {
    background:
      linear-gradient(90deg, rgba(31, 25, 21, 0.56), rgba(31, 25, 21, 0.18)),
      linear-gradient(0deg, rgba(25, 21, 18, 0.78) 0%, rgba(25, 21, 18, 0.28) 54%, transparent 100%);
  }

  .hero-slider .hero-content {
    bottom: 16%;
    left: 7%;
    width: 86%;
  }

  .hero-slider .eyebrow {
    margin-bottom: 0.65rem;
  }

  .hero-project-label {
    margin-bottom: 0.8rem;
    font-size: 0.61rem;
    letter-spacing: 0.17em;
  }

  .hero-slider h1 {
    font-size: clamp(3.15rem, 11.3vw, 4.8rem);
    line-height: 0.95;
  }

  .hero-slider .hero-copy {
    max-width: 350px;
    margin: 1rem 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .hero-slider .hero-caption {
    right: 7%;
    bottom: 4.5rem;
    left: 7%;
    gap: 0.5rem;
    font-size: 0.53rem;
    letter-spacing: 0.09em;
  }

  .hero-slider .hero-caption span:last-child {
    text-align: right;
  }

  .hero-slider.is-enhanced .hero-slider__controls {
    right: 6%;
    bottom: 0.65rem;
    left: 6%;
    justify-content: space-between;
    gap: 0.25rem;
  }

  .hero-slider__control {
    width: 39px;
    height: 39px;
  }

  .hero-slider__pagination {
    flex: 1;
    justify-content: center;
  }

  .hero-slide[data-hero-slide="0"] .hero-slide__image {
    object-position: 50% 49% !important;
  }

  .project-grid {
    gap: 3rem;
  }

  .review-note {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Editorial serif and clean sans with extended Latin glyph coverage. */
:root {
  --serif: "Lora", "Iowan Old Style", "Baskerville Old Face", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Avenir Next", Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sans);
}

h1,
h2,
h3,
.service-teaser-list strong,
.process-mini strong,
.project-card h2,
.project-summary-lead > p {
  font-family: var(--serif);
  letter-spacing: -0.025em;
}

.contact-value {
  font-family: var(--sans);
  letter-spacing: 0.01em;
}

.contact-value[href^="tel:"] {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  font-weight: 400;
}

.hero-slider h1 {
  font-weight: 500;
  letter-spacing: -0.045em;
}

.site-header nav a,
.eyebrow,
.hero-project-label,
.hero-caption,
.text-link,
.project-card__meta,
.service-price,
.image-gallery figcaption,
.review-mark {
  font-family: var(--sans);
}

.home-intro h2,
.services-home h2,
.process-home h2,
.studio-home h2,
.studio-values h2,
.service-terms h2,
.getting-started h2,
.project-next h2,
.page-hero h1,
.article-hero h1 {
  letter-spacing: -0.035em;
}

.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(290px, 29vw) minmax(240px, 21vw);
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
  align-items: stretch;
}

.featured-project {
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
}

.featured-project--large {
  grid-column: 1 / span 8;
  grid-row: 1;
}

.featured-project--tall {
  grid-column: 9 / span 4;
  grid-row: 1 / span 2;
}

.featured-project--detail {
  grid-column: span 4;
  grid-row: 2;
}

.featured-project--large > img {
  object-position: center 48%;
}

.featured-project--tall > img {
  object-position: center 54%;
}

.featured-project--detail > img {
  object-position: center;
}

.featured-project__shade {
  background: linear-gradient(0deg, rgba(26, 21, 18, 0.76), rgba(26, 21, 18, 0.04) 74%);
}

.featured-project h3 {
  max-width: 95%;
  font-size: clamp(2.2rem, 4.7vw, 5.2rem);
  line-height: 0.98;
}

.featured-project--tall h3,
.featured-project--detail h3 {
  font-size: clamp(2rem, 3.3vw, 3.8rem);
}

.project-card__image,
.project-card__no-image {
  height: auto;
  min-height: 0;
  aspect-ratio: 5 / 4;
}

.project-card:nth-child(even) {
  margin-top: clamp(2.5rem, 6vw, 5.5rem);
}

.project-card:nth-child(even) .project-card__image,
.project-card:nth-child(even) .project-card__no-image {
  aspect-ratio: 4 / 3;
}

.project-card__image img {
  object-position: center;
}

.image-gallery {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.1vw, 2rem);
}

.image-gallery figure {
  grid-column: span 5;
  margin: 0;
}

.image-gallery figure:first-child {
  grid-column: span 7;
}

.image-gallery figure:nth-child(2) {
  margin-top: clamp(2rem, 6vw, 5rem);
}

.image-gallery figure:nth-child(3) {
  grid-column: span 5;
  margin-top: 0;
}

.image-gallery figure:nth-child(3):last-child {
  grid-column: 4 / span 6;
}

.image-gallery figure:nth-child(4) {
  grid-column: span 7;
  margin-top: clamp(1.5rem, 4vw, 3.5rem);
}

.image-gallery figure:nth-child(5) {
  grid-column: span 5;
}

.image-gallery img,
.image-gallery figure:first-child img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.image-gallery figcaption {
  margin-top: 0.75rem;
  font-size: 0.74rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1050px) {
  .featured-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .featured-project--large {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .featured-project--tall,
  .featured-project--detail {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .featured-project--tall h3,
  .featured-project--detail h3 {
    font-size: clamp(2rem, 4vw, 3.6rem);
  }

  .image-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .image-gallery figure:first-child {
    grid-column: 1 / -1;
  }

  .image-gallery figure:nth-child(2),
  .image-gallery figure:nth-child(3),
  .image-gallery figure:nth-child(4),
  .image-gallery figure:nth-child(5) {
    grid-column: span 3;
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .featured-project-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .featured-project,
  .featured-project--large,
  .featured-project--tall,
  .featured-project--detail {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .featured-project h3,
  .featured-project--tall h3,
  .featured-project--detail h3 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-card__image,
  .project-card__no-image,
  .project-card:nth-child(even) .project-card__image,
  .project-card:nth-child(even) .project-card__no-image {
    aspect-ratio: 4 / 3;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .image-gallery figure,
  .image-gallery figure:first-child,
  .image-gallery figure:nth-child(2),
  .image-gallery figure:nth-child(3),
  .image-gallery figure:nth-child(3):last-child,
  .image-gallery figure:nth-child(4),
  .image-gallery figure:nth-child(5) {
    grid-column: 1;
    margin-top: 0;
  }

  .project-card h2 {
    font-size: 2.45rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    padding: 0.7rem 7%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header .brand img {
    width: 132px;
  }

  .site-header .menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    grid-column: 2;
    grid-row: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--espresso);
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
  }

  .menu-toggle__icon {
    width: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .menu-toggle__icon span {
    width: 18px;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.is-menu-open .menu-toggle__icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle__icon span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle__icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header #primary-navigation {
    width: 100%;
    margin-top: 0.65rem;
    padding-top: 0.35rem;
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-header.has-menu-toggle #primary-navigation {
    display: none;
  }

  .site-header.has-menu-toggle.is-menu-open #primary-navigation {
    display: flex;
  }

  .site-header #primary-navigation a {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero-slider {
    height: min(82svh, 700px);
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__icon span {
    transition: none;
  }
}
