:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f3f1f1;
  --color-bg-gallery: #e6e6e6;
  --color-ink: #481d1d;
  --color-ink-deep: #31190f;
  --color-muted: #886c6c;
  --color-line: #c8bbbb;
  --color-input: #ededed;
  --font-serif: "Libre Caslon Text", "Adobe Caslon Pro", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1200px;
  --header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 1.1rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(110px, 14vw, 168px);
  height: auto;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav a {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.is-active {
  border-bottom-color: var(--color-ink);
}

.header-spacer {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--color-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

main {
  overflow-x: clip;
}

.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: clamp(380px, 68vw, 92vh);
  overflow: hidden;
  background: #d8d8d8;
}

.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.site-footer {
  background: var(--color-bg-soft);
  margin-top: 0;
  padding: 0 30px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 0 2.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.footer-left {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: clamp(3rem, 8vw, 6rem);
  row-gap: 1rem;
  align-items: start;
  justify-self: start;
}

.footer-col {
  display: contents;
}

.footer-contact .footer-heading {
  grid-column: 1;
  grid-row: 1;
}

.footer-contact .footer-list {
  grid-column: 1;
  grid-row: 2;
}

.footer-legal .footer-heading {
  grid-column: 2;
  grid-row: 1;
}

.footer-legal > a {
  grid-column: 2;
  grid-row: 2;
}

.footer-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-ink-deep);
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-link-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.footer-col > a {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-ink-deep);
  transition: opacity 0.2s ease;
}

.footer-col > a:hover {
  opacity: 0.7;
}

.footer-col > a.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand {
  justify-self: end;
}

.footer-brand img {
  width: clamp(90px, 12vw, 140px);
  height: auto;
  display: block;
}

.gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.35rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  background: var(--color-bg-gallery);
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.contact {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-title,
.bio-copy h1 {
  margin: 0 0 1.5rem;
  font-size: 36px;
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  width: 100%;
  max-width: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

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

.field-message {
  display: flex;
  flex-direction: column;
}

.field label {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-ink);
}

.field label .req {
  margin-left: 0.1rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 2px;
  background: var(--color-input);
  font-family: var(--font-serif);
  padding: 0.85rem 0.9rem;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  box-shadow: inset 0 0 0 1px var(--color-muted);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  margin-top: 0.35rem;
  width: 100%;
  border: 0;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.submit-btn:active {
  transform: translateY(1px);
}

.form-privacy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.form-privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-privacy a:hover {
  color: var(--color-ink);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 4rem;
}

.legal h1 {
  margin: 0 0 1rem;
  font-size: 36px;
  font-weight: 400;
  color: var(--color-ink);
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink);
}

.legal p,
.legal-intro {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink-deep);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-note {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.contact-visual {
  width: 100%;
  aspect-ratio: 816 / 1025;
  overflow: hidden;
  background: #ddd;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.bio {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.75rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.bio-visual {
  width: 100%;
  aspect-ratio: 816 / 758;
  overflow: hidden;
  background: #ddd;
}

.bio-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.bio-copy h1 {
  margin: 0.2rem 0 1.25rem;
}

.bio-copy p {
  margin: 0 0 1.15rem;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.7;
  color: var(--color-ink-deep);
  text-align: justify;
  text-wrap: pretty;
}

.hero-frame,
.gallery-item,
.bio-visual,
.contact-visual {
  animation: fade 0.9s ease both;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}


@media (max-width: 900px) {
  .header-inner {
    padding: 0.9rem 1.15rem;
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .header-spacer {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    padding: 0.5rem 0 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-bottom: 0;
  }

  .nav a.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.25rem 0.75rem 2rem;
  }

  .contact,
  .bio {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 1.75rem;
    text-align: center;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 2rem;
  }

  .footer-col {
    display: block;
  }

  .footer-contact .footer-heading,
  .footer-contact .footer-list,
  .footer-legal .footer-heading,
  .footer-legal > a {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-link {
    justify-content: center;
  }

  .footer-brand {
    justify-self: center;
  }
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .gallery-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
