:root {
  --bg: #f3eee7;
  --bg-strong: #e4ddd4;
  --surface: rgba(255, 252, 246, 0.86);
  --surface-strong: #f9f5ee;
  --text: #1c1815;
  --muted: #655b53;
  --line: rgba(28, 24, 21, 0.12);
  --accent: #9d7554;
  --shadow: 0 30px 80px rgba(39, 29, 19, 0.12);
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(157, 117, 84, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(28, 24, 21, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 45%, #efe7dd 100%);
}

body.lightbox-open {
  overflow: hidden;
}

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

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

.site-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

main > .site-shell {
  padding: 1rem 0 3rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 0.8rem 0 1rem;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.34), rgba(10, 10, 10, 0));
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    padding 220ms ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(251, 248, 244, 0.9);
  font-size: 1rem;
}

.brand-copy,
.section-heading,
.contact-card,
.about-copy,
.feature-strip > div {
  animation: rise 0.8s ease both;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name,
.site-nav a,
.feature-label,
.eyebrow,
.button,
.detail-list {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-role,
.site-nav a,
.feature-label,
.eyebrow,
.button,
.detail-list {
  font-size: 0.73rem;
}

.brand-name {
  font-size: 1.25rem;
}

.brand-role,
.section-heading p,
.hero-text,
.feature-strip p,
.about-copy p,
.contact-card p {
  color: var(--muted);
}

.site-header .brand-name,
.site-header .brand-role,
.site-header .site-nav a {
  color: rgba(251, 248, 244, 0.92);
}

.site-header .brand-role {
  color: rgba(251, 248, 244, 0.62);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
  font-size: 0.875rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  opacity: 0.7;
  transition: transform 200ms ease;
}

.site-header.is-solid {
  padding: 0.7rem 0 0.85rem;
  background: rgba(247, 242, 234, 0.9);
  box-shadow: 0 10px 30px rgba(39, 29, 19, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.is-solid .brand-mark {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.site-header.is-solid .brand-name,
.site-header.is-solid .brand-role,
.site-header.is-solid .site-nav a {
  color: var(--text);
}

.site-header.is-solid .brand-role {
  color: var(--muted);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.about-layout,
.contact-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.hero {
  position: relative;
  width: 100%;
  min-height: min(88svh, 860px);
  padding: 0;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}

.about-layout,
.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  align-items: start;
}

.hero-copy {
  max-width: 34rem;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.94;
  font-weight: 600;
}

.hero-copy h1 {
  max-width: 7ch;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.8rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fbf8f4;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 14, 14, 0.16);
  color: rgba(251, 248, 244, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
}

.hero-text,
.section-heading p,
.about-copy p,
.contact-card p,
.stats-grid dd {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-image img,
.about-image img,
.contact-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-image,
.contact-image {
  margin: 0;

  img {
    border-radius: 1.4rem;
  }
}

.hero-image {
  margin: 0;
  height: 100%;
}

.hero-image picture,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  min-height: min(88svh, 860px);
  aspect-ratio: auto;
  filter: grayscale(1);
  object-position: center 12%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 18%, transparent 45%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, transparent 42%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  padding-top: clamp(5.5rem, 8vw, 7rem);
  pointer-events: none;
}

.hero-kicker {
  align-self: center;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 248, 244, 0.9);
}

.hero .hero-text {
  margin: 1rem 0 0;
  max-width: 32rem;
  color: rgba(251, 248, 244, 0.82);
}

.hero-links,
.hero-links a {
  pointer-events: auto;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 5rem;
}

.feature-strip > div,
.contact-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(39, 29, 19, 0.06);
}

.portfolio-section,
.about-section,
.contact-section {
  padding: 3rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--surface-strong);
  box-shadow: 0 16px 40px rgba(39, 29, 19, 0.08);
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 600ms ease,
    opacity 600ms ease,
    box-shadow 240ms ease;
}

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

.gallery-item:hover,
.gallery-item:focus-within {
  box-shadow: 0 20px 54px rgba(39, 29, 19, 0.16);
}

.gallery-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.gallery-trigger:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid rgba(251, 248, 244, 0.95);
  outline-offset: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  justify-items: center;
  align-content: start;
  overflow-y: auto;
  padding: 4.75rem 1.5rem 1.5rem;
  background: rgba(12, 10, 8, 0.92);
}

.lightbox-frame {
  width: min(100%, 1400px);
  display: grid;
  justify-items: center;
}

.lightbox-picture {
  display: contents;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 2rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fbf8f4;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.about-copy {
}

.stats-panel {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.42);
}

.stats-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.stats-grid div {
  padding: 0.9rem 0 0.1rem;
  border-top: 1px solid var(--line);
}

.stats-grid dt {
  margin-bottom: 0.15rem;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-grid dd {
  margin: 0;
  color: var(--text);
}

.contact-card {
  display: grid;
  gap: 1rem;
  min-height: 31rem;
  position: relative;
  overflow: hidden;
}

.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}

.contact-form.is-sent::after {
  animation: sent-sheen 900ms ease;
}

.contact-intro {
  margin: 0;
}

.contact-form > :not(.form-processing):not(.form-success) {
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    filter 260ms ease;
}

.contact-form.is-sending > :not(.form-processing):not(.form-success),
.contact-form.is-sent > :not(.form-processing):not(.form-success) {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(3px);
  pointer-events: none;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field span {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(157, 117, 84, 0.6);
  box-shadow: 0 0 0 4px rgba(157, 117, 84, 0.12);
}

.form-actions {
  display: grid;
  gap: 0.7rem;
}

.form-submit {
  width: fit-content;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(28, 24, 21, 0.12);
  border-radius: 999px;
  background: var(--text);
  color: #fbf8f4;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(28, 24, 21, 0.16);
}

.form-submit:focus-visible {
  outline: none;
}

.contact-form.is-sending .form-submit {
  animation: send-pulse 900ms ease-in-out infinite;
  cursor: wait;
}

.contact-form.is-sending .form-submit-label::after {
  content: "...";
}

.contact-form.is-sent .form-submit {
  background: #496348;
}

.contact-form.is-sent .form-submit-label::before {
  content: "Sent ";
}

.form-processing,
.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.form-processing {
  transform: scale(0.96);
}

.form-success {
  transform: translateY(10px);
}

.contact-form.is-sending .form-processing,
.contact-form.is-sent .form-success {
  opacity: 1;
  transform: none;
}

.form-spinner {
  width: 3rem;
  height: 3rem;
  border: 2px solid rgba(28, 24, 21, 0.12);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 760ms linear infinite;
}

.form-success p {
  margin: 0;
  padding-bottom: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
  color: var(--text);
}

.contact-form.is-error .form-processing {
  opacity: 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes send-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

@keyframes sent-sheen {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .about-layout,
  .contact-layout,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    gap: 0.5rem;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item {
    border-radius: 0.4rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-image img {
    object-position: center 8%;
  }

}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .site-header-inner,
  .site-footer {
    flex-direction: column;
    align-items: center;
  }

  .site-header {
    padding: 0.75rem 0 0.9rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-mark {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 0.92rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .site-nav {
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item {
    border-radius: 0.4rem;
  }

  .site-nav a {
    font-size: 0.64rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 16vw, 4.3rem);
  }

  .section-heading h2 {
    font-size: clamp(2.3rem, 14vw, 3.6rem);
  }

  .hero-overlay {
    padding: 1rem;
    padding-top: 5.5rem;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-kicker {
    align-self: flex-start;
  }

  .hero-image img {
    min-height: 72svh;
    object-position: 60% 8%;
  }

  .hero-links {
    gap: 0.5rem;
  }

  .hero-links a {
    min-height: 2.45rem;
    padding: 0 0.85rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 4.25rem 0.75rem 0.75rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (orientation: portrait) {
  .hero {
    min-height: 76svh;
  }

  .hero-copy {
    max-width: 18rem;
  }

  .hero-image img {
    min-height: 76svh;
    object-position: 62% 8%;
  }
}

@media (orientation: landscape) and (max-height: 760px) {
  .hero {
    min-height: 100svh;
  }

  .hero-image img {
    min-height: 100svh;
    object-position: center 14%;
  }
}
