/* Stillform Interior Studio — mobile-first fiction demo */
:root {
  --sf-ivory: #f4f0e8;
  --sf-paper: #faf7f1;
  --sf-panel: #ffffff;
  --sf-ink: #1c1814;
  --sf-walnut: #5c4033;
  --sf-stone: #8a8578;
  --sf-mute: #4a443c;
  --sf-terracotta: #b85c38;
  --sf-sage: #7a8b72;
  --sf-linen: #e7dfd2;
  --sf-rule: #d5cbc0;
  --sf-focus: #b85c38;
  --sf-max: 76rem;
  --sf-serif: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sf-sans: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--sf-ivory);
  color: var(--sf-ink);
  font: 1.0625rem/1.7 var(--sf-sans);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sf-walnut); }

a:focus-visible, button:focus-visible, summary:focus-visible, .sf-cta:focus-visible, input:focus-visible {
  outline: 3px solid var(--sf-focus);
  outline-offset: 3px;
}

.sf-skip {
  position: absolute; left: 1rem; top: 1rem;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.sf-skip:focus {
  width: auto; height: auto; clip: auto; z-index: 100;
  background: #fff; padding: 0.75rem 1rem; min-height: 44px;
  display: inline-flex; align-items: center;
}

.sf-utility {
  background: var(--sf-walnut);
  color: var(--sf-linen);
  font-size: 0.6875rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; padding: 0.55rem 1rem;
  margin: 0;
}

.sf-masthead {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.85rem;
  background: var(--sf-paper);
  border-bottom: 1px solid var(--sf-rule);
  max-width: var(--sf-max);
  margin: 0 auto;
}

.sf-brand {
  font-family: var(--sf-serif);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--sf-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sf-brand span {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--sf-stone);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.sf-nav-wrap { width: 100%; }

.sf-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sf-rule);
  background: var(--sf-panel);
  font-weight: 600;
  color: var(--sf-ink);
}
.sf-nav-mobile summary::-webkit-details-marker { display: none; }
.sf-nav-mobile[open] summary { border-bottom-color: transparent; }

.sf-nav-mobile__bars {
  width: 1.25rem; height: 2px; background: var(--sf-ink);
  box-shadow: 0 6px 0 var(--sf-ink), 0 -6px 0 var(--sf-ink);
}

.sf-nav-mobile__close { display: none; }
.sf-nav-mobile[open] .sf-nav-mobile__open { display: none; }
.sf-nav-mobile[open] .sf-nav-mobile__close { display: inline; }

.sf-drawer {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem 1rem;
  border: 1px solid var(--sf-rule);
  border-top: none;
  background: var(--sf-panel);
}
.sf-drawer a {
  text-decoration: none;
  padding: 0.65rem 0.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 550;
  border-bottom: 1px solid var(--sf-rule);
}
.sf-drawer a:last-child { border-bottom: none; }

.sf-desktop-nav { display: none; }

.sf-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sf-terracotta);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.32em;
}

.sf-page {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.sf-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sf-terracotta);
  margin: 0 0 0.5rem;
}

.sf-lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--sf-mute);
  max-width: 38rem;
}

h1, h2, h3 {
  font-family: var(--sf-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sf-ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.15rem); }
h3 { font-size: 1.2rem; }

.sf-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  background: var(--sf-terracotta);
  color: var(--sf-paper);
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--sf-terracotta);
}
.sf-cta--ghost {
  background: transparent;
  color: var(--sf-walnut);
  border-color: var(--sf-walnut);
}

.sf-hero-home {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sf-rule);
}

.sf-hero-home__visual {
  position: relative;
  border-left: 6px solid var(--sf-terracotta);
  padding-left: 1rem;
}

.sf-hero-home__figure {
  margin: 0;
  background: var(--sf-panel);
  box-shadow: 0 24px 48px rgba(28, 24, 20, 0.08);
  overflow: hidden;
}
.sf-hero-home__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.sf-hero-home__figure--photo img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 46%;
}

.sf-hero-home__aside {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--sf-walnut);
  color: var(--sf-linen);
  font-size: 0.98rem;
  max-width: 22rem;
}

.sf-material-rule {
  margin: 1.5rem 0 0;
  opacity: 0.95;
}

.sf-band {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sf-rule);
}

.sf-band--inset {
  padding: 1.5rem 1.25rem;
  background: var(--sf-paper);
  border: 1px solid var(--sf-rule);
  border-top: 4px solid var(--sf-sage);
}

.sf-path-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.sf-path-card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--sf-panel);
  border: 1px solid var(--sf-rule);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  display: block;
  transition: border-color 0.15s ease;
}
.sf-path-card:hover { border-color: var(--sf-terracotta); }
.sf-path-card h3 { margin-bottom: 0.35rem; color: var(--sf-walnut); }
.sf-path-card p { margin: 0; color: var(--sf-mute); font-size: 0.98rem; }

.sf-room-strip {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.sf-room-card {
  margin: 0;
  background: var(--sf-panel);
  border: 1px solid var(--sf-rule);
}
.sf-room-card img { width: 100%; }
.sf-room-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--sf-mute);
  border-top: 1px solid var(--sf-rule);
}

.sf-notice {
  font-size: 0.92rem;
  color: var(--sf-stone);
  border-left: 3px solid var(--sf-sage);
  padding-left: 0.85rem;
  margin: 1rem 0 0;
}

.sf-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.sf-swatch {
  padding: 0.85rem;
  border: 1px solid var(--sf-rule);
  background: var(--sf-panel);
  min-height: 44px;
}
.sf-swatch strong { display: block; font-family: var(--sf-serif); color: var(--sf-walnut); }
.sf-swatch span { font-size: 0.9rem; color: var(--sf-mute); }

.sf-steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.sf-steps li {
  padding: 1rem 1rem 1rem 3.25rem;
  position: relative;
  background: var(--sf-paper);
  border: 1px solid var(--sf-rule);
}
.sf-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: var(--sf-serif);
  font-weight: 700;
  color: var(--sf-terracotta);
}

.sf-faq details {
  border: 1px solid var(--sf-rule);
  background: var(--sf-panel);
  margin-top: 0.65rem;
}
.sf-faq summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  min-height: 44px;
  font-weight: 600;
  list-style: none;
}
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq details[open] summary { border-bottom: 1px solid var(--sf-rule); }
.sf-faq details p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--sf-mute);
}

.sf-page-title-bar {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sf-rule);
}

.sf-photo-ref {
  margin: 1.25rem 0 0;
  border: 1px solid var(--sf-rule);
  background: var(--sf-panel);
  overflow: hidden;
}
.sf-photo-ref img {
  display: block;
  width: 100%;
  height: auto;
}
.sf-photo-ref--living-crop img {
  aspect-ratio: 16 / 10;
  max-height: min(72vh, 520px);
  object-fit: cover;
  object-position: 72% 38%;
}
.sf-photo-ref figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--sf-stone);
  border-top: 1px solid var(--sf-rule);
}

.sf-demo-form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px dashed var(--sf-stone);
  background: var(--sf-paper);
  opacity: 0.92;
}
.sf-demo-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.sf-demo-form input,
.sf-demo-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--sf-rule);
  background: #eee8e0;
  color: var(--sf-stone);
  font: inherit;
}
.sf-demo-form textarea { min-height: 120px; resize: vertical; }
.sf-demo-form button {
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--sf-stone);
  background: var(--sf-stone);
  color: var(--sf-paper);
  font-weight: 650;
  cursor: not-allowed;
  opacity: 0.75;
}

.sf-form-note {
  font-size: 0.92rem;
  color: var(--sf-mute);
  max-width: 36rem;
}

.sf-contact-fields {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.sf-contact-fields li {
  padding: 0.75rem 1rem;
  background: var(--sf-panel);
  border: 1px solid var(--sf-rule);
}

.sf-footer {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--sf-rule);
  background: var(--sf-walnut);
  color: var(--sf-linen);
}
.sf-footer a { color: var(--sf-linen); }

.sf-disclosure {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 42rem;
  color: #e8dfd4;
  margin: 0 0 1.25rem;
}

.sf-footer-nav__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #c9bfb3;
}

.sf-footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.sf-footer-nav__list a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sf-colophon {
  margin: 0;
  font-size: 0.85rem;
  color: #c9bfb3;
}

.sf-two-col {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .sf-masthead {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 1.25rem 2rem 1rem;
  }

  .sf-nav-mobile { display: none; }

  .sf-desktop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    justify-content: flex-end;
    align-items: center;
  }
  .sf-desktop-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.5rem 0.15rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .sf-page { padding: 2rem 2rem 4rem; }

  .sf-hero-home {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .sf-hero-home__visual { padding-left: 1.5rem; }

  .sf-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sf-room-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-swatches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sf-two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .sf-room-strip--gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sf-room-strip--gallery figure:nth-child(1) {
    grid-row: span 2;
  }
}
