/* Duffy Scott Interiors — site styles */

:root {
  --linen: #f4f0e8;
  --cream: #faf7f1;
  --sand: #e8dfd0;
  --taupe: #c8b69c;
  --line: #ddd3c3;
  --ink: #2e2a26;
  --muted: #6f665c;
  --clay: #8a5a3f;
  --espresso: #2a201b;
  --espresso-2: #3a2e27;
  --on-dark: #ebe3d6;
  --on-dark-muted: #b7aa98;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
:focus-visible { outline: 1px solid var(--clay); outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.display { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: .01em; }
.lede { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; font-weight: 400; }
.rule { width: 48px; height: 1px; background: var(--taupe); border: 0; margin: 28px auto; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--linen); }
.btn--solid { background: var(--ink); color: var(--linen); }
.btn--solid:hover { background: var(--clay); border-color: var(--clay); }
.text-link {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400;
  border-bottom: 1px solid var(--taupe); padding-bottom: 4px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.text-link:hover { color: var(--clay); border-color: var(--clay); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--linen);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; flex-direction: column; align-items: center; padding: 26px var(--gutter) 18px; gap: 18px; transition: padding .4s var(--ease); }
.brand img { width: clamp(220px, 24vw, 300px); transition: width .4s var(--ease); }
.site-header.is-scrolled .header-inner { padding-top: 14px; padding-bottom: 12px; gap: 10px; }
.site-header.is-scrolled .brand img { width: 200px; }

.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), opacity .3s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.nav-toggle { display: none; }

/* Home: header floats over the hero until scrolled */
.is-home .site-header { position: fixed; left: 0; right: 0; background: transparent; color: var(--on-dark); }
.is-home .site-header .brand { opacity: 0; pointer-events: none; height: 0; overflow: hidden; transition: opacity .4s var(--ease); }
.is-home .site-header.is-scrolled { background: var(--linen); color: var(--ink); }
.is-home .site-header.is-scrolled .brand { opacity: 1; pointer-events: auto; height: auto; }
.is-home .site-header:not(.is-scrolled) .header-inner { padding-top: 34px; }

/* Hero slideshow */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--espresso); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 6s linear; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(30, 22, 18, .42) 0%, rgba(30, 22, 18, 0) 100%),
    linear-gradient(180deg, rgba(30, 22, 18, .55) 0%, rgba(30, 22, 18, .12) 26%, rgba(30, 22, 18, .1) 65%, rgba(30, 22, 18, .45) 100%);
}
.is-home .site-header:not(.is-scrolled) .nav a { text-shadow: 0 1px 12px rgba(20, 14, 10, .6); }
.hero-mark { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0 var(--gutter); }
.hero-mark img {
  width: min(560px, 78vw);
  opacity: 0; transform: translateY(10px); filter: blur(4px);
  animation: reveal 2.2s var(--ease) .9s forwards;
}
.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: var(--on-dark); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  opacity: 0; animation: fade 1.2s var(--ease) 2.6s forwards;
}
.hero-scroll::after { content: ""; display: block; width: 1px; height: 36px; margin: 10px auto 0; background: currentColor; opacity: .7; }
@keyframes reveal { to { opacity: 1; transform: none; filter: drop-shadow(0 2px 22px rgba(20, 14, 10, .45)); } }
@keyframes fade { to { opacity: 1; } }

/* Home intro */
.intro .icon { width: 74px; margin: 0 auto 36px; }
.intro .lede { font-size: clamp(20px, 2.1vw, 25px); margin-bottom: 22px; }
.intro .lede:last-of-type { margin-bottom: 36px; }

/* Featured in */
.featured { padding: 64px 0 72px; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured .eyebrow { text-align: center; margin-bottom: 36px; }
/* Background here (not just on the section) so white logo backgrounds still blend away while the row fades in */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 80px); background: var(--cream); }
.logo-row img { height: var(--h, 48px); width: auto; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .78; }
.logo-row img.badge { mix-blend-mode: normal; }
@media (max-width: 560px) { .logo-row img { height: calc(var(--h, 48px) * .8); } }

/* CTA band */
.cta { text-align: center; }
.cta h2 { margin: 14px 0 30px; }

/* Page headers */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.page-head .eyebrow { display: block; margin-bottom: 16px; }
.page-head p { max-width: 640px; margin: 22px auto 0; color: var(--muted); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split img { width: 100%; }
.split h2 { margin: 10px 0 24px; font-size: clamp(30px, 3.4vw, 42px); }

/* About */
.portrait { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.philosophy .lede { margin-bottom: 1em; }

/* Services */
.svc-lists h3 { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.svc-lists ul { list-style: none; padding: 0; margin: 0 0 44px; }
.svc-lists li { font-family: var(--serif); font-size: 21px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.svc-lists .two-col { columns: 2; column-gap: 36px; }
.svc-lists .two-col li { font-family: var(--sans); font-size: 15px; break-inside: avoid; }
.approach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px clamp(36px, 6vw, 88px); margin-top: 56px; }
.approach h3 { font-size: 26px; margin-bottom: 14px; }
.approach .num { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 18px; display: block; margin-bottom: 6px; }
.approach p { color: var(--muted); margin: 0; }

/* Portfolio */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.card { display: block; }
.card .frame { overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card .cap { padding-top: 18px; text-align: center; }
.card h2, .card h3 { font-size: 24px; }
.card .eyebrow { display: block; margin-top: 6px; font-size: 11px; }

/* Project detail */
.project-text { max-width: 700px; margin: 0 auto; text-align: center; color: var(--muted); }
.project-text p:first-child { font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--ink); }
.gallery { columns: 2; column-gap: clamp(14px, 2vw, 24px); }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); margin: 0 0 clamp(14px, 2vw, 24px); cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 36px; }
.pager a { display: block; }
.pager .eyebrow { display: block; font-size: 11px; }
.pager span.t { font-family: var(--serif); font-size: 24px; }
.pager .next { text-align: right; margin-left: auto; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(32, 25, 21, .96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--on-dark); font: 300 34px/1 var(--sans); padding: 18px; cursor: pointer; }
.lightbox .lb-close { top: 10px; right: 14px; font-size: 30px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Press */
.press-card .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.press-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.press-card:hover img { transform: scale(1.03); }
.press-card .cap { text-align: center; padding-top: 18px; }
.press-card .date { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.press-card h3 { font-size: 24px; margin-top: 6px; }
.press-card .note { font-size: 14px; color: var(--muted); }
.press-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 64px; }
.press-list li { break-inside: avoid; padding: 16px 0; border-bottom: 1px solid var(--line); }
.press-list .pub { font-family: var(--serif); font-size: 21px; display: block; }
.press-list .what { font-size: 14px; color: var(--muted); }
.press-list a:hover .pub { color: var(--clay); }

/* Inquire form */
.inquire-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-card p { margin-bottom: 1.4em; }
.contact-card .eyebrow { display: block; margin-bottom: 6px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: 300 17px/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--taupe); border-radius: 0;
  padding: 8px 0; transition: border-color .3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f665c'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field textarea { min-height: 120px; resize: vertical; border: 1px solid var(--taupe); padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { position: relative; margin: 0; letter-spacing: .06em; text-transform: none; font-size: 15px; color: var(--ink); }
.checks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.checks span { display: inline-block; padding: 9px 18px; border: 1px solid var(--taupe); transition: all .25s var(--ease); }
.checks input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.checks input:focus-visible + span { outline: 1px solid var(--clay); outline-offset: 3px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { grid-column: 1 / -1; padding: 18px 20px; background: var(--sand); display: none; }
.form-status.is-shown { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap, hidden from people */

/* Shop */
.hours { list-style: none; padding: 0; margin: 0 0 1.4em; }
.hours li { display: flex; justify-content: space-between; max-width: 340px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.grid-4 .frame { aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.grid-4 img { width: 100%; height: 100%; object-fit: cover; }
.signup { display: flex; gap: 12px; max-width: 520px; margin: 28px auto 0; }
.signup input { flex: 1; font: 300 16px var(--sans); padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--taupe); color: var(--ink); }

/* Footer: dark band */
.site-footer { background: var(--espresso); color: var(--on-dark); padding: 80px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-grid .eyebrow { color: var(--on-dark-muted); display: block; margin-bottom: 14px; font-size: 11px; }
.footer-grid p { margin: 0 0 .4em; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { width: 64px; margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-muted); max-width: 260px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .4em; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--espresso-2); color: var(--on-dark-muted); font-size: 13px; }
.social { display: flex; gap: 18px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--espresso-2); border-radius: 50%; transition: border-color .3s, color .3s; }
.social a:hover { border-color: var(--on-dark); color: #fff; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.affiliations { display: flex; align-items: center; gap: 28px; }
.affiliations img { width: auto; opacity: .85; }

/* Scroll reveal */
/* Only content that starts below the fold gets .reveal-ready (added in site.js) */
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-ready.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
  .reveal-ready { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .header-inner { flex-direction: row; justify-content: space-between; padding: 16px var(--gutter); }
  .site-header.is-scrolled .header-inner { padding: 12px var(--gutter); }
  .brand img, .site-header.is-scrolled .brand img { width: 180px; }
  .is-home .site-header .brand { height: auto; }
  .is-home .site-header:not(.is-scrolled) .header-inner { padding-top: 18px; }
  .nav-toggle {
    display: block; background: none; border: 0; color: inherit; cursor: pointer;
    font: 400 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 10px 0 10px 16px; margin-left: auto;
  }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    background: var(--linen); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font-size: 14px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--ink); }
  .nav-open .site-header .nav a { text-shadow: none; }
  .nav-open .site-header .brand { opacity: 1; }

  .split, .inquire-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 2; }
  .grid-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .approach { grid-template-columns: 1fr; gap: 40px; }
  .press-list { columns: 1; }
  .gallery { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .form { grid-template-columns: 1fr; }
  .svc-lists .two-col { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .pager span.t { font-size: 20px; }
  .signup { flex-direction: column; }
}
