/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #f7f5f0;
  --bg-raised: #efece3;
  --ink: #161513;
  --ink-soft: #5a564d;
  --accent: #7c8a5c;
  --accent-dark: #63704a;
  --terracotta: #b96a45;
  --border: rgba(22, 21, 19, 0.12);
  --font-display: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0.2rem;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.btn-primary:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.btn-outline {
  color: var(--ink);
  border-bottom-color: var(--border);
}
.btn-outline:hover { border-bottom-color: var(--ink); }
.btn-arrow {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.25rem var(--pad);
  display: flex;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.85rem var(--pad);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo-img {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
}
.site-nav.scrolled .nav-links { color: var(--ink); }
.nav-links a { position: relative; padding: 0.2rem 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta::after { right: 0; background: currentColor; }
.nav-cta:hover { opacity: 0.7; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 501;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.site-nav.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,21,19,0.35) 0%, rgba(22,21,19,0.15) 35%, rgba(22,21,19,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 var(--pad) clamp(3rem, 8vw, 6rem);
  max-width: 900px;
}
.hero-content h1 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  max-width: 480px;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}
.hero-cta { color: #fff; border-bottom-color: #fff; }
.hero-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem var(--pad);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .hero-content { padding-bottom: 4.5rem; }
}

/* ---------- Generic sections ---------- */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section-raised { background: var(--bg-raised); }
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-heading:has(+ .section-intro-copy) {
  margin-bottom: 1rem;
}
.section-intro-copy {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Oversized, confident display scale — used on What we do / Our work / How it works */
.section-heading--xl {
  font-size: clamp(2.75rem, 8.5vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Intro full-bleed image feature ---------- */
.intro-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 8;
  min-height: 320px;
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.intro-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-feature-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22,21,19,0.7) 0%, rgba(22,21,19,0.15) 55%, rgba(22,21,19,0) 100%);
}
.intro-feature-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: clamp(1.75rem, 5vw, 3rem) var(--pad);
  max-width: 640px;
}
.intro-feature-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  opacity: 0.95;
  max-width: 42ch;
  margin-bottom: 1rem;
}
.intro-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.intro-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.intro-feature-content .intro-link {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.6);
}
.intro-feature-content .intro-link:hover {
  color: rgba(255,255,255,0.75);
  border-bottom-color: #fff;
}

@media (max-width: 700px) {
  .intro-feature { aspect-ratio: 4 / 5; }
}

/* ---------- What we do ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.offer-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
}
.offer-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.offer-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Sectors ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.sector-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.sector-card p {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- See a tour ---------- */
.tour-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.tour-pill {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
  padding: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tour-pill:hover { color: var(--ink); }
.tour-pill.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.tour-frame-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-raised);
}
.tour-frame-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.tour-frame-inner iframe,
.tour-frame-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.tour-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

/* ---------- How it works ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
.process-step { position: relative; }
.process-num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.process-step h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.process-step p {
  color: var(--ink-soft);
  max-width: 34ch;
}

@media (max-width: 780px) {
  .process-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Our work: album covers ---------- */
/* Asymmetric editorial 2-column layout. Left = landscape covers, large air
   between them. Right = portrait/cropped-tall covers, sitting higher up so
   the two columns fall out of step with each other (the "zigzag"). */
.work-columns {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.work-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.work-col--left {
  flex: 0 1 46%;
  gap: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(3rem, 9vw, 7rem);
}
.work-col--right {
  flex: 0 1 54%;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* .project-gallery is the per-album wrapper: one visible cover (.gallery-item.album)
   plus the rest of that project's photos, stashed invisibly for the lightbox
   to page through — nothing here is "cropped away", it's just not shown until
   you click in. */
.project-gallery { display: block; width: 100%; }
.gallery-item--stash { display: none; }

.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.album {
  display: block;
  width: 100%;
}
.album-cover {
  display: block;
  overflow: hidden;
  background: var(--bg-raised);
}
.work-col--left .album-cover { aspect-ratio: 4 / 3; }
.work-col--right .album-cover { aspect-ratio: 3 / 4; }
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.album:hover .album-cover img { transform: scale(1.03); }

.album-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.85rem;
  padding-top: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.album-title { flex: 0 1 auto; }
.album-meta {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
}
.album-cta {
  display: block;
  opacity: 0;
  color: var(--accent-dark);
  transition: opacity 0.2s ease;
}
.album:hover .album-cta { opacity: 1; }

@media (max-width: 1024px) {
  /* Flatten to one sequential (01 -> 05) stack instead of two separate
     column blocks stacked on top of each other. */
  .work-columns {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 8vw, 4rem);
  }
  .work-col--left,
  .work-col--right {
    display: contents;
  }
  .project-gallery[data-project="borough-high-street"] { order: 1; }
  .project-gallery[data-project="bristol-queens-square"] { order: 2; }
  .project-gallery[data-project="covent-garden-socials"] { order: 3; }
  .project-gallery[data-project="aerial-drone-footage"] { order: 4; }
  .project-gallery[data-project="tcr"] { order: 5; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 9, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 86vh;
  width: auto;
  object-fit: contain;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
  .lightbox-prev { left: 0.5rem; width: 40px; height: 40px; }
  .lightbox-next { right: 0.5rem; width: 40px; height: 40px; }
}

/* ---------- Closing CTA (overlaid on the .intro-feature image) ---------- */
.intro-feature-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.intro-feature-content .btn-primary {
  color: #fff;
  border-bottom-color: #fff;
}
.intro-feature-content .btn-primary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.contact-note {
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn { align-self: flex-start; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247,245,240,0.85);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
}
.footer-logo-img {
  height: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.85rem;
  color: rgba(247,245,240,0.55);
  width: 100%;
  order: 3;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247,245,240,0.12);
}

/* ---------- Edit mode ---------- */
.edit-toolbar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.edit-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.edit-toggle:hover { transform: scale(1.06); }
.edit-toggle[aria-pressed="true"] { background: var(--accent); }

.edit-toolbar-actions[hidden] {
  display: none;
}
.edit-toolbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  max-width: 240px;
}
.edit-tooltip {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.edit-btn {
  width: 100%;
  text-align: right;
  padding: 0 0 0.3rem;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}
.edit-btn-save { color: var(--accent-dark); border-bottom-color: var(--accent); }
.edit-btn-save:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.edit-btn-discard:hover { border-bottom-color: var(--ink); }

body.edit-mode [data-edit="text"] {
  cursor: text;
  border-radius: 4px;
  transition: outline 0.15s ease;
  outline: 1px dashed transparent;
  outline-offset: 2px;
}
body.edit-mode [data-edit="text"]:hover,
body.edit-mode [data-edit="text"]:focus {
  outline: 1px dashed var(--accent);
}

.edit-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}
.hero .edit-image-wrap,
.intro-feature .edit-image-wrap {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}
.gallery-item .edit-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.edit-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22,21,19,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 5;
}
body.edit-mode .edit-image-wrap:hover .edit-image-overlay {
  opacity: 1;
  pointer-events: auto;
}
.edit-image-overlay button {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 480px) {
  .edit-toolbar { bottom: 1rem; right: 1rem; }
  .edit-toolbar-actions { max-width: calc(100vw - 2rem); }
}
