
.page-top {
  padding-top: 64px;
}


.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.intro-list {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intro-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

.intro-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
background-image: url('../assets/downloadbackground.webp');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 64px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  margin-bottom: 1.4rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 0.95;
  margin-bottom: 1.8rem;
  max-width: 700px;
}

.hero__title em {
  display: block;
  font-style: italic;
  color: rgba(255,255,255,0.68);
  font-weight: 400;
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.80;
  font-weight: 300;
  margin-bottom: 3rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.3));
}

.home-intro {
  padding: 8rem 0 4rem;
}

.home-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.home-intro__text { }

.home-intro__text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-top: 0.5rem;
}

.home-intro__text p {
  margin-top: 1.4rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
}

.home-intro__text .btn {
  margin-top: 2.5rem;
}

.home-intro__stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  padding: 1.8rem 1.6rem;
  border-radius: 18px;
}

.stat-box__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-box__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}


.about-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
  padding-top: 64px;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
background-image: url('../assets/downloadbackground.webp');
  background-size: cover;
  background-position: center top;
}

.about-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--about-overlay);
}

.about-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
}

.about-hero__pfp {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2220;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.about-hero__pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__pfp-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6B2737 0%, #9A7A4A 100%);
  font-size: 2.8rem;
  user-select: none;
}

.about-hero__name h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: #ffffff;
  font-weight: 700;
}

.about-hero__username {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
}

.about-body {
  padding: 7rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text h2 {
  margin-top: 0.5rem;
  line-height: 1.1;
}

.about-text p {
  margin-top: 1.3rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.workflow {
  margin-top: 2rem;
}

.workflow__step {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.workflow__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--card-border);
}

.workflow__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--subtle);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.workflow__body h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 0.3rem;
  padding-top: 0.35rem;
}

.workflow__body p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}


.work-header {
  text-align: center;
  padding: 6rem 0 3rem;
}

.work-header h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.work-header p {
  margin: 1.2rem auto 0;
  max-width: 460px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.82;
  font-weight: 300;
}

.model-section {
  padding: 0 0 5rem;
}

.model-viewer {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--model-bg);
  box-shadow: var(--shadow-card);
  position: relative;
}

#model-canvas {
  width: 100%;
  height: 520px;
  display: block;
  cursor: grab;
  outline: none;
}

#model-canvas:active { cursor: grabbing; }

.model-viewer__label {
  position: absolute;
  bottom: 1.3rem;
  left: 1.6rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.model-viewer__hint {
  position: absolute;
  top: 1.3rem;
  right: 1.6rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 0.38rem 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.70rem;
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-viewer__info {
  padding: 1.6rem 2rem;
}

.model-viewer__info h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 0.3rem;
}

.model-viewer__info p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.projects-list {
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.project-entry__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.project-entry__title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 780px;
  margin-bottom: 2rem;
}

.project-desc + .project-desc {
  margin-top: 1rem;
}

.img-grid {
  display: grid;
  gap: 1rem;
}

.img-grid--full { grid-template-columns: 1fr; }
.img-grid--2    { grid-template-columns: 1fr 1fr; }
.img-grid--3    { grid-template-columns: 2fr 1fr; }
.img-grid--2b   { grid-template-columns: 1fr 1fr; margin-top: 1rem; }

.img-grid--3 .img-sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: relative;
  background: var(--subtle);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1) !important;
}

.project-img:hover img {
  transform: scale(1.04);
}

.project-img--hero img  { min-height: 400px; }
.project-img--med  img  { min-height: 260px; }

.cta-strip {
  padding: 5rem 0;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-strip__inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-strip h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 0.5rem;
}

.cta-strip p {
  margin: 1rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.82;
  font-weight: 300;
}



.contact-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
background-image: url('../assets/downloadbackground.webp');
  background-size: cover;
  background-position: center;
}

.contact-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--contact-overlay);
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.contact-hero__content h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.05;
}

.contact-hero__content h1 em {
  display: block;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.contact-hero__content p {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-body {
  padding: 7rem 0;
}

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

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-note {
  border-radius: 24px;
  padding: 2.8rem;
}

.contact-note h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 1.2rem;
}

.contact-note p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-note p strong {
  color: var(--title);
  font-weight: 600;
}

.contact-note p:last-child {
  margin-bottom: 0;
}



.asset-library {
  padding: 6rem 0;
  background: var(--subtle);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 auto;
}
.asset-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              border-color 0.25s,
              box-shadow 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--shadow-card);
}

.asset-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.asset-card__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--model-bg);
  overflow: hidden;
}

.asset-thumb-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.asset-card__hover-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}

.asset-card:hover .asset-card__hover-hint {
  opacity: 1;
}

.asset-card__info {
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid var(--card-border);
}

.asset-card__meta {
  margin-bottom: 0.4rem;
}

.asset-card__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 100px;
  padding: 0.22rem 0.7rem;
}

.asset-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--title);
  margin-top: 0.35rem;
}

.model-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.model-modal.is-open {
  pointer-events: all;
  opacity: 1;
}

.model-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.model-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.model-modal.is-open .model-modal__box {
  transform: scale(1) translateY(0);
}

.model-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--card-border);
}

.model-modal__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.model-modal__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--title);
  margin-top: 0.1rem;
}

.model-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--subtle);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.model-modal__close:hover {
  background: var(--subtle-hover);
  border-color: var(--accent);
}

.model-modal__close svg {
  transition: none !important;
}

#modal-canvas {
  width: 100% !important;
  height: 520px;
  display: block;
  cursor: grab;
  background: var(--model-bg);
}

#modal-canvas:active { cursor: grabbing; }

.model-modal__hint {
  padding: 0.75rem 1.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  text-align: center;
}

@media (max-width: 640px) {
  #modal-canvas { height: 320px; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .asset-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .home-intro .container { grid-template-columns: 1fr; gap: 3rem; }
  .home-intro__stat-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .home-intro__stat-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .img-grid--2,
  .img-grid--3,
  .img-grid--2b { grid-template-columns: 1fr; }
  .img-grid--3 .img-sub-grid { grid-template-columns: 1fr 1fr; margin-top: 1rem; }
  .about-hero__content { flex-direction: column; align-items: flex-start; }
  #model-canvas { height: 320px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 3rem; }
  .img-grid--3 .img-sub-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}