﻿:root {
  --ink: #16111f;
  --muted: #655e70;
  --soft: #f5efe5;
  --paper: #fffaf2;
  --line: #ddd1c1;
  --blue: #1d72b8;
  --blue-dark: #0d426e;
  --green: #547c5d;
  --rose: #b55d64;
  --gold: #d8a84e;
  --shadow: 0 24px 70px rgba(48, 37, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Asap", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(91, 147, 185, 0.24), transparent 30rem),
    radial-gradient(circle at 95% 8%, rgba(216, 168, 78, 0.22), transparent 28rem),
    linear-gradient(180deg, #fff9ed 0%, #f5efe5 48%, #edf2f3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(22, 17, 31, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 17, 31, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 72%);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

strong, b {
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(22, 17, 31, 0.16);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(22, 17, 31, 0.08);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.top-nav a {
  border: 1px solid rgba(22, 17, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.68);
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  border-color: rgba(29, 114, 184, 0.36);
  color: var(--blue-dark);
}

main {
  position: relative;
  z-index: 1;
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 3.5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 8.5em;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.84;
}

h2 {
  max-width: 12em;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.7rem 0 0;
  color: #2e2738;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.35;
}

.hero-detail {
  max-width: 39rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions, .link-row, .paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-actions {
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 34px rgba(22, 17, 31, 0.18);
}

.primary:hover {
  color: white;
  box-shadow: 0 18px 42px rgba(22, 17, 31, 0.23);
}

.secondary {
  border: 1px solid rgba(22, 17, 31, 0.16);
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
}

.compact {
  min-height: 2.4rem;
  padding: 0.65rem 0.95rem;
  white-space: nowrap;
}

.link-row {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.profile-panel {
  position: relative;
  justify-self: end;
  width: min(100%, 25rem);
}

.profile-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(22, 17, 31, 0.12);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.profile-card {
  position: absolute;
  right: -1rem;
  bottom: 1.2rem;
  width: min(18rem, 82%);
  border: 1px solid rgba(22, 17, 31, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 250, 242, 0.9);
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(22, 17, 31, 0.14);
  backdrop-filter: blur(18px);
}

.profile-card p {
  margin: 0;
  color: #3b3346;
  font-weight: 700;
  line-height: 1.45;
}

.status-dot {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: #23a455;
  box-shadow: 0 0 0 0.35rem rgba(35, 164, 85, 0.15);
}

.projects-feature, .section-shell:not(.hero) {
  padding: 3rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(22, 17, 31, 0.12);
  border-radius: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 16px 48px rgba(22, 17, 31, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(22, 17, 31, 0.16);
}

.feature-card img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.feature-card div:last-child {
  padding: 1.2rem;
}

.feature-card span, .venue {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feature-card p, .publication-card p, .news-list article, .service-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.lease {
  background: linear-gradient(145deg, #fff8ec, #ead0b1);
}

.paper-mark {
  display: grid;
  height: 13rem;
  place-items: center;
  color: #7b4d32;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  font-weight: 750;
}

.news-list {
  display: grid;
  gap: 0.7rem;
}

.news-list article, .service-grid p {
  border: 1px solid rgba(22, 17, 31, 0.1);
  border-radius: 1rem;
  background: rgba(255, 250, 242, 0.62);
  margin: 0;
  padding: 1rem 1.1rem;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  border: 1px solid rgba(22, 17, 31, 0.1);
  border-radius: 1.3rem;
  background: rgba(255, 250, 242, 0.72);
  padding: 1rem;
  box-shadow: 0 12px 35px rgba(22, 17, 31, 0.07);
}

.publication-card.spotlight {
  border-color: rgba(29, 114, 184, 0.24);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(229, 239, 241, 0.85));
}

.publication-image {
  overflow: hidden;
  border-radius: 0.9rem;
  background: white;
}

.publication-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.publication-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.publication-card h3 a:hover {
  color: var(--blue);
}

.publication-card p {
  margin: 0.55rem 0 0;
}

.paper-links {
  margin-top: 0.8rem;
}

.paper-links a {
  border: 1px solid rgba(22, 17, 31, 0.12);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: white;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.compact-card {
  grid-template-columns: 1fr;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-grid span {
  display: inline-block;
  min-width: 4rem;
  color: var(--blue-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 0;
  border-top: 1px solid rgba(22, 17, 31, 0.12);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .top-nav {
    max-width: 18rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .profile-panel {
    justify-self: stretch;
    width: 100%;
  }

  .profile-panel img {
    max-height: 28rem;
  }

  .profile-card {
    right: 1rem;
  }

  .featured-grid, .service-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-card {
    grid-template-columns: 1fr;
  }

  .publication-image img {
    max-height: 14rem;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    padding-inline: 0.7rem;
  }

  .top-nav a {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 4.6rem);
  }

  .hero-lead {
    font-size: 1.18rem;
  }

  .feature-card {
    min-height: 21rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
/* Hero portrait refinement */
.profile-panel {
  position: relative;
  display: flex;
  width: min(100%, 24rem);
  flex-direction: column;
  align-items: center;
  justify-self: center;
  gap: 1rem;
}

.profile-panel img {
  display: block;
  width: min(100%, 18rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid rgba(22, 17, 31, 0.12);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.profile-card {
  position: static;
  width: min(100%, 20rem);
  border: 1px solid rgba(22, 17, 31, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 250, 242, 0.9);
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(22, 17, 31, 0.12);
  backdrop-filter: blur(18px);
}

.profile-card p {
  margin: 0;
  color: #3b3346;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .profile-panel {
    justify-self: center;
    width: min(100%, 23rem);
  }

  .profile-panel img {
    width: min(100%, 17rem);
    max-height: none;
  }

  .profile-card {
    right: auto;
  }
}
.profile-links {
  text-align: center;
}

.profile-links .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.profile-links .button {
  flex: 1 1 9rem;
}

.profile-links .link-row {
  justify-content: center;
  margin-top: 0.95rem;
  gap: 0.65rem 0.9rem;
}

.profile-links .link-row a {
  white-space: nowrap;
}
/* Hero scale adjustment */
.hero {
  min-height: auto;
  padding: 2.6rem 0 3.2rem;
}

h1 {
  max-width: 8.8em;
  font-size: clamp(3.2rem, 7.8vw, 6.9rem);
  line-height: 0.88;
}

.hero-lead {
  max-width: 38rem;
  margin-top: 1.35rem;
  font-size: clamp(1.08rem, 1.65vw, 1.42rem);
  line-height: 1.42;
}

.hero-detail {
  max-width: 37rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .hero-lead {
    font-size: 1.05rem;
  }
}
/* Keep hero name on one line on desktop */
.hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.7fr);
}

h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.95;
}

@media (max-width: 860px) {
  h1 {
    white-space: normal;
  }
}
/* Smaller hero portrait */
.profile-panel {
  width: min(100%, 20rem);
}

.profile-panel img {
  width: min(100%, 14.5rem);
}

.profile-card {
  width: min(100%, 18rem);
}

@media (max-width: 860px) {
  .profile-panel {
    width: min(100%, 20rem);
  }

  .profile-panel img {
    width: min(100%, 14rem);
  }
}
/* Softer title scale */
h1 {
  font-size: clamp(2.7rem, 4.9vw, 4.7rem);
  line-height: 1;
}

h2 {
  max-width: 13em;
  font-size: clamp(1.85rem, 3.4vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.18;
}

.paper-mark {
  font-size: 2.35rem;
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
}
/* One more title reduction */
h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.95rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.65rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.04rem;
  line-height: 1.22;
}

.paper-mark {
  font-size: 2rem;
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.15rem);
  }
}
/* Compact visual project cards */
.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.feature-card {
  min-height: 18rem;
}

.feature-card img,
.paper-mark {
  height: 9.5rem;
}

.feature-card div:last-child {
  padding: 1rem;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}
.one-line-heading {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .one-line-heading {
    white-space: normal;
  }
}
/* Nudge hero portrait left */
.profile-panel {
  justify-self: start;
  margin-left: -3rem;
}

@media (max-width: 860px) {
  .profile-panel {
    justify-self: center;
    margin-left: 0;
  }
}

/* Slightly larger hero portrait */
.profile-panel img {
  width: min(100%, 16rem);
}

@media (max-width: 860px) {
  .profile-panel img {
    width: min(100%, 15rem);
  }
}
.feature-card > img {
  background: #fffaf2;
  object-fit: contain;
  padding: 0.7rem;
}
/* Moving bronze highlight for the LEASE project card */
.feature-card.lease {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  overflow: hidden;
}

.feature-card.lease::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(
    from var(--lease-shine-angle, 0deg),
    rgba(123, 77, 50, 0.14),
    rgba(178, 112, 62, 0.22),
    rgba(255, 218, 160, 0.95),
    rgba(137, 77, 40, 0.35),
    rgba(123, 77, 50, 0.14)
  );
  animation: lease-border-shine 6s linear infinite;
}

.feature-card.lease::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: calc(1.5rem - 2px);
  background: linear-gradient(145deg, #fff8ec, #ead0b1);
}

@keyframes lease-border-shine {
  to {
    --lease-shine-angle: 360deg;
  }
}

@property --lease-shine-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.feature-card.lease > img {
  width: calc(100% - 1rem);
  margin: 0.5rem 0.5rem 0;
  border-radius: 1rem;
  background: #fffaf2;
}
.feature-card.sorcen > img,
.feature-card.all4one > img {
  width: calc(100% - 1rem);
  margin: 0.5rem 0.5rem 0;
  border-radius: 1rem;
}
.feature-card.lease > img {
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.feature-card.lease > img {
  height: 7.6rem;
  object-fit: contain;
  padding: 0.45rem;
}
.feature-card.lease > img {
  height: 9.5rem;
  width: calc(100% + 2.5rem);
  max-width: none;
  margin: 0.5rem -1.25rem 0;
  object-fit: contain;
  padding: 0.45rem;
}
.feature-card.lease > img {
  width: calc(100% - 1rem);
  max-width: 100%;
  height: 9.5rem;
  margin: 0.5rem 0.5rem 0;
  object-fit: contain;
  padding: 0.45rem;
}
/* Slightly smaller section headings */
h2 {
  font-size: clamp(1.45rem, 2.35vw, 2.25rem);
  line-height: 1.15;
}

h3 {
  font-size: 0.98rem;
  line-height: 1.24;
}

@media (max-width: 560px) {
  h2 {
    font-size: clamp(1.42rem, 6.5vw, 1.95rem);
  }
}
/* Hero illustration treatment */
.profile-panel {
  width: min(100%, 28rem);
}

.profile-panel img {
  width: min(100%, 26rem);
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 1.6rem;
  box-shadow: 0 22px 58px rgba(88, 54, 28, 0.16);
  transform: rotate(3deg);
}

@media (max-width: 860px) {
  .profile-panel img {
    width: min(100%, 24rem);
    aspect-ratio: 1.35 / 1;
    transform: rotate(2deg);
  }
}
/* Remove visible hero image frame */
.profile-panel {
  overflow: visible;
}

.profile-panel img {
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
/* Larger frameless hero illustration */
.profile-panel {
  width: min(100%, 34rem);
}

.profile-panel img {
  width: min(100%, 32rem);
}

@media (max-width: 860px) {
  .profile-panel {
    width: min(100%, 30rem);
  }

  .profile-panel img {
    width: min(100%, 28rem);
  }
}
/* Final hero illustration sizing control */
.hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
}

.profile-panel {
  --hero-illustration-size: 76rem;
  width: min(100%, var(--hero-illustration-size));
  margin-left: -1rem;
}

.profile-panel img {
  width: min(100%, var(--hero-illustration-size));
}

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

  .profile-panel {
    --hero-illustration-size: 30rem;
    margin-left: 0;
  }
}

.profile-panel img {
  transition: filter 220ms ease, transform 220ms ease;
}

.profile-panel img:hover {
  filter:
    drop-shadow(0 0 16px rgba(110, 205, 255, 0.58))
    drop-shadow(0 18px 34px rgba(42, 118, 180, 0.26));
  transform: rotate(3deg) translateY(-2px) scale(1.015);
}

@media (max-width: 860px) {
  .profile-panel img:hover {
    transform: rotate(2deg) translateY(-2px) scale(1.015);
  }
}

.feature-card > img {
  display: block;
  overflow: hidden;
  border-radius: 1rem !important;
}
.feature-card.sorcen > img,
.feature-card.all4one > img {
  box-sizing: border-box;
  height: 9.5rem;
  width: calc(100% - 1rem);
  margin: 0.5rem 0.5rem 0;
  padding: 0.55rem;
  border: 1px solid rgba(22, 17, 31, 0.08);
  border-radius: 1.1rem !important;
  background: #fffaf2;
  object-fit: contain;
  overflow: hidden;
  clip-path: inset(0 round 1.1rem);
}
.feature-card.sorcen > img,
.feature-card.all4one > img,
.feature-card.lease > img {
  background: #ffffff;
}
