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

html, body {
  height: 100%;
  overflow: hidden;
  background: 
    linear-gradient(160deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.95) 25%, rgba(5,5,5,0.9) 50%, rgba(5,5,5,0.95) 75%, rgba(5,5,5,1) 100%),
    url('https://images.unsplash.com/photo-1640357960494-9242650846d3?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  color: #e0e0e0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  cursor: none;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { background-size: 100%; }
  to   { background-size: 110%; }
}

/* Custom cursor */

#custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: rgba(212, 160, 106, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 8px rgba(212, 160, 106, 0.3);
  will-change: transform;
}

#custom-cursor.active {
  width: 16px;
  height: 16px;
  background: rgba(212, 160, 106, 0.5);
  box-shadow: 0 0 14px rgba(212, 160, 106, 0.4);
}

/* Grain overlay */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url('grain.svg');
  animation: grainShift 0.4s steps(3) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(-2%, -3%) rotate(0.5deg); }
  66%  { transform: translate(3%, 1%) rotate(-0.5deg); }
}

/* Ambient light */

#ambient-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background 0.15s ease;
}

#app {
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 1;
  cursor: none;
}

/* States */

.state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0.7s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  cursor: none;
}

#state-materials,
#state-story,
#state-services {
  justify-content: flex-start;
  padding-top: 320px;
}

#state-projects {
  justify-content: flex-start;
  padding-top: 360px;
}

.state.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0s;
}

#state-hub {
  flex-direction: column;
  justify-content: center;
  padding-top: 320px;
}

#state-hub .container {
  flex: none;
  align-self: center;
  max-width: 640px;
  width: 100%;
}

.state.active .container > * {
  animation: contentFadeIn 0.6s ease both;
}

.state.active .container > *:nth-child(1) { animation-delay: 0.1s; }
.state.active .container > *:nth-child(2) { animation-delay: 0.25s; }
.state.active .container > *:nth-child(3) { animation-delay: 0.4s; }
.state.active .container > *:nth-child(4) { animation-delay: 0.55s; }

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

.container {
  max-width: 640px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

/* Entry */

#state-entry {
  justify-content: flex-start;
  padding-top: 8vh;
}

#state-entry .container {
  max-width: none;
}

#state-entry .container .entry-logo-wrap {
  animation: none;
}

.entry-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2px;
}

.entry-logo {
  width: 600px;
  max-width: 92vw;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(1.08);
  filter: drop-shadow(0 0 0 rgba(212, 160, 106, 0));
  animation: logoReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  will-change: transform, opacity, filter;
}

@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(1.08); filter: drop-shadow(0 0 0 rgba(212,160,106,0)); }
  60%  { opacity: 1; filter: drop-shadow(0 0 20px rgba(212,160,106,0.4)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 12px rgba(212,160,106,0.25)); }
}

.entry-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 220, 170, 0.08) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmerSweep 1.2s ease 0.6s forwards;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

#entry-mark {
  transition: transform 0.15s ease-out;
}

#state-entry #entry-tagline {
  transition: transform 0.15s ease-out;
  opacity: 0;
  transform: translateY(8px);
  animation: taglineReveal 0.8s ease 1.2s forwards;
}

@keyframes taglineReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.entry-divider {
  width: 40px;
  height: 1px;
  background: #d4a06a;
  margin: 0 auto 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1s forwards;
}

.entry-sub {
  font-size: 0.75rem;
  color: #d4a06a;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 200;
  margin: -4px 0 1.8rem;
  font-family: Inter, system-ui, sans-serif;
  text-shadow: 0 0 6px rgba(212, 160, 106, 0.3), 0 0 20px rgba(212, 160, 106, 0.1);
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.4s forwards;
}

.entry-btn {
  background: none;
  border: 1px solid rgba(212, 160, 106, 0.3);
  color: #d4a06a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.7rem 2.2rem;
  cursor: none;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.8s forwards, btnPulse 3s ease-in-out 2.6s infinite;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.entry-btn:hover {
  border-color: #d4a06a;
  background: rgba(212, 160, 106, 0.08);
}

@keyframes btnPulse {
  0%, 100% { border-color: rgba(212, 160, 106, 0.3); }
  50%      { border-color: rgba(212, 160, 106, 0.6); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tagline {
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.12em;
  font-family: 'Playfair Display', serif;
  animation: neonGlow 3s ease-in-out infinite;
}

@keyframes neonGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(212, 160, 106, 0.15); }
  50%      { text-shadow: 0 0 10px rgba(212, 160, 106, 0.3), 0 0 20px rgba(212, 160, 106, 0.1); }
}

/* Hub */

.hub-label {
  font-size: 0.6rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.hub-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.6rem;
  color: #ccc;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.hub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.hub-card {
  background: rgba(13, 13, 13, 0.4);
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 0;
  cursor: none;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, transform 0.4s ease;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
}

.hub-card:hover {
  border-color: rgba(212, 160, 106, 0.25);
  background: rgba(13, 13, 13, 0.7);
  box-shadow: 0 4px 30px rgba(212, 160, 106, 0.05);
  transform: translateY(-2px);
}

.card-accent {
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.4s ease;
  flex-shrink: 0;
}

.hub-card:hover .card-accent {
  background: #d4a06a;
}

.card-content {
  padding: 1.25rem 1.1rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: #ccc;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.hub-card:hover .card-title {
  color: #d4a06a;
}

.card-desc {
  font-size: 0.75rem;
  color: #555;
  font-weight: 300;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.hub-card:hover .card-desc {
  color: #777;
}

/* Top Nav */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  z-index: 10;
}

.nav-logo-home {
  height: 60px;
  width: auto;
  opacity: 0.92;
  cursor: none;
  transition: opacity 0.3s ease;
}

.nav-logo-home:hover {
  opacity: 1;
}

.nav-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(0,0,0,0.3);
  padding: 0.2rem;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-tab {
  background: none;
  border: none;
  color: #555;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 300;
  cursor: none;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  transition: color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.04em;
}

.nav-tab:hover {
  color: #aaa;
  background: rgba(255,255,255,0.03);
}

.nav-tab.active {
  color: #d4a06a;
  background: rgba(212, 160, 106, 0.1);
}

/* Content Pages */

h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  font-family: 'Playfair Display', serif;
}

h3 {
  font-family: 'Playfair Display', serif;
}

.section-intro {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* Material Grid */

.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.material-item {
  background: rgba(13, 13, 13, 0.5);
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  cursor: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.material-item:hover {
  border-color: rgba(212, 160, 106, 0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.material-image-wrap {
  overflow: hidden;
  height: 80px;
}

.material-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.material-item:hover .material-image-wrap img {
  transform: scale(1.08);
}

.material-preview {
  padding: 1rem 1rem 0.75rem;
}

.material-preview h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 0.3rem;
}

.material-preview p {
  font-size: 0.8rem;
  color: #888;
}

.material-detail {
  display: none;
}

/* Material detail overlay panel */

.material-detail-panel {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.material-detail-panel.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.material-detail-panel .detail-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 1.2rem;
  cursor: none;
  font-family: inherit;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  line-height: 1;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-detail-panel .detail-close:hover {
  color: #fff;
  background: rgba(212, 160, 106, 0.15);
  border-color: rgba(212, 160, 106, 0.3);
}

.detail-card {
  background: rgba(13, 13, 13, 0.95);
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  max-width: 520px;
  width: 90vw;
  overflow: visible;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.material-detail-panel.open .detail-card {
  transform: scale(1) translateY(0);
}

.detail-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.detail-body {
  padding: 1.5rem;
  text-align: left;
}

.detail-body h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ddd;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.detail-body p {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.detail-props {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-props span {
  font-size: 0.7rem;
  color: #888;
  border: 1px solid #222;
  border-radius: 2px;
  padding: 0.2rem 0.6rem;
}

/* Story */

.story-container {
  max-width: 540px;
}

.story-text {
  font-size: 1rem;
  color: #999;
  line-height: 1.9;
  margin-bottom: 1rem;
  font-weight: 300;
}

.divider {
  width: 60px;
  height: 1px;
  background: #d4a06a;
  margin: 1.5rem auto;
  transition: width 1s ease;
  opacity: 0.3;
}

.state.active .divider {
  width: 80px;
}

.story-motto {
  font-size: 1.1rem;
  color: #bbb;
  font-style: italic;
  letter-spacing: 0.02em;
  font-family: 'Playfair Display', serif;
}

/* Services */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.service-item {
  border-left: 1px solid rgba(212, 160, 106, 0.15);
  padding-left: 1rem;
  transition: border-color 0.4s ease;
}

.service-item:hover {
  border-left-color: #d4a06a;
}

.service-item h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #ddd;
  margin-bottom: 0.3rem;
}

.service-item p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.7;
}

/* Contact */

.contact-container {
  max-width: 480px;
}

.contact-card {
  background: rgba(13, 13, 13, 0.5);
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
  border-color: rgba(212, 160, 106, 0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.contact-label {
  font-size: 0.7rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.contact-phone {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #d4a06a;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: text-shadow 0.3s ease;
  text-shadow: 0 0 6px rgba(212, 160, 106, 0.15);
}

.contact-phone:hover {
  text-shadow: 0 0 12px rgba(212, 160, 106, 0.35), 0 0 30px rgba(212, 160, 106, 0.12);
}

.contact-hint {
  font-size: 0.65rem;
  color: #555;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.contact-reveal {
  position: relative;
}

.contact-reveal-btn {
  background: rgba(13, 13, 13, 0.6);
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  color: #d4a06a;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 300;
  cursor: none;
  padding: 1rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-reveal-btn:hover {
  border-color: rgba(212, 160, 106, 0.3);
  background: rgba(212, 160, 106, 0.05);
}

.contact-reveal-btn.revealed {
  display: none;
}

.contact-phone.hidden {
  display: none;
}

.contact-phone.revealed {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #d4a06a;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: text-shadow 0.3s ease;
  text-shadow: 0 0 6px rgba(212, 160, 106, 0.15);
  letter-spacing: 0.04em;
}

.contact-phone.revealed span {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.contact-phone.revealed span::before {
  content: attr(data-ch);
}

.contact-phone.revealed span {
  position: relative;
  left: var(--dx, 0);
}

/* Honeypot — invisible to humans, trap for bots */
.contact-hp {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Gallery */

#state-projects {
  padding-top: 0;
  justify-content: center;
}

#state-projects .top-nav {
  position: fixed;
  z-index: 10;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 316px 2rem 2rem;
  position: relative;
}

.gallery-frame {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: none;
  position: relative;
}

.gallery-frame.loading::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: galleryShimmer 1.5s ease-in-out infinite;
}

@keyframes galleryShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-frame:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.gallery-frame img.loaded {
  opacity: 1;
}

.gallery-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.gallery-number {
  font-size: 0.7rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
  font-family: Inter, system-ui, sans-serif;
}

.gallery-bar {
  display: flex;
  gap: 4px;
}

.gallery-bar span {
  width: 20px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s ease;
  border-radius: 1px;
}

.gallery-bar span.active {
  background: #d4a06a;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.06);
  font-size: 2.5rem;
  cursor: none;
  padding: 2rem 1rem;
  transition: color 0.3s ease;
  font-family: inherit;
  line-height: 1;
  z-index: 2;
}

.gallery-prev:hover,
.gallery-next:hover {
  color: #d4a06a;
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

/* Overlay / lightbox */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  cursor: none;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s 0s;
}

.overlay-image-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.5s ease;
}

.overlay.open .overlay-image-wrap {
  transform: scale(1);
}

.overlay-image-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 60px rgba(0,0,0,0.6);
  cursor: pointer;
}

.overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #666;
  font-size: 2rem;
  cursor: none;
  font-family: inherit;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 2;
}

.overlay-close:hover {
  color: #d4a06a;
}

.overlay-prev,
.overlay-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #444;
  font-size: 3rem;
  cursor: none;
  font-family: inherit;
  padding: 1rem 0.75rem;
  transition: color 0.3s ease;
  z-index: 2;
  line-height: 1;
}

.overlay-prev:hover,
.overlay-next:hover {
  color: #d4a06a;
}

.overlay-prev { left: 0.5rem; }
.overlay-next { right: 0.5rem; }

.overlay-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #444;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 300;
}

/* Text reveal */

.reveal-text > span,
.reveal-stagger {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-text.revealed > span,
.reveal-stagger.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* SEO Footer */

.seo-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.seo-footer p {
  font-size: 0.7rem;
  color: #444;
  font-weight: 200;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin: 0;
}

.seo-credit {
  margin-top: 0.75rem !important;
  font-size: 0.6rem !important;
  color: #333 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  .entry-logo {
    width: 480px;
  }
  .tagline {
    font-size: 1.1rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .top-nav {
    padding: 0.4rem 1.25rem;
  }
  .nav-logo-home {
    height: 44px;
  }
  .material-grid {
    gap: 1rem;
  }
  .material-image-wrap {
    height: 90px;
  }
  #state-hub {
    padding-top: 240px;
  }
  #state-materials,
#state-story,
#state-services {
    padding-top: 270px;
  }
}

@media (max-width: 600px) {
  .entry-logo {
    width: 350px;
  }
  .tagline {
    font-size: 1rem;
  }
  .material-grid {
    grid-template-columns: 1fr;
  }
  h2 {
    font-size: 1.4rem;
  }
  .gallery-frame {
    max-width: 480px;
  }
  .gallery {
    padding: 176px 1.5rem 2rem;
  }
  .top-nav {
    padding: 0.25rem 1.25rem 0.15rem;
  }
  .nav-logo-home {
    height: 36px;
  }
  .nav-tab {
    font-size: 0.65rem;
    padding: 0.3rem 0.45rem;
  }
  .service-list {
    gap: 1.25rem;
  }
  .service-item {
    padding-left: 0.75rem;
  }
  .story-text {
    font-size: 0.9rem;
  }
  .material-preview {
    padding: 0.75rem 0.75rem 0.5rem;
  }
  .material-image-wrap {
    height: 130px;
  }
  .seo-footer {
    padding: 2rem 1.25rem 1.5rem;
  }
  .seo-footer p {
    font-size: 0.65rem;
  }
  .card-content {
    padding: 1rem 0.9rem;
  }
  #state-hub {
    padding-top: 180px;
  }
  #state-materials,
#state-story,
#state-services {
    padding-top: 260px;
  }
}

@media (max-width: 400px) {
  .entry-logo {
    width: 260px;
  }
  .tagline {
    font-size: 0.85rem;
  }
  .container {
    padding: 1rem;
  }
  .material-image-wrap {
    height: 110px;
  }
  .top-nav {
    padding: 0.2rem 0.75rem 0.1rem;
  }
  .nav-tab {
    font-size: 0.55rem;
    padding: 0.2rem 0.35rem;
  }
  .nav-logo-home {
    height: 32px;
  }
  .gallery {
    padding: 146px 1rem 2rem;
  }
  #state-hub {
    padding-top: 140px;
  }
  #state-materials,
#state-story,
#state-services {
    padding-top: 190px;
  }
  .overlay-prev,
  .overlay-next {
    font-size: 2rem;
  }
}

@media (pointer: coarse) {
  #custom-cursor {
    display: none;
  }
  html, body, #app, .state, .entry-btn, .hub-card, .material-item,
  .nav-tab, .nav-logo-home, .gallery-prev, .gallery-next,
  .overlay-close, .overlay-prev, .overlay-next {
    cursor: auto;
  }
}



