/* ===========================
   Global Variables
   =========================== */

:root {
  --bg: #0A0A0A;
  --muted: #EAEAEA;
  --accent: #FFF;
  --accent-2: #2563eb;
  --container: 1111px;
  --container-break: 1280px;
}

/* ===========================
   Reset & Base
   =========================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--accent);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

@font-face {
	font-family: 'Neue Montreal';
	src: url('NeueMontreal-Bold.otf') format('opentype');
	font-weight: 500;
}

p { margin: 0;}

/* ===========================
   Layout Helpers
   =========================== */

.inner {
  max-width: var(--container-break);
  padding: 24px;
  margin-inline: auto;
}

 .tile { 
  max-width: var(--container);
} 

.block-text, .block-heading {
  width: 65ch;
}

.section {
  padding: 3rem 0;
}

/* ===========================
   Skip Link
   =========================== */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #111;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 4px;
}

/* ===========================
   Site Header
   =========================== */

.site-header {
  /* position: sticky; */
  top: 0;
  z-index: 40;
  /* background: rgba(255, 255, 255); */
  /* backdrop-filter: blur(6px); */
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.04); */
}

.site-header h1, .project-cover h1 {
  font-family: 'Neue Montreal', "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
}

.site-header h1 a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.site-header h1 a:hover {
  color: 2196F3;
}


.site-header .in, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  max-width: 1111px;
  margin: auto;
}

.brand a {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--accent);
  padding: .4rem .6rem;
  border-radius: 6px;
}

.site-nav a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-2);
}

.avatar { 
  border-radius: 50%;
  height: 144px; 
}

.portfolio:hover {
  transform: translateY(-3px);
    /* box-shadow: 0 6px 15px rgba(0,0,0,.08); */
}

.portfolio {
  position: fixed;
  top: 100px;
  left: -72;
  z-index: 9999;
}

.intro-card {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin: 100px 0;
}

.intro-text h2 {
  margin: 0;
}

.intro-text a {
  color: #3C79FF;
  text-decoration: none;
}

footer p {
  margin: 16px 0;
  font-size: 0.95rem;
  color:#666;
}

.grid-two { 
  grid-template-columns: repeat(1, 1fr);
  align-items: start;
  display: grid;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-two {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  }
}


/* ===========================
   Hero
   =========================== */

.hero {
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0;
}

.tagline {
  margin-top: .75rem;
  color: var(--muted);
}

/* ===========================
   Portfolio Page
   =========================== */

.portfolio-page {
  /* width: 100%; */
  /* max-width: 90%; */
  margin-bottom:100px;
}

.about {
  width: 90%;
  max-width: var(--container);
  margin-inline: auto;
}

/* ===========================
   Portfolio Highlights
   =========================== */

.portfolio-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* margin-block: 3rem; */
  margin-bottom: 100px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-icon {
  width: 60px;
  height: auto;
  flex-shrink: 0;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.highlight-description {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* @media (min-width: 768px) {
  .portfolio-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
} */

/* ===========================
   Project Cards Grid
   =========================== */

.portfolio-projects {
  display: grid;
  /* grid-template-columns: repeat(1, 1fr); */
  gap: 2rem;
}

.project-card {
  /* border: 1px solid #ddd; */
  /* padding: 1.25rem; */
  /* border-radius: 8px; */
  transition: transform .2s;
}

.project-card:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 6px 15px rgba(0,0,0,.08); */
}

.project-card__media img {
  width: 100%;
  height: auto;
}

.project-card__media {
  margin: 0;
}

.project-card__title {
  font-size: 1.1rem;
  margin: .75rem 0 .25rem;
}

.project-card__meta {
  font-size: .85rem;
  color: var(--muted);
}

/* ===========================
   Blocks
   =========================== */

.block {
  margin: 4rem 0;
}

.block-text, .block-heading {
  margin: 4rem auto;
}

.block-image img {
  width: 100%;
  height: auto;
  margin: 0;
}

.block-gallery {
  display: grid;
  gap: 2rem;
}

.block-image figure, .block-gallery figure {
  margin: 0;
}

/* ===========================
   Stack (Text + Full Width Image)
   =========================== */

.stack {
  /* margin-block: clamp(3rem, 8vw, 6rem); */
  margin-top: 0;
}

.stack__text {
  max-width: 65ch;
  /* margin-inline: auto; */
  /* padding-inline: 1rem; */
  margin-bottom: 120px;
  font-size: 1.125rem;
  line-height: 1.7;
}

.stack__text p {
  margin-bottom: 1.125rem;
}

.stack__media {
  width: 100vw;
  margin-left: 50%;
  margin-bottom: 120px;
  transform: translateX(-50%);
}

.stack__media img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
}

figcaption {
  /* max-width: 65ch; */
  margin: .75rem auto 0;
  font-size: .875rem;
  color: #666;
}

/* ==========================
   Project Cover
========================== */

.project-cover, .projects {
  width: 100%;
  /* border-top: 10px solid #979797; */
  overflow: hidden;
}
.project-cover {
  background-color: #FFF;
}

.projects {
  background-color: #111;
  padding: 24px; 
}

.project-cover__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* min-height: 100vh; */
  align-items: start;
}

/* Text column */
.project-cover__content {
  /* padding: 2rem; base mobile padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 840px;
  margin: 0 auto;
}

.project-cover__company {
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #979797;
  margin-bottom: 0.5rem;
}

.project-cover__title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0.25rem 0;
  color: #000;
}

.project-cover__subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-top: 0.5rem;
  line-height: 1.1;
  color: #000;
}

.project-cover__meta {
  margin-top: 2rem;
  color: #000;
}

.project-cover__row {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.project-cover__row dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  width: 180px;
}

.project-cover__row dd {
  flex: 1;
  font-size: 1rem;
  margin: 0;
}

.project-cover__divider {
  height: 1px;
  background: rgba(0,0,0,0.25);
  margin: 1rem 0;
}

.project-cover__footnote {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #ffffff;
}

/* Cover image */
/* .project-cover__media {
  position: relative;
  width: 100%;
  /* height: 100%; */
  /* height: 1024px;
  margin: 0;
  background-color: #e8ede9;
}  */

.project-cover__media img {
  display: block;
  width: 100%;
  height: 100%;
  /* object-fit: scale-down; */
}

.coverHome {
  width: 100%;
  max-height: 1024px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.coverHome img {
width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  object-position: var(--x, 50%) var(--y, 50%);
}

.project-cover__media {
  position: relative;
  width: 100%;
  /* height: 1024px; */
  max-height: 800px;
  margin: 0;
  /* height: 100%; */
  overflow: hidden;
}

.project-cover__image--outer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-cover__image--inner {
  position: absolute;
  inset: auto;
  width: 60%;
  height: auto;
  bottom: 0%;
  left: 50%;
  object-fit: scale-down;
  transform: translateX(-50%);
}

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

/* Mobile first: stack columns */
@media (max-width: 900px) {
  .project-cover__grid {
    grid-template-columns: 1fr;
  }

  .block { 
    margin: 4rem 0;
  }

  .project-cover__content {
    /* padding: 1rem; */
    /* padding: 5%; */
    width: 90%;
    max-width: 90%;
    margin-top: 111px;
  }

  .project-cover__media {
    /* aspect-ratio: 2/4; */
    height: 600px;
    margin-top: 1.5rem;
  }

  .project-cover__row {
  display: block;
  }
 
  .portfolio {
    left: 40px;
    top: -72;
  }


}

/* Tablets */
@media (min-width: 901px) and (max-width: 1240px) {
  .project-cover__content {
    /* padding: 2rem 3rem; */
    /* padding: 2rem 0; */
    padding: 10%;
    margin-top: 111px;
  }

  .block, .block-heading { 
    /* margin: 4rem 24px; */
    /* margin: 4rem 0; */
   margin: 4rem auto;
  }

  .project-cover__row {
  display: block;
  }

  .portfolio {
  left: 40px;
  top: -72;
  }

}

/* Desktops */
@media (min-width: 1201px) {
  .project-cover__content {
    /* padding: 3rem 4rem; */
    /* padding: 3rem 0; */
    /* padding: 10%; */
    padding: 6rem 6rem 3rem;
  }

}


/* ===========================
   Footer
   =========================== */

.site-footer {
  padding: 2rem 0;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  font-size: .95rem;
}

/* ===========================
   Responsive Grid
   =========================== */

@media (max-width: 468px) {
  .portfolio-projects {
    grid-template-columns: repeat(1, 1fr);
  }

  .intro-card {
    display: block;
  }

  .intro-text {
    margin-top: 20px;
  }
}

@media (min-width: 768px) {
  .portfolio-projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .portfolio-projects {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1111px;
    margin: 0 auto;
  }
}


@media (min-width: 1200px) {
  .tile .portfolio-projects {
    grid-template-columns: repeat(3, 1fr);
  }
}