
:root {
  --bg: #f6f0ea;
  --paper: #fbf8f4;
  --text: #3e3028;
  --muted: #86776f;
  --line: rgba(62, 48, 40, 0.14);
  --accent: #8a6a50;
  --accent-dark: #6f553f;
  --dark: #241d1a;
  --light: #fffaf6;
  --shadow: 0 24px 60px rgba(44, 31, 20, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.section-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; backdrop-filter: blur(14px);
  background: rgba(246,240,234,.78); border-bottom: 1px solid rgba(62,48,40,.06);
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; letter-spacing: .04em; line-height: .9; }
.brand-subtitle { text-transform: uppercase; letter-spacing: .26em; font-size: .67rem; color: var(--muted); }
.desktop-nav { display: flex; gap: 34px; align-items: center; }
.desktop-nav a { font-size: .95rem; }
.header-contact {
  border: 1px solid rgba(62,48,40,.35); padding: 14px 24px; border-radius: 14px;
  transition: .25s ease;
}
.header-contact:hover { background: rgba(62,48,40,.06); }
.menu-button { display: none; border: 0; background: transparent; width: 46px; height: 46px; padding: 0; }
.menu-button span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px auto; }
.mobile-nav {
  position: sticky; top: 81px; z-index: 35; background: rgba(251,248,244,.95);
  border-bottom: 1px solid rgba(62,48,40,.08); padding: 14px 24px;
}
.mobile-nav a { display: block; padding: 12px 0; }
.hero-approved { background: var(--paper); }
.approved-desktop { position: relative; width: min(1440px, 100%); margin: 0 auto; }
.approved-art { width: 100%; height: auto; display: block; }
.hero-hotspot { position: absolute; display: block; border-radius: 18px; }
.hero-hotspot:focus-visible { outline: 2px solid rgba(111,85,63,.8); outline-offset: 3px; }
.hotspot-logo { left: 12.4%; top: 1.2%; width: 15%; height: 11%; }
.hotspot-projects { left: 40.5%; top: 1.7%; width: 8.6%; height: 7%; }
.hotspot-services { left: 49.3%; top: 1.7%; width: 8.6%; height: 7%; }
.hotspot-process { left: 57.8%; top: 1.7%; width: 8.6%; height: 7%; }
.hotspot-contacts { left: 66.2%; top: 1.7%; width: 8.4%; height: 7%; }
.hotspot-discuss { right: 3.8%; top: 1.6%; width: 13.6%; height: 8.2%; }
.hotspot-cta { left: 13.8%; top: 59.6%; width: 19.8%; height: 8.3%; }
.approved-mobile { display: none; }
.approved-mobile-copy { padding: 34px 24px 26px; }
.mobile-kicker, .section-tag, .eyebrow { display: inline-block; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.approved-mobile h1, h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: .95; }
.approved-mobile h1 { font-size: clamp(3rem, 12vw, 4.6rem); margin: 14px 0 18px; }
.approved-mobile p { font-size: 1rem; margin: 0 0 16px; max-width: 30rem; }
.approved-location { display: block; color: var(--muted); margin-bottom: 22px; }
.approved-mobile-photo { height: 54vh; min-height: 390px; background: url('assets/hero-approved.jpg') center/cover no-repeat; }
.button {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 16px 24px;
  transition: .25s ease; font-weight: 500;
}
.button-dark { background: var(--accent-dark); color: white; }
.button-dark:hover { background: #5f4936; }
.button-light { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: white; }
.button-light:hover { background: rgba(255,255,255,.18); }
.intro { padding: 92px 0 40px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.intro p { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); max-width: 940px; line-height: 1.35; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 42px; }
.section-heading.narrow { align-items: start; }
.section-heading h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: 10px 0 0; }
.section-heading h2 em { font-style: italic; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); }
.projects-overview, .project-page, .process-section { padding: 46px 0 0; }
.project-lead {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 42px;
  align-items: center; margin-bottom: 26px;
}
.project-lead-photo img { border-radius: 30px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.project-lead-copy h3 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 10px 0 18px; }
.project-lead-copy p { color: var(--muted); margin: 0 0 24px; }
.project-meta { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.project-meta li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.45); }
.project-meta span { display: block; color: var(--muted); font-size: .86rem; margin-bottom: 6px; }
.project-meta strong { font-size: .98rem; font-weight: 600; }
.coming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.coming-card { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 24px; padding: 26px; min-height: 142px; }
.coming-card span { color: var(--muted); font-size: .9rem; }
.coming-card h3 { font-size: 1.9rem; margin: 10px 0 0; }
.project-story { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.project-story > div { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.project-story h3 { font-size: 1.9rem; margin: 0 0 10px; }
.project-story p { margin: 0; color: var(--muted); }
.gallery-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 110px;
}
.gallery-item { margin: 0; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item.large { grid-column: span 7; grid-row: span 4; }
.gallery-item.tall { grid-column: span 5; grid-row: span 4; }
.gallery-item.wide { grid-column: span 6; grid-row: span 3; }
.gallery-item:not(.large):not(.tall):not(.wide) { grid-column: span 3; grid-row: span 3; }
.services-section { padding: 96px 0 0; }
.services-list { display: grid; gap: 16px; }
.service {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: start;
  padding: 24px; border-radius: 24px; background: rgba(255,255,255,.55); border: 1px solid var(--line);
}
.service-num { font-size: .86rem; color: var(--muted); letter-spacing: .2em; }
.service h3 { font-size: 2rem; margin: 0 0 6px; }
.service p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.step span { color: var(--muted); letter-spacing: .18em; font-size: .78rem; }
.step h3 { font-size: 2rem; margin: 14px 0 10px; }
.step p { margin: 0; color: var(--muted); }
.contact-section { margin-top: 96px; background: linear-gradient(135deg, #79624d, #4d3a2d); color: white; }
.contact-inner { padding: 84px 0; }
.section-tag.light { color: rgba(255,255,255,.72); }
.contact-section h2 { font-size: clamp(3rem, 6vw, 5.2rem); margin: 14px 0 18px; }
.contact-section p { max-width: 560px; }
.contact-hint { margin-top: 14px; color: rgba(255,255,255,.76); }
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px 0 44px; color: var(--muted); font-size: .94rem;
}
.to-top { white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .desktop-nav, .header-contact { display: none; }
  .menu-button { display: block; }
  .approved-desktop { display: none; }
  .approved-mobile { display: block; }
  .intro { grid-template-columns: 1fr; padding-top: 68px; }
  .section-heading { flex-direction: column; align-items: start; }
  .section-heading p { max-width: 100%; }
  .project-lead, .project-story, .steps { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item, .gallery-item.large, .gallery-item.tall, .gallery-item.wide, .gallery-item:not(.large):not(.tall):not(.wide) { grid-column: auto; grid-row: span 1; }
  .coming-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header { padding: 14px 18px; }
  .section-wrap { width: min(100% - 32px, 1180px); }
  .project-meta { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: start; }
  .contact-inner { padding: 68px 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-item img { aspect-ratio: 4/3; }
}

/* Second portfolio case */
.project-lead-alt { margin-top: 64px; }
.project-lead-alt .project-lead-photo { order: 2; }
.project-lead-alt .project-lead-copy { order: 1; }
.mercato-gallery { margin-bottom: 32px; }
@media (max-width: 1100px) { .project-lead-alt .project-lead-photo { order: 1; } .project-lead-alt .project-lead-copy { order: 2; } }

/* v1.4 — one header only: the desktop approved artwork already contains navigation. */
@media (min-width:1101px) {
  body > .header { display:none; }
  body > .mobile-nav { display:none !important; }
}
@media (max-width:1100px) {
  .header { position:sticky; top:0; z-index:40; }
  .mobile-nav[hidden] { display:none !important; }
  .approved-mobile-photo { background-position: 60% 65%; }
}
/* A controlled, gap-free editorial gallery. Actual ratios are deliberate. */
.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; grid-auto-rows:auto; }
.gallery-grid .gallery-item,
.gallery-grid .gallery-item.large,
.gallery-grid .gallery-item.tall,
.gallery-grid .gallery-item.wide,
.gallery-grid .gallery-item:not(.large):not(.tall):not(.wide) {
  grid-column:auto; grid-row:auto; aspect-ratio:4/5; border-radius:8px;
  position:relative; cursor:zoom-in;
}
.gallery-grid .gallery-item:first-child,
.gallery-grid .gallery-item:nth-child(4),
.gallery-grid .gallery-item:nth-child(7) { grid-column:1/-1; aspect-ratio:16/9; }
.gallery-grid.mercato-gallery .gallery-item:nth-child(4) { grid-column:auto; aspect-ratio:4/5; }
.gallery-grid.mercato-gallery .gallery-item:nth-child(3),
.gallery-grid.mercato-gallery .gallery-item:nth-child(4) { aspect-ratio:4/5; }
.gallery-grid .gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .8s cubic-bezier(.2,.7,.25,1), filter .5s ease; }
.gallery-grid .gallery-item:hover img { transform:scale(1.035); filter:brightness(.94); }
.gallery-grid .gallery-item::after { content:'↗'; position:absolute; right:16px; bottom:12px; color:white; font-size:25px; opacity:0; transform:translateY(6px); transition:all .3s; text-shadow:0 2px 10px #0008; }
.gallery-grid .gallery-item:hover::after { opacity:1; transform:none; }
@media (max-width:720px) {
 .gallery-grid { grid-template-columns:1fr; gap:12px; }
 .gallery-grid .gallery-item, .gallery-grid .gallery-item.large, .gallery-grid .gallery-item.tall,
 .gallery-grid .gallery-item.wide, .gallery-grid .gallery-item:not(.large):not(.tall):not(.wide),
 .gallery-grid .gallery-item:first-child, .gallery-grid .gallery-item:nth-child(4), .gallery-grid .gallery-item:nth-child(7),
 .gallery-grid.mercato-gallery .gallery-item:nth-child(4) { grid-column:1/-1; aspect-ratio:4/3; }
 .gallery-grid .gallery-item img { aspect-ratio:unset; }
}
/* Fullscreen cinematic slideshow: keyboard, touch and buttons. */
.photo-viewer { position:fixed; inset:0; width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:24px 64px; border:0; background:#191715; color:#fff; overflow:hidden; }
.photo-viewer::backdrop { background:rgba(8,6,5,.93); }
.photo-viewer[open] { display:flex; align-items:center; justify-content:center; }
.viewer-stage { width:min(1180px,100%); height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; }
.viewer-image { width:100%; height:calc(100% - 54px); object-fit:contain; opacity:1; transform:translateX(0) scale(1); transition:opacity .28s ease,transform .28s ease; }
.viewer-image.changing { opacity:0; transform:translateX(var(--slide-shift,20px)) scale(.986); }
.viewer-caption { display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; max-width:1000px; font-size:13px; color:#ddd5cd; padding-top:15px; }
.viewer-close, .viewer-arrow { border:1px solid #ffffff45; border-radius:50%; background:#ffffff10; color:#fff; cursor:pointer; transition:background .25s,transform .25s; }
.viewer-close:hover,.viewer-arrow:hover { background:#ffffff2a; transform:scale(1.05); }
.viewer-close { position:absolute; top:20px; right:24px; width:43px; height:43px; font-size:29px; line-height:1; z-index:2; }
.viewer-arrow { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; font-size:31px; line-height:1; }
.viewer-arrow:hover { transform:translateY(-50%) scale(1.05); }
.viewer-prev { left:16px; } .viewer-next { right:16px; }
body:has(.photo-viewer[open]) { overflow:hidden; }
@media (max-width:720px) {
 .photo-viewer { padding:70px 12px 40px; }
 .viewer-close { right:12px; top:12px; }
 .viewer-arrow { top:auto; bottom:9px; width:42px; height:42px; }
 .viewer-prev { left:12px; } .viewer-next { right:12px; }
 .viewer-stage { height:calc(100% - 52px); }
 .viewer-image { height:calc(100% - 45px); }
 .viewer-caption { font-size:11px; }
}
@media (prefers-reduced-motion: reduce) {
 .reveal,.gallery-grid .gallery-item img,.viewer-image { transition:none!important; }
 html { scroll-behavior:auto; }
}
