.hero-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 9rem var(--space-xl) 5rem;
  overflow: hidden;
}

.hero-section__background {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: grayscale(1);
  opacity: 0.24;
}

.hero-section__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(184, 147, 90, 0.08), transparent 68%);
}

.hero-section__line {
  display: none;
}

.hero-section__content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-12px);
  animation: heroCharIn 0.5s ease forwards;
}

@keyframes heroCharIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

em.hero-char {
  display: inline;
  font-style: italic;

}
.hero-cursor {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 300;
  animation: cursorBlink 0.8s ease infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-section__title {
  margin-top: var(--space-md);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
}

.hero-section__summary {
  max-width: 440px;
  margin: var(--space-md) 0 var(--space-lg);
  color: var(--color-text-muted);
  font-size: 1.3rem;
  line-height: 1.8;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
}
.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroCharIn 0.6s ease forwards;
}

.hero-anim {
  opacity: 0;
  transform: translateY(16px);
  animation: heroCharIn 0.7s ease forwards;
}

@keyframes heroCharIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 3rem 2.5rem;
  background: var(--color-surface);
  transition: background var(--transition-medium);
}

.service-card::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.service-card:hover {
  background: #161616;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__title {
  margin: 0 0 1.5rem;
  color: var(--color-accent-muted);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight:400;
  line-height: 1;
  min-height: 4.6rem;
  transition: color var(--transition-fast);
}

.service-card:hover .service-card__title {
  color: rgba(184, 147, 90, 0.25);
}

.service-card__description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.process-section {
  background: var(--color-surface);
}

.process-section__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 5rem;
  position: relative;
}

.process-section__timeline::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent-muted), var(--color-accent-muted), transparent);
  z-index: 1;
}

.process-step {
  position: relative;
  min-height: 280px;
  padding: 0 var(--space-md) var(--space-xl);
  text-align: center;
}

.process-step__number {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-md);
  border: 1px solid var(--color-accent-muted);
  border-radius: 50%;
  color: var(--color-accent);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.process-step__visual {
  position: absolute;
  inset: 3.5rem var(--space-sm) 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--space-xl);
  padding-bottom: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 111, 82, 0.3);
  transition: box-shadow var(--transition-fast);
}

.process-step__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: grayscale(50%) brightness(0.55);
  transform: scale(1.4);
  z-index: 0;
  transition: transform 1.5s ease, filter 0.5s ease;
}

.process-step:hover .process-step__image {
  filter: grayscale(0%) brightness(0.45);
  transform: scale(1.07);
}

.process-step:hover .process-step__visual {
  box-shadow: 0 0 24px rgba(184, 147, 90, 0.35);
}

.process-step:hover .process-step__number {
  border-color: var(--color-accent-soft);
  background: var(--color-accent);
  color: var(--color-background);
  box-shadow: 0 0 16px rgba(184, 147, 90, 0.45);
}

.process-step__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
}

.process-step__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step__title {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process-step__divider {
  width: 20%;
  height: 2px;
  margin: 0 auto 0.6rem;
  border-radius: 8px;
  background: var(--color-accent);
}

.process-step__description {
  margin: 0;
  padding: 0 var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
}

.team-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2.5rem;
  border: 1px solid rgba(184, 147, 90, 0.22);
  background: var(--color-surface);
  text-align: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover {
  border-color: rgba(184, 147, 90, 0.46);
  box-shadow: 0 0 24px rgba(184, 147, 90, 0.12);
}

.team-card__photo {
  width: 140px;
  height: 140px;
  min-height: 140px;
  border: 2px solid var(--color-accent-muted);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  filter: grayscale(1);
  flex-shrink: 0;
  transition: border-color var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover .team-card__photo {
  border-color: var(--color-accent);
  filter: grayscale(0);
  box-shadow: 0 0 20px rgba(184, 147, 90, 0.35);
}

.team-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
}

.team-card__role {
  margin: 0.3rem 0 var(--space-sm);
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  align-items: center;

}

.team-card__description {
  max-width: 340px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  flex: 1;
  text-align: center;
}

.team-card__links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  align-items: center;
  margin-top: var(--space-sm);
}

.team-card__link {
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent-muted);
  border-radius: 50%;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.team-card__link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.team-card__icon {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  filter: brightness(0.7);
}

.portfolio-section {
  background: var(--color-surface);
}

.portfolio-section__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  margin-top: 5rem;
  background: var(--color-line);
}

.project-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--color-text);
  background: var(--color-surface-raised);
  text-align: left;
}

.project-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 400px;
}

.project-card__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: grayscale(100%) sepia(50%) brightness(0.3);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.project-card:hover .project-card__image {
  filter: grayscale(50%) sepia(50%) brightness(0.3);
  transform: scale(1.05);
}

.project-card__caption {
  position: absolute;
  inset: auto 0 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}

.project-card__category {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.project-card__name {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
}

.marquee-banner {
  overflow: hidden;
  padding: 1.8rem 0;
  background: var(--color-surface);
  border-top: 1px solid rgba(139, 111, 82, 0.5);
  border-bottom: 1px solid rgba(139, 111, 82, 0.5);
}

.marquee-banner__track {
  display: flex;
  width: fit-content;
  animation: marquee 28s linear infinite;
}

.marquee-banner__list {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-banner__item {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-text-muted);
  padding: 0 2rem;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.marquee-banner__item:hover {
  color: var(--color-accent);
}

.marquee-banner__separator {
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-section {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.contact-section__content {
  width: min(100%, var(--content-width));
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-section__title {
  margin: var(--space-sm) 0 var(--space-md);
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.08;
}

.contact-section__summary {
  width: 80%;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.9;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-sm);
}

.contact-method {
  display: flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  padding: 0;
}

.contact-method__icon {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}

.contact-method__label {
  display: block;
  color: var(--color-accent);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-method__value {
  color: var(--color-text);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-sm);
  padding: 0;
  border: 0;
  background: transparent;
}

.form-field {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.form-field--wide,
.form-button {
  grid-column: 1 / -1;
}

.form-field__label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.form-field__control {
  width: 100%;
  min-height: 3.45rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface-raised);
  color: var(--color-text);
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  resize: none;
}

.form-field__control:focus {
  border-color: var(--color-accent);
}

textarea.form-field__control {
  min-height: 240px;
}

.form-button {
  align-self: start;
  min-height: 0;
  padding: 1rem 2.5rem;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
}

.project-modal__panel {
  position: relative;
  width: min(100%, 920px);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: var(--space-md);
  border: 1px solid rgba(184, 147, 90, 0.32);
  background: var(--color-surface);
}

.project-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(184, 147, 90, 0.34);
  background: rgba(10, 10, 10, 0.8);
  color: var(--color-text);
  font-size: 1.8rem;
}

.project-modal__title {
  margin: 0 3rem var(--space-sm) 0;
  color: var(--color-accent);
}

.project-modal__media {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #050505;
}

.project-modal__detail {
  margin: var(--space-sm) 0 0;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-toast {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 50;
  max-width: min(360px, calc(100% - 2rem));
  padding: 1rem 1.2rem;
  border: 1px solid rgba(184, 147, 90, 0.34);
  background: var(--color-surface);
  color: var(--color-text);
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.contact-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-toast.is-error {
  border-color: #9d4d4d;
}

@media (max-width: 980px) {
  .services-section__grid,
  .process-section__timeline,
  .team-section__grid,
  .contact-section__content {
    grid-template-columns: 1fr;
  }

  .portfolio-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:first-child {
    grid-row: span 1;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .team-card,
  .contact-form,
  .portfolio-section__grid {
    grid-template-columns: 1fr;
  }

  .contact-section__content {
    gap: var(--space-lg);
  }

  .process-section__timeline {
    gap: 2.5rem;
  }

  .process-section__timeline::before {
    display: none;
  }

  .project-card:first-child {
    grid-row: span 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .team-card__photo {
    min-height: 140px;
  }
}
