/* Font loading */
@font-face {
  font-family: 'Graphik';
  src: url('font/Graphik-Extralight.woff2') format('woff2'),
       url('font/Graphik-Extralight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url('font/Graphik-Regular.woff2') format('woff2'),
       url('font/Graphik-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url('font/Graphik-Medium.woff2') format('woff2'),
       url('font/Graphik-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GraphikCompact';
  src: url('font/GraphikCompact-Light.woff2') format('woff2'),
       url('font/GraphikCompact-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'GraphikCompact';
  src: url('font/GraphikCompact-Regular.woff2') format('woff2'),
       url('font/GraphikCompact-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* ── Druk Condensed Super (trial) ─────────────────── 
@font-face {
  font-family: 'DrukCondSuper';
  src: url('font/DrukCond-Super-Trial.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}*/

@font-face {
  font-family: 'ITC Serif Gothic';
  src: url('font/ITC SerifGothic.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'ITC Serif Gothic';
  src: url('font/ITC SerifGothicLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'ITC Serif Gothic';
  src: url('font/ITC SerifGothicBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* add this extra face so 600 resolves to the bold file too */
@font-face {
  font-family: 'ITC Serif Gothic';
  src: url('font/ITC SerifGothicBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}






/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --mono: #000000;
  --grey: #333;
  --light-grey: #999;
  --white: #ffffff;
  --gray-white: #d3d3d3;
  font-family: 'Graphik', sans-serif;
  color: var(--white);
}

body {
  font-family: 'Graphik', sans-serif;
  background: var(--mono);
  color: var(--white);
  margin: 0;
  padding-bottom: 48px; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Category bar (projects nav) */
.category-bar {
  background: var(--mono);
  border-top: 0px solid var(--grey);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: 3rem;
}

.category-bar ul {
  margin: 0;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}




.cat-link {
  cursor: pointer;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: 0.6;
  transition: opacity 0.2s;
  
  line-height: 1;         /* prevents extra vertical space from font metrics */
  padding-top: 0.2rem;  
  padding-bottom: 0.15rem;

}

.cat-link:hover,
.cat-link.active {
  opacity: 1;
}


/* ── HERO layout & behaviour ───────────────────────── */
.hero-section{
  height:100vh;                                   /* fills first view */
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  /*overflow:hidden;*/
}
.hero-image{
  max-width:90%;
  max-height:90%;
  transform-origin:top center;
  will-change:transform;
}

/* tweak hero-about alignment & width */
.hero-about{
  position:absolute;
  bottom:4rem;          /* keep same vertical offset */
  left:2rem;            /* anchor to left edge */
  transform:none;       /* no centering translate */
  max-width:82ch;       /* wider than 34ch  (adjust to taste) */
  text-align:left;      /* ensure left-aligned */
}

.hero-about h2{
  font-size:.8rem;font-weight:200;margin:0 0 .75rem 0;
}
.hero-about p{
  font-size:2.4rem;line-height:1.3;margin:0;
}


/* ── tagline fixed at bottom centre ───────────────── */
.tagline{
  position:fixed;
  bottom:3rem;left:50%;
  transform:translateX(-50%);
  font-size:.75rem;opacity:.8;
  pointer-events:none;
  white-space:nowrap;
  z-index:20;
}


/* Section base */
.content-section {
  padding: 60px 20px 80px;
  background: var(--mono);
  border-top: 1px solid var(--grey);
}

/* ── About block fills remainder after jump ───────── */
.about-block{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:3rem 2rem;
  margin-top:0 !important;;

} 

#about h2 {
  font-size: 0.8rem;
  font-weight: 200;
}

#about p {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.3;
  max-width: 34ch;
  margin: 0 0 0.75rem 0;
  padding: 0;
  text-align: left;
}

/* Works */
#section1 {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--grey);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
}


/* Projects layout */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  padding: 6rem 2rem 2rem 2rem;
  max-width: 90%;
  margin: 0 auto;
}



/* Reduce gap under last project row only */
.project-list .project-row:last-child {
  margin-bottom: 1rem !important; /* force override */

}


.project-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start; /* align both card and description at the bottom */
  margin-bottom: 4rem;
}

.project-row.left {
  transform: translateX(-4vw);
}

.project-row.right {
  flex-direction: row-reverse;
  text-align: right;
  transform: translateX(4vw);
}



/* Right side margin for last category image ── */
.project-row.right:last-of-type 
{ transform: translateX(0); 
}


/* LEFT ALIGN FOR RIGHT IMAGE── fine-tune text alignment when description is left of image ── */
.project-row.right .project-description{
  text-align:left;                     /* body copy aligns left   */
}

.project-row.right .project-description p:first-child{
  text-align:left;   /* override the earlier “right”. for the project title of right side */
}





/* Card and image hover */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: clamp(500px, 55vw, 1000px); /* baseline size */
}

.project-card.large-card {
  width: clamp(550px, 65vw, 1200px); /* just a bit larger */
}

.project-card.small-card {
  width: clamp(360px, 45vw, 800px); /* just a bit smaller */
}



.project-thumb::before {
  content: "";
  display: block;
  padding-top: 75%; /* creates a 4:3 aspect ratio box */
}


.project-thumb {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* optional for consistent shape */
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.project-thumb .img-default {
  z-index: 1;
  opacity: 1;
}

.project-thumb .img-hover {
  z-index: 2;
  opacity: 0;
}

.project-thumb:hover .img-default {
  opacity: 0;
}

.project-thumb:hover .img-hover {
  opacity: 1;
}

/* Show description only when hovering over the image card */
.project-card:hover + .project-description {
  opacity: 1;
  transform: translateY(0);
}


/* Description block */
.project-description {
  max-width: 400px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--white);
  padding: 1rem 1rem;

   /* Soft box styling */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: none;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5); /* 👈 key to soft fade-out border */
  border: none;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}


.project-tags {
  font-family: 'ITC Serif Gothic', serif;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.75rem 0; /* space above and below */
}

.project-tags .tag {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(196, 196, 196);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.project-tags .tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}


/* teaser hierarchy inside .project-description */
.project-description .kicker{
  font: 600 0.75rem/1 'Graphik', sans-serif;
  letter-spacing:.08em; text-transform:uppercase; opacity:.7; margin:0 0 .5rem;
}
.project-description p.kicker{
  font-family: 'Graphik', sans-serif;
  font-weight: 500; /* or 400, unless you also load a 600 weight */
}

.project-description .project-title{
  font: 400 clamp(14px, 2vw + 12px, 20px)/1.4 'Graphik', sans-serif;
  margin: 0 0 .75rem; letter-spacing:-0.01em; 
  max-width:40ch;
}
.project-description .project-tagline{
  font-family:'ITC Serif Gothic', serif; font-weight:300;
  font-size: clamp(18px, 0.9vw + 12px, 24px); line-height:1.25;
  margin: 0 0 1rem; opacity:.95;
}
.project-description .project-body{
  font: 400 clamp(15px, 0.35vw + 12px, 18px)/1.6 'Graphik', sans-serif;
  margin:0 0 1rem; max-width:65ch;
}

/* instead of p:first-child, target the actual body copy */
.project-description p.body { font-family: 'GraphikCompact', serif; }


/* keep the panel visible while hovering the row OR the panel itself,
   and make it clickable */
.project-row:hover .project-description,
.project-description:hover,
.project-card:hover + .project-description {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;  
}


/* thumbnail grid */
.project-thumbnails{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(80px,1fr));
  gap:.5rem;
  margin:1rem 0 1.25rem;
}
.project-thumbnails img{
  width:100%; aspect-ratio:1/1; object-fit:cover; display:block;
  border-radius:4px; cursor:pointer; transition:transform .25s ease;
}
.project-thumbnails img:hover{ transform:scale(1.05); }

/* collapsed long copy by default (keeps your hover‑to‑show behavior intact) */
.project-body-full{ display:none; margin-top:1rem; }



.project-row.left .project-description,
.project-row.right .project-description {
  margin: 0;
}


/* Highlighted text only */
.project-description .alt-font {
  max-width: none;   /* remove the 400px inherited limit */
  display: block;    /* make it respect width on its own line */
  width: calc(100% + 5rem);       /* allow it to fill the available space */
}



.alt-font {
  font-family: 'ITC Serif Gothic', serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700; 
}


/* Heading in footer*/
h1.alt-font {
  font-family: 'ITC Serif Gothic', serif; /* keep alt-font typeface */
  font-weight: 300;  /* light */
  font-size: 1rem; 
  line-height: 0.2;
}

/* Heading in footer*/
h2.alt-font {
  font-family: 'ITC Serif Gothic', serif; /* keep alt-font typeface */
  font-weight: 900;  /* bold */
  font-size: 1.6rem; /* bigger size for headings */
  -webkit-text-stroke: 0.5px currentColor; /* subtle outline makes strokes thicker */
  /*text-shadow: 0.5px 0 currentColor, -0.5px 0 currentColor;*/
  line-height: 1.2;
  max-width: none;   /* let it be full width */
}

/* PORTRAIT VARIANT (first card only) — keep as-is */
.project-card.portrait .project-thumb::before { display: none; }
.project-card.portrait .project-thumb { display: grid; aspect-ratio: auto; overflow: hidden; }
.project-card.portrait .project-thumb img {
  position: static; width: 100%; height: auto; object-fit: contain;
  grid-area: 1 / 1; transition: opacity .4s ease; backface-visibility: hidden; will-change: opacity;
}
.project-card.portrait .project-thumb .img-default { opacity: 1; }
.project-card.portrait .project-thumb .img-hover   { opacity: 0; pointer-events: none; }
.project-card.portrait .project-thumb:hover .img-default { opacity: 0; }
.project-card.portrait .project-thumb:hover .img-hover   { opacity: 1; }
.project-card.portrait { width: clamp(340px, 38vw, 760px); }   
/* Nudge the portrait card toward center (more left margin) */
.project-row.left .project-card.portrait { margin-left: clamp(1.5rem, 8vw, 12rem); }


/* Slightly narrower text ONLY for the first project row */
.project-list .project-row:first-of-type .project-description {
  max-width: clamp(460px, 32vw, 660px);
}

/* Let the title wrap a bit tighter too */
.project-list .project-row:first-of-type .project-description .project-title {
  max-width: 52ch;
}





/* Responsive styles */
@media (max-width: 768px) {
  .project-card.portrait .project-thumb { aspect-ratio: auto !important; }
  .project-card.portrait .project-thumb::before { display: none !important; }
  .project-row.left .project-card.portrait { margin-left: 0; } /* reset desktop nudge */

  .project-list {
  padding: 2rem 1rem;
}
  .project-row.left,
  .project-row.right {
    transform: none !important;
    flex-direction: column;
    align-items: flex-start; /* ⬅️ change from center to left align */
    gap: 1.5rem;
    padding-left: 0rem;
    padding-right: 0rem;
  }


  .project-card,
  .project-card.large-card,
  .project-card.small-card {
    width: 100%;
    max-width: 100%;
  }

  .project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

  .project-description {
    opacity: 1;
    transform: none;
    text-align: left; /* ⬅️ change from center to left */
    padding: 0.75rem 0;
    max-width: 100%; /* ⬅️ prevent narrow layout */
  }

  .project-info {
    margin-top: 0.75rem;
    padding: 0;
    text-align: left; /* optional, if used elsewhere */
  }

  #about p {
    font-size: 1.6rem;
    text-align: left;
    margin: 0 auto 0.75rem auto;
  }

  .category-bar ul {
    justify-content: flex-start;
  }

  .site-footer {
    text-align: left;
  }


}



/* ──────────────Apart from media ────────────────────────────────────────────────*/
.shrink-runway{ height:200vh; }   /* was 200vh give yourself plenty of space */

.scroll-spacer {
  height: 150vh; /* adjust this to control how long the scroll-to-shrink takes */
}

/* only the Works heading */
#section1 > h2{
  margin-bottom:10rem;   /* was 1.5rem – adjust to taste */
}





/* ─── Footer reveal — lives behind the last section ─── */
#section1 { position: relative; z-index: 1; }


.site-footer a {
  color: inherit;       /* take the color from the parent text */
  text-decoration: underline; /* optional: remove underline */
}

.site-footer a:hover {
  text-decoration-thickness: 2px; /* slightly bolder underline */
  color: #0077ff; /* or any accent color you want */

}



.site-footer{
  position: relative;
  height: 100vh;          /* full-screen footer */
  margin-top: -100vh;     /* pull it up behind #section1 */
  z-index: 0;
  background:#f5f5f5;
  color:#000;
  border-top:1px solid #ccc;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;  /* copy at bottom padding-bottom:4rem;*/
  
  padding: 0 2rem 1rem; /* top=0, left/right=2rem, bottom=4rem */  
}



.site-footer h2{ 
  margin:0 0 .75rem 0; 
  font-size:1.6rem; }
.site-footer p { 
  margin:0 0 2rem 0; 
  max-width:50ch; }

/*.footer-credit {
  position: absolute;
  right: 2rem;         //adjust to match your padding or set to 0 for edge 
  bottom: 1rem;         //space from the bottom of the footer 
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(0.5rem);
}*/


.footer-credit {
  position: fixed;      /* pin to viewport instead of footer */
  right: 2rem;          /* adjust padding from right edge */
  bottom: 1.5rem;       /* distance from bottom of viewport */
  font-size: 0.75rem;
  opacity: 0;           /* hidden until GSAP fades it in */
  transform: translateY(0.5rem);
  z-index: 100;         /* make sure it stays above background */
}

/* arrow*/ 
.read-more {
  background: none;
  border: none;
  color: inherit;                /* matches surrounding text color */
  font: inherit;                  /* same font family/size */
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin-top: 1rem;
  display: inline-block;
}

.read-more:hover {
  text-decoration: underline;     /* subtle hover cue */
}

