@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --paper: #f6f2eb;
  --ink: #181716;
  --muted: #68645d;
  --line: #d7d0c5;
  --hero: #d3d0ca;
  --frame: #eee9e1;
  --green: #6d806f;
  --red: #6f2528;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.about-page {
  background: #e1dacc;
}

main {
  flex: 1;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(246, 242, 235, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
}

.brand span {
  display: block;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.language-toggle {
  min-width: 58px;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--ink);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
}

.button {
  background: var(--ink);
  color: var(--paper);
}

.button-secondary {
  background: transparent;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(36px, 6vw, 78px) clamp(18px, 4vw, 56px);
  background: var(--hero);
}

.home-hero img {
  max-height: 680px;
  min-height: 420px;
  object-fit: cover;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 620px);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  justify-content: center;
  padding: clamp(28px, 6vh, 64px) clamp(18px, 4vw, 56px) clamp(18px, 4vh, 38px);
  background: #e1dacc;
}

.about-hero img {
  width: min(100%, 340px);
  max-height: min(62vh, 520px);
  aspect-ratio: 3 / 4;
  align-self: stretch;
  object-fit: cover;
  object-position: center bottom;
  border: 1px solid rgba(24, 23, 22, 0.22);
  padding: 8px;
  background: rgba(246, 242, 235, 0.72);
}

.about-copy {
  display: flex;
  max-height: min(62vh, 520px);
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.about-copy h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.about-copy p:not(.eyebrow):not(.lead) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
}

.service-heading {
  max-width: 760px;
  font-size: clamp(3.1rem, 5.8vw, 5.8rem);
}

.service-heading span {
  display: block;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.lead {
  max-width: 660px;
  color: #2f2d2a;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.path-section,
.content-section,
.contact-section {
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 56px);
}

.main-gateway {
  display: grid;
  align-items: center;
  min-height: auto;
  padding-top: clamp(58px, 10vh, 104px);
  padding-bottom: clamp(16px, 3vh, 28px);
}

.path-layout,
.path-grid,
.content-grid,
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.path-layout {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  justify-items: center;
}

.main-gateway .path-layout {
  width: 100%;
  max-width: min(1080px, 100%);
}

.path-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.path-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  background: var(--frame);
  overflow: hidden;
  transition: transform 180ms ease, background-color 180ms ease;
}

.path-card img {
  height: 100%;
  min-height: clamp(220px, 25vw, 340px);
  object-fit: cover;
}

.main-gateway .path-card img {
  height: clamp(230px, 43vh, 370px);
  min-height: 0;
}

.main-gateway .bm-card img {
  padding: clamp(26px, 5vw, 60px);
  background: #e1dacc;
  object-fit: contain;
}

.main-gateway .portfolio-card img {
  object-position: center bottom;
}

.path-card div {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 14px 18px;
}

.path-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  white-space: nowrap;
}

.path-card:hover,
.path-card:focus-visible {
  background: #e7e1d8;
  transform: translateY(-3px);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  padding: 9px 18px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--red);
  transform: translateY(-2px);
}

.secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.content-copy p {
  max-width: 720px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.content-copy h2 {
  max-width: 760px;
}

.service-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.image-pair {
  display: grid;
  gap: 18px;
}

.preview-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.image-pair img {
  max-height: 520px;
  padding: 10px;
  background: var(--frame);
  object-fit: contain;
}

.preview-images img {
  aspect-ratio: 3 / 4;
  max-height: 440px;
  object-fit: cover;
}

.work-section {
  border-top: 1px solid var(--line);
}

.work-heading {
  max-width: var(--max);
  margin: 0 auto clamp(22px, 4vw, 42px);
}

.work-heading h2 {
  max-width: 820px;
}

.project-list {
  display: grid;
  gap: clamp(34px, 6vw, 76px);
  max-width: var(--max);
  margin: 0 auto;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: start;
  padding-top: clamp(26px, 4vw, 46px);
  border-top: 1px solid var(--line);
}

.project-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-row-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
}

.project-row-reverse .project-copy {
  grid-column: 2;
  grid-row: 1;
}

.project-row-reverse .project-media {
  grid-column: 1;
  grid-row: 1;
}

.project-copy {
  align-self: start;
}

.project-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 500;
}

.project-copy p:not(.eyebrow) {
  max-width: 430px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.project-media {
  display: grid;
  gap: 14px;
}

.project-media.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-media.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-media.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-media.single {
  max-width: 680px;
}

.project-media img {
  width: 100%;
  max-height: 560px;
  padding: 8px;
  background: var(--frame);
  object-fit: contain;
}

.project-media.two-up img {
  aspect-ratio: 4 / 5;
}

.project-media.three-up img {
  aspect-ratio: 3 / 4;
}

.project-media.four-up img {
  aspect-ratio: 3 / 4;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
}

.contact-options {
  display: grid;
  gap: 14px;
}

.contact-option {
  padding: 20px;
  background: var(--frame);
  border-top: 3px solid var(--green);
}

.contact-option p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--frame);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(246, 242, 235, 0.94);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a {
  text-decoration: none;
}

[data-lightbox] {
  cursor: zoom-in;
  transition: opacity 160ms ease;
}

[data-lightbox]:hover {
  opacity: 0.88;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 72px clamp(16px, 4vw, 48px) 32px;
  background: rgba(16, 15, 14, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 112px);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(244, 241, 235, 0.7);
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .home-hero,
  .about-hero,
  .path-grid,
  .content-grid,
  .contact-grid,
  .preview-images,
  .project-row,
  .project-row-reverse,
  .project-media.two-up,
  .project-media.three-up,
  .project-media.four-up {
    grid-template-columns: 1fr;
  }

  .project-row-reverse .project-copy,
  .project-row-reverse .project-media {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-button {
    width: min(100%, 260px);
  }

  .secondary-actions {
    width: 100%;
  }

  .home-hero {
    min-height: 0;
    gap: 0;
  }

  .home-hero img {
    min-height: 0;
    max-height: none;
  }

  .about-hero img {
    justify-self: center;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero {
    gap: 0;
    padding: 0;
  }

  .about-hero {
    gap: 22px;
    padding: 28px 18px 22px;
  }

  .about-hero img {
    width: min(100%, 280px);
  }

  .home-copy {
    padding: 28px 18px 38px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 3.5rem);
  }

  .service-heading {
    font-size: clamp(2.45rem, 11vw, 2.85rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 2.75rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .path-section,
  .content-section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-section {
    overflow-x: hidden;
    padding-right: 28px;
  }

  .contact-grid,
  .contact-grid > *,
  .contact-option,
  .contact-form {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .contact-grid {
    max-width: calc(100vw - 46px);
    margin-left: 0;
    margin-right: auto;
  }

  .contact-section h1 {
    font-size: clamp(2.45rem, 12vw, 3rem);
  }

  .contact-section .lead,
  .contact-option p {
    max-width: 31ch;
    overflow-wrap: break-word;
  }

  .contact-option h3 {
    max-width: 28ch;
  }

  .contact-option,
  .contact-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-gateway {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .path-card img {
    min-height: 0;
    height: auto;
  }

  .path-card {
    min-height: 0;
  }

  .path-card div {
    min-height: 76px;
  }

  footer {
    flex-direction: column;
  }
}
