:root {
  color-scheme: light;
  --background: #ffffff;
  --panel: #f4faff;
  --border: #cbdce6;
  --text: #0c151c;
  --muted: #405564;
  --accent: #075c88;
  --sky: #9bdcff;
  --details-accent: #aee2ff;
  --details-tint: #e2f4ff;
  font-family: Inter, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section, figure, details { scroll-margin-top: 2rem; }

.wrap { width: min(calc(100% - 6rem), 82rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .42rem; font-size: 1.4rem; letter-spacing: -.06em; font-weight: 800; }
.brand-mark { display: grid; place-items: center; overflow: hidden; width: 42px; height: 42px; }
.brand-mark img { display: block; width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.4rem); font-size: .9rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .45em; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4.25rem);
  padding: clamp(1.5rem, 4.6vw, 4.3rem);
  margin-top: clamp(1rem, 3vw, 3rem);
  border: 1px solid #162b3b;
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 79% 40%, #213b4d 0%, #101820 53%, #0a1016 82%);
  color: #ffffff;
}
.home-intro h1 { margin: 0; max-width: 13ch; font-size: clamp(2.4rem, 5.2vw, 5.65rem); }
.home-intro h1 span, .home-intro .card-link { color: var(--sky); }
.home-intro h1 span { display: inline; }
.home-intro .lede { color: #d5e7f2; max-width: 31ch; }
.home-hero :focus-visible { outline-color: var(--sky); }
.showcase { min-width: 0; border: 1px solid #82b6d0; border-radius: .85rem; background: #ffffff; overflow: hidden; }
.showcase-stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 5 / 4; min-height: 14rem; }
.showcase-stage:focus-visible { outline-offset: -3px; }
.showcase-slide { position: absolute; inset: 0; display: grid; place-items: center; visibility: hidden; background: #ffffff; }
.showcase-slide.is-current { visibility: visible; z-index: 1; }
.showcase-slide img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.showcase-slide .showcase-logo { width: 90%; height: 92%; object-fit: contain; }
.showcase-pack { background: radial-gradient(ellipse at 48% 43%, #e2f5ff, #a9d9f1 76%); }
.showcase-pack img { width: 92%; height: 94%; object-fit: contain; }

.featured, .collection { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.featured-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .65rem 1rem; margin-bottom: 1.3rem; }
.featured-header > h2 { margin-top: 0; }
.page-intro h1 { margin-top: 0; }
.page-intro .lede { max-width: 48ch; }
.collection .preset-grid { margin-top: 2.2rem; }
.paid-catalog { margin-top: clamp(2rem, 4.5vw, 4rem); padding-top: clamp(1.25rem, 2.75vw, 2rem); border-top: 1px solid var(--border); }
.paid-catalog .preset-grid { margin-top: 1.15rem; }
.preset-price { display: block; color: var(--accent); font-size: clamp(1.35rem, 2.1vw, 1.8rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.preset-card-copy .preset-price { margin-top: .95rem; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.preset-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: .7rem; background: var(--panel); }
.preset-card:only-child { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr; }
.preset-card:hover { border-color: var(--accent); }
.preset-box { width: 100%; height: 100%; aspect-ratio: 5 / 4; padding: .4rem; object-fit: contain; background: radial-gradient(ellipse, #e5f6ff 15%, #add9ee 100%); }
.preset-card-copy { align-self: center; padding: clamp(1.3rem, 4vw, 3rem); }
.preset-card-copy h2, .preset-card-copy h3 { margin: 0; font-size: clamp(1.65rem, 3.15vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.preset-card-copy p { margin-top: .65rem; color: var(--muted); line-height: 1.6; }
.card-link { display: inline-block; margin-top: 1.15rem; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(2rem, 8vw, 7rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 7rem); }
.about-logo { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: .75rem; }
.home-actions, .about-actions, .product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.65rem; }
.home-actions a, .about-actions a, .product-actions a { margin-top: 0; }
.back-link { display: inline-block; margin-top: 2rem; color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }

.hero { display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr); gap: clamp(1.2rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 6.4vw, 6.5rem); }
.product-hero { padding-top: clamp(2rem, 4vw, 3.8rem); }
.product-label { display: flex; align-items: center; gap: .9rem; }
.product-box { display: block; width: clamp(4.8rem, 8vw, 7.2rem); aspect-ratio: 1; object-fit: contain; border-radius: .45rem; background: var(--details-tint); }
.eyebrow { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
h1, h2 { font-weight: 760; letter-spacing: -.065em; }
h1 { font-size: clamp(2.95rem, 5.55vw, 6.05rem); line-height: .97; margin-top: 1.15rem; }
h1 span { display: block; }
h1 span + span { color: var(--accent); }
.byline { font-size: .95rem; color: var(--muted); margin-top: 1.25rem; }
.byline a { text-decoration: underline; text-underline-offset: .28em; }
.lede { margin-top: 1.4rem; font-size: 1.07rem; line-height: 1.65; color: var(--muted); max-width: 34ch; }
.button { display: inline-flex; align-items: center; min-height: 3rem; margin-top: 1.65rem; padding: .7rem 1.2rem; border-radius: .35rem; background: var(--sky); color: #0b1a24; font-weight: 750; }
.button:hover { background: #c9ebff; }
.button.preset-show-cta { border: 1px solid var(--details-accent); background: var(--details-accent); color: #151a2a; box-shadow: 0 0 1.2rem #9ab8ff42; }
.button.preset-show-cta:hover { background: #f5f7ff; }

.comparison { min-width: 0; border-radius: .8rem; background: var(--panel); border: 1px solid var(--border); }
.product-photo { overflow: hidden; }
.product-photo > img { display: block; width: 100%; height: auto; }
.compare-frame { --position: 50%; position: relative; aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate; border-radius: .75rem .75rem 0 0; background: #1d253a; }
.wildlife-product .compare-frame { aspect-ratio: 1600 / 914; }
.compare-frame:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.before-image { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.photo-label { position: absolute; top: .8rem; padding: .32rem .56rem; border: 1px solid #fff7; border-radius: .24rem; background: #0b1019e8; color: white; font-size: .875rem; line-height: 1.2; font-weight: 650; }
.photo-label-before { left: .8rem; }
.photo-label-after { right: .8rem; }
.divider { position: absolute; inset-block: 0; left: var(--position); width: 2px; translate: -50% 0; background: white; pointer-events: none; }
.grip { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 2.65rem; height: 2.65rem; display: flex; align-items: center; justify-content: center; gap: .22rem; border: 2px solid white; border-radius: 50%; background: #101725e8; }
.grip i { width: .44rem; height: .44rem; border: solid white; border-width: 0 2px 2px 0; rotate: 135deg; }
.grip i + i { rotate: -45deg; }
.compare-frame[data-view='before'] .photo-label-after,
.compare-frame[data-view='after'] .photo-label-before,
.compare-frame[data-view='before'] .divider,
.compare-frame[data-view='after'] .divider { visibility: hidden; }
.compare-input { position: absolute; inset: 0; appearance: none; width: 100%; height: 100%; margin: 0; border: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-input::-webkit-slider-thumb { appearance: none; width: 2px; height: 2px; }
.compare-input::-moz-range-thumb { width: 2px; height: 2px; border: 0; }
.compare-caption { min-height: 3.75rem; padding: .65rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; color: var(--muted); font-size: .875rem; }
.view-options { display: inline-flex; gap: .15rem; border: 1px solid var(--border); border-radius: .35rem; padding: .14rem; }
.view-options button { background: transparent; color: var(--muted); border: 0; border-radius: .24rem; padding: .38rem .55rem; }
.view-options button:hover { color: var(--text); }
.view-options button[aria-pressed='true'] { background: var(--sky); color: var(--text); }

h2 { font-size: clamp(2rem, 3.4vw, 3.65rem); line-height: 1.06; margin-top: .65rem; }
.preset-details { border-top: 1px solid var(--border); padding-block: clamp(2.6rem, 5vw, 5rem); }
.preset-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.65rem;
  padding: .75rem 1.15rem;
  border: 1px solid var(--details-accent);
  border-radius: .6rem;
  background: linear-gradient(105deg, var(--details-tint), var(--panel) 83%);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.preset-disclosure > summary::-webkit-details-marker { display: none; }
.preset-disclosure > summary:hover, .preset-disclosure[open] > summary { border-color: var(--text); }
.disclosure-hide, .preset-disclosure[open] .disclosure-show { display: none; }
.preset-disclosure[open] .disclosure-hide { display: inline; }
.disclosure-icon { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--details-accent); color: #151a2a; }
.disclosure-icon::before, .disclosure-icon::after { content: ''; grid-area: 1 / 1; width: .75rem; height: 2px; border-radius: 1px; background: currentColor; }
.disclosure-icon::after { transform: rotate(90deg); }
.preset-disclosure[open] .disclosure-icon::after { transform: rotate(0deg); }
.preset-disclosure-content { padding-top: clamp(1.65rem, 4vw, 3.2rem); }
.preset-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.75rem, 6vw, 6rem); }
.preset-overview .lede { max-width: 49ch; }
.preset-details h3 { font-size: clamp(1.2rem, 2.45vw, 1.65rem); letter-spacing: -.025em; }
.preset-uses { margin: .75rem 0 0; padding-inline-start: 1.25rem; color: var(--muted); line-height: 1.65; }
.preset-uses li + li { margin-top: .15rem; }
.lightroom-settings { margin-top: clamp(2.25rem, 4.3vw, 4rem); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.settings-card { padding: 1.15rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--panel); }
.settings-card caption, .color-grading h4 { color: var(--text); text-align: start; font-size: 1.125rem; font-weight: 750; }
.settings-card caption { padding-bottom: .65rem; }
.settings-card table { width: 100%; border-collapse: collapse; text-align: start; font-variant-numeric: tabular-nums; }
.settings-card th, .settings-card td { padding: .53rem 0; text-align: start; font-weight: 500; }
.settings-card thead th { color: var(--muted); font-size: .875rem; }
.settings-card tbody tr { border-top: 1px solid var(--border); }
.settings-card tr > :last-child { padding-inline-start: .65rem; text-align: end; }
.settings-card td { color: var(--accent); }
.color-grading, .color-mix { margin-top: .85rem; }
.color-mix { padding-inline: clamp(.65rem, 2.5vw, 1.15rem); }
.color-mix tr > :not(:first-child) { padding-inline-start: .4rem; text-align: end; }
.color-grading dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1.15rem; margin-top: .75rem; }
.color-grading dt { font-weight: 650; }
.color-grading dd { margin-top: .25rem; color: var(--muted); }
.purchase { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; background: var(--panel); border-radius: .65rem; border: 1px solid var(--border); padding: clamp(1.35rem, 3.5vw, 3rem); }
.preset-purchase-summary { display: flex; align-items: center; gap: 1rem; }
.preset-purchase-summary > img { flex: 0 0 auto; display: block; width: clamp(4rem, 8vw, 7rem); height: auto; aspect-ratio: 1; object-fit: contain; }
.purchase h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); }
.preset-request { max-width: 29ch; }
.preset-request .button { margin-top: 0; background: var(--details-accent); }
.preset-request .button:hover { background: var(--sky); }
.preset-request p { margin-top: .55rem; color: var(--muted); line-height: 1.5; }
.paid-request { max-width: 36ch; margin-top: 1.35rem; }
.paid-request .button { margin-top: .7rem; }
.footer { color: var(--muted); font-size: .875rem; margin-top: 1.55rem; border-top: 1px solid var(--border); }

@media (min-width: 66rem) {
  .settings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .color-grading-numeric dl { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 46rem) {
  .settings-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 58rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  h1 { font-size: clamp(3rem, 10vw, 5.5rem); }
  .lede { max-width: 52ch; }
}

@media (max-width: 40rem) {
  .home-hero { grid-template-columns: minmax(0, 1fr); padding: .85rem; }
  .showcase { order: -1; }
  .showcase-stage { aspect-ratio: 5 / 3; }
  .home-intro { padding: .35rem .35rem .65rem; }
  .home-intro h1 { font-size: clamp(2.25rem, 9vw, 3.9rem); }
  .home-intro .lede { margin-top: .9rem; }
  .home-actions { margin-top: 1.1rem; }
  .preset-card:only-child, .about { grid-template-columns: minmax(0, 1fr); }
  .about-logo { max-width: 27rem; }
}

@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.8rem; }
  .brand { gap: .35rem; }
  nav { gap: .75rem; }
  .preset-overview, .settings-grid, .color-grading dl { grid-template-columns: minmax(0, 1fr); }
  .purchase { align-items: flex-start; flex-direction: column; }
  .compare-caption { padding-inline: .55rem; }
  .view-options button { padding-inline: .4rem; }
}

@media (max-width: 23rem) {
  .brand { gap: .25rem; }
  nav { gap: .5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes section-enter {
    from { opacity: .25; translate: 0 1.4rem; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes card-sheen {
    from { transform: translateX(-108%); }
    to { transform: translateX(108%); }
  }

  @keyframes slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  @keyframes slide-out {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); visibility: hidden; }
  }

  @keyframes show-details-glow {
    0%, 100% { box-shadow: 0 0 0 0 #adc6ff00, 0 0 1.2rem #9ab8ff42; }
    45% { box-shadow: 0 0 0 .45rem #adc6ff31, 0 0 1.65rem #9ab8ff6b; }
  }

  .home-intro > * { animation: section-enter 610ms cubic-bezier(.2, .75, .25, 1) backwards; }
  .home-intro > :nth-child(2) { animation-delay: 115ms; }
  .home-intro > :nth-child(3) { animation-delay: 230ms; }
  .showcase { animation: section-enter 570ms cubic-bezier(.2, .75, .25, 1) backwards; }
  .showcase .is-current.is-entering { animation: slide-in 950ms cubic-bezier(.65, 0, .25, 1) both; }
  .showcase .is-leaving { visibility: visible; animation: slide-out 950ms cubic-bezier(.65, 0, .25, 1) both; }
  .preset-show-cta { animation: show-details-glow 1.55s ease .4s 2; }

  [data-reveal].is-visible { animation: section-enter 570ms cubic-bezier(.2, .75, .25, 1) backwards; }
  [data-reveal='delayed'].is-visible { animation-delay: 140ms; }
  [data-reveal]:focus-within { animation: none; }

  nav a:not([aria-current]) { position: relative; transition: color 180ms ease; }
  nav a:not([aria-current])::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: .34rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
  }
  nav a:not([aria-current]):is(:hover, :focus-visible)::after { transform: scaleX(1); }

  .preset-card { position: relative; transition: transform 230ms ease, border-color 230ms ease, box-shadow 230ms ease; }
  .preset-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 33%, #c5d6ff19 50%, transparent 67%);
    transform: translateX(-108%);
    pointer-events: none;
  }
  .preset-card:is(:hover, :focus-visible) { transform: translateY(-7px) scale(1.01); box-shadow: 0 15px 32px #04070f83; }
  .preset-card:is(:hover, :focus-visible)::after { animation: card-sheen 620ms ease-out; }

  .product-actions .button, .about-actions .button { transition: background-color 180ms ease, translate 180ms ease; }
  .product-actions .button:hover, .about-actions .button:hover { translate: 0 -2px; }
  .view-options button { transition: background-color 160ms ease, color 160ms ease; }
  .preset-disclosure > summary { transition: border-color 180ms ease; }
  .disclosure-icon::after { transition: transform 200ms ease; }
}
