@font-face {
  font-family: 'GT Canon';
  src: url(fonts/gt-canon/GT-Canon-M-Standard-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Canon';
  src: url(fonts/gt-canon/GT-Canon-L-Standard-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Canon';
  src: url(fonts/gt-canon/GT-Canon-M-Standard-Regular-Italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Canon';
  src: url(fonts/gt-canon/GT-Canon-L-Standard-Bold-Italic.woff2) format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Pressura';
  src: url(fonts/gt-pressura/GT-Pressura-Standard-Light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Pressura';
  src: url(fonts/gt-pressura/GT-Pressura-Standard-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Pressura';
  src: url(fonts/gt-pressura/GT-Pressura-Standard-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Standard';
  src: url(fonts/gt-standard/GT-Standard-M-Standard-Light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Standard';
  src: url(fonts/gt-standard/GT-Standard-M-Standard-Bold-Oblique.woff2) format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Standard';
  src: url(fonts/gt-standard/GT-Standard-M-Standard-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #FAF8F3;
  --bg-footer: #EDEBE5;
  --text: #1A1A18;
  --text-secondary: #6B6961;
  --text-tertiary: #9B978D;
  --red: #E62E00;
  --red-light: rgba(230, 46, 0, 0.08);
  --border: #D9D6CE;
  --pressura: 'GT Pressura', sans-serif;
  --canon: 'GT Canon', Georgia, serif;
  --standard: 'GT Standard', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--canon);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 74px; /* compensate for fixed header */
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  isolation: isolate;
  background: var(--bg);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}

.logo img {
  height: 26px;
  width: auto;
}

nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  font-family: var(--pressura);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 200;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 — avoids iOS 100vh bugs */
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

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

.mobile-nav a {
  font-family: var(--pressura);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--border);
  transition: color 0.2s ease;
}

.mobile-nav a:first-child {
  border-top: 0.5px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--red);
}

main {
  flex: 1;
  max-width: 780px;
  padding: 0 3rem;
  width: 100%;
}

.page { display: none; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.page.active { display: block; opacity: 1; transform: translateY(0); }

.page-home {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.home-headline {
  font-family: var(--canon);
  font-size: 28px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.home-narrative p {
  font-family: var(--canon);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  color: var(--text);
}

.home-narrative p:last-child { margin-bottom: 0; }

.home-narrative a.brand-link {
  color: var(--red);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--red);
  transition: background 0.3s ease;
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 2px;
  white-space: nowrap;
}

.home-narrative a.brand-link:hover {
  background: var(--red-light);
}

.home-divider {
  width: 100%;
  height: 0.5px;
  background: var(--border);
  margin: 3rem 0 1.75rem;
}

.home-team-link {
  font-family: var(--pressura);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.home-team-link:hover {
  gap: 12px;
}

.page-team {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.page-title {
  font-family: var(--standard);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.team-member {
  text-align: left;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #E8E5DD;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-name {
  font-family: var(--pressura);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.team-role {
  font-family: var(--canon);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-photos {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.photo-item {
  aspect-ratio: 1;
  background: #E8E5DD;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.photo-item:hover { opacity: 0.88; }

.photo-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-contact {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.contact-content {
  max-width: 420px;
}

.contact-intro {
  font-family: var(--canon);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 3rem;
  color: var(--text);
}

.contact-block {
  margin-bottom: 2rem;
}

.contact-label {
  font-family: var(--pressura);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-value {
  font-family: var(--standard);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.contact-value a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.contact-value a:hover {
  background: var(--red-light);
}

footer {
  background: var(--bg-footer);
  padding: 3.5rem 3rem 2.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 780px;
}

.footer-logo {
  height: 76px;
  width: auto;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.footer-blocks {
  display: flex;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.footer-block-label {
  font-family: var(--pressura);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-block-value {
  font-family: var(--standard);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-block-value a {
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-block-value a:hover { opacity: 0.7; }

.footer-copyright {
  font-family: var(--standard);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  body { padding-top: 66px; } /* smaller header on mobile */
  header { padding: 1.25rem 1.5rem; }
  nav { display: none; }
  .hamburger { display: block; }
  main { padding: 0 1.5rem; }
  footer { padding: 2.5rem 1.5rem 2rem; }
  .home-headline { font-size: 26px; }
  .home-narrative p { font-size: 17px; }
  .page-title { font-size: 22px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-blocks { flex-direction: column; gap: 1.5rem; }
}

/* ===== Lightbox / photo viewer ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 6rem 1rem;
  box-sizing: border-box;
  min-height: 0;
}

.lightbox-frame {
  background: #FFFFFF;
  padding: 10px;
  box-shadow:
    0 2px 8px rgba(26, 26, 24, 0.05),
    0 16px 40px rgba(26, 26, 24, 0.08);
  line-height: 0;
  max-width: 100%;
  max-height: 100%;
  display: inline-block;
}

.lightbox-image {
  max-width: min(88vw, 1400px);
  max-height: calc(80vh - 20px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 220ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-image.loaded {
  opacity: 1;
}

.lightbox-meta {
  padding: 1.25rem 3rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  min-height: 3rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  justify-content: space-between;
}

.lightbox-caption {
  font-family: var(--pressura);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 26, 24, 0.78);
}

.lightbox-counter {
  font-family: var(--pressura);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(26, 26, 24, 0.40);
  font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: rgba(26, 26, 24, 0.45);
  transition: color 180ms ease, transform 180ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: rgba(26, 26, 24, 0.95);
}

.lightbox-close {
  top: 1.75rem;
  right: 2rem;
  width: 28px;
  height: 28px;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-nav::before {
  content: '';
  width: 14px;
  height: 14px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  display: block;
}

.lightbox-prev::before {
  transform: rotate(-45deg);
  margin-left: 4px;
}

.lightbox-next::before {
  transform: rotate(135deg);
  margin-right: 4px;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox.is-first .lightbox-prev,
.lightbox.is-last .lightbox-next {
  opacity: 0;
  pointer-events: none;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lightbox-stage { padding: 3.5rem 1rem 0.5rem; }
  .lightbox-meta { padding: 1rem 1.5rem 1.5rem; gap: 1rem; flex-wrap: wrap; }
  .lightbox-close { top: 1.25rem; right: 1.25rem; }
  .lightbox-nav { display: none; }
  .lightbox-caption { font-size: 11px; }
}
