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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

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

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

::selection {
  background: var(--color-selection);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Page shell ---------- */
.page {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-page-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page__main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  position: sticky;
  top: 0;
  background: var(--color-page-bg);
  z-index: 10;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-header);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__logo {
  height: 26px;
  width: auto;
  flex: none;
}

.site-header__wordmark {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  text-transform: uppercase;
  color: var(--color-header-text);
}

.site-header__wordmark strong {
  font-weight: 900;
  color: var(--color-accent);
}

.site-header__ig {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--color-header-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-header-icon);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header__ig:hover,
.site-header__ig:active,
.pill--link:hover,
.pill--link:active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

/* ---------- Hero row (hero + profile card) ---------- */
.hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 6vw 48px;
  align-items: start;
  background-image: url('/assets/banner-shape.webp');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: min(900px, 80%) auto;
}

@media (min-width: 900px) {
  .hero-row {
    grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
    justify-content: space-between;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-width: 0;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 14px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 20px;
}

.hero__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary-38);
  margin: 0 0 12px;
}

.hero__link {
  color: var(--color-accent);
  font-weight: 700;
}

.hero__link:hover {
  text-decoration: underline;
}

.hero__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary-48);
  margin: 0;
}

/* ---------- Profile card ---------- */
.profile-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.profile-card__photo-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  flex: none;
}

.profile-card__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 181, 248, 0.22), rgba(0, 86, 158, 0.05) 65%, transparent 72%);
}

.profile-card__photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  position: relative;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--color-accent-light);
}

.profile-card__photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
}

.profile-card__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin: 4px 0 0;
}

.profile-card__bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-secondary-40);
  margin: 0;
}

.profile-card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

/* ---------- Accessibility utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Watches grid ---------- */
.watches {
  padding: 0 6vw 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  flex: 1;
}

.watches__empty {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--color-text-secondary-48);
  text-align: center;
  padding: 32px 0;
}

/* ---------- Watch card ---------- */
.watch-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.watch-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.watch-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.watch-card__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-card__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: var(--color-placeholder-text);
}

.watch-card__photo-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--color-photo-glow);
  pointer-events: none;
}

.watch-card__photo-friso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.watch-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  border-top: 1px solid var(--color-border-soft);
}

.watch-card__links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.watch-card__links .pill--link {
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 6px;
  gap: 4px;
  font-size: 11px;
}

.watch-card__links .pill__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}

.pill--link {
  border: 1px solid var(--color-pill-link-border);
  border-radius: var(--radius-button);
  color: var(--color-text-secondary-38);
  min-height: 32px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill.pill--spec {
  background: var(--color-spec-bg);
  border: 1px solid var(--color-spec-border);
  border-radius: var(--radius-spec);
  color: var(--color-text-secondary-38);
  padding: 5px 9px;
}

.watch-card__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-card__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-soft);
}

.watch-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.watch-card__price-currency {
  color: var(--color-accent);
}

.watch-card__price-note {
  font-size: 12.5px;
  color: var(--color-text-secondary-48);
  margin: 0;
}

.watch-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-card__description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary-40);
  margin: 0;
}

.watch-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  border-radius: var(--radius-button);
  transition: background 0.2s ease;
}

.watch-card__cta:hover {
  background: var(--color-cta-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 6vw;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--color-text-secondary-48);
}

.site-footer__text {
  margin: 0;
}

.site-footer__ig {
  font-weight: 600;
}

/* ---------- Mobile touch targets ---------- */
@media (max-width: 480px) {
  .pill {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* ---------- Watch photo trigger (opens gallery) ---------- */
.watch-card__photo-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.watch-card__photo-trigger:focus-visible {
  outline-offset: -3px;
}

.watch-card__photo-img {
  transition: transform 0.35s ease;
}

.watch-card__photo-trigger:hover .watch-card__photo-img,
.watch-card__photo-trigger:focus-visible .watch-card__photo-img {
  transform: scale(1.035);
}

/* ---------- Gallery / lightbox ---------- */
.gallery {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
}

.gallery[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery::backdrop {
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
  .gallery[open] {
    animation: gallery-fade-in 0.2s ease;
  }

  .gallery[open]::backdrop {
    animation: gallery-fade-in 0.2s ease;
  }
}

@keyframes gallery-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.gallery__inner {
  position: relative;
  width: min(90vw, 1100px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery__stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.gallery__media-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  min-height: 120px;
}

.gallery__media {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-card);
  background: #000000;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-button);
  background: rgba(20, 20, 20, 0.55);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery__nav:hover {
  background: rgba(20, 20, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.45);
}

.gallery__nav[hidden] {
  display: none;
}

.gallery__nav--prev {
  left: 8px;
}

.gallery__nav--next {
  right: 8px;
}

.gallery__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-button);
  background: rgba(20, 20, 20, 0.55);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery__close:hover {
  background: rgba(20, 20, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.45);
}

.gallery__counter {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.gallery__counter[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .gallery__inner {
    width: 100vw;
  }

  .gallery__nav {
    width: 36px;
    height: 36px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .watch-card {
    transition: none;
  }

  .watch-card:hover {
    transform: none;
  }

  .watch-card__photo-trigger:hover .watch-card__photo-img,
  .watch-card__photo-trigger:focus-visible .watch-card__photo-img {
    transform: none;
  }
}