/* One-pager About page */

.op-main {
  --op-navy: #12293a;
  --op-navy-2: #1b3a4f;
  --op-teal: #13807a;
  --op-teal-soft: #eef5f3;
  --op-gold: #c0925a;
  --op-ink: #1d2b36;
  --op-muted: #5f6f7a;
  --op-line: #d9e6e2;
  --op-paper: #fdfcf9;

  max-width: 1120px;
  margin: 1.5em auto 3em;
  padding: 0 16px;
  font-family: "Lato", -apple-system, "Segoe UI", Roboto, sans-serif;
}

.op-main h1,
.op-main h2,
.op-main h3,
.op-main h4 {
  font-family: inherit;
}

.op-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--op-paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(18, 41, 58, 0.12);
}

/* ---------- Sidebar ---------- */

.op-side {
  background: linear-gradient(180deg, var(--op-navy) 0%, var(--op-navy-2) 100%);
  color: #e8eef2;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.op-photo {
  border: 3px solid var(--op-gold);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.op-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.op-side h3 {
  margin: 0 0 12px;
  color: var(--op-gold);
  font-size: 0.78em;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.op-side section + section {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.op-builder p {
  margin: 0;
  font-size: 1.25em;
  line-height: 1.45;
  color: #fff;
}

.op-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.op-side li {
  margin: 0 0 8px;
  font-size: 0.92em;
  line-height: 1.4;
}

.op-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.op-tags span {
  padding: 3px 10px;
  font-size: 0.78em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.op-edu li {
  margin-bottom: 14px;
}

.op-edu strong {
  display: block;
  color: #fff;
}

.op-edu span {
  color: #b8c6cf;
  font-size: 0.92em;
}

.op-place {
  margin-top: auto;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c6cf;
}

.op-place p {
  margin: 0 0 6px;
}

/* ---------- Main column ---------- */

.op-body {
  padding: 40px 44px 36px;
  color: var(--op-ink);
}

.op-name {
  margin: 0;
  font-size: 2.6em;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--op-navy);
  text-transform: uppercase;
}

.op-role {
  margin: 10px 0 0;
  color: var(--op-teal);
  font-weight: 900;
  font-size: 1.05em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.op-role::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--op-gold);
}

.op-tagline {
  margin: 18px 0 0;
  font-size: 1.3em;
  color: var(--op-ink);
}

.op-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.op-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--op-navy);
  text-decoration: none;
  border: 1px solid var(--op-line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.op-links a:hover {
  color: var(--op-teal);
  border-color: var(--op-teal);
  transform: translateY(-1px);
}

.op-links a.op-primary {
  color: #fff;
  background: var(--op-teal);
  border-color: var(--op-teal);
}

.op-links a.op-primary:hover {
  color: #fff;
  background: #0f6c67;
}

.op-body h2 {
  margin: 34px 0 14px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--op-line);
  color: var(--op-teal);
  font-size: 0.9em;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-body p {
  line-height: 1.6;
}

.op-about {
  margin: 0;
  font-size: 1em;
}

.op-inline {
  color: var(--op-teal);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.op-inline:hover {
  text-decoration: underline;
}

/* Impact tiles */
.op-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.op-impact div {
  padding: 18px 16px;
  border-radius: 10px;
  background: var(--op-teal-soft);
}

.op-impact strong {
  display: block;
  color: var(--op-teal);
  font-size: 1.5em;
  font-weight: 900;
  line-height: 1.2;
}

.op-impact span {
  display: block;
  margin-top: 6px;
  color: var(--op-muted);
  font-size: 0.8em;
}

/* Experience timeline */
.op-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--op-line);
}

.op-timeline li {
  position: relative;
  margin: 0 0 18px;
}

.op-timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--op-paper);
  border: 3px solid var(--op-teal);
}

.op-timeline h4 {
  margin: 0;
  font-size: 0.95em;
  font-weight: 900;
  color: var(--op-navy);
}

.op-timeline h4 small {
  margin-right: 6px;
  color: var(--op-gold);
  font-size: 1em;
}

.op-timeline p {
  margin: 4px 0 0;
  color: var(--op-muted);
  font-size: 0.9em;
}

/* Projects */
.op-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.op-project {
  display: block;
  padding: 16px 18px;
  border-radius: 10px;
  border-left: 4px solid var(--op-teal);
  background: var(--op-teal-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.op-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 41, 58, 0.1);
}

.op-project h4 {
  margin: 0 0 6px;
  color: var(--op-teal);
  font-size: 0.82em;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.op-project p {
  margin: 0;
  font-size: 0.86em;
  line-height: 1.5;
  color: var(--op-ink);
}

.op-project .op-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--op-teal);
  font-size: 0.78em;
  font-weight: 700;
}

.op-project--wide {
  grid-column: 1 / -1;
  border-left-color: var(--op-gold);
}

/* Call to action */
.op-cta {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--op-line);
}

.op-cta h3 {
  margin: 0 0 8px;
  color: var(--op-navy);
  font-size: 1.05em;
  font-weight: 900;
  text-transform: uppercase;
}

.op-cta p {
  margin: 0;
  font-size: 0.9em;
  color: var(--op-muted);
}

.op-cta a {
  color: var(--op-teal);
  text-decoration: none;
}

.op-cta a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .op-card {
    grid-template-columns: 1fr;
  }

  .op-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 26px;
    padding: 28px 24px;
  }

  .op-photo {
    grid-column: 1 / -1;
    max-width: 240px;
    margin: 0 auto;
    width: 100%;
  }

  .op-side section + section {
    border-top: 0;
    padding-top: 0;
  }

  .op-builder,
  .op-place {
    grid-column: 1 / -1;
    text-align: center;
  }

  .op-body {
    padding: 28px 22px;
  }

  .op-name {
    font-size: 2em;
  }
}

@media (max-width: 560px) {
  .op-side {
    grid-template-columns: 1fr;
  }

  .op-impact,
  .op-projects {
    grid-template-columns: 1fr;
  }

  .op-name {
    font-size: 1.7em;
  }
}

@media print {
  .op-main {
    margin: 0;
    padding: 0;
  }

  .op-card {
    box-shadow: none;
  }

  .op-links {
    display: none;
  }
}
