/* Williams Branch Studio v2: cool ivory, deep slate, hairline frame, full-bleed bands. */
:root {
  --ivory: #F8F5EF;
  --ink: #2F4256;        /* deep slate: headings, lead, body (9.49:1 on ivory) */
  --body: #34414F;       /* body copy, a touch softer than headings */
  --muted: #6F6A63;      /* warm grey labels (4.93:1 on ivory) */
  --rule: #DDD8CF;       /* pale hairline on cream */
  --btn: #D4CFC7;        /* flat grey-taupe button, slate text 6.66:1 */
  --btn-h: #C8C2B9;
  --err: #8A2A1B;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --fx: 50px;            /* frame inset: the vertical hairlines */
  --bar: 56px;           /* interior top bar */
  --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(--ivory); color: var(--body); font-family: var(--serif); font-size: 21px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 10px 16px; z-index: 100; font-family: var(--sans); font-size: 13px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* continuous verticals: pale on cream; photo bands redraw them in white */
body::before { content: ""; position: fixed; inset: 0 var(--fx); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); pointer-events: none; z-index: 20; }

.label { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.text-link { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link:hover { border-color: transparent; }
.btn { display: inline-block; background: var(--btn); color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; padding: 16px 34px; border: 0; border-radius: 0; cursor: pointer; transition: background .25s var(--ease); }
.btn:hover { background: var(--btn-h); }

/* ---------- header ---------- */
.wordmark { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .34em; text-transform: uppercase; text-decoration: none; white-space: nowrap; line-height: 1; padding-left: .34em; }
.nav { display: flex; gap: 34px; }
.nav a, .hero-nav a:not(.mono-box) { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.menu-btn { display: none; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; color: inherit; }
.bars { display: grid; gap: 6px; width: 26px; }
.bars span { display: block; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .bars span:nth-child(2) { opacity: 0; }
.menu-open .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header.bar { position: sticky; top: 0; z-index: 15; height: var(--bar); background: var(--ivory); border-bottom: 1px solid var(--rule); color: var(--ink);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; padding: 0 calc(var(--fx) + 24px); }
.bar .nav-left { justify-self: end; }
.bar .nav-right { justify-self: start; }
.bar .wordmark { font-size: 17px; letter-spacing: .32em; }

.site-header.over { position: absolute; top: 0; left: 0; right: 0; z-index: 15; height: 88px; display: flex; align-items: center; justify-content: center; color: #fff; padding: 0 calc(var(--fx) + 20px); }
.over .wordmark { text-shadow: 0 1px 14px rgba(0, 0, 0, .25); }
.over .menu-btn { position: absolute; right: calc(var(--fx) + 16px); }

.menu { position: fixed; inset: 0; z-index: 14; background: var(--ivory); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px 24px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 22px; text-align: center; }
.menu nav a { font-family: var(--serif); font-size: 34px; text-decoration: none; letter-spacing: .04em; }
.menu nav a[aria-current="page"] { font-style: italic; }
.menu-foot { margin-top: 48px; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.menu-open .site-header { color: var(--ink); z-index: 16; }
.menu-open .site-header.over .wordmark { text-shadow: none; }
.menu-open { overflow: hidden; }

/* ---------- home hero: full-screen crossfade under a white hairline frame ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #2b2a28; color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.4s ease-in-out; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide:nth-child(1) img { object-position: 50% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.30), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 76%, rgba(0,0,0,.32)); pointer-events: none; }
.frame { position: absolute; inset: 0 var(--fx); border-left: 1px solid rgba(255,255,255,.9); border-right: 1px solid rgba(255,255,255,.9); z-index: 22; pointer-events: none; }
.fr-top, .fr-bot { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.9); }
.fr-top { top: 88px; }
.fr-bot { bottom: 90px; }
.hero-nav { position: absolute; z-index: 3; left: var(--fx); right: var(--fx); bottom: 0; height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 40px; }
.hn-side { display: flex; justify-content: space-around; }
.hero-nav a:not(.mono-box) { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero-nav a:not(.mono-box):hover { border-color: currentColor; }
.mono-box { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid currentColor; }
.mono-box img { width: 30px; height: auto; }

/* ---------- bands ---------- */
main > .band + .band, .site-footer { border-top: 1px solid var(--rule); }
.band { position: relative; }
.band.photo { overflow: hidden; background: #2b2a28; border-top: 0; }
.band.photo + .band { border-top: 0; }
.band.photo::after { content: ""; position: absolute; inset: 0 var(--fx); border-left: 1px solid rgba(255,255,255,.85); border-right: 1px solid rgba(255,255,255,.85); z-index: 21; pointer-events: none; }
.band-img { width: 100%; height: 100%; object-fit: cover; }
.band.photo picture { display: block; height: 100%; }
.band.bw .band-img, img.bw { filter: grayscale(1) contrast(1.04); }
.hero-band { height: clamp(300px, 44vw, 640px); }
.hero-band .band-img { object-position: 50% 45%; }
.band.tall { height: clamp(420px, 62vw, 860px); }
.band.people { height: clamp(380px, 52vw, 780px); max-width: 1660px; margin: 0 auto; }
.band.people .band-img { object-position: 50% 30%; }

.band.cream { padding: clamp(72px, 9vw, 130px) calc(var(--fx) + 28px); text-align: center; }
.band.cream > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.intro h1 { font-size: clamp(30px, 3.3vw, 46px); max-width: 820px; margin-bottom: 30px; }
.lead { font-style: italic; color: var(--ink); font-size: clamp(21px, 1.8vw, 25px); line-height: 1.55; max-width: 680px; margin-left: auto; margin-right: auto; }
.intro .lead:last-child { margin-bottom: 0; }
.band h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 28px; }
.short-copy p, .prose p, .principals p { font-size: 22px; max-width: 680px; margin-left: auto; margin-right: auto; }
.short-copy .links { display: flex; gap: 34px; justify-content: center; margin-top: 36px; }
.quote-line { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.22; color: var(--ink); margin-bottom: 40px !important; max-width: 820px !important; }

/* thumbnails with tiny captions (inset images only here) */
.thumbs .thumb-row { max-width: 1120px; display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 28px; }
.thumb-row figure { margin: 0; width: calc((100% - 3 * 28px) / 4); }
.thumb-row img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
figcaption, .tile figcaption { font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 14px; text-align: center; }

/* services */
.svc-list { display: grid; gap: 0; }
.band.svc-list > * { max-width: 900px; }
.svc { display: grid; grid-template-columns: 260px 1fr; gap: 12px 56px; text-align: left; padding: 44px 0; border-top: 1px solid var(--rule); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc .label { grid-column: 1; grid-row: 2; margin: 0; }
.svc h2 { grid-column: 1; grid-row: 1; font-size: 30px; margin: 0; }
.svc p:not(.label) { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.steps { list-style: none; padding: 0; margin: 20px auto 0; max-width: 1080px !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: left; }
.steps li { padding: 8px 26px 0; border-left: 1px solid var(--rule); }
.billing { margin: 44px auto 0 !important; max-width: 680px !important; font-size: 19px; }
.also-list { list-style: none; padding: 0; margin: 28px auto 0; max-width: 760px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; text-align: left; }
.also-list li { font-family: var(--serif); font-size: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps h3 { font-size: 25px; margin-bottom: 14px; }
.steps p:not(.label) { font-size: 18px; line-height: 1.55; }
.steps .label { margin-bottom: 12px; }

/* portfolio: uniform grid (client asked all tiles same size, no captions) */
.band.gallery-band > .gallery { max-width: 1180px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.tile { margin: 0; }
.tile-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: opacity .3s var(--ease); }
.tile-btn:hover img { opacity: .9; }
.g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8,.g9 { grid-column: auto; margin-top: 0; }
.tile figcaption { display: none; }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ivory); color: var(--ink); }
.lightbox::backdrop { background: rgba(20, 28, 36, .4); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 2 * var(--fx) - 40px); margin: 0; }
.lightbox img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); cursor: pointer; padding: 14px 10px; }
.lb-close:focus:not(:focus-visible) { outline: none; }
.lb-close { top: 18px; right: calc(var(--fx) + 18px); }
.lb-prev { left: calc(var(--fx) + 18px); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(var(--fx) + 18px); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 30px; left: calc(var(--fx) + 28px); margin: 0; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; color: var(--muted); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* contact */
.band.contact { text-align: left; display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.band.contact > * { max-width: none; margin: 0; }
.band.contact { max-width: none; }
.contact-copy { padding-top: 6px; }
.contact-copy .label { margin: 34px 0 10px; }
.c-line a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.c-line a:hover { border-color: var(--ink); }
.tels { display: grid; gap: 4px; }
.tel-line { font-family: var(--serif); }
.tel-line a { text-decoration: none; }
.inquiry { border-top: 1px solid var(--rule); padding-top: 36px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { margin-bottom: 8px; }
.field label { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.opt { letter-spacing: .08em; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 19px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(47, 66, 86, .5); border-radius: 0; padding: 10px 0; -webkit-appearance: none; appearance: none;
}
.field select { 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='%232F4256'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 28px; cursor: pointer; }
.field textarea { border: 1px solid rgba(47, 66, 86, .5); padding: 12px 14px; resize: vertical; margin-top: 4px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field [aria-invalid="true"] { border-color: var(--err); }
.err { min-height: 1.5em; margin: 4px 0 0; font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--err); }
.inquiry .btn { margin-top: 18px; }
.form-status { margin-top: 24px; font-style: italic; }
.form-status:empty { display: none; }
.form-status.ok { padding: 22px 24px; border: 1px solid var(--rule); background: #EFEBE3; font-style: normal; }
.nf { min-height: 52vh; }
.nf .text-link { margin: 0 14px; }

/* ---------- footer ---------- */
.site-footer { color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 0 var(--fx); }
.foot-cols.two { grid-template-columns: 1fr 1fr; }
.fc { padding: 56px 36px; display: flex; flex-direction: column; justify-content: center; }
.fc + .fc { border-left: 1px solid var(--rule); }
.fc-left { align-items: flex-start; text-align: left; }
.fc-left .label { margin-bottom: 14px; }
.fc-left .tels { font-size: 19px; margin: 0; }
.fc-img { align-items: center; }
.fc-img img { width: min(300px, 100%); aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
.fc-nav { align-items: flex-end; gap: 10px; }
.fc-nav a { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; }
.fc-nav a:hover, .fc-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.foot-util { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 0 var(--fx); border-top: 1px solid var(--rule); }
.foot-util p { margin: 0; padding: 20px 36px; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.foot-util p + p { border-left: 1px solid var(--rule); }
.foot-util p:nth-child(2) { text-align: center; }
.foot-util p:nth-child(3) { text-align: right; }
.foot-util a { color: var(--ink); text-decoration: none; text-transform: lowercase; letter-spacing: .1em; }
.foot-util a:hover { text-decoration: underline; }
.foot-mono { border-top: 1px solid var(--rule); margin: 0 var(--fx); padding: 40px 0 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.foot-mono .mono-box { color: var(--rule); border-color: #CFC9BF; width: 52px; height: 52px; }
.foot-mono .mono-box img { width: 30px; }
.legal { margin: 0; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .bar .nav { gap: 22px; }
  .site-header.bar { gap: 26px; padding: 0 calc(var(--fx) + 12px); }
  .bar .wordmark { font-size: 15px; letter-spacing: .26em; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --fx: 16px; --bar: 60px; }
  body { font-size: 19px; }
  .nav, .hn-side { display: none; }
  .menu-btn { display: block; }
  .site-header.bar { display: flex; justify-content: space-between; padding: 0 calc(var(--fx) + 14px); }
  .bar .wordmark, .over .wordmark { font-size: 13px; letter-spacing: .24em; padding-left: 0; }
  .site-header.over { justify-content: flex-start; height: 64px; padding: 0 calc(var(--fx) + 14px); }
  .over .menu-btn { right: calc(var(--fx) + 12px); }
  .fr-top { top: 64px; }
  .fr-bot { bottom: 92px; }
  .hero-nav { grid-template-columns: 1fr; justify-items: center; height: 92px; padding: 0; }
  .band.cream { padding: 64px calc(var(--fx) + 22px); }
  .intro h1 { font-size: 30px; }
  .lead { font-size: 21px; }
  .hero-band { height: 240px; }
  .band.tall { height: 120vw; }
  .band.people { height: 76vw; }
  .quote-line { font-size: 30px; }
  .thumb-row figure { width: calc((100% - 18px) / 2); }
  .thumbs .thumb-row { gap: 30px 18px; }
  .svc { grid-template-columns: 1fr; padding: 36px 0; }
  .svc h2, .svc .label, .svc p:not(.label) { grid-column: 1; grid-row: auto; }
  .svc .label { margin-bottom: 8px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps li { border-left: 0; padding: 0; }
  .also-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .gallery .tile { grid-column: auto; margin-top: 0; }
  .g1, .g4, .g9 { grid-column: auto !important; }
  .band.contact { grid-template-columns: 1fr; gap: 40px; }
  .row2 { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lightbox img { max-height: calc(100vh - 200px); }
  .foot-cols, .foot-cols.two { grid-template-columns: 1fr; }
  .fc { padding: 40px 22px; align-items: center !important; text-align: center !important; }
  .fc + .fc { border-left: 0; border-top: 1px solid var(--rule); }
  .fc-nav { gap: 14px; }
  .foot-util { grid-template-columns: 1fr; }
  .foot-util p { text-align: center !important; padding: 16px 22px; }
  .foot-util p + p { border-left: 0; border-top: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
