:root {
  /* Sampled from the interior light study */
  --bg: #e6dcc8;
  --bg-warm: #efe6d4;
  --ink: #3a2e24;
  --ink-mute: #5a4a3c;
  --line: rgba(58, 46, 36, 0.16);
  --shade: rgba(58, 46, 36, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Subtle abstractions — light plane + grain, echoing the photographs */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 55% 45% at 72% 18%, rgba(255, 248, 235, 0.55) 0%, transparent 62%),
    radial-gradient(ellipse 40% 35% at 12% 78%, rgba(176, 148, 110, 0.18) 0%, transparent 70%);
}

.atmosphere__plane {
  position: absolute;
  top: 8%;
  right: 14%;
  width: min(28vw, 18rem);
  height: min(34vh, 16rem);
  background: linear-gradient(
    148deg,
    rgba(255, 250, 240, 0.35) 0%,
    rgba(255, 250, 240, 0.08) 55%,
    transparent 100%
  );
  clip-path: polygon(18% 0, 100% 8%, 88% 100%, 0 78%);
  opacity: 0.55;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

.fold,
.contact {
  position: relative;
  z-index: 1;
}

.fold {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 1.75rem clamp(1.5rem, 4vw, 2.75rem) 2.5rem;
}

.brand {
  flex: 0 0 auto;
  width: min(38rem, 72vw);
  margin: 0 auto clamp(1.75rem, 4.5vh, 2.75rem);
  text-align: right;
}

.brand__name {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.portfolio {
  flex: 0 1 auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.8vw, 1.15rem);
  width: min(38rem, 72vw);
  margin: 0 auto;
}

.portfolio__top {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.8vw, 1.15rem);
}

.study {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.study:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.study img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.5s ease;
  filter: saturate(0.94) contrast(0.99);
}

.study:hover img {
  filter: saturate(1) contrast(1);
}

.study--portrait {
  flex: 0 0 28%;
  width: 28%;
}

.study--wide {
  flex: 1 1 auto;
  min-width: 0;
}

.study--base {
  width: 100%;
}

.contact {
  display: grid;
  gap: 1.1rem;
  width: min(22rem, 88vw);
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
}

.contact__lede {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.contact__email {
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  width: fit-content;
}

.contact__email:hover {
  border-bottom-color: var(--ink);
}

.enquiry {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field span {
  font-size: 0.95rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.enquiry > button {
  justify-self: start;
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.enquiry > button:hover {
  opacity: 0.7;
}

/* Lightbox — image only */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(42, 32, 24, 0.82);
  cursor: zoom-out;
}

.lightbox__image {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

body.is-lightbox {
  overflow: hidden;
}

@media (max-width: 800px) {
  .fold {
    padding: 1.5rem 1.25rem 2rem;
  }

  .brand,
  .portfolio {
    width: min(100%, 88vw);
  }

  .study--portrait {
    flex-basis: 34%;
    width: 34%;
  }

  .atmosphere__plane {
    display: none;
  }
}
