/* ---------- Base ---------- */
:root{
  --bg:#f7f7f7;
  --ink:#1a1a1a;
  --muted:#4b5563;
  --accent:#000;
  --accent-ink:#fff;
  --card:#fff;
  --ring: rgba(0,0,0,.08);
  --radius:14px;
  --container: min(1050px, calc(100vw - 3rem));
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}

.container{width:var(--container); margin-inline:auto}
p{margin:0 0 1rem}

/* Frame lines */
.frame-top,.frame-bottom{ height:1px; background:#dcdcdc }
.frame-top{ margin-bottom:.75rem }
.frame-bottom{ margin-top:2rem }

/* ---------- Header ---------- */
.header-inner{ padding: 1rem 0 }
.masthead{
  margin:.2rem 0 1rem;
  text-align:center;
  font-family:Cinzel, serif;
  font-weight:700;
  letter-spacing:.12em;
  font-size: clamp(2rem, 2.2rem + 2vw, 4rem);
}
.nav-list{ list-style:none; display:flex; gap:3rem; padding:0; margin:0; justify-content:center }
.nav-pill{
  display:inline-block; text-decoration:none;
  background:var(--accent); color:var(--accent-ink);
  padding:.55rem 1.1rem; border-radius:10px;
  font-weight:600; font-size:.95rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
  transition: transform .15s ease, box-shadow .2s ease;
}
.nav-pill:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18) }

.linkedin-btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
margin-top: 1rem;
background-color: #0a66c2; /* LinkedIn blue */
color: white;
text-decoration: none;
font-weight: 600;
padding: 0.55rem 1.1rem;
border-radius: 10px;
transition: background 0.2s ease, transform 0.2s ease;
}

.linkedin-btn:hover {
background-color: #004182;
transform: translateY(-2px);
}

.linkedin-icon {
width: 18px;
height: 18px;
filter: brightness(0) invert(1);
}

/* Contact buttons container */
.contact-buttons {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 1rem;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-weight: 600;
padding: 0.55rem 1.1rem;
border-radius: 10px;
color: #fff;
text-decoration: none;
transition: transform 0.2s ease;
height: 42px;                /* identical height /
min-width: 140px;            / identical width */
}
.btn:hover {
transform: translateY(-2px);
}
.btn svg {
width: 20px;
height: 20px;
display: block;
}
/* brand colors */
.btn--linkedin { background:#0a66c2; }
.btn--linkedin:hover { background:#004182; }
.btn--email { background:#000; }
.btn--email:hover { background:#222; }
/* keeps icons level */
.btn span {
line-height: 1;
transform: translateY(1px);
}

/* ---------- Hero ---------- */
.hero{ padding: 1.2rem 0 2.2rem }
.hero-grid{
  display:grid; gap:3.5rem;
  grid-template-columns: 430px 1fr;
  align-items:center;
}

.portrait{ margin:0; width:100%; max-width:430px; aspect-ratio: 1/1; position:relative }
.portrait img{
  width:100%; height:100%; display:block; object-fit:cover;
  background:#e9e9e9; border-radius:22px;
  box-shadow: 0 10px 28px var(--ring);
}
.portrait.alt::before{
  content:""; position:absolute; left:-14px; top:-18px;
  width:88%; height:88%; border-radius:26px; background:#000;
  z-index:-1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

.hero-right{ max-width:620px; text-align:left; margin-inline:auto }
.welcome{
  font-family:Cinzel, serif; font-weight:700; letter-spacing:.18em;
  font-size: clamp(1.4rem, 1.2rem + 1.6vw, 2.1rem);
  margin: 0 0 .75rem;
}
.lead{ color:#333; max-width:530px; margin-inline:auto }

/* ---------- Projects ---------- */
.projects{ padding: 2rem 0 3rem }
.section-title{
  font-family:Cinzel, serif;
  letter-spacing:.14em;
  text-align:center; margin:0 0 1rem;
}
.cards{
  display:grid; gap:1.35rem;
  grid-template-columns: repeat(3, 1fr);
}
.card{
  background:var(--card);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 10px 24px var(--ring);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 6px 0 rgba(0,0,0,.06), 0 18px 36px var(--ring) }
.card-link{ text-decoration:none; color:inherit; display:block }
.card-thumb {
position: relative;
overflow: hidden;
border-bottom: 1px solid #ddd;
}

.card-thumb img {
width: 100%;
height: 160px;
object-fit: cover;
display: block;
}

.card-thumb::before {
content: "";
position: absolute;
left: -18px;
top: -18px;
width: 0;
height: 0;
border-left: 36px solid transparent;
border-bottom: 36px solid var(--accent);
transform: rotate(-10deg);
}

.card-body{ padding:1rem 1rem 1.2rem }
.card-body p{ color:var(--muted); margin-top:.35rem }


/* ---------- Mission Statement ---------- */
.mission-quote {
font-family: 'Playfair Display', serif;
font-style: italic;
font-weight: 500;
font-size: 1.3rem;
line-height: 1.5;
color: #111;
border-left: 4px solid #000000;
padding-left: 1rem;
margin-top: 3rem;
}
/* ---------- Contact & Footer ---------- */
.contact{ padding: 2rem 0; background:#fff; border-top:1px solid #e6e6e6 }
.contact-inner p a{ color:var(--ink); font-weight:600 }
.site-footer{ padding:1rem 0; text-align:center; color:#6b7280 }

.contact-inner {
  text-align: center;
  }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; gap:2rem }
  .portrait{ margin-inline:auto }
  .cards{ grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 640px){
  .cards{ grid-template-columns: 1fr }
}
/* ---------- Case Study Page Additions ---------- */
.case-grid {
display: grid;
grid-template-columns: 420px 1fr;
gap: 2.5rem;
align-items: flex-start;
padding-top: 2rem;
padding-bottom: 3rem;
}
.project-card {
background: #fff;
border: 1px solid #eee;
border-radius: 12px;
box-shadow: 0 4px 18px rgba(0,0,0,.05);
padding: 1rem;
}
.project-card .card-thumb img {
width: 100%;
height: auto;
border-radius: 10px;
object-fit: cover;
}
.meta { margin-top: 1.5rem; }
.meta-title { font-family: Cinzel, serif; font-size: 1.1rem; margin-bottom: .4rem; }
.meta-list, .meta-links { list-style: none; padding-left: 0; margin: 0 0 1.2rem; }
.meta-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.meta-links a:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.case-body { line-height: 1.65; }
.case-body h2, .case-body h3 { font-family: Cinzel, serif; margin-top: 1.2rem; }
.case-body .lead { margin-top: .8rem; color: #333; }
.case-body .block { margin-top: 1.6rem; }
.bullets { margin: .4rem 0 0 1.2rem; }
.note { font-size: .9rem; color: #6b7280; margin-top: .4rem; }
@media (max-width: 900px){ .case-grid{ grid-template-columns: 1fr; } }

/* Page fade transition */
body {
opacity: 1;
transition: opacity 0.18s ease;
}
body.page-exit {
opacity: 0;
}
/* Lock header height to prevent jump /
.site-header {
min-height: 120px;       / match your header size */
display: grid;
place-items: center;
}
/* Keep masthead and nav visually stable */
.masthead {
line-height: 1.1;
margin: 0;
}

.demo-highlight {
  background: #f8f9fb;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  max-width: 800px;
  margin-inline: auto; /* centers the block */
}

.demo-title {
  text-align: center;
  font-family: Cinzel, serif;
  color: #004A90;
  margin-bottom: 1rem;
}

.demo-highlight p {
  text-align: left;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1473E6;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-demo:hover {
  background-color: #004A90;
  transform: translateY(-2px);
}


.confidential-note {
  text-align: center;
  max-width: 850px;
  margin: 0.5rem auto 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  font-style: italic;
}

