/*
Theme Name: Gonzalo Torres Academic
Theme URI: https://www.luc.edu/stritch/molecularpharmacologyandneuroscience/
Author: Codex
Description: Professional WordPress theme for Torres Lab with editable research, people, publications, techniques, news, and join pages.
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: gonzalo-torres-academic
*/

:root {
  --gt-bg: #f5f3ee;
  --gt-bg-soft: #ebe6dc;
  --gt-bg-paper: #fffdf8;
  --gt-ink: #111009;
  --gt-ink-muted: #5d594e;
  --gt-ink-light: #807a6c;
  --gt-crimson: #c0392b;
  --gt-crimson-dark: #8f261d;
  --gt-crimson-soft: #f2ded9;
  --gt-line: #ddd6ca;
  --gt-line-dark: rgba(17, 16, 9, 0.18);
  --gt-shadow: 0 24px 70px rgba(17, 16, 9, 0.09);
  --gt-radius: 8px;
  --gt-max: 1180px;
  --gt-nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gt-bg);
  color: var(--gt-ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 16, 9, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(17, 16, 9, 0.025) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 58%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.gt-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--gt-nav-height);
  background: rgba(245, 243, 238, 0.88);
  border-bottom: 1px solid var(--gt-line);
  backdrop-filter: blur(18px);
}

.gt-nav-inner {
  width: min(calc(100% - 40px), var(--gt-max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gt-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  white-space: nowrap;
}

.gt-brand span,
.gt-nav-links a:hover,
.gt-kicker,
.gt-section-number,
.gt-pub-year,
.gt-text-link {
  color: var(--gt-crimson);
}

.gt-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gt-nav-links li {
  list-style: none;
}

.gt-nav-links a {
  color: var(--gt-ink-muted);
  transition: color 180ms ease;
}

.gt-nav-links li,
.gt-footer nav li {
  list-style: none;
}

.gt-section {
  padding: 116px 0;
  scroll-margin-top: var(--gt-nav-height);
}

.gt-container,
.gt-footer-inner {
  width: min(calc(100% - 40px), var(--gt-max));
  margin: 0 auto;
}

.gt-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: var(--gt-nav-height);
  border-bottom: 1px solid var(--gt-line);
}

.gt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding: 74px 0 44px;
}

.gt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gt-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gt-crimson);
}

.gt-hero h1,
.gt-section-title h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.96;
  margin: 0;
}

.gt-hero h1 {
  max-width: 760px;
  font-size: clamp(4.1rem, 10vw, 8.9rem);
}

.gt-hero h1 span {
  color: var(--gt-crimson);
}

.gt-title {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.55;
  color: var(--gt-ink-muted);
}

.gt-role {
  margin: 26px 0 0;
  display: grid;
  gap: 7px;
}

.gt-actions,
.gt-filter-row,
.gt-link-pair,
.gt-profile-buttons,
.gt-footer nav {
  display: flex;
  flex-wrap: wrap;
}

.gt-actions {
  gap: 14px;
  margin-top: 38px;
}

.gt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--gt-ink);
  border-radius: var(--gt-radius);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.gt-button:hover {
  transform: translateY(-2px);
}

.gt-button-primary {
  background: var(--gt-crimson);
  border-color: var(--gt-crimson);
  color: #fffdf8;
}

.gt-button-primary:hover {
  background: var(--gt-crimson-dark);
  border-color: var(--gt-crimson-dark);
}

.gt-button-secondary:hover {
  background: var(--gt-ink);
  color: var(--gt-bg-paper);
}

.gt-hero-panel,
.gt-contact-card,
.gt-form-card,
.gt-focus-card,
.gt-table-wrap {
  background: var(--gt-bg-paper);
  border: 1px solid var(--gt-line);
}

.gt-hero-panel {
  position: relative;
  padding: 30px;
  box-shadow: var(--gt-shadow);
}

.gt-hero-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gt-line);
  pointer-events: none;
}

.gt-portrait {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--gt-radius);
  border: 1px solid var(--gt-line);
  background: var(--gt-bg-soft);
  aspect-ratio: 4 / 3;
}

.gt-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gt-portrait::after {
  content: "Gonzalo Torres, PhD";
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 16, 9, 0.78);
  color: #fffdf8;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gt-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gt-line);
  border: 1px solid var(--gt-line);
}

.gt-stat {
  background: var(--gt-bg-paper);
  padding: 24px 16px;
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.gt-stat strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--gt-crimson);
}

.gt-stat span,
.gt-label {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gt-ink-muted);
}

.gt-award {
  position: relative;
  margin-top: 26px;
  padding: 28px;
  background: var(--gt-crimson);
  color: #fffdf8;
  border-radius: var(--gt-radius);
}

.gt-award .gt-label {
  color: rgba(255, 253, 248, 0.76);
}

.gt-award h2 {
  margin: 12px 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.gt-award p {
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
}

.gt-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: gtFadeUp 760ms ease forwards;
}

.gt-delay-1 { animation-delay: 90ms; }
.gt-delay-2 { animation-delay: 190ms; }
.gt-delay-3 { animation-delay: 290ms; }
.gt-delay-4 { animation-delay: 390ms; }

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

.gt-section-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  align-items: baseline;
  margin-bottom: 54px;
  border-top: 1px solid var(--gt-line-dark);
  padding-top: 28px;
}

.gt-section-number {
  font-family: "DM Mono", monospace;
  font-size: 0.84rem;
}

.gt-section-title h2 {
  font-size: clamp(3.1rem, 6vw, 5.8rem);
}

.gt-section-title p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--gt-ink-muted);
  font-size: 1.04rem;
}

.gt-research-grid,
.gt-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.gt-prose {
  display: grid;
  gap: 20px;
  font-size: 1.04rem;
  color: var(--gt-ink-muted);
}

.gt-prose p,
.gt-focus-card p {
  margin: 0;
}

.gt-focus-list {
  display: grid;
  gap: 14px;
}

.gt-focus-card {
  padding: 22px 22px 22px 20px;
  border-left: 5px solid var(--gt-crimson);
  border-radius: var(--gt-radius);
  box-shadow: 0 14px 36px rgba(17, 16, 9, 0.045);
}

.gt-focus-card h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.gt-focus-card p {
  color: var(--gt-ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.gt-publications {
  background: var(--gt-bg-soft);
  border-top: 1px solid var(--gt-line);
  border-bottom: 1px solid var(--gt-line);
}

.gt-filter-row {
  gap: 10px;
  margin-bottom: 26px;
}

.gt-filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.gt-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--gt-line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--gt-ink-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.gt-filter:hover {
  background: var(--gt-crimson);
  border-color: var(--gt-crimson);
  color: #fffdf8;
}

#gt-filter-all:checked ~ .gt-filter-row label[for="gt-filter-all"],
#gt-filter-article:checked ~ .gt-filter-row label[for="gt-filter-article"],
#gt-filter-review:checked ~ .gt-filter-row label[for="gt-filter-review"],
#gt-filter-collaboration:checked ~ .gt-filter-row label[for="gt-filter-collaboration"] {
  background: var(--gt-crimson);
  border-color: var(--gt-crimson);
  color: #fffdf8;
}

#gt-filter-article:checked ~ .gt-table-wrap tr[data-type]:not([data-type="article"]),
#gt-filter-review:checked ~ .gt-table-wrap tr[data-type]:not([data-type="review"]),
#gt-filter-collaboration:checked ~ .gt-table-wrap tr[data-type]:not([data-type="collaboration"]) {
  display: none;
}

.gt-table-wrap {
  overflow-x: auto;
  box-shadow: var(--gt-shadow);
}

.gt-publications-empty {
  margin: 18px 0 0;
  color: var(--gt-ink-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--gt-line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8f0ea;
  color: var(--gt-ink-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.gt-pub-year {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.gt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--gt-crimson-soft);
  border-radius: 999px;
  background: var(--gt-crimson-soft);
  color: var(--gt-crimson-dark);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.gt-pub-title,
.gt-news-card h3,
.gt-news-card p,
.gt-featured-news h3,
.gt-news-excerpt,
.gt-single-news-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.gt-pub-title {
  display: block;
  max-width: 390px;
  font-weight: 700;
  line-height: 1.35;
}

.gt-pub-authors,
.gt-pub-journal {
  color: var(--gt-ink-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.gt-link-pair {
  gap: 10px;
}

.gt-text-link {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.gt-contact-card,
.gt-form-card {
  border-radius: var(--gt-radius);
  box-shadow: 0 14px 36px rgba(17, 16, 9, 0.045);
}

.gt-contact-card {
  overflow: hidden;
}

.gt-contact-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gt-line);
}

.gt-contact-row:last-child {
  border-bottom: 0;
}

.gt-contact-row dt {
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gt-ink-light);
}

.gt-contact-row dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

.gt-profile-buttons {
  gap: 10px;
  margin-top: 20px;
}

.gt-profile-buttons .gt-button {
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
}

.gt-form-card {
  padding: 28px;
}

.gt-form-grid {
  display: grid;
  gap: 16px;
}

.gt-field {
  display: grid;
  gap: 7px;
}

.gt-field label {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gt-ink-muted);
}

.gt-field input,
.gt-field select,
.gt-field textarea {
  width: 100%;
  border: 1px solid var(--gt-line);
  border-radius: var(--gt-radius);
  background: #fffdf8;
  color: var(--gt-ink);
  padding: 13px 14px;
  outline: none;
}

.gt-field textarea {
  min-height: 144px;
  resize: vertical;
}

.gt-field input:focus,
.gt-field select:focus,
.gt-field textarea:focus {
  border-color: var(--gt-crimson);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.gt-form-card .gt-button {
  width: 100%;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.gt-news-section {
  background: var(--gt-bg-soft);
  border-top: 1px solid var(--gt-line);
}

.gt-featured-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-bottom: 34px;
  background: var(--gt-bg-paper);
  border: 1px solid var(--gt-line);
  box-shadow: var(--gt-shadow);
}

.gt-featured-news-content {
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--gt-line);
}

.gt-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gt-ink-light);
}

.gt-featured-label,
.gt-news-category {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gt-crimson-soft);
  color: var(--gt-crimson-dark);
}

.gt-featured-label {
  background: var(--gt-crimson);
  color: #fffdf8;
}

.gt-featured-news h3,
.gt-news-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.18;
}

.gt-featured-news h3 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.gt-news-excerpt {
  max-width: 820px;
  margin-top: 18px;
  color: var(--gt-ink-muted);
}

.gt-news-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--gt-crimson);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.gt-news-stats {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
  background: var(--gt-ink);
  color: #fffdf8;
}

.gt-news-stats-label,
.gt-news-stat span {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.55);
}

.gt-news-stat {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gt-news-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gt-news-stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 600;
}

.gt-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gt-news-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  background: var(--gt-bg-paper);
  border: 1px solid var(--gt-line);
}

.gt-news-accent {
  height: 6px;
  background: var(--gt-crimson);
}

.gt-news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.gt-news-card h3 {
  font-size: 1.55rem;
}

.gt-news-card h3 a {
  color: inherit;
}

.gt-news-card p {
  margin: 14px 0 0;
  color: var(--gt-ink-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-news-card .gt-news-link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
}

.gt-news-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.gt-single-news-main {
  padding-top: var(--gt-nav-height);
}

.gt-single-news {
  padding: 96px 0 112px;
}

.gt-single-news-header {
  max-width: 900px;
  border-top: 1px solid var(--gt-line-dark);
  padding-top: 28px;
}

.gt-news-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gt-crimson);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.gt-single-news-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
}

.gt-single-news-header p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--gt-ink-muted);
  font-size: 1.12rem;
}

.gt-single-news-image {
  margin: 42px 0 0;
  border: 1px solid var(--gt-line);
  background: var(--gt-bg-paper);
}

.gt-single-news-image img {
  display: block;
  width: 100%;
  height: auto;
}

.gt-single-news-content {
  max-width: 820px;
  margin-top: 46px;
  color: var(--gt-ink-muted);
  font-size: 1.05rem;
}

.gt-single-news-content p {
  margin: 0 0 1.4em;
}

.gt-single-news-content h2,
.gt-single-news-content h3 {
  margin: 1.6em 0 0.6em;
  color: var(--gt-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
}

.gt-single-news-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.gt-footer {
  background: var(--gt-ink);
  color: var(--gt-bg-paper);
  padding: 34px 0;
}

.gt-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gt-footer strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
}

.gt-footer nav {
  gap: 20px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gt-fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .gt-button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .gt-hero-grid,
  .gt-research-grid,
  .gt-contact-grid,
  .gt-featured-news,
  .gt-news-grid {
    grid-template-columns: 1fr;
  }

  .gt-hero {
    min-height: auto;
  }

  .gt-hero-panel {
    max-width: 620px;
  }

  .gt-featured-news-content {
    border-right: 0;
    border-bottom: 1px solid var(--gt-line);
  }
}

@media (max-width: 768px) {
  :root {
    --gt-nav-height: 68px;
  }

  .gt-nav-inner,
  .gt-container,
  .gt-footer-inner {
    width: min(calc(100% - 28px), var(--gt-max));
  }

  .gt-nav-links {
    gap: 12px;
    font-size: 0.64rem;
  }

  .gt-brand {
    font-size: 1.12rem;
  }

  .gt-section {
    padding: 78px 0;
  }

  .gt-hero-grid {
    gap: 36px;
    padding: 56px 0 72px;
  }

  .gt-hero h1 {
    font-size: clamp(3.35rem, 17vw, 5.4rem);
  }

  .gt-actions,
  .gt-footer-inner {
    flex-direction: column;
  }

  .gt-actions,
  .gt-button {
    width: 100%;
  }

  .gt-hero-panel {
    padding: 18px;
  }

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

  .gt-stat {
    min-height: 104px;
  }

  .gt-section-head,
  .gt-contact-row {
    grid-template-columns: 1fr;
  }

  .gt-section-head {
    gap: 12px;
  }

  .gt-contact-row {
    gap: 5px;
  }

  .gt-footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .gt-nav-links a:nth-child(1) {
    display: none;
  }

  .gt-section-title h2 {
    font-size: 3rem;
  }

  .gt-form-card {
    padding: 20px;
  }
}

.gt-lab-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--gt-nav-height) + 76px) 0 72px;
  border-bottom: 1px solid var(--gt-line);
}

.gt-lab-hero-grid,
.gt-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.gt-two-column {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.gt-lab-hero h1,
.gt-page-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.gt-lab-deck {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--gt-ink-muted);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.55;
}

.gt-lab-visual {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background: var(--gt-bg-paper);
  border: 1px solid var(--gt-line);
  border-top: 5px solid var(--gt-crimson);
  box-shadow: var(--gt-shadow);
}

.gt-lab-visual-top,
.gt-lab-visual-bottom {
  display: grid;
  gap: 14px;
}

.gt-lab-visual-top span,
.gt-lab-card span,
.gt-technique-card span,
.gt-person-role,
.gt-contact-panel th {
  font-family: "DM Mono", monospace;
  color: var(--gt-crimson);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.gt-lab-signal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 230px;
  padding: 26px;
  background:
    linear-gradient(90deg, rgba(192, 57, 43, 0.12) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(17, 16, 9, 0.08) 1px, transparent 1px) 0 0 / 42px 42px;
}

.gt-lab-signal i {
  display: block;
  border-radius: 999px 999px 0 0;
  background: var(--gt-crimson);
}

.gt-lab-signal i:nth-child(1) { height: 44%; opacity: 0.35; }
.gt-lab-signal i:nth-child(2) { height: 72%; opacity: 0.6; }
.gt-lab-signal i:nth-child(3) { height: 96%; }
.gt-lab-signal i:nth-child(4) { height: 64%; opacity: 0.7; }
.gt-lab-signal i:nth-child(5) { height: 38%; opacity: 0.45; }

.gt-lab-visual-bottom {
  grid-template-columns: repeat(3, 1fr);
}

.gt-lab-visual-bottom div {
  border-left: 1px solid var(--gt-line);
  padding-left: 18px;
}

.gt-lab-visual-bottom strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--gt-crimson);
  font-size: 2.1rem;
  line-height: 1;
}

.gt-lab-visual-bottom span {
  font-family: "DM Mono", monospace;
  color: var(--gt-ink-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gt-lab-intro h2,
.gt-people-group h2,
.gt-contact-panel h2 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
}

.gt-prose p {
  margin: 0 0 18px;
  color: var(--gt-ink-muted);
  font-size: 1.08rem;
}

.gt-large-prose p {
  font-size: 1.16rem;
}

.gt-feature-grid,
.gt-join-grid,
.gt-people-strip,
.gt-people-grid,
.gt-technique-grid,
.gt-news-grid-wide {
  display: grid;
  gap: 24px;
}

.gt-feature-grid,
.gt-join-grid,
.gt-people-grid,
.gt-technique-grid,
.gt-news-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gt-people-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gt-lab-card,
.gt-technique-card,
.gt-contact-panel,
.gt-person-card {
  background: var(--gt-bg-paper);
  border: 1px solid var(--gt-line);
}

.gt-lab-card,
.gt-technique-card,
.gt-contact-panel {
  border-top: 4px solid var(--gt-crimson);
  padding: 28px;
}

.gt-lab-card span,
.gt-technique-card span {
  display: inline-block;
  margin-bottom: 20px;
}

.gt-lab-card h2,
.gt-lab-card h3,
.gt-technique-card h2,
.gt-news-card h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.08;
}

.gt-lab-card p,
.gt-technique-card div,
.gt-contact-panel p,
.gt-person-card p,
.gt-person-text {
  color: var(--gt-ink-muted);
}

.gt-muted-band {
  background: rgba(235, 230, 220, 0.66);
  border-top: 1px solid var(--gt-line);
  border-bottom: 1px solid var(--gt-line);
}

.gt-people-group + .gt-people-group {
  margin-top: 62px;
}

.gt-person-card {
  padding: 20px;
}

.gt-person-photo {
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--gt-crimson-soft);
  color: var(--gt-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
}

.gt-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gt-person-card h3 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

.gt-person-card p,
.gt-person-text {
  margin: 0 0 12px;
}

.gt-person-role {
  margin-bottom: 12px;
}

.gt-page-hero {
  padding: calc(var(--gt-nav-height) + 88px) 0 78px;
  border-bottom: 1px solid var(--gt-line);
}

.gt-page-hero h1 {
  font-size: clamp(3.6rem, 8vw, 7.4rem);
}

.gt-page-hero p {
  margin: 0;
  align-self: end;
  color: var(--gt-ink-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.gt-focus-stack {
  display: grid;
  gap: 18px;
}

.gt-focus-card {
  padding: 26px 28px;
  background: var(--gt-bg-paper);
  border: 1px solid var(--gt-line);
  border-left: 5px solid var(--gt-crimson);
}

.gt-focus-card h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.gt-contact-panel table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.gt-contact-panel th,
.gt-contact-panel td {
  padding: 12px 0;
  border-top: 1px solid var(--gt-line);
  text-align: left;
  vertical-align: top;
}

.gt-contact-panel th {
  width: 88px;
}

.gt-contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.gt-contact-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--gt-line);
}

.gt-contact-list span {
  font-family: "DM Mono", monospace;
  color: var(--gt-crimson);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gt-contact-list a,
.gt-contact-list strong {
  min-width: 0;
  color: var(--gt-ink);
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.gt-icon-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--gt-crimson);
  background: var(--gt-crimson-soft);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 999px;
}

.gt-icon-badge svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gt-lab-card .gt-icon-badge + span,
.gt-technique-card .gt-icon-badge + span {
  margin-top: 0;
}

.gt-focus-card .gt-icon-badge {
  float: right;
  margin: 0 0 14px 18px;
}

@media (max-width: 560px) {
  .gt-contact-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 980px) {
  .gt-lab-hero-grid,
  .gt-two-column,
  .gt-feature-grid,
  .gt-join-grid,
  .gt-people-grid,
  .gt-technique-grid,
  .gt-news-grid-wide {
    grid-template-columns: 1fr;
  }

  .gt-people-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gt-lab-hero {
    min-height: auto;
    padding-top: calc(var(--gt-nav-height) + 48px);
  }

  .gt-lab-visual {
    min-height: 390px;
    padding: 24px;
  }

  .gt-nav-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .gt-navbar {
    height: auto;
    min-height: var(--gt-nav-height);
    padding: 10px 0;
  }

  .gt-nav-links {
    flex-wrap: wrap;
    row-gap: 7px;
  }
}

@media (max-width: 560px) {
  .gt-people-strip,
  .gt-lab-visual-bottom {
    grid-template-columns: 1fr;
  }

  .gt-lab-card,
  .gt-technique-card,
  .gt-contact-panel {
    padding: 22px;
  }
}

.gt-page-hero {
  padding: calc(var(--gt-nav-height) + 78px) 0 70px;
}

.gt-page-hero .gt-two-column {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: end;
}

.gt-page-hero h1 {
  max-width: 7.4em;
  font-size: clamp(3.4rem, 7.2vw, 6.4rem);
  line-height: 0.92;
}

.gt-page-hero p {
  max-width: 700px;
  padding-bottom: 0.4em;
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  line-height: 1.55;
}

.gt-page-hero .gt-section-number {
  display: block;
  margin-bottom: 12px;
}

.page-template-page-research .gt-section > .gt-container.gt-two-column {
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(42px, 6vw, 76px);
}

.page-template-page-research .gt-large-prose p {
  max-width: 620px;
  font-size: 1.04rem;
  line-height: 1.62;
}

.page-template-page-research .gt-focus-stack {
  gap: 14px;
}

.page-template-page-research .gt-focus-card {
  padding: 22px 26px;
}

.page-template-page-research .gt-focus-card h2 {
  font-size: 1.55rem;
}

.page-template-page-research .gt-focus-card div {
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .gt-page-hero .gt-two-column,
  .page-template-page-research .gt-section > .gt-container.gt-two-column {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gt-page-hero h1 {
    max-width: 100%;
    font-size: clamp(3.2rem, 14vw, 5.7rem);
  }

  .gt-page-hero p {
    padding-bottom: 0;
  }
}

.gt-lab-hero-photo {
  position: relative;
  min-height: 760px;
  display: block;
  padding: calc(var(--gt-nav-height) + 84px) 0 92px;
  overflow: hidden;
  background: var(--gt-bg-paper);
  border-bottom: 1px solid var(--gt-line);
}

.gt-lab-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 243, 238, 0.99) 0%, rgba(245, 243, 238, 0.92) 34%, rgba(245, 243, 238, 0.22) 74%, rgba(245, 243, 238, 0.05) 100%),
    linear-gradient(0deg, rgba(17, 16, 9, 0.18), transparent 40%),
    var(--gt-hero-image) center / cover no-repeat;
}

.gt-lab-hero-photo-inner {
  position: relative;
  z-index: 1;
}

.gt-lab-hero-photo .gt-lab-hero-copy {
  max-width: 620px;
}

.gt-lab-hero-photo h1 {
  font-size: clamp(4.4rem, 9vw, 8rem);
}

.gt-lab-hero-photo .gt-lab-deck {
  max-width: 560px;
  color: #4f4a40;
}

.gt-lab-hero-stats {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--gt-line);
  border: 1px solid var(--gt-line);
}

.gt-lab-hero-stats div {
  background: rgba(255, 253, 248, 0.93);
  padding: 20px;
}

.gt-lab-hero-stats strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--gt-crimson);
  font-size: 2.4rem;
  line-height: 1;
}

.gt-lab-hero-stats span {
  font-family: "DM Mono", monospace;
  color: var(--gt-ink-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .gt-lab-hero-photo {
    min-height: auto;
    padding-bottom: 28px;
  }

  .gt-lab-hero-photo::before {
    background:
      linear-gradient(180deg, rgba(245, 243, 238, 0.94) 0%, rgba(245, 243, 238, 0.9) 48%, rgba(245, 243, 238, 0.2) 100%),
      var(--gt-hero-image) center top / cover no-repeat;
  }

  .gt-lab-hero-stats {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    grid-template-columns: 1fr;
    margin-top: 42px;
  }
}

.gt-news-card {
  min-height: 0;
  padding: 28px;
}

.gt-news-card .gt-news-meta {
  margin-bottom: 16px;
}

.gt-news-card h2,
.gt-news-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.1vw, 1.88rem);
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-news-card p {
  margin: 0 0 18px;
  max-height: calc(1.55em * 3);
  color: var(--gt-ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gt-news-card > .gt-text-link,
.gt-news-card .gt-news-link {
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dotted rgba(192, 57, 43, 0.45);
}
