:root { color: #111; background: #fff; font-family: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #111; }
a { color: inherit; text-decoration: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 34px; }
.site-name { display: block; flex: 0 0 auto; width: clamp(130px, 17vw, 210px); }
.site-name img { display: block; width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 22px; font-size: .86rem; }
nav a { border-bottom: 1px solid transparent; }
nav a:hover, nav a.is-active { border-color: #111; }
.nav-portfolio { position: relative; display: flex; align-items: center; gap: 3px; }
.nav-portfolio-toggle { padding: 0 4px; border: 0; color: #111; background: transparent; font-size: 1rem; line-height: 1; }
.nav-portfolio-menu { position: absolute; top: 100%; right: 0; z-index: 10; display: grid; min-width: 210px; padding: 8px; border: 1px solid #ddd; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.nav-portfolio-menu[hidden] { display: none; }
.nav-portfolio-menu a { padding: 9px 11px; white-space: nowrap; }
.nav-portfolio-menu a:hover { background: #f3f3f3; }
main { min-height: calc(100vh - 145px); }
.hero { width: 100%; }
.hero-image { display: block; width: 100%; height: auto; }
.page-wrap { width: min(1180px, calc(100% - 68px)); margin: 0 auto; padding: 72px 0 110px; }
.page-wrap.narrow { width: min(700px, calc(100% - 68px)); }
.page-wrap > h3 { margin: 0 0 36px; font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; font-weight: 400; }
.portfolio-section, .cv-event { margin-bottom: 90px; }
.portfolio-section h4 { margin: 0 0 20px; font-size: clamp(1.05rem, 1.5vw, 1.4rem); font-weight: 400; }
.portfolio-section h4 a:hover { text-decoration: underline; }
.portfolio-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.portfolio-preview-image { display: block; min-width: 0; }
.portfolio-preview-image img { display: block; width: 100%; max-height: 520px; object-fit: contain; object-position: left top; }
.lead, .rich-text, .muted { color: #555; line-height: 1.7; }
.rich-text p { margin: 0 0 1em; text-indent: 1.1em; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text strong, .rich-text b { color: #111; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.gallery-card { display: block; }
.gallery-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.gallery-caption { display: grid; gap: 3px; padding-top: 10px; text-align: center; font-size: .86rem; }
.gallery-caption span { min-height: 1.2em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: start; }
.about-grid img { display: block; width: 100%; height: auto; }
.cv-event-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; border-bottom: 1px solid #111; }
.cv-event-heading h4 { font-size: 1.05rem; font-weight: 400; }
.cv-event-heading time { font-size: .85rem; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.product-card { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.product-image-wrap { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #f4f4f4; }
.product-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card-info { display: grid; grid-template-rows: repeat(4, minmax(1.5em, auto)); gap: 3px; width: 100%; text-align: center; }
.product-card-info h4, .product-card-info p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card-info .price { font-weight: 700; }
.product-card h4, .product-card p { margin: 0; }
.product-card label, .public-form label { display: grid; gap: 8px; font-size: .83rem; }
.product-card select, .product-card input, .public-form input, .public-form select, .public-form textarea { width: 100%; padding: 11px; border: 1px solid #777; border-radius: 3px; background: #fff; color: #111; font: inherit; }
.public-form { display: grid; gap: 22px; }
.public-form .contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 18px; border: 1px solid #777; }
.contact-fields legend { padding: 0 5px; font-size: .9rem; }
.public-form textarea { min-height: 110px; resize: vertical; }
button { padding: 12px 18px; border: 1px solid #111; border-radius: 0; color: #fff; background: #111; cursor: pointer; font: inherit; }
button:disabled { opacity: .35; cursor: not-allowed; }
.price { font-size: 1rem; }
.public-form > button, .cart-button { width: max-content; align-self: center; }
.product-dialog { width: min(1040px, calc(100vw - 40px)); max-height: calc(100vh - 40px); padding: 44px 30px 30px; border: 1px solid #aaa; background: #fff; color: #111; }
.product-dialog::backdrop { background: rgba(0,0,0,.7); }
.product-dialog-close { position: absolute; top: 8px; right: 12px; padding: 4px 11px; border: 0; color: #111; background: transparent; font-size: 2rem; }
.product-dialog-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; }
.product-gallery-stage { display: grid; place-items: center; min-height: 420px; background: #f6f6f6; }
.product-gallery-image { max-width: 100%; max-height: min(65vh, 650px); object-fit: contain; }
.product-gallery-stage > a { display: grid; place-items: center; cursor: zoom-in; }
.product-gallery-stage > a[hidden] { display: none; }
img { -webkit-user-drag: none; user-select: none; }
.product-gallery-image[hidden] { display: none; }
.product-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 12px; }
.product-gallery-controls button { padding: 2px 12px; font-size: 1.6rem; }
.product-dialog-info { display: flex; flex-direction: column; gap: 12px; }
.product-dialog-info h4 { margin: 0; font-size: 1.3rem; font-weight: 400; }
.product-dialog-info p { margin: 0; }
.product-dialog-bottom { display: grid; gap: 12px; margin-top: auto; }
.product-dialog-bottom label { display: grid; gap: 6px; }
.product-dialog-bottom select, .product-dialog-bottom input { width: 100%; padding: 10px; border: 1px solid #777; background: #fff; }
.product-dialog-bottom .price { margin: 10px 0 0; font-size: 1.6rem; }
.product-dialog-bottom .cart-button { justify-self: start; }
.empty-state { padding: 48px 20px; color: #777; background: #f6f6f6; text-align: center; }
.form-status { min-height: 1.3em; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid #ddd; }
.cart-row button { padding: 5px 8px; color: #111; background: #fff; font-size: .8rem; }
footer { position: fixed; right: 22px; bottom: 18px; z-index: 100; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: min(400px, calc(100vw - 28px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 0; font-size: .8rem; }
.social-button { display: grid; width: 22.4px; height: 22.4px; flex: 0 0 22.4px; place-items: center; color: #111; text-decoration: none; }
.social-button:hover { transform: translateY(-2px); }
.social-icon { display: grid; width: 100%; height: 100%; place-items: center; }
.social-icon.is-fallback { border: 1px solid #111; border-radius: 50%; background: rgba(255,255,255,.94); font-size: .53rem; font-weight: 700; box-shadow: 0 2px 9px rgba(0,0,0,.18); }
.social-icon.has-image { position: relative; overflow: hidden; }
.social-icon.has-image::after { position: absolute; inset: 0; background: rgba(255,255,255,.5); content: ""; pointer-events: none; transition: background .15s ease; }
.social-button:hover .social-icon.has-image::after, .social-button:focus-visible .social-icon.has-image::after { background: transparent; }
.social-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contact-section + .contact-section { margin-top: 54px; }
.contact-section h4 { margin: 0 0 20px; font-size: 1.2rem; font-weight: 400; }
.contact-directory { width: 100%; border-collapse: collapse; table-layout: fixed; }
.contact-directory tr { border: 0; }
.contact-directory th, .contact-directory td { padding: 7px 14px 7px 0; border: 0; text-align: left; vertical-align: middle; font-size: .92rem; font-weight: 400; overflow-wrap: anywhere; }
.contact-directory td:first-child { width: 46px; }
.contact-directory th { width: 28%; }
.contact-directory a { text-decoration: underline; text-underline-offset: 3px; }
.contact-icon { display: grid; width: 32px; height: 32px; place-items: center; }
.contact-icon img { display: block; width: 32px; height: 32px; object-fit: contain; }
.contact-icon.is-fallback { border: 1px solid #111; border-radius: 50%; font-size: .7rem; font-weight: 700; }
.lightbox { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; overflow-y: auto; padding: 30px; background: rgba(255,255,255,.96); }
.lightbox img { max-width: 95vw; max-height: 75vh; object-fit: contain; }
.lightbox .rich-text { width: min(700px, 95vw); }
.lightbox button { position: fixed; top: 18px; right: 24px; padding: 0 8px; border: 0; color: #111; background: transparent; font-size: 2rem; }
@media (max-width: 760px) {
  .site-header { display: block; padding: 22px; }
  nav { justify-content: flex-start; gap: 15px; margin-top: 20px; }
  .page-wrap, .page-wrap.narrow { width: calc(100% - 44px); padding-top: 48px; }
  .gallery-grid, .products-grid, .about-grid, .portfolio-preview, .product-dialog-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-dialog { padding: 44px 18px 18px; }
  .product-gallery-stage { min-height: 250px; }
  .public-form .contact-fields { grid-template-columns: 1fr; }
  .about-grid { gap: 28px; }
  .cart-row { grid-template-columns: 1fr auto; }
  .cart-row button { grid-column: 1 / -1; justify-self: start; }
  footer { right: 14px; bottom: 14px; }
  .contact-directory th { width: 32%; }
}
