/* ==========================================================================
   Grigoriy Borisov — wedding photography landing
   Implementation of WeddingLanding.dc.html
   ========================================================================== */

:root {
  --bg:          #F7F5F0;
  --sand:        #EAE7DE;
  --line:        #DAD6C9;
  --ink:         #22231F;
  --muted:       #6A6C61;
  --olive:       #4F5540;
  --olive-hover: #5B6249;

  --dark:        #22231F;
  --dark-panel:  #2C2D27;
  --on-dark:     #F7F5F0;
  --on-dark-dim: #B7B8AD;
  --on-dark-soft:#8B8D82;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  Karla, "Helvetica Neue", Arial, sans-serif;

  --shell:   1280px;
  --gutter:  32px;
  --section: 128px;

  --ease: cubic-bezier(.2, .6, .2, 1);
}

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

/* Several elements are toggled with the `hidden` attribute while also carrying
   a display rule of their own — without this the attribute would be overridden
   and the element would stay on screen. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--on-dark);
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Shared type -------------------------------------------------------- */

.h2 { margin: 0; font: 400 46px/1.1 var(--serif); }

.eyebrow {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-on-dark { color: var(--on-dark-dim); }
.eyebrow-footer  { color: var(--on-dark-soft); letter-spacing: .2em; }

.eyebrow-row {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.rule { width: 48px; border-top: 1px solid var(--line); }
.rule-on-dark { border-top-color: rgba(247, 245, 240, .18); }

.link-underline {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .3s var(--ease);
}
.link-underline:hover { border-bottom-color: var(--ink); }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, .78);
  -webkit-backdrop-filter: saturate(105%) blur(14px);
  backdrop-filter: saturate(105%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.brand-name { font: 300 32px/1 var(--serif); letter-spacing: .045em; }
.brand-rule { width: 1px; height: 26px; background: var(--line); }
.brand-role {
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav > a {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav > a:hover { color: var(--ink); }

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.lang-sep { display: none; }
.lang-btn {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font: 500 11px/1 var(--sans);
  letter-spacing: .16em;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.lang-btn:hover { border-color: var(--olive); color: var(--olive); }
.lang-btn.is-active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--on-dark);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  height: 86vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
  animation: gbBreathe 20s linear both;
}

@keyframes gbBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.035); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(23, 24, 18, .9)  0%,
    rgba(23, 24, 18, .78) 18%,
    rgba(23, 24, 18, .58) 34%,
    rgba(23, 24, 18, .2)  48%,
    rgba(23, 24, 18, 0)   60%);
}

.hero-content {
  position: absolute;
  inset: 0 0 auto 0;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  color: var(--on-dark);
  text-shadow: 0 1px 28px rgba(23, 24, 18, .5);
}
.hero-content .eyebrow-on-dark {
  letter-spacing: .34em;
  font-size: 10px;
  color: rgba(247, 245, 240, .75);
}
.hero-rule { width: 56px; border-top: 1px solid rgba(247, 245, 240, .35); }

.hero-title {
  margin: 0;
  font: 300 54px/1.08 var(--serif);
  letter-spacing: -.005em;
  max-width: 13em;
  text-wrap: balance;
}

.btn-ghost {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid rgba(247, 245, 240, .45);
  border-radius: 2px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  transition: background .4s, border-color .4s;
}
.btn-ghost:hover {
  background: rgba(247, 245, 240, .1);
  border-color: var(--on-dark);
}

/* --- About -------------------------------------------------------------- */

.about { padding: var(--section) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 96px;
  align-items: start;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-heading { max-width: 20em; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 60ch;
}
.prose p {
  margin: 0;
  font: 300 21px/1.62 var(--sans);
  color: var(--muted);
}

.stats { margin: 0; display: flex; gap: 64px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num { font: 400 48px/1.14 var(--serif); }
.stat-label {
  margin: 0;
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.portrait { margin: 0; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow: inset 0 0 0 1px rgba(34, 35, 31, .06);
}

/* --- Portfolio ---------------------------------------------------------- */

.portfolio { padding: var(--section) 0; background: var(--sand); }

.portfolio-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.strip-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
}

.strip {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  scroll-padding-left: var(--gutter);
}
.strip::-webkit-scrollbar { display: none; }

.strip-frame {
  flex: 0 0 auto;
  /* Frames are 3:2 and sized by height, so their width is height x 1.5. The
     last term caps that width at the strip's own width — without it a frame
     runs past the screen edge on narrow viewports and the photo can only ever
     be seen a slice at a time. */
  height: min(60vh, 640px, calc((100vw - 2 * var(--gutter)) / 1.5));
  background: var(--line);
  overflow: hidden;
  scroll-snap-align: start;
}
.strip-frame img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.strip-frame:hover img { transform: scale(1.035); }

.strip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
}

.pager { display: flex; gap: 8px; }

.circle-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 300 18px/1 var(--sans);
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.circle-btn:hover { border-color: var(--olive); color: var(--olive); }
.circle-btn:disabled {
  opacity: .3;
  cursor: default;
  border-color: var(--line);
  color: var(--ink);
}
.circle-btn-dark {
  border-color: rgba(247, 245, 240, .28);
  color: var(--on-dark);
}
.circle-btn-dark:hover { border-color: var(--on-dark); color: var(--on-dark); }
.circle-btn-dark:disabled {
  border-color: rgba(247, 245, 240, .28);
  color: var(--on-dark);
}

.recent-block {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.recent-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.recent-title { font-size: 36px; line-height: 1.14; }

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.album {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.album-media {
  display: block;
  color: inherit;
  text-decoration: none;
  aspect-ratio: 3 / 2;
  background: var(--line);
  box-shadow: inset 0 0 0 1px rgba(34, 35, 31, .06);
  overflow: hidden;
}
.album-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.album-media:hover img { transform: scale(1.035); }

.album figcaption {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.album figcaption a { color: var(--muted); text-decoration: none; }
.album figcaption a:hover { color: var(--ink); }

/* --- Reviews ------------------------------------------------------------ */

.reviews {
  padding: var(--section) 0;
  background: var(--dark);
  color: var(--on-dark);
}
.reviews-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.review-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
  min-height: 320px;
}

.review-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--dark-panel);
  box-shadow: inset 0 0 0 1px rgba(247, 245, 240, .14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s var(--ease);
}
.review-photo-empty {
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 0 24px;
}

.review-quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  max-width: 24em;
}
.review-quote p {
  margin: 0;
  font: italic 300 46px/1.34 var(--serif);
  text-wrap: pretty;
  transition: opacity .5s var(--ease);
}
.review-quote cite {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  font-style: normal;
}

.reviews.is-swapping .review-quote p,
.reviews.is-swapping .review-photo img { opacity: 0; }

.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.review-counter {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  color: var(--on-dark-soft);
}

/* --- Contact ------------------------------------------------------------ */

.contact { padding: 96px 0; background: var(--sand); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 96px;
  align-items: start;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-heading { font-size: 42px; line-height: 1.12; max-width: 16em; }
.contact-intro {
  margin: 0;
  font: 300 19px/1.6 var(--sans);
  color: var(--muted);
  max-width: 40ch;
}
.contact-intro a { color: var(--ink); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-wide { grid-column: 1 / -1; }
.field-label {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input,
.form textarea {
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.form textarea { line-height: 1.6; resize: vertical; }
.form input:focus,
.form textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(79, 85, 64, .45);
}
.form input::placeholder,
.form textarea::placeholder { color: #A4A69B; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-solid {
  padding: 17px 34px;
  background: var(--olive);
  border: 1px solid var(--olive);
  border-radius: 2px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.btn-solid:hover:not(:disabled) { background: var(--olive-hover); }
.btn-solid:disabled { opacity: .65; cursor: default; }

.form-note {
  font: 400 14px/1.5 var(--sans);
  color: var(--muted);
}
.form-note.is-error { color: #8C3A2B; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 96px 0 40px;
}

.footer-top {
  display: flex;
  gap: 96px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-name { font: 300 52px/1 var(--serif); letter-spacing: .04em; }
.footer-role {
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}
.footer-connect a {
  font: 400 15px/1.68 var(--sans);
  color: var(--on-dark);
  text-decoration: none;
}
.footer-connect > a:hover { text-decoration: underline; }

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(247, 245, 240, .24);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  transition: border-color .3s, background .3s;
}
.socials a:hover {
  border-color: var(--on-dark);
  background: rgba(247, 245, 240, .06);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 245, 240, .18);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.copyright { font: 400 13px/1.35 var(--sans); color: var(--on-dark-soft); }

/* --- Scroll reveal ------------------------------------------------------ */

@keyframes gbRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.reveal { opacity: 0; }
.reveal.is-in { animation: gbRise .9s var(--ease) both; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --section: 96px; }
  .about-grid { gap: 56px; }
  .contact-grid { gap: 56px; }
  .review-grid { grid-template-columns: 280px 1fr; gap: 48px; }
  .review-quote p { font-size: 38px; }
  .hero-title { font-size: 46px; }
  .footer-top { gap: 48px; }
}

/* The wordmark, nav and switcher together need ~891px of content width. Below
   that the header wraps, and a boxed switcher would strand itself on a row of
   its own. From here down it becomes a slim line of quiet type above the
   wordmark instead — less height, and it stops competing with the nav. */
@media (max-width: 980px) {
  .header-inner {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .lang {
    order: -1;
    /* the extra 6px absorbs the button padding below, so the glyphs — not the
       tap targets — line up with the gutter the wordmark and nav sit on */
    width: calc(100% + 6px);
    justify-content: flex-end;
    gap: 8px;
    padding-left: 0;
    border-left: 0;
    margin: -7px -6px -9px 0;
  }
  .lang-btn {
    padding: 7px 6px;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--muted);
    transition: color .3s var(--ease);
  }
  .lang-btn:hover { border: 0; background: none; color: var(--ink); }
  .lang-btn.is-active { background: none; color: var(--ink); }
  .lang-sep {
    display: block;
    width: 1px;
    height: 10px;
    background: var(--line);
  }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --section: 80px; }

  /* The hero frame is 16:9-ish, so a narrow viewport crops it hard from the
     sides. The couple sits at ~75% of the frame width, so the focal point has
     to move right to keep both of them inside the crop. */
  .hero-img { object-position: 95% 60%; }

  .brand-name { font-size: 26px; }
  .nav { gap: 18px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 420px; }
  .prose p { font-size: 19px; }
  .stats { gap: 40px; }
  .stat-num { font-size: 40px; }

  .album-grid { grid-template-columns: repeat(2, 1fr); }

  .review-grid { grid-template-columns: 1fr; gap: 36px; }
  .review-photo { max-width: 300px; }
  .review-quote { max-width: none; }
  .review-quote p { font-size: 32px; }

  .contact-grid { grid-template-columns: 1fr; }
  .h2 { font-size: 36px; }
  .contact-heading { font-size: 34px; }
  .footer-name { font-size: 40px; }
  .footer-bottom { margin-top: 56px; }
}

@media (max-width: 640px) {
  :root { --section: 64px; }

  html { scroll-padding-top: 76px; }

  /* Wordmark and nav each take a full line; the switcher keeps the slim
     line above them that it was given at 900px. */
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .brand { order: 1; margin-right: 0; }
  .nav { order: 2; justify-content: flex-start; width: 100%; gap: 14px 16px; }
  .nav > a { font-size: 10px; letter-spacing: .16em; }

  .hero { height: auto; min-height: 560px; padding-bottom: 72px; }
  /* Phones load a pre-cropped portrait frame, so it just needs centring. */
  .hero-img { object-position: 50% 50%; }
  .hero-content { position: relative; padding-top: 56px; }
  .hero-title { font-size: 34px; }
  .btn-ghost { padding: 14px 24px; font-size: 11px; }

  .album-grid { grid-template-columns: 1fr; gap: 20px; }

  .review-quote p { font-size: 26px; line-height: 1.36; }
  .h2 { font-size: 30px; }
  .contact-heading { font-size: 28px; }

  .form { grid-template-columns: 1fr; }
  .form-foot { gap: 16px; }
  .btn-solid { width: 100%; }

  .footer-name { font-size: 34px; }
  .footer-top { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; }
  .reveal, .reveal.is-in { opacity: 1; animation: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
