/* Studio Chunk — site styles (only loaded on Studio Chunk pages) */
:root {
  --ink: #111827; --ink-2: #374151; --muted: #6b7280; --faint: #9ca3af;
  --line: #e5e7eb; --soft: #f3f4f6; --paper: #ffffff; --panel: #f9fafb;
  --header-h: 96px; --header-h-small: 68px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-small); }
body.sc {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.sc ::selection { background: var(--ink); color: #fff; }
.sc img { display: block; max-width: 100%; height: auto; }
.sc a { color: inherit; }
.sc h1, .sc h2, .sc h3 { color: inherit; font-family: inherit; text-transform: none; letter-spacing: normal; }
.wrap { max-width: 1400px; margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.sc :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff !important; padding: .75rem 1rem; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.95); border-bottom: 1px solid var(--soft);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: var(--header-h-small); }
.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; font-weight: 500; letter-spacing: -.01em; text-transform: uppercase; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.logo span:last-child { color: var(--faint); transition: color .3s; }
.logo:hover span:last-child { color: var(--ink); }

.nav { display: none; gap: 3rem; }
.nav a { position: relative; font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--ink); transition: width .3s; }
.nav a:hover::after, .nav a[aria-current]::after { width: 100%; }

.menu-btn { position: relative; z-index: 60; display: flex; flex-direction: column; gap: 6px; padding: 12px 8px; background: none; border: 0; cursor: pointer; }
.menu-btn span { width: 24px; height: 1px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Outside the header: backdrop-filter on the header would trap a "fixed" overlay inside it */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateX(100%); visibility: hidden; transition: transform .5s ease-in-out, visibility 0s .5s;
}
.mobile-menu.is-open { transform: none; visibility: visible; transition: transform .5s ease-in-out; }
.mobile-menu > a { font-size: 1.9rem; font-weight: 300; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.mobile-menu > a[aria-current] { color: var(--ink); }
.mobile-menu .menu-meta { margin-top: 2rem; font-size: .95rem; color: var(--muted); text-align: center; }
.mobile-menu .menu-meta a { text-decoration: none; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn, .mobile-menu { display: none; }
}

main#main { padding-top: var(--header-h); }

/* Logged-in admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Shared bits ---------- */
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: none; }
.text-link span { transition: transform .3s; }
.text-link:hover span { transform: translateX(4px); }
.button {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff !important; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .3s;
}
.button:hover { background: #374151; }
.button span { transition: transform .3s; }
.button:hover span { transform: translateX(4px); }
.arrow { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: inline-grid; place-items: center; }
.empty { color: var(--muted); }

/* ---------- Hero / page intro ---------- */
.hero, .page-hero { padding-block: clamp(3.5rem, 9vw, 6rem); }
.hero h1, .page-hero h1 { max-width: 48rem; margin: 0 0 1.5rem; font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 300; line-height: 1.15; letter-spacing: -.015em; }
.hero p:not(.eyebrow), .page-hero .lead { max-width: 36rem; margin: 0; font-size: 1.1rem; color: var(--muted); }

/* ---------- Project grid & cards ---------- */
.projects { padding-bottom: clamp(5rem, 10vw, 8rem); }
.grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card.wide { grid-column: span 2; }
}
.grid-3 .card-media { height: auto !important; aspect-ratio: 4 / 5 !important; }

.card { margin: 0; }
.card-link { position: relative; display: block; text-decoration: none; border-radius: 10px; }
.card-media { position: relative; overflow: hidden; border-radius: 10px; background: var(--soft); aspect-ratio: 4 / 5; }
@media (min-width: 768px) { .card-media { aspect-ratio: auto; height: 520px; } .card.wide .card-media { height: 600px; } }
.card-media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 55%); opacity: 0; transition: opacity .5s; }

.card-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-top: 1rem; }
.card-info h2 { margin: 0 0 .15rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.card.wide .card-info h2 { font-size: 1.5rem; }
.card-info p { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Hover devices: caption slides up over the photo. Touch screens: caption sits below. */
@media (hover: hover) and (min-width: 768px) {
  .card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 2rem; color: #fff; opacity: 0; transform: translateY(1rem); transition: opacity .5s, transform .5s; }
  .card-info p { color: #d1d5db; }
  .card-info .arrow { border-color: rgba(255,255,255,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .card-link:hover .card-media img, .card-link:focus-visible .card-media img { transform: scale(1.03); }
  .card-link:hover .card-media::after, .card-link:focus-visible .card-media::after { opacity: 1; }
  .card-link:hover .card-info, .card-link:focus-visible .card-info { opacity: 1; transform: none; }
}

/* ---------- Home: about teaser ---------- */
.about { background: var(--panel); border-radius: 28px; margin: 0 clamp(.75rem, 3vw, 3rem) 3rem; padding-block: clamp(4.5rem, 9vw, 8rem); }
.about-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about h2 { margin: 0 0 2rem; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 300; line-height: 1.2; }
.about p:not(.eyebrow) { max-width: 32rem; margin: 0 0 2rem; color: var(--muted); }
.disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 32rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.disciplines strong { display: block; font-weight: 500; margin-bottom: .25rem; }
.disciplines span { font-size: .95rem; color: var(--muted); }
.about-media { height: clamp(380px, 55vw, 600px); border-radius: 14px; overflow: hidden; background: var(--line); }
.about-media img { width: 100%; height: 100% !important; object-fit: cover; }

/* ---------- About page ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; padding-bottom: clamp(4rem, 9vw, 7rem); }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split-media { border-radius: 14px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100% !important; object-fit: cover; }
@media (min-width: 1024px) { .split .prose { padding-top: 2rem; } }

.band { background: var(--panel); border-radius: 28px; margin: 0 clamp(.75rem, 3vw, 3rem); padding-block: clamp(4rem, 8vw, 7rem); }
.services-grid { display: grid; gap: 2.5rem; margin-top: 1rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.services-grid > div { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.services-grid .num { font-size: .8rem; color: var(--faint); letter-spacing: .1em; }
.services-grid h2 { margin: .5rem 0 .75rem; font-size: 1.4rem; font-weight: 400; }
.services-grid p { margin: 0 0 1rem; color: var(--muted); }
.services-grid ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; display: grid; gap: .35rem; }

.process { padding-block: clamp(4rem, 9vw, 7rem); }
.process ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .process ol { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.process li { counter-increment: step; padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.process li::before { content: counter(step, decimal-leading-zero); font-size: .8rem; color: var(--faint); letter-spacing: .1em; }
.process strong { font-size: 1.25rem; font-weight: 400; }
.process span { color: var(--muted); }

.more-work { padding-bottom: clamp(4rem, 9vw, 7rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-head .eyebrow { margin: 0; }

/* ---------- Call to action ---------- */
.cta { border-top: 1px solid var(--line); }
.cta-inner { padding-block: clamp(4rem, 9vw, 7rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.cta h2 { margin: 0; font-size: clamp(1.8rem, 4.2vw, 3rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.15; }

/* ---------- Project page ---------- */
.project-head { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.back-link { display: inline-flex; gap: .5rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); margin-bottom: 2rem; transition: color .3s; }
.back-link:hover { color: var(--ink); }
.project-head h1 { margin: 0 0 2rem; font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 3.5rem; margin: 0; }
.facts div { min-width: 7rem; }
.facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .25rem; }
.facts dd { margin: 0; }

.project-cover { margin-block: 0; }
.project-cover img { width: 100%; max-height: 82vh; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--soft); }

.project-body { display: grid; gap: 3rem; padding-block: clamp(3rem, 7vw, 6rem); }
@media (min-width: 1024px) {
  .project-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 6rem; }
  .project-body.no-aside { grid-template-columns: minmax(0, 1fr); }
  .project-aside { position: sticky; top: calc(var(--header-h-small) + 2rem); align-self: start; }
}
.project-aside { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.project-aside h2 { margin: 0 0 .75rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.project-aside ul { margin: 0 0 2rem; padding: 0; list-style: none; display: grid; gap: .35rem; color: var(--ink-2); }

/* Text typed in the WordPress editor (project descriptions, About story) */
.prose { max-width: 44rem; font-size: 1.125rem; color: var(--ink-2); }
.prose > * { margin-block: 0 1.4em; }
.prose > p:first-child { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 300; line-height: 1.5; color: var(--ink); }
.prose h2, .prose h3 { color: var(--ink); font-weight: 400; line-height: 1.25; margin-top: 2em; }
.prose h2 { font-size: 1.6rem; } .prose h3 { font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { text-decoration-color: var(--faint); text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; padding-left: 1.5rem; border-left: 2px solid var(--ink); font-size: 1.3rem; font-weight: 300; color: var(--ink); }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 10px; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
/* Gallery & wide images break out of the text column */
.project-body .prose { max-width: none; }
.project-body .prose > :not(figure):not(.wp-block-gallery):not(.wp-block-image):not(.wp-block-columns) { max-width: 44rem; }
.wp-block-gallery { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); margin-block: 2.5rem !important; padding: 0; list-style: none; }
.wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .wp-block-gallery.columns-3, .wp-block-gallery.columns-default { grid-template-columns: repeat(3, 1fr); }
  .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
}
.wp-block-gallery figure { margin: 0 !important; width: auto !important; }
.wp-block-gallery img { width: 100%; height: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-gallery.columns-1 img { aspect-ratio: 16 / 9; }
.wp-block-columns { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.wp-block-image.alignwide img, .wp-block-image.alignfull img, .wp-block-image.size-full img { width: 100%; }

.next-project { padding-bottom: clamp(4rem, 8vw, 6rem); }
.next-project a { display: grid; gap: 1.5rem; align-items: center; text-decoration: none; border-top: 1px solid var(--line); padding-top: 2.5rem; }
@media (min-width: 768px) { .next-project a { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.next-title { display: flex; align-items: center; gap: 1rem; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .5rem; }
.next-title .arrow { transition: transform .3s, background .3s, color .3s; }
.next-project a:hover .arrow { transform: translateX(6px); background: var(--ink); color: #fff; border-color: var(--ink); }
.next-meta { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next-media { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.next-media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--ease); }
.next-project a:hover .next-media img { transform: scale(1.03); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 3rem; padding-bottom: clamp(4rem, 9vw, 7rem); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 5rem; } }
.contact-details dl { margin: 0; display: grid; gap: 1.75rem; }
.contact-details dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; }
.contact-details dd { margin: 0; font-size: 1.1rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact-details a:hover { border-color: var(--ink); }

.form-card { background: var(--panel); border-radius: 20px; padding: clamp(1.5rem, 4vw, 3rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.form { display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0; display: grid; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; 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='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
.field textarea { resize: vertical; min-height: 9rem; }
.form .button { justify-self: start; margin-top: .5rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice p { margin: 0; }
.notice.error { background: #fef2f2; color: #991b1b; }
.notice.success { background: transparent; padding: 0; margin: 0; }
.notice.success h2 { margin: 0 0 .75rem; font-size: 1.8rem; font-weight: 300; }
.notice.success p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 4rem; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; } }
.site-footer h2 { margin: 0 0 1.5rem; font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; text-transform: uppercase; }
.site-footer address { font-style: normal; color: var(--muted); margin-bottom: 2rem; }
.big-link { display: inline-block; font-size: 1.25rem; font-weight: 300; text-decoration: none; border-bottom: 1px solid #d1d5db; padding-bottom: .25rem; transition: border-color .3s; }
.big-link:hover { border-color: var(--ink); }
.site-footer h3 { margin: 0 0 1.5rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.site-footer ul a { color: #4b5563; text-decoration: none; transition: color .3s; }
.site-footer ul a:hover { color: var(--ink); }
.footer-bottom { margin-top: 5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .875rem; color: var(--faint); }
.footer-bottom p { margin: 0; }

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