/* Setry Homes — monochrome brand site
   Palette: Pure White #FFFFFF · Silver #D6D6D6 · Stone Grey #A3A3A3 · Charcoal #1C1C1C */

:root {
  --white: #FFFFFF;
  --mist: #F5F5F5;
  --silver: #D6D6D6;
  --stone: #A3A3A3;
  --charcoal: #1C1C1C;
  --ink: #1C1C1C;
  --ink-soft: #555555;
  --ink-mute: #6B6B6B;
  --font: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0 0 1.1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--charcoal); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 900px; }
.section { padding: var(--section) 0; }

/* Type */
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 22px;
}
.display {
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.005em; font-weight: 300;
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .display { margin-bottom: 14px; }
.section-sub { color: var(--ink-mute); font-size: 16px; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 34px; font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--charcoal); }
.btn-dark { color: var(--white); background: var(--charcoal); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--white); color: var(--charcoal); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .35s var(--ease); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-mono { height: 40px; width: auto; }
.brand-mono.on-light { display: none; }
.brand-name { font-size: 15px; font-weight: 400; letter-spacing: .36em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 6px 0;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }
.nav-cta { border: 1px solid currentColor; padding: 10px 20px !important; }
.nav-cta:hover { background: currentColor; }
.nav-cta:hover { color: var(--charcoal); background: var(--white); }

.site-header.is-solid { background: rgba(255,255,255,.97); color: var(--charcoal); box-shadow: 0 1px 0 var(--silver); }
.site-header.is-solid .header-inner { height: 70px; }
.site-header.is-solid .on-dark { display: none; }
.site-header.is-solid .on-light { display: block; }
.site-header.is-solid .nav-cta:hover { color: var(--white); background: var(--charcoal); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  color: var(--white); overflow: hidden; background: var(--charcoal);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15); transform: scale(1.06); animation: heroIn 2.4s var(--ease) forwards;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,20,20,.62), rgba(20,20,20,.55)); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 120px var(--gutter) 80px; display: flex; flex-direction: column; align-items: center; }
.hero-lockup { width: min(820px, 80vw); height: auto; margin-bottom: 44px; opacity: 0; animation: fadeUp 1.2s .3s var(--ease) forwards; }
.hero-stack { display: none; }
.hero-services span + span::before { content: "·"; margin: 0 .9em; }
.hero-services {
  font-size: 13px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 40px;
  opacity: 0; animation: fadeUp 1.2s .6s var(--ease) forwards;
}
.hero .btn { opacity: 0; animation: fadeUp 1.2s .8s var(--ease) forwards; }
.hero-scroll { position: absolute; z-index: 1; bottom: 32px; left: 50%; width: 44px; height: 56px; transform: translateX(-50%); display: grid; place-items: center; }
.hero-scroll span { width: 1px; height: 44px; background: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.hero-scroll span::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--white); animation: drip 2.2s infinite var(--ease); }

@keyframes heroIn { to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drip { to { top: 100%; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-body .display { margin-bottom: 36px; }
.about-body p { color: var(--ink-soft); }
.about-figure { margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Services */
.services { background: var(--mist); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--silver); }
.service { padding: 44px 40px 20px 0; }
.service + .service { padding-left: 40px; border-left: 1px solid var(--silver); }
.service-num { display: block; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--ink-mute); margin-bottom: 26px; }
.service h3 { font-size: 26px; letter-spacing: .02em; margin-bottom: 18px; }
.service p { color: var(--ink-soft); font-size: 17px; }

/* Work */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.project-grid li.is-wide { grid-column: span 2; }
.project-grid li.is-wide .project-card-img { aspect-ratio: 5 / 3; }
.project-card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.project-card-img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--silver); position: relative; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.project-card:hover .project-card-img img { transform: scale(1.045); }
.project-card-img::after {
  content: "View project"; position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px;
  color: var(--white); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(20,20,20,.6)); opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.project-card:hover .project-card-img::after, .project-card:focus-visible .project-card-img::after { opacity: 1; transform: none; }
.project-card-meta { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 16px; border-bottom: 1px solid var(--silver); }
.project-card-title { font-size: 22px; font-weight: 400; letter-spacing: .04em; }
.project-card-tags { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.project-card-video { position: absolute; top: 16px; left: 16px; z-index: 1; background: rgba(20,20,20,.75); color: var(--white); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; }

/* Before / After */
.transformations { background: var(--charcoal); color: var(--white); }
.transformations .eyebrow, .transformations .section-sub { color: var(--stone); }
.ba-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.ba-tab {
  background: none; border: 1px solid rgba(255,255,255,.3); color: var(--white); min-height: 44px; padding: 0 22px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: all .3s var(--ease);
}
.ba-tab:hover { border-color: var(--white); }
.ba-tab.is-active { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.ba { position: relative; aspect-ratio: 4 / 3; max-height: 78vh; width: 100%; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--white); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border: 1px solid var(--white); border-radius: 50%; background: rgba(20,20,20,.35); backdrop-filter: blur(4px);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--white); border-width: 0 0 1px 1px;
}
.ba-handle span::before { left: 15px; transform: translateY(-50%) rotate(45deg); }
.ba-handle span::after { right: 15px; transform: translateY(-50%) rotate(-135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + * { outline: none; }
.ba:focus-within { outline: 2px solid var(--white); outline-offset: 4px; }
.ba-label {
  position: absolute; top: 20px; z-index: 1; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  background: rgba(20,20,20,.6); padding: 7px 12px; pointer-events: none;
}
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }
.ba-caption { margin: 22px 0 0; color: var(--silver); font-size: 15px; letter-spacing: .04em; }

/* Testimonial */
.testimonial { text-align: center; }
.testimonial-mono { width: 52px; height: auto; margin: 0 auto 44px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.55; font-weight: 300; font-style: italic; }
.testimonial footer { margin-top: 32px; font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); }
.testimonial footer::before { content: ""; display: block; width: 48px; height: 1px; background: var(--stone); margin: 0 auto 24px; }

/* Contact */
.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.contact-info .display { margin-bottom: 22px; }
.contact-info > p { color: var(--ink-soft); }
.contact-list { margin: 44px 0 0; border-top: 1px solid var(--silver); }
.contact-list div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--silver); flex-wrap: wrap; }
.contact-list dt { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); padding-top: 4px; }
.contact-list dd { margin: 0; font-size: 18px; }
.contact-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }

.contact-form { background: var(--white); padding: clamp(28px, 4vw, 52px); display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--stone);
  padding: 10px 0; border-radius: 0; min-height: 44px; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1C1C'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--charcoal); box-shadow: 0 1px 0 var(--charcoal); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #9B1C1C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 15px; min-height: 1.5em; color: var(--ink-soft); }
.form-status.is-error { color: #9B1C1C; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--white); padding: clamp(72px, 9vw, 120px) 0 48px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-lockup { width: min(560px, 86vw); height: auto; margin-bottom: 40px; }
.footer-services { font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--silver); }
.footer-nav { display: flex; gap: 32px; margin: 28px 0 56px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--silver); padding: 10px 0; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 14px; color: var(--stone); margin: 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15); width: 100%; }

/* Project dialog */
.project-dialog {
  width: min(1320px, 100vw - 32px); max-width: none; height: min(860px, 100vh - 32px); max-height: none;
  padding: 0; border: 0; background: var(--white); color: var(--ink);
}
.project-dialog::backdrop { background: rgba(20,20,20,.82); }
.project-dialog[open] { animation: fadeUp .45s var(--ease); }
.pd-inner { display: grid; grid-template-columns: 1.7fr 1fr; height: 100%; }
.pd-media { position: relative; background: #111; min-height: 0; }
.pd-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.pd-stage img, .pd-stage video { width: 100%; height: 100%; object-fit: contain; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.5);
  background: rgba(20,20,20,.4); display: grid; place-items: center; transition: background .3s;
}
.pd-nav:hover { background: rgba(20,20,20,.8); }
.pd-nav svg, .pd-close svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.4; }
.pd-prev { left: 18px; } .pd-next { right: 18px; }
.pd-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(20,20,20,.7); color: var(--white); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 7px 12px; }
.pd-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: var(--charcoal); border: 0; }
.pd-side { padding: 56px 44px 36px; overflow-y: auto; }
.pd-side .display { font-size: clamp(30px, 3vw, 42px); margin-bottom: 26px; }
.pd-desc p { color: var(--ink-soft); font-size: 16px; }
.pd-filter { display: inline-flex; border: 1px solid var(--charcoal); margin-bottom: 28px; }
.pd-filter button { border: 0; background: none; min-height: 40px; padding: 0 22px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.pd-filter button.is-active { background: var(--charcoal); color: var(--white); }
.pd-filter[hidden] { display: none; }
.pd-thumbs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pd-thumbs button { padding: 0; border: 0; background: none; display: block; width: 100%; aspect-ratio: 1; opacity: .55; transition: opacity .3s; position: relative; }
.pd-thumbs button.is-active, .pd-thumbs button:hover { opacity: 1; }
.pd-thumbs button.is-active::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--charcoal); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.dialog-open { overflow: hidden; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-inner { grid-template-columns: 1fr; grid-template-rows: 58% 1fr; }
  .pd-side { padding: 32px 28px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; background: var(--charcoal); color: var(--white);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .site-nav a { font-size: 16px; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--white); background: transparent; box-shadow: none; }
  .nav-open .site-header .on-dark { display: block; }
  .nav-open .site-header .on-light { display: none; }
  .nav-open .brand { position: relative; z-index: 2; }
  .nav-cta:hover { color: var(--charcoal) !important; background: var(--white) !important; }
  .service-list { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 36px 0 12px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--silver); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .header-inner { height: 72px; }
  .brand-mono { height: 34px; }
  .brand-name { font-size: 13px; letter-spacing: .3em; }
  .hero-lockup { display: none; }
  .hero-stack { display: flex; flex-direction: column; align-items: center; margin-bottom: 36px; opacity: 0; animation: fadeUp 1.2s .3s var(--ease) forwards; }
  .hero-stack-mono { height: 120px; width: auto; margin-bottom: 28px; }
  .hero-stack-word { width: min(300px, 78vw); height: auto; margin-bottom: 16px; }
  .hero-stack-tag { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.6); }
  .hero-services { font-size: 11px; letter-spacing: .22em; line-height: 2.1; display: flex; flex-direction: column; }
  .hero-services span + span::before { content: none; }
  .about-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; gap: 44px; }
  .project-grid li.is-wide { grid-column: auto; }
  .project-grid li.is-wide .project-card-img { aspect-ratio: 4 / 5; }
  .ba { aspect-ratio: 3 / 4; }
  .ba-handle span { width: 48px; height: 48px; }
  .project-dialog { width: 100vw; height: 100vh; height: 100dvh; }
  .pd-nav { width: 44px; height: 44px; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
  .contact-form { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
