/* ===============================
   13TH ROW STUDIOS — MAIN REDESIGN
=============================== */

:root{
  --bg: #090b0f;
  --bg-soft: #0e1117;
  --panel: rgba(12, 15, 20, 0.78);
  --panel-strong: rgba(10, 13, 18, 0.92);
  --line: rgba(183, 138, 80, 0.18);
  --line-strong: rgba(183, 138, 80, 0.4);
  --gold: #b78a50;
  --gold-soft: #d7b36a;
  --text: #f5efe5;
  --text-soft: rgba(245, 239, 229, 0.72);
  --text-faint: rgba(245, 239, 229, 0.52);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.tr-container {
  width: min(100% - 32px, 1380px);
  margin: 0 auto;
}

.tr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}

.tr-kicker::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  background: rgba(212, 173, 99, 0.8);
}

.tr-display,
.tr-section-title,
.tr-service-card h3,
.tr-work-meta h3,
.tr-education-card h3,
.tr-education-item h4,
.tr-contact-block p,
.tr-quote {
  font-family: 'Cormorant Garamond', serif;
}

.tr-display {
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 1.6rem;
  font-weight: 600;
  color: #f7f2ea;
}

.tr-display span,
.tr-section-title span,
.tr-quote span {
  color: var(--gold-soft);
  font-style: italic;
}

.tr-lead,
.tr-section-text,
.tr-service-card p,
.tr-portfolio-note,
.tr-education-card p,
.tr-education-card li,
.tr-education-item p,
.tr-contact-block span,
.tr-contact-form label {
  color: var(--text-soft);
}

.tr-lead {
  max-width: 560px;
  font-size: 1.14rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.tr-btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: all .25s ease;
}

.tr-btn-gold {
  background: linear-gradient(135deg, #d7b36a 0%, #b78a50 100%);
  color: #16110a;
  border-color: rgba(215, 179, 106, 0.55);
}

.tr-btn-gold:hover {
  transform: translateY(-1px);
  color: #120d06;
  box-shadow: 0 18px 40px rgba(183, 138, 80, 0.18);
}

.tr-btn-ghost {
  border-color: rgba(183, 138, 80, 0.4);
  color: var(--text);
  background: transparent;
}

.tr-btn-ghost:hover {
  background: rgba(183, 138, 80, 0.08);
  color: #fff3d4;
  border-color: rgba(212, 173, 99, 0.75);
}

.tr-section {
  padding: 7.5rem 0;
  border-top: 1px solid rgba(183, 138, 80, 0.1);
}

.tr-section-head {
  max-width: 720px;
  margin-bottom: 3.25rem;
}

.tr-section-title {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tr-section-text {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 0;
}

/* HERO */
.tr-hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.tr-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.tr-hero-copy {
  padding: 2rem 0;
}

.tr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tr-scroll-note {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tr-scroll-note::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(212, 173, 99, 0.8);
}

.tr-hero-visual {
  display: flex;
  justify-content: flex-end;
}

.tr-hero-panel {
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 1 / 1;
  border-left: 1px solid rgba(183, 138, 80, 0.16);
  background:
    radial-gradient(circle at 70% 20%, rgba(183, 138, 80, 0.14), transparent 20%),
    linear-gradient(90deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 78px),
    linear-gradient(180deg, rgba(255,255,255,0.01) 0, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 78px);
  overflow: hidden;
}

.tr-hero-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(9rem, 20vw, 18rem);
  color: rgba(255,255,255,0.08);
  transform: translateY(10px);
}

.tr-hero-number {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  text-align: right;
}

.tr-hero-number span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold-soft);
  line-height: 0.9;
}

.tr-hero-number small {
  display: block;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.tr-orb {
  position: absolute;
  border: 1px solid rgba(212, 173, 99, 0.65);
  border-radius: 999px;
}

.tr-orb::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: rgba(212, 173, 99, 0.85);
}

.tr-orb-top {
  width: 44px;
  height: 44px;
  top: 21%;
  left: 18%;
}

/* STATS */
.tr-stats {
  padding: 0 0 2rem;
}

.tr-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(183, 138, 80, 0.12);
  border-bottom: 1px solid rgba(183, 138, 80, 0.12);
}

.tr-stat-card {
  min-height: 210px;
  padding: 2.4rem 2rem;
  border-right: 1px solid rgba(183, 138, 80, 0.08);
  background: rgba(255,255,255,0.01);
}

.tr-stat-card:last-child {
  border-right: 0;
}

.tr-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 4.8rem);
  color: var(--gold-soft);
  line-height: 0.9;
  margin-bottom: 1rem;
}

.tr-stat-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.8;
}

/* SERVICES */
.tr-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(183, 138, 80, 0.12);
  border-left: 1px solid rgba(183, 138, 80, 0.08);
}

.tr-service-card {
  min-height: 390px;
  padding: 2.6rem 2rem 2rem;
  border-right: 1px solid rgba(183, 138, 80, 0.08);
  border-bottom: 1px solid rgba(183, 138, 80, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.01));
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.tr-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 173, 99, 0.2);
  background: linear-gradient(180deg, rgba(183, 138, 80, 0.04), rgba(255,255,255,0.012));
}

.tr-service-number {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 2.4rem;
  letter-spacing: 0.16em;
}

.tr-service-card h3 {
  font-size: 3rem;
  line-height: 0.95;
  margin-bottom: 1rem;
  font-weight: 600;
}

.tr-service-card p {
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 360px;
}

.tr-service-price {
  margin-top: 2rem;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}

/* WORK */
.tr-portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tr-inline-link {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  white-space: nowrap;
}

.tr-inline-link span {
  margin-left: 8px;
}

.tr-work-slider {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tr-work-slider::-webkit-scrollbar {
  height: 8px;
}
.tr-work-slider::-webkit-scrollbar-thumb {
  background: rgba(183, 138, 80, 0.35);
  border-radius: 999px;
}

.tr-work-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 1.25rem;
}

.tr-work-item {
  position: relative;
}

.tr-work-image {
  height: 470px;
  border: 1px solid rgba(183, 138, 80, 0.12);
  background:
    radial-gradient(circle at 70% 15%, rgba(183, 138, 80, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 1.5rem;
  color: rgba(255,255,255,0.16);
  font-size: 2rem;
  font-family: 'Cormorant Garamond', serif;
}

.tr-work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.tr-work-meta h3 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 600;
}

.tr-work-meta span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.tr-portfolio-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* QUOTE */
.tr-quote-section {
  padding: 7rem 0;
  border-top: 1px solid rgba(183, 138, 80, 0.1);
  border-bottom: 1px solid rgba(183, 138, 80, 0.1);
}

.tr-quote {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: clamp(2.9rem, 6vw, 5.5rem);
  line-height: 0.98;
  font-style: italic;
  font-weight: 500;
}

.tr-quote-meta {
  text-align: center;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
}

/* EDUCATION */
.tr-education-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.tr-education-list {
  margin-top: 3rem;
  border-top: 1px solid rgba(183, 138, 80, 0.12);
}

.tr-education-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(183, 138, 80, 0.08);
}

.tr-education-item > span {
  color: var(--gold);
  font-size: 1rem;
  padding-top: 0.25rem;
}

.tr-education-item h4 {
  font-size: 2.15rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.tr-education-item p {
  margin: 0;
  line-height: 1.8;
}

.tr-education-card {
  border: 1px solid rgba(183, 138, 80, 0.35);
  padding: 3rem;
  background:
    radial-gradient(circle at 100% 100%, rgba(183, 138, 80, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.012));
  position: sticky;
  top: 120px;
}

.tr-education-card h3 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.tr-education-card p {
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.tr-education-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.tr-education-card li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.tr-education-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* CONTACT */
.tr-contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
  align-items: start;
}

.tr-contact-info {
  margin-top: 2.5rem;
}

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

.tr-contact-block span {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.tr-contact-block p {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
}

.tr-contact-block p a:hover {
  color: var(--gold-soft);
}

.tr-contact-formwrap {
  border: 1px solid rgba(183, 138, 80, 0.14);
  background: rgba(255,255,255,0.01);
  padding: 2rem;
}

.tr-contact-form {
  display: grid;
  gap: 1.3rem;
}

.tr-form-group {
  display: grid;
  gap: 0.7rem;
}

.tr-contact-form label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
}

.tr-contact-form input,
.tr-contact-form select,
.tr-contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(183, 138, 80, 0.16);
  color: var(--text);
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color .22s ease, background .22s ease;
}

.tr-contact-form input::placeholder,
.tr-contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.tr-contact-form input:focus,
.tr-contact-form select:focus,
.tr-contact-form textarea:focus {
  border-color: rgba(212, 173, 99, 0.5);
  background: rgba(255,255,255,0.03);
}

/* LEGACY SAFE */
.main-content,
.content-center,
.hero-title,
.hero-subtitle,
.social-icons,
#main-content {
  all: unset;
}

/* MOBILE */
@media (max-width: 1199.98px) {
  .tr-hero-grid,
  .tr-education-grid,
  .tr-contact-grid {
    grid-template-columns: 1fr;
  }

  .tr-hero-visual {
    justify-content: start;
  }

  .tr-education-card {
    position: relative;
    top: 0;
  }

  .tr-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tr-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .tr-hero {
    min-height: auto;
    padding: 3rem 0 2.5rem;
  }

  .tr-container {
    width: min(100% - 24px, 1380px);
  }

  .tr-display {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .tr-section-title {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .tr-lead,
  .tr-section-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .tr-hero-panel {
    aspect-ratio: 1.1 / 1;
  }

  .tr-stats-grid {
    grid-template-columns: 1fr;
  }

  .tr-stat-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(183, 138, 80, 0.08);
  }

  .tr-stat-card:last-child {
    border-bottom: 0;
  }

  .tr-portfolio-head {
    flex-direction: column;
    align-items: start;
  }

  .tr-work-track {
    grid-auto-columns: minmax(240px, 82vw);
  }

  .tr-work-image {
    height: 360px;
  }

  .tr-education-card,
  .tr-contact-formwrap {
    padding: 1.4rem;
  }

  .tr-contact-block p {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .tr-btn,
  .tr-btn-gold,
  .tr-btn-ghost {
    width: 100%;
  }

  .tr-hero-actions {
    flex-direction: column;
  }
}