/* ULW — ulwulw.com */

:root {
  --bg: #ffffff;
  --band: #f2f2ef;
  --ink: #141414;
  --muted: #6f6f6a;
  --line: #e4e4e0;
  --gap: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }

/* ---------- header band + zigzag ---------- */

.band {
  background: var(--band);
  text-align: center;
  padding: 26px 20px 46px;
}

.nav {
  display: flex;
  gap: 26px;
  justify-content: flex-start;
  max-width: 1500px;
  margin: 0 auto 8px;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.nav-link:hover,
.nav-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.logo-link { display: inline-block; text-decoration: none; }
.logo { width: min(280px, 65vw); display: block; margin: 6px auto 22px; }
.logo-text { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; }

.statement {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 40em;
}

.zigzag {
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='470'%20height='60'%3E%3Crect%20width='470'%20height='60'%20fill='%23f2f2ef'/%3E%3Cg%20fill='%23ffffff'%3E%3Cpath%20d='M4%2060%20V34%20L39%2018%20L74%2034%20V60%20Z'/%3E%3Cpath%20d='M82%2060%20V42%20L109%2030%20L136%2042%20V60%20Z'/%3E%3Cpath%20d='M144%2060%20V38%20L158%2024%20L189%2012%20L220%2024%20L234%2038%20V60%20Z'/%3E%3Cpath%20d='M242%2060%20V36%20L270%2020%20L298%2036%20V60%20Z'/%3E%3Cpath%20d='M306%2060%20V38%20L334%2024%20L362%2038%20V60%20Z'/%3E%3Cpath%20d='M362%2060%20V18%20L375%202%20L388%2018%20V60%20Z'/%3E%3Cpath%20d='M396%2060%20V40%20L430%2026%20L464%2040%20V60%20Z'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom left;
}

/* ---------- sections ---------- */

main { max-width: 1500px; margin: 0 auto; padding: 0 20px; }

.section { margin: 130px 0; }

h1, h2, h3, .nav-link, .logo-text, .page-nav a, .card span {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  text-align: center;
  margin: 0 0 48px;
}

/* ---------- justified galleries ---------- */

.gal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px var(--gap);
}

.gal figure {
  margin: 0;
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * 320px);
  min-width: 0;
}

.gal a { display: block; }

.gal img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  background: var(--band);
}

.gal figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .gal figure { flex-basis: 100%; }
}

/* ---------- project cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

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

.card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  background: var(--band);
}

.card:hover img,
.card:focus-visible img { transform: scale(1.03); }

.card span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.01em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 40px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.portrait { width: 100%; display: block; }

.about-text p { margin: 0 0 1em; }

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
}

/* ---------- project pages ---------- */

.page {
  max-width: 860px;
  margin: 56px auto;
  padding: 0 20px;
}

.page h1 {
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  text-align: center;
  margin: 0 0 30px;
}

.page-nav {
  display: flex;
  justify-content: flex-end;
  max-width: 860px;
  margin: 48px auto 0;
  padding: 0 20px;
}

.page-nav a { font-weight: 700; text-decoration: none; }
.page-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px var(--gap);
  margin-top: 40px;
}

.pairs figure { margin: 0; }
.pairs img { width: 100%; display: block; cursor: zoom-in; background: var(--band); }
.pairs figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
  font-style: italic;
}

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

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 48px 20px 40px;
  text-align: center;
}

.footer h3 { font-size: 20px; margin: 0 0 16px; }
.footer p { margin: 0 0 10px; }
.heart a { text-decoration: none; font-size: 22px; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 50;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox-caption { color: #ddd; font-size: 14px; margin: 14px 0 0; text-align: center; }

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- drawing sheets ---------- */

.drawings { display: grid; gap: var(--gap); margin-top: 40px; }
.drawings img { width: 100%; display: block; background: #fff; }


/* ---------- contact ---------- */

.contact {
  background: var(--band);
  margin-top: 130px;
  padding: 10px 0 60px;
}

.contact-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.map-embed {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: grayscale(1);
}

.contact h2 { text-align: left; margin: 44px 0 26px; }

.form-card {
  background: #fff;
  border-radius: 26px;
  padding: clamp(24px, 5vw, 56px);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.field label small { color: var(--muted); font-size: 13px; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #555;
  border-radius: 999px;
  padding: 14px 22px;
  background: #fff;
}

.field textarea { border-radius: 26px; min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.send-btn {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #26751a;
  border: 0;
  padding: 16px 34px;
  cursor: pointer;
}

.send-btn:hover { opacity: 0.88; }

.footer { border-top: 0; margin-top: 0; background: var(--band); }


/* ---------- lightbox arrows ---------- */

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 56px;
  line-height: 1;
  padding: 20px 16px;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev { left: 6px; }
.lightbox-next { right: 6px; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 0.7; }

@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { font-size: 42px; padding: 16px 10px; }
}


.form-status { margin: 18px 0 0; font-weight: 600; }
.form-status.ok { color: #26751a; }
.form-status.fejl { color: #a03030; }
