:root {
  --navy: #112234;
  --navy-deep: #0b1724;
  --gold: #c99a2e;
  --cream: #faf8f3;
  --tint: #f0ece3;
  --paper: #ffffff;
  --text: #1f2933;
  --muted: #64707d;
  --line: #e5dfd4;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 34, 52, 0.98);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  color: #f1cf78;
  font-size: 11px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

nav {
  display: flex;
  gap: 20px;
  color: #d8e0e6;
  font-size: 13px;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
}

.cv-button {
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  padding: 86px 0 46px;
  background: linear-gradient(145deg, #fffdf8 0%, #f5f0e5 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #96701e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.greeting {
  margin: 0 0 4px;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 6vw, 78px);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.25;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 28px;
  color: #4d5964;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 13px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-secondary {
  border: 1px solid #cfc5b4;
  background: #fff;
  color: var(--navy);
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 7px solid #fff;
  box-shadow: 0 20px 55px rgba(25, 32, 40, 0.18);
}

.portrait figcaption {
  position: absolute;
  right: -20px;
  bottom: 28px;
  padding: 10px 15px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 58px;
  background: var(--line);
  border: 1px solid var(--line);
}

.highlights div {
  padding: 20px 26px;
  background: #fff;
}

.highlights strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
}

.highlights span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.section-tint {
  background: var(--tint);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.body-copy p {
  margin: 0 0 18px;
  color: #4f5b66;
  font-size: 17px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.skill-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.three-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.card p {
  color: var(--muted);
}

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

.tags span {
  padding: 6px 10px;
  border: 1px solid #ded5c5;
  background: #fbfaf7;
  color: #56616b;
  border-radius: 999px;
  font-size: 12px;
}

.project-list {
  display: grid;
  gap: 30px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 340px;
  background: #fff;
  border: 1px solid var(--line);
}

.project-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--navy);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  background: rgba(17, 34, 52, 0.88);
  color: #fff;
  font-size: 12px;
}

.project-content {
  padding: 36px;
}

.project-content > p:not(.project-category) {
  color: var(--muted);
}

.project-category {
  margin: 0 0 8px;
  color: #96701e !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
}

.small-heading {
  margin: 70px 0 28px;
}

.stack {
  display: grid;
  gap: 18px;
}

.experience-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 45px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.experience-card p {
  margin-top: 0;
  color: var(--muted);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline article p {
  margin: 0;
  color: var(--muted);
}

.timeline time,
.education-grid time {
  color: #96701e;
  font-size: 13px;
  white-space: nowrap;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 20px;
}

.education-grid time {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
}

.education-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.contact {
  background: var(--navy);
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.contact .section-heading > p:last-child {
  color: #c6d0d8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-details a {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.contact-details span {
  color: #b9c5ce;
  font-size: 12px;
}

.contact-details strong {
  color: #fff;
}

.message-form {
  padding: 28px;
  background: #fff;
  color: var(--text);
  border-radius: 6px;
}

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

.message-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.message-form label > span {
  color: #59636d;
  font-size: 12px;
  font-weight: 700;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dcd6ca;
  border-radius: 4px;
  background: #fcfbf8;
  color: var(--text);
}

.message-form textarea {
  resize: vertical;
}

.message-form button {
  width: 100%;
  padding: 13px;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.form-note,
.form-status {
  color: #707984;
  font-size: 12px;
}

.form-status {
  min-height: 18px;
}

footer {
  padding: 26px 0;
  background: var(--navy-deep);
  color: #d2d9df;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

footer strong {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-wrap {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
  }

  .site-header.menu-open .nav-wrap {
    display: grid;
    gap: 20px;
  }

  nav {
    display: grid;
    gap: 14px;
  }

  .cv-button {
    width: fit-content;
  }

  .hero-grid,
  .two-column,
  .project-card,
  .experience-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .portrait {
    max-width: 560px;
  }

  .portrait figcaption {
    right: 12px;
  }

  .skill-grid,
  .card-grid,
  .three-card-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 26px;
  }

  .footer-inner {
    flex-direction: column;
  }
}


/* 2026 portfolio refinement */
.portrait {
  width: min(100%, 390px);
  justify-self: end;
}

.portrait img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.project-image {
  min-height: 280px;
  max-height: 360px;
}

.project-image img {
  object-position: center;
}

.project-card-aurion .project-image {
  min-height: 300px;
}

.aurion-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 42px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 154, 46, 0.22), transparent 34%),
    linear-gradient(145deg, #0b1724 0%, #16324a 100%);
  color: #fff;
}

.aurion-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid var(--gold);
  border-radius: 18px;
  color: #f0cf76;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
}

.aurion-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aurion-flow span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  font-size: 12px;
}

.aurion-flow b {
  color: var(--gold);
}

.aurion-visual .project-number {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  background: rgba(17, 34, 52, 0.88);
  color: #fff;
  font-size: 12px;
}

.contact {
  padding-top: 70px;
  padding-bottom: 70px;
}

.contact .section-heading {
  margin-bottom: 28px;
}

.contact h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.contact-details a {
  padding: 17px 20px;
}

.message-form {
  padding: 22px;
  max-width: 680px;
}

.message-form label {
  gap: 5px;
  margin-bottom: 10px;
}

.message-form input,
.message-form textarea {
  padding: 10px 12px;
}

.message-form textarea {
  min-height: 126px;
}

.message-form button {
  padding: 11px;
}

.form-note {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .portrait {
    justify-self: start;
    width: min(100%, 360px);
  }

  .project-image {
    max-height: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .message-form {
    max-width: none;
  }
}


/* Compact professional typography */
body {
  font-size: 15px;
  line-height: 1.58;
}

.hero {
  padding: 60px 0 34px;
}

.hero-grid {
  gap: 52px;
}

h1 {
  max-width: 700px;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 24px;
  font-size: 16px;
  line-height: 1.65;
}

.greeting {
  font-size: 14px;
}

.eyebrow {
  font-size: 10px;
}

.highlights {
  margin-top: 38px;
}

.highlights div {
  padding: 16px 22px;
}

.highlights strong {
  font-size: 24px;
}

.section {
  padding: 66px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading > p:last-child,
.body-copy p,
.card p,
.project-content > p:not(.project-category),
.experience-card p,
.timeline article p {
  font-size: 14px;
  line-height: 1.6;
}

.card {
  padding: 22px;
}

.skill-grid,
.card-grid,
.three-card-grid {
  gap: 16px;
}

.project-list {
  gap: 22px;
}

.project-card {
  min-height: 285px;
}

.project-image {
  min-height: 240px;
  max-height: 300px;
}

.project-content {
  padding: 28px;
}

.project-content h3 {
  font-size: 22px;
}

.tags span {
  padding: 5px 9px;
  font-size: 11px;
}

.small-heading {
  margin: 52px 0 22px;
}

.experience-card {
  gap: 34px;
  padding: 24px;
}

.timeline article {
  gap: 22px;
  padding: 22px 0;
}

.contact {
  padding-top: 56px;
  padding-bottom: 56px;
}

.contact h2 {
  font-size: clamp(30px, 3vw, 40px);
}

.contact .section-heading {
  margin-bottom: 22px;
}

.contact-details a {
  padding: 14px 18px;
}

.message-form {
  padding: 18px;
}

.message-form textarea {
  min-height: 110px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(34px, 8vw, 46px);
  }

  h2 {
    font-size: clamp(26px, 6vw, 34px);
  }

  .section {
    padding: 54px 0;
  }

  .project-image {
    min-height: 220px;
    max-height: 270px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .section {
    padding: 46px 0;
  }

  .project-content {
    padding: 22px;
  }
}


/* =========================================================
   Compact professional refinement
   ========================================================= */

:root {
  --max-width: 1080px;
}

body {
  font-size: 14px;
  line-height: 1.55;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
}

/* Header */
.header-inner { min-height: 62px; }
.brand { font-size: 14px; }
.brand-mark {
  width: 34px;
  height: 34px;
  font-size: 10px;
}
nav {
  gap: 17px;
  font-size: 12px;
}
.cv-button {
  padding: 8px 13px;
  font-size: 12px;
}

/* Hero */
.hero {
  padding: 52px 0 30px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 46px;
  align-items: center;
}
.eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.greeting {
  margin-bottom: 7px;
  font-size: 13px;
}
h1 {
  max-width: 650px;
  font-size: clamp(34px, 3.7vw, 44px);
  line-height: 1.09;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(25px, 2.7vw, 33px);
  line-height: 1.16;
  letter-spacing: -0.018em;
}
h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
}
.hero-copy {
  max-width: 650px;
  margin: 16px 0 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #53606b;
}
.hero-actions {
  gap: 9px;
}
.button {
  padding: 10px 15px;
  font-size: 12px;
}
.hero-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.hero-focus span {
  padding: 5px 9px;
  border: 1px solid #d9d1c3;
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: #5d6872;
  font-size: 10px;
  font-weight: 600;
}
.portrait {
  width: min(100%, 310px);
}
.portrait img {
  border-width: 5px;
  box-shadow: 0 14px 34px rgba(25, 32, 40, 0.14);
}
.portrait figcaption {
  right: -10px;
  bottom: 18px;
  padding: 7px 10px;
  font-size: 10px;
}
.highlights {
  margin-top: 28px;
}
.highlights div {
  padding: 13px 18px;
}
.highlights strong {
  font-size: 20px;
  line-height: 1.1;
}
.highlights span {
  margin-top: 3px;
  font-size: 11px;
}

/* Sections */
.section {
  padding: 52px 0;
}
.two-column {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}
.section-heading > p:last-child,
.body-copy p,
.card p,
.project-content > p:not(.project-category),
.experience-card p,
.timeline article p {
  font-size: 13px;
  line-height: 1.62;
}
.body-copy p {
  margin-bottom: 12px;
}
.skill-grid,
.card-grid,
.three-card-grid {
  gap: 13px;
}
.card {
  padding: 18px;
  border-radius: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #d4cab8;
  box-shadow: 0 8px 22px rgba(17, 34, 52, 0.06);
}
.tags {
  gap: 6px;
}
.tags span {
  padding: 4px 7px;
  font-size: 10px;
}

/* Projects */
.project-list {
  gap: 16px;
}
.project-card {
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 235px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17, 34, 52, 0.06);
}
.project-image {
  min-height: 220px;
  max-height: 255px;
}
.project-content {
  padding: 22px 24px;
}
.project-content h3 {
  font-size: 18px;
}
.project-category {
  margin-bottom: 6px;
  font-size: 9px;
}
.text-link {
  margin-top: 14px;
  font-size: 12px;
}
.small-heading {
  margin: 40px 0 18px;
}

/* Experience / education */
.experience-card {
  gap: 28px;
  padding: 20px;
}
.timeline article {
  grid-template-columns: 0.9fr auto 1.35fr;
  gap: 18px;
  padding: 17px 0;
}
.timeline time,
.education-grid time {
  font-size: 11px;
}
.education-grid {
  gap: 13px;
}

/* Contact */
.contact {
  padding: 44px 0;
}
.contact .section-heading {
  margin-bottom: 18px;
}
.contact h2 {
  font-size: clamp(26px, 2.8vw, 34px);
}
.contact-grid {
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
}
.contact-details {
  gap: 8px;
}
.contact-details a {
  padding: 12px 15px;
}
.contact-details span {
  font-size: 10px;
}
.contact-details strong {
  font-size: 13px;
}
.message-form {
  padding: 16px;
  max-width: 620px;
}
.form-row {
  gap: 10px;
}
.message-form label {
  gap: 4px;
  margin-bottom: 8px;
}
.message-form label > span {
  font-size: 10px;
}
.message-form input,
.message-form textarea {
  padding: 8px 10px;
  font-size: 13px;
}
.message-form textarea {
  min-height: 92px;
}
.message-form button {
  padding: 9px;
  font-size: 12px;
}
.form-note,
.form-status {
  font-size: 10px;
}

/* Footer */
footer {
  padding: 18px 0;
}
.footer-inner {
  font-size: 11px;
}

/* Tablet */
@media (max-width: 900px) {
  .container {
    width: min(var(--max-width), calc(100% - 34px));
  }
  .hero {
    padding-top: 38px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  h1 {
    max-width: 620px;
    font-size: clamp(31px, 5.8vw, 38px);
  }
  h2 {
    font-size: clamp(24px, 4vw, 30px);
  }
  .hero-copy {
    max-width: 650px;
    font-size: 14px;
  }
  .portrait {
    width: min(100%, 285px);
    justify-self: start;
  }
  .section {
    padding: 44px 0;
  }
  .two-column,
  .project-card,
  .experience-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .two-column {
    gap: 22px;
  }
  .project-image {
    min-height: 190px;
    max-height: 230px;
  }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .message-form {
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 26px));
  }
  .header-inner {
    min-height: 56px;
  }
  .nav-wrap {
    top: 56px;
  }
  .hero {
    padding: 30px 0 24px;
  }
  h1 {
    font-size: 30px;
    line-height: 1.12;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 16px;
  }
  .hero-copy {
    font-size: 13.5px;
  }
  .highlights {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .highlights div {
    padding: 11px 10px;
  }
  .highlights strong {
    font-size: 17px;
  }
  .highlights span {
    font-size: 9px;
    line-height: 1.35;
  }
  .section {
    padding: 38px 0;
  }
  .project-content {
    padding: 18px;
  }
  .project-image {
    min-height: 180px;
    max-height: 210px;
  }
  .portrait {
    width: min(100%, 255px);
  }
}


/* Oil & gas featured project */
.project-card-energy {
  border-top: 2px solid var(--gold);
}

.energy-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,154,46,0.22), transparent 30%),
    linear-gradient(145deg, #0b1724 0%, #18384b 65%, #244f59 100%);
  color: #fff;
}

.energy-title {
  position: absolute;
  top: 26px;
  right: 28px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.energy-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 105px;
  width: min(100%, 330px);
  padding: 10px 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}

.energy-chart span {
  flex: 1;
  min-width: 12px;
  background: linear-gradient(to top, rgba(201,154,46,0.88), rgba(240,207,118,0.66));
  border-radius: 2px 2px 0 0;
}

.energy-meta {
  max-width: 320px;
  color: rgba(255,255,255,0.78);
  font-size: 11px;
}

.project-subtitle {
  margin: -2px 0 12px;
  color: #31404d !important;
  font-size: 12px !important;
  font-weight: 650;
  line-height: 1.45 !important;
}

@media (max-width: 900px) {
  .energy-visual {
    min-height: 215px;
  }
}


/* Refined smaller project cards and improved UK energy visual */
.project-list {
  gap: 12px;
}

.project-card {
  min-height: 205px;
}

.project-image {
  min-height: 170px;
  max-height: 205px;
}

.project-content {
  padding: 18px 20px;
}

.project-content h3 {
  font-size: 17px;
}

.project-subtitle {
  margin: 0 0 9px;
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: #41505d !important;
}

.project-content > p:not(.project-category):not(.project-subtitle) {
  font-size: 12.5px;
  line-height: 1.55;
}

.project-category {
  font-size: 8.5px;
}

.tags span {
  font-size: 9.5px;
  padding: 4px 7px;
}

.project-card-energy .project-image {
  min-height: 175px;
  max-height: 210px;
}

.energy-visual {
  display: block;
  padding: 0;
  background: linear-gradient(145deg, #0b1724 0%, #17354b 68%, #214855 100%);
}

.energy-panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 14px;
}

.energy-header {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.energy-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(240,207,118,0.42);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #f3d88d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.energy-note {
  color: rgba(255,255,255,0.72);
  font-size: 10px;
}

.energy-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.project-image .project-number {
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .project-image,
  .project-card-energy .project-image {
    min-height: 160px;
    max-height: 190px;
  }
}

@media (max-width: 640px) {
  .project-image,
  .project-card-energy .project-image {
    min-height: 150px;
    max-height: 180px;
  }

  .project-content {
    padding: 16px;
  }

  .energy-note {
    display: none;
  }
}


/* Professional SVG project visuals */
.visual-card {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 12px;
  background: linear-gradient(145deg, #102536 0%, #1d4256 100%);
}

.visual-topline {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2;
  color: rgba(255,255,255,0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.energy-visual,
.aurion-visual {
  padding: 0;
  background: linear-gradient(145deg, #102536 0%, #1d4256 100%);
}

.energy-svg,
.aurion-svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.project-image .project-number {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  font-size: 10px;
  z-index: 3;
}

.project-card-energy .project-image,
.project-card-aurion .project-image {
  min-height: 160px;
  max-height: 190px;
}

@media (max-width: 900px) {
  .project-card-energy .project-image,
  .project-card-aurion .project-image {
    min-height: 150px;
    max-height: 180px;
  }
}

@media (max-width: 640px) {
  .visual-topline {
    font-size: 9px;
  }

  .project-card-energy .project-image,
  .project-card-aurion .project-image {
    min-height: 145px;
    max-height: 170px;
  }
}


/* Final project-card size reduction */
.project-list {
  gap: 10px;
}

.project-card {
  grid-template-columns: 34% 66%;
  min-height: 150px;
  max-height: 178px;
  overflow: hidden;
}

.project-image,
.project-card-energy .project-image,
.project-card-aurion .project-image {
  min-height: 150px;
  max-height: 178px;
  height: 100%;
}

.project-image img,
.energy-svg,
.aurion-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 15px 18px;
  overflow: hidden;
}

.project-content h3 {
  margin-bottom: 6px;
  font-size: 15.5px;
  line-height: 1.25;
}

.project-category {
  margin-bottom: 5px;
  font-size: 8px;
}

.project-subtitle {
  margin-bottom: 6px;
  font-size: 10px !important;
  line-height: 1.3 !important;
}

.project-content > p:not(.project-category):not(.project-subtitle) {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.45;
}

.tags {
  gap: 5px;
}

.tags span {
  padding: 3px 6px;
  font-size: 8.5px;
}

.text-link {
  margin-top: 8px;
  font-size: 10.5px;
}

.aurion-visual {
  padding: 0 !important;
  background: #102536;
}

.aurion-svg {
  display: block;
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 32% 68%;
    min-height: 145px;
    max-height: 170px;
  }

  .project-image,
  .project-card-energy .project-image,
  .project-card-aurion .project-image {
    min-height: 145px;
    max-height: 170px;
  }
}

@media (max-width: 680px) {
  .project-card {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .project-image,
  .project-card-energy .project-image,
  .project-card-aurion .project-image {
    min-height: 145px;
    max-height: 160px;
  }

  .project-content {
    padding: 14px 16px;
  }
}
