/* styles.css */

/* =========================
   TOKENS / BASE
   ========================= */
:root{
  --ink:#141414;
  --muted:#5b5b5b;
  --line:rgba(20,20,20,.10);
  --shadow: 0 22px 60px rgba(20,20,20,.10);

  --paper:#ffffff;

  --max:1080px;
  --headerH:64px;

  /* global spacing */
  --headerOffset: 92px; /* fallback */
  --sectionPad: 40px;
  --sectionPadMobile: 60px;
  --sectionGap: 46px;
  --sectionGapMobile: 32px;

  --lime:#32ff00;

  /* section background colors (soft, stylish) */
  --bg-work:   #f7f6f3;  /* warm paper */
  --bg-about:  #f6f3f1;  /* warm blush paper */
  --bg-contact:#f2f2f7;  /* cool lavender grey */
}

/* =========================
   RESET / LAYOUT
   ========================= */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--ink);
  background:#fff;
  font-family:"Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-weight:400;
  letter-spacing:-0.01em;
  overflow-x:hidden;
}

a{color:inherit}
main{overflow-x:hidden}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 50px;
}
@media (max-width:640px){
  .wrap{padding:0 24px;}
}

section{scroll-margin-top: var(--headerOffset);}

/* =========================
   TYPE
   ========================= */
p{line-height:1.9;margin:0 0 14px}
h1,h2{letter-spacing:-0.02em}
h2{
  margin:0;
  font-size: clamp(32px, 3vw, 40px);
  font-weight:700;
}
.hint{
  margin:8px 0 0;
  color:#fffff;
  font-size:14px;
  line-height:1.8;
font-weight:200;
}

.heroTitle{font-weight:800}
.projectTitle{font-weight:800}
.brand strong{font-weight:700}
.tag,.heroKicker{font-weight:600}
.title{font-weight:600}

/* =========================
   HEADER / NAV
   ========================= */
header{
  position:fixed;top:0;left:0;right:0;
  z-index:1000;
  background: rgba(10,10,10,.18);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(255,255,255,.14);
  transition: background .25s ease, border-color .25s ease;
}
body.scrolled header{
  background: rgba(255,255,255,.90);
  border-bottom:1px solid var(--line);
}

.top{
  height: var(--headerH);
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;
  position:relative;
}

.brand{
  text-decoration:none;
  display:flex;align-items:center;gap:12px;
  min-width:220px;
}
.monogram{
  width:34px;height:34px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  color:#fff;
  display:grid;place-items:center;
  font-weight:800;font-size:12px;letter-spacing:.6px;
}
body.scrolled .monogram{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,20,20,.06), rgba(20,20,20,.02));
  color:var(--ink);
  box-shadow: 0 12px 30px rgba(20,20,20,.08);
}
.brand strong{
  font-size:13px;
  letter-spacing:.35px;
  text-transform:uppercase;
  color: rgba(255,255,255,.92);
}
body.scrolled .brand strong{color: var(--ink);}

nav{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
nav a{
  position: relative;
  text-decoration:none;
  padding:8px 15px;
  font-size:13px;
  color: rgba(255,255,255,.82);
  border:none;
  transition: color .25s ease;
}

/* animated underline */
nav a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-2px;
  width:0;
  height:1px;
  background: currentColor;
  transition:
    width .35s cubic-bezier(.2,.8,.2,1),
    left .35s cubic-bezier(.2,.8,.2,1);
}

/* hover animation */
nav a:hover{color:#fff}
nav a:hover::after{width:100%;left:0}

/* active section */
nav a[aria-current="page"]{color:#fff}
nav a[aria-current="page"]::after{width:100%;left:0}

body.scrolled nav a{color:var(--muted)}
body.scrolled nav a:hover{color:var(--ink)}
body.scrolled nav a[aria-current="page"]{color:var(--ink)}

/* =========================
   BURGER MENU
   ========================= */
.burger{
  display:none;

  appearance:none;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  padding:10px 12px;
  cursor:pointer;
  color:#fff;
  line-height:0;
  transition: all .25s ease;
}
body.scrolled .burger{
  border:1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: var(--ink);
}
.burger:hover{
  background: var(--lime);
  border-color: var(--lime);
  color:#000;
}
.burgerLines{width:18px;height:12px;display:grid;gap:3px;}
.burgerLines span{display:block;height:2px;background: currentColor;}
.burger:hover .burgerLines span{background:#000}

.menuBackdrop{
  position:fixed;inset:0;
  background: rgba(0,0,0,.25);
  display:none;
  z-index:900;
}

.menuPanel{
  position:absolute;
  top: calc(var(--headerH) + 10px);
  right: 20px;
  width: min(340px, calc(100vw - 40px));
  background: rgba(255,255,255,.96);
  border:1px solid var(--line);
  box-shadow: 0 30px 90px rgba(20,20,20,.18);
  padding:10px;
  display:none;
  z-index:1200;
}
.menuPanel a{
  display:block;
  padding:12px 10px;
  text-decoration:none;
  font-size:14px;
  color: var(--ink);
  border:1px solid transparent;
  filter:none !important;
  opacity:1 !important;
  transform:none !important;
}
.menuPanel a:hover{
  background: rgba(20,20,20,.04);
  border-color: rgba(20,20,20,.12);
}
.menuPanel a[aria-current="page"]{
  background: rgba(20,20,20,.06);
  border-color: rgba(20,20,20,.16);
  font-weight:650;
}

@media (max-width: 980px){
  nav{display:none}
  .burger{display:inline-flex;align-items:center;justify-content:center}
  .brand{min-width:auto}
  .brand strong{display:none}
}

/* =========================
   HERO
   ========================= */
.heroFull{
  position: relative;
  width: 100%;
  height: 100vh;        /* full viewport height */
  min-height: 600px;    /* safety for very small screens */
  background: #000;
  overflow: hidden;
}

.heroTrack{
  position:absolute;inset:0;
  display:flex;
  transition: transform .85s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.heroSlide{
  position:relative;
  flex:0 0 100%;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding-top: var(--headerH);
}
.heroMedia{position:absolute;inset:0;overflow:hidden}
.heroMedia img{
  position:absolute;left:50%;top:50%;
  transform: translate(-50%, -50%) scale(1.06);
  width:100%;height:100%;
  object-fit:cover;
  opacity:.95;
  filter: contrast(1.02) saturate(1.02);
  will-change: transform;
}
.heroOverlay{
  position:absolute;inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.55) 60%, rgba(0,0,0,.66));
  pointer-events:none;
}
.heroContent{
  position:relative;
  width:min(980px, 100%);
  padding: clamp(22px, 4vw, 54px);
  text-align:center;
  color:#fff;
}
.heroKicker{
  display:inline-flex;align-items:center;gap:10px;
  font-size:12px;
  letter-spacing:.55px;
  text-transform:uppercase;
  opacity:.86;
  border:1px solid rgba(255,255,255,.20);
  padding:8px 10px;
  background: rgba(0,0,0,.18);
}

.heroTitle{
  margin:18px 0 12px;
  font-size: clamp(38px, 5vw, 74px);
  line-height:1.06;
  letter-spacing:-0.04em;
  font-weight:800;

  opacity:0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1) .50s,
    transform .9s cubic-bezier(.2,.8,.2,1) .50s;
  will-change: opacity, transform;
}

.heroSub{
  margin:0 auto;
  max-width:70ch;
  font-size:15px;
  line-height:1.9;

  opacity:0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1) .90s,
    transform .9s cubic-bezier(.2,.8,.2,1) .90s;
  will-change: opacity, transform;
}

.heroSlide.is-active .heroTitle,
.heroSlide.is-active .heroSub{
  opacity:1;
  transform: translate3d(0,0,0);
}

.heroDotsWrap{
  position:absolute;left:0;right:0;bottom:22px;
  display:flex;justify-content:center;
  z-index:5;
  pointer-events:none;
}
.heroDots{
  pointer-events:auto;
  display:flex;gap:9px;align-items:center;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
}
.dotBtn{
  width:10px;height:10px;
  border:1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.16);
  cursor:pointer;
  padding:0;
}
.dotBtn[aria-current="true"]{
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.90);
}

/* =========================
   SECTIONS / BACKGROUNDS
   ========================= */

main > section{margin-top:0}
main > section.heroFull{margin-top:0}

main > section:not(.heroFull):not(#projectPage) {
  padding: var(--sectionPad) 0;
}

@media (max-width:640px){
  main > section{ margin-top: 0; }
  main > section:not(.heroFull):not(#projectPage) {
    padding: var(--sectionPadMobile) 0;
  }
}

/* Soft section colors (stats handled in stats.css) */
#work{
  background: linear-gradient(
    135deg,
	  #041c22,
    #14687b,
    #123f4a
    
  );

  background-size: 200% 200%;
  animation: statsGradient 18s ease infinite;

  color: rgba(255,255,255,.92);
}
@keyframes statsGradient{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

#about{background:#bfd1d5;}
#contact{background: var(--bg-contact);}

/* subtle divider line between sections */
main > section:not(.heroFull){
  border-top: 1px solid rgba(20,20,20,.06);
  border-bottom: 1px solid rgba(20,20,20,.06);
}

/* headings: reduce top space */
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom: 28px;
  padding-top: 0;
}

/* =========================
   WORK — EXPANDING PANELS
   ========================= */
.workFull {
  width: 100%;
}

.workIntroBlock {
  max-width: 1080px;
  margin: 0 auto 34px;
  padding-left: 50px;
  padding-right: 50px;
}

.workPanels {
  display: flex;
  width: 100%;
  min-height: 620px;
  gap: 50px;
  overflow: hidden;
  padding: 50px;
}

.workPanels .card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  transition:
    flex 0.65s cubic-bezier(.2,.8,.2,1),
    transform 0.45s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.45s cubic-bezier(.2,.8,.2,1);
}

.workPanels:hover .card {
  flex: 0.85 1 0;
}

.workPanels .card:hover {
  flex: 2.4 1 0;
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 26px 20px rgba(0, 0, 0, 0.18);
}

.workPanels .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.22) 45%,
    rgba(0,0,0,.90) 100%
  );
  transition: background 0.45s ease;
}

.workPanels .card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,.10);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.workPanels .card:hover::after {
  opacity: 1;
}

.workPanels .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: blur(0px);
  transition:
    transform 0.7s cubic-bezier(.2,.8,.2,1),
    filter 0.45s ease;
}

.workPanels .card:hover .thumb {
  transform: scale(1.05);
  filter: blur(0px);
}

.workPanels .meta {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 3;
  padding: 0;
  color: #fff;
}

.workPanels .tag {
  display: inline-block;
  margin: 0 0 10px;
  color: #7ded10;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(.2,.8,.2,1);
}

.workPanels .client {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(.2,.8,.2,1);
}

.workPanels .title {
  margin: 10px 0 0;
  max-width: 28ch;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.workPanels .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.5s ease,
    transform 0.65s cubic-bezier(.2,.8,.2,1);
}

.workPanels .cta::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
}

.workPanels .card:hover .tag,
.workPanels .card:hover .client,
.workPanels .card:hover .title,
.workPanels .card:hover .cta,
.workPanels .card.is-active .tag,
.workPanels .card.is-active .client,
.workPanels .card.is-active .title,
.workPanels .card.is-active .cta {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* subtle default visible title on desktop before hover */
.workPanels .card .client {
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
  font-size: clamp(18px, 1.4vw, 24px);
}

.workPanels .card:hover .client,
.workPanels .card.is-active .client {
  font-size: clamp(24px, 2.5vw, 40px);
  opacity: 1;
}

/* tablet */
@media (max-width: 1100px) {
  .workPanels {
    min-height: 520px;
	  gap: 10px;
  }

  .workPanels .card {
    min-height: 520px;
  }

  .workPanels .meta {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* mobile: fall in line */
@media (max-width: 768px) {
  .workIntroBlock {
    padding-left: 24px;
    padding-right: 24px;
  }

  .workPanels {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 16px;
    padding: 0 16px;
  }

  .workPanels:hover .card,
  .workPanels .card:hover,
  .workPanels .card {
    flex: unset;
  }

  .workPanels .card {
    min-height: 320px;
  }

  .workPanels .thumb {
    filter: none !important;
    transform: scale(1) !important;
  }

  .workPanels .card::after {
    opacity: 1;
    background: rgba(0,0,0,.22);
  }

  .workPanels .tag,
  .workPanels .client,
  .workPanels .title,
  .workPanels .cta {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .workPanels .client {
    font-size: 28px;
  }
}
/* =========================
   WORK FILTERS
   ========================= */
.workFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.workFilter {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.workFilter:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

.workFilter.is-active {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.34);
}

/* =========================
   WORK CARD HIERARCHY
   ========================= */
.workGrid .card {
  display: flex;
  flex-direction: column;
}

.workGrid .thumb {
  height: 260px;
}

.workGrid .meta {
  padding: 16px 14px 18px;
}

.workGrid .tag {
  display: inline-block;
  margin-bottom: 8px;
}

.workGrid .client {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.workGrid .title {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 980px) {
  .workGrid .thumb {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .workFilters {
    gap: 8px;
    margin-bottom: 22px;
  }

  .workFilter {
    padding: 9px 12px;
    font-size: 11px;
  }

  .workGrid .thumb {
    height: 220px;
  }

  .workGrid .client {
    font-size: 16px;
  }
}

/* =========================
   ABOUT HERO (background + glass card)
   ========================= */
.aboutHero{
  position: relative;
  overflow: hidden;
  border: none;                 /* optional: removes section borders if you had them */
  padding: 0;                   /* we control height instead */
  background: #fff;
}

/* Background image layer */
.aboutHero-bg{
  position: absolute;
  inset: 0;
  background-image: url("images/antonio.jpg"); /* <- save your image with this name */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 35%;  /* centered to start (x=50%) */
  transform: translate3d(0,0,0);
  will-change: background-position;
}

/* subtle darken so card/text stands out */
.aboutHero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.02) 55%, rgba(0,0,0,.00));
  pointer-events:none;
  z-index:1;
}

.aboutHero-inner{
  position: relative;
  z-index: 2;

  min-height: 520px;           /* desktop height */
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* card on the right */
  padding: 64px 0;
}

/* The white blurred square */
.aboutHero-card{
  width: min(520px, 92%);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 30px 80px rgba(20,20,20,.16);

  padding: 26px 26px;
}

.aboutHero-card h2{
  text-align: left;
  margin: 0;
  color: #103b45;
}

.aboutHero-text{
  margin: 12px 0 0;
  color: rgba(20,20,20,.72);
  font-size: 14px;
  line-height: 1.9;
  max-width: 70ch;
}

/* Tablet + mobile: image top, card bottom */
@media (max-width: 980px){
  .aboutHero-inner{
    min-height: 400px;         /* requested */
    align-items: flex-end;
    justify-content: center;
    padding: 22px 0;
  }

  .aboutHero-card{
    width: min(620px, 92%);
    margin-bottom: 0px;
  }

  /* less overlay on small screens */
  .aboutHero::before{
    background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.00) 55%);
  }
}

@media (max-width: 640px){
  .aboutHero-inner{
    min-height: 400px;         /* requested */
    padding: 18px 0;
  }

  .aboutHero-card{
    padding: 22px 18px;
	  background-color: none;
  }
}

@media (max-width: 980px){
  .aboutHero-bg{
    background-position: 50% 35% !important;
  }
	.aboutHero-card{
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 20px;
  margin: 0px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

 #about.aboutHero .aboutHero-inner{
    padding:30px 0 0 0; /* top only, no bottom */
  }


  #about.aboutHero{
    padding:0;
  }

}
/* =========================
   ABOUT MOBILE IMAGE
   ========================= */

.aboutHero-mobileImg{
  display:none;
  width:100%;
  height:260px;
  object-fit:cover;
  margin-top:24px;
}

@media (max-width:980px){

  .aboutHero{
    background:#75959c;
  }

  /* hide moving background */
  .aboutHero-bg{
    display:none;
  }

  /* stack layout */
  .aboutHero-inner{
    flex-direction:column;
    align-items:flex-start;
    min-height:auto;
    padding:0px;
  }
	.aboutHero-card {
		width: 100%;
		padding: 20px;
	}
  /* show mobile image */
  .aboutHero-mobileImg{
    display:block;
	height: 100%;
  }
	
	 .aboutHero-card h2{
    width:100%;
    text-align:left;
  }


}
/* =========================
   CONTACT
   ========================= */
#contact {
  background: linear-gradient(135deg, #14687b, #123f4a, #041c22);
  background-size: 200% 200%;
  animation: statsGradient 18s ease infinite;
  color: rgba(255, 255, 255, 0.92);
}

#contact h2,
#contact .hint {
  color: #fff;
}

.contactGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contactCard {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.contactCard:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

.contactCard--cta {
  background: rgba(125, 237, 16, 0.14);
  border-color: rgba(125, 237, 16, 0.28);
}

.contactCard--cta:hover {
  background: rgba(125, 237, 16, 0.2);
  border-color: rgba(125, 237, 16, 0.45);
}

.contactIcon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contactIcon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.contactText {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contactText strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.contactText span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 820px) {
  .contactGrid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   FOOTER
   ========================= */
footer{
  padding:34px 0 44px;
  color:rgba(20,20,20,.55);
  font-size:12px;
  border-top:1px solid rgba(20,20,20,.10);
  background:#fff;
}

/* =========================
   SCROLL REVEAL (blur -> clear)
   ========================= */
.reveal{
  opacity:0;
  filter: blur(10px);
  transform: translate3d(0, 18px, 0);
  transition:
    opacity .85s cubic-bezier(.2,.8,.2,1),
    filter .95s cubic-bezier(.2,.8,.2,1),
    transform .85s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform, filter;
}
.reveal.is-in{
  opacity:1;
  filter: blur(0px);
  transform: translate3d(0,0,0);
}
[data-parallax]{will-change: transform;transform: translate3d(0,0,0)}


/* =========================
   INTERNAL PROJECT PAGE
   ========================= */


.projectPage {
  padding: 0 0 70px;
  background: #ffffff;
}

.projectHeroFull {
  position: relative;
  width: 100%;
  height: min(250px, 32vh);
  min-height: 220px;
  max-height: 250px;
  overflow: hidden;
  background: #000;
}

.projectHeroFull img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.96;
}

.projectHeroFade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.4));
  pointer-events: none;
}

.projectTop {
  display: flex;
  justify-content: flex-start;
  padding: 18px 0 18px;
}

.backBtn {
  appearance: none;
  border: 1px solid rgba(20,20,20,.14);
  background: rgba(255,255,255,.86);
  padding: 10px 12px;
  cursor: pointer;
}

.backBtn:hover {
  border-color: rgba(20,20,20,.22);
  background: rgba(255,255,255,.96);
}

.projectBody {
  margin-top: 10px;
}

.projectIntroGrid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 42px;
}

.projectIntroText {
  min-width: 0;
}

.projectIntroImage {
  overflow: hidden;
  background: rgba(255,255,255,.92);
}

.projectIntroImage img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.projectTitle {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.projectDesc {
  margin: 0 0 18px;
  max-width: 68ch;
  color: rgba(20,20,20,.72);
  font-size: 15px;
  line-height: 1.9;
}

.projectLinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.projectLinks a {
  text-decoration: none;
  border: 1px solid rgba(20,20,20,.14);
  background: rgba(255,255,255,.8);
  padding: 10px 12px;
  font-size: 13px;
}

.projectLinks a:hover {
  background: rgba(255,255,255,.96);
  border-color: rgba(20,20,20,.22);
}

.projectStory {
  max-width: 860px;
  margin: 0 0 46px;
}

.projectSubheading {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.projectTextBlock {
  margin: 0;
  color: rgba(20,20,20,.72);
  font-size: 15px;
  line-height: 1.95;
}

/* =========================
   PROJECT FEATURE SECTION
   ========================= */

.projectFeature {
  width: 100%;
  background: #f5f6f7;
  padding: 40px 0;
	margin-top:50px;
  max-height: 500px;
}

.projectFeatureGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.projectFeatureTitle {
  font-size: clamp(28px, 2.5vw, 36px);
  margin-bottom: 12px;
}

.projectFeatureSub {
  color: rgba(20,20,20,.7);
  margin-bottom: 20px;
  max-width: 500px;
}

.projectFeatureList {
  list-style: disc;
  padding-left: 18px;
  line-height: 1.8;
  color: rgba(20,20,20,.75);
}

.projectFeatureImages {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projectFeatureImages img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 768px) {

  .projectFeature {
    max-height: none;
    padding: 60px 0;
  }

  .projectFeatureGrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projectFeatureImages img {
    height: 220px;
  }

}

/* =========================
   SPLIT FULL-WIDTH IMAGES
   ========================= */

.projectSplitImages {
  display: flex;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.projectSplitImg {
  flex: 1;
}

.projectSplitImg img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {

  .projectSplitImages {
    flex-direction: column;
    max-height: none;
  }

  .projectSplitImg img {
    height: 300px;
  }

}

/* =========================
   CONTAINED 4 IMAGE GALLERY
   ========================= */
.projectGalleryWide {
  display: flex;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
	gap: 10px;
}

.projectGalleryWide img {
  flex: 1 1 0;
  min-width: 0;
  height: 420px;
  object-fit: cover;
  display: block;
  transition:
    flex 0.75s cubic-bezier(.2,.8,.2,1),
    transform 0.65s cubic-bezier(.2,.8,.2,1),
    filter 0.45s ease;
}

.projectGalleryWide:hover img {
  flex: 0.45 1 0;
}

.projectGalleryWide img:hover {
  flex: 3.2 1 0;
  transform: scale(1.02);
  filter: contrast(1.04) saturate(1.04);
}

.projectPage .reveal:nth-child(1){ --d:0ms; }
.projectPage .reveal:nth-child(2){ --d:80ms; }
.projectPage .reveal:nth-child(3){ --d:160ms; }
.projectPage .reveal:nth-child(4){ --d:240ms; }
.projectPage .reveal:nth-child(5){ --d:320ms; }
.projectPage .reveal:nth-child(6){ --d:400ms; }

@media (max-width: 980px) {
  .projectGalleryWide img {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .projectGalleryWide {
    display: grid;
    grid-template-columns: 1fr;
  }

  .projectGalleryWide img,
  .projectGalleryWide:hover img,
  .projectGalleryWide img:hover {
    width: 100%;
    height: 240px;
    flex: unset;
    transform: none;
    filter: none;
  }
}

/* =========================
   NEXT PROJECT
   ========================= */
.projectNext {
  padding: 70px 0 30px;
  background: #fff;
}

.projectNextHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.projectBackLink {
  color: rgba(20,20,20,.72);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.projectBackLink:hover {
  color: var(--ink);
}

.projectNextKicker {
  margin: 0;
  color: rgba(20,20,20,.48);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.projectNextCard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  min-height: 420px;
}

.projectNextMedia {
  position: absolute;
  inset: 0;
}

.projectNextMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition:
    transform .7s cubic-bezier(.2,.8,.2,1),
    filter .45s ease;
}

.projectNextCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.12) 0%,
    rgba(0,0,0,.25) 52%,
    rgba(0,0,0,.68) 100%
  );
  z-index: 1;
}

.projectNextOverlay {
  position: relative;
  z-index: 2;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}

.projectNextTag {
  display: inline-block;
  margin: 0 0 12px;
  color: #7ded10;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.projectNextTitle {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.projectNextCta {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.projectNextCard:hover .projectNextMedia img,
.projectNextCard:focus .projectNextMedia img {
  transform: scale(1.04);
  filter: blur(2px);
}

@media (max-width: 768px) {
  .projectNext {
    padding: 50px 0 20px;
  }

  .projectNextCard,
  .projectNextOverlay {
    min-height: 320px;
  }

  .projectNextOverlay {
    padding: 20px;
  }

  .projectNextTitle {
    max-width: 100%;
    font-size: 30px;
  }
}
/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px) {
  .projectIntroGrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .projectIntroImage img {
    min-height: 260px;
  }

  .projectGalleryWide img {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .projectPage {
    padding-bottom: 50px;
  }

  .projectHeroFull {
    height: 220px;
    min-height: 220px;
  }

  .projectTop {
    padding: 14px 0 16px;
  }

  .projectGalleryWide {
    display: grid;
    grid-template-columns: 1fr;
  }

  .projectGalleryWide img,
  .projectGalleryWide:hover img,
  .projectGalleryWide img:hover {
    width: 100%;
    height: 220px;
    flex: unset;
    transform: none;
    filter: none;
  }
}

/* =========================
   REDUCED MOTION
   ========================= */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .heroTrack{transition:none}
  .reveal{opacity:1;filter:none;transform:none;transition:none}
  [data-parallax]{transform:none !important}
  .heroTitle,.heroSub{opacity:1 !important;transform:none !important;transition:none !important}

  .card, .thumb{transition:none !important}
  .card:hover{transform:none !important;box-shadow:none !important}
  .card:hover .thumb{transform:none !important;filter:none !important}
  .card::after{transition:none !important}
}