/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  transform: translateY(-3px);
}

.btn--primary:hover svg { transform: translate(2px, -2px); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--block { width: 100%; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
}

.hero__marquee {
  position: absolute;
  top: 54%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.hero__marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-left 34s linear infinite;
}

.hero__marquee-track span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 14vw, 220px);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 242, 238, 0.09);
  padding-right: 40px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(56px, 12vw, 148px);
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--text-dim), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-drip 1.8s ease-in-out infinite;
}

@keyframes scroll-drip {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

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

/* ==========================================================================
   Keywords marquee band
   ========================================================================== */
.tags-marquee {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tags-marquee__row { overflow: hidden; }
.tags-marquee__row + .tags-marquee__row { margin-top: 16px; }

.tags-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 26px);
  text-transform: uppercase;
}

.tags-marquee__track span:nth-child(odd) { color: var(--text); }
.tags-marquee__track span:nth-child(even) { color: var(--accent); font-size: 0.6em; }

.tags-marquee__row--left .tags-marquee__track {
  animation: marquee-left 30s linear infinite;
}

.tags-marquee__row--right .tags-marquee__track {
  animation: marquee-right 30s linear infinite;
}

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

/* ==========================================================================
   Clients
   ========================================================================== */
.clients {
  padding: 56px var(--gutter);
  text-align: center;
}

.clients__label {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 44px;
}

.clients__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.clients__name em {
  font-style: normal;
  font-size: 0.6em;
  color: var(--text-dim);
  margin-left: 4px;
}

.clients__name--muted {
  color: var(--text-dim);
  font-weight: 500;
  text-transform: none;
  font-family: var(--font-body);
  font-size: 14px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(40px, 6vw, 100px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.about__visual { position: relative; }

.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-dim);
}

.about__photo svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1.2;
}

.about__photo span {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about__badge {
  position: absolute;
  right: -16px;
  bottom: -16px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 20px 40px -12px rgba(255, 90, 43, 0.5);
}

.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.about__badge span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about__text {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 58ch;
}

.about__stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin: 36px 0;
  flex-wrap: wrap;
}

.stat__number,
.stat__suffix {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--accent);
}

.stat p {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.skill__head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.skill__head span:first-child { color: var(--text); font-weight: 500; }
.skill__head span:last-child { color: var(--text-dim); }

.skill__bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.skill__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width 1.4s var(--ease);
}

.about__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Pinned intro — shared by Services and Projects: a big word pins and
   scales while the section's cards settle into place on scroll
   ========================================================================== */
.pin-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px var(--gutter) 0;
}

.pin-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 17vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  user-select: none;
}

.pin-section__desc {
  position: relative;
  z-index: 3;
  max-width: 46ch;
  margin: 24px auto 48px;
  padding: 0 var(--gutter);
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
}

/* ==========================================================================
   Services grid — blocks settle into place beneath the pinned title
   ========================================================================== */
.services__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.service-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.service-block:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.service-block__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background 0.4s var(--ease);
}

.service-block:hover .service-block__icon { background: var(--accent); }

.service-block__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s var(--ease);
}

.service-block:hover .service-block__icon svg { stroke: var(--accent-contrast); }

.service-block h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.service-block p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
}

/* ==========================================================================
   Projects grid — cards settle into place beneath the pinned title
   ========================================================================== */
.projects__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.project-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card--lg .project-card__media { aspect-ratio: 16 / 10; }

.project-card__ph {
  width: 100%;
  height: 130%;
  transform: translateY(-8%);
  transition: transform 0.6s var(--ease);
}

.project-card__ph--1 { background: linear-gradient(145deg, #3a2a20, #ff5a2b); }
.project-card__ph--2 { background: linear-gradient(145deg, #1f2a2a, #2b8f80); }
.project-card__ph--3 { background: linear-gradient(145deg, #2a2020, #b23b3b); }
.project-card__ph--4 { background: linear-gradient(145deg, #232336, #5b5be0); }

.project-card:hover .project-card__ph { transform: translateY(-8%) scale(1.08); }

.project-card__info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-card__tag {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
}

.project-card__info h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.project-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8) rotate(-20deg);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), background 0.4s var(--ease);
}

.project-card:hover .project-card__arrow {
  transform: scale(1) rotate(0deg);
  opacity: 1;
  background: var(--accent);
}

.project-card__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card:hover .project-card__arrow svg { stroke: var(--accent-contrast); }

/* ==========================================================================
   Experience timeline
   ========================================================================== */
.timeline {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--border);
}

.timeline__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.timeline__date {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline__body h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.timeline__meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.timeline__body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__body li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.timeline__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: var(--surface);
}

.testimonial-card p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
  color: var(--text);
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card footer strong { font-size: 14px; }
.testimonial-card footer span { font-size: 13px; color: var(--text-dim); }

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */
.accordion {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 19px);
  text-align: left;
}

.accordion__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.accordion__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(135deg);
  background: var(--accent);
  border-color: var(--accent);
}

.accordion__item.is-open .accordion__icon svg { stroke: var(--accent-contrast); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.accordion__panel p {
  color: var(--text-muted);
  padding-bottom: 24px;
  max-width: 60ch;
  line-height: 1.6;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(40px, 6vw, 100px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.contact__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.contact__list li span:first-child {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.contact__list li a:hover { color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d67a;
  box-shadow: 0 0 0 4px rgba(56, 214, 122, 0.2);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-bottom: 1px solid var(--border);
  padding: 10px 2px;
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; }

.form-field select option { background: var(--surface); }

.contact__form-note {
  font-size: 13px;
  color: var(--accent);
  min-height: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about__visual { max-width: 320px; }

  .testimonials__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .clients__grid { gap: 16px 28px; }
  .menu-overlay__footer { gap: 28px; }
}
