:root{
  --bg:#fff;
  --text:#111;
  --muted:#666;
  --max: 1120px;
  --gap: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.top{
  text-align:center;
  padding: 42px 20px 18px;
}

.name{
  margin:0;
  letter-spacing: 0.6px;
  font-size: 40px;
  font-weight: 700;
}

.role{
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.nav{
  display:flex;
  gap: 22px;
  justify-content:center;
  font-size: 12px;
  letter-spacing: 1px;
}

.nav a{
  padding: 6px 2px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a.active{
  border-bottom-color: var(--text);
}

.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Showreel */
.reel{
  margin: 0 auto 26px;
}

.video{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background:#000;
  overflow:hidden;
}

.video iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* Gallery grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.tile{
  position: relative;
  display:block;
  background:#000;
  overflow:hidden;
  aspect-ratio: 16 / 9; /* similar vibe to the screenshot */
}

.tile img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform 220ms ease;
}

.tile:hover img{
  transform: scale(1.04);
}

.label{
  position:absolute;
  left: 14px;
  top: 14px;
  color:#fff;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.35);
  padding: 6px 8px;
  border-radius: 10px;
}

.foot{
  text-align:center;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .name{ font-size: 34px; }
}

@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .nav{ gap: 16px; }
}
/* ===== Hover overlay captions ===== */

.tile {
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  opacity: 0;
  transition: opacity 200ms ease;
}

.meta {
  color: white;
  transform: translateY(8px);
  transition: transform 200ms ease;
}

.meta h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
}

.meta p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.8;
}

/* hover effect */
/* --- Hover overlay captions (fixed) --- */
.tile{
  position: relative;
  overflow: hidden;
}

.tile img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.0);  /* transparent until hover */
  opacity: 0;                  /* hidden until hover */
  transition: opacity 200ms ease, background 200ms ease;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;         /* so clicks go through to the <a> */
}

.tile:hover .overlay{
  opacity: 1;
  background: rgba(0,0,0,0.55); /* darken on hover */
}

.meta{
  color:#fff;
  transform: translateY(8px);
  transition: transform 200ms ease;
}

.tile:hover .meta{
  transform: translateY(0);
}

.meta h3{
  margin:0;
  font-size:14px;
  letter-spacing:1px;
}

.meta p{
  margin:4px 0 0;
  font-size:12px;
  opacity:0.85;
}

/* ===== FINAL overlay rules (must be last) ===== */

.tile{
  position: relative;
  overflow: hidden;
}

.overlay{
  position:absolute;
  inset:0;
  opacity:0;
  background: rgba(0,0,0,0);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition: opacity 200ms ease, background 200ms ease;
  pointer-events:none;
}

.tile:hover .overlay{
  opacity:1;
  background: rgba(0,0,0,0.55);
}

.meta{
  color:white;
  transform: translateY(8px);
  transition: transform 200ms ease;
}

.tile:hover .meta{
  transform: translateY(0);
}

/* --- Ensure tiles layer correctly --- */
.tile{
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;  /* keep your current ratio */
}

/* Force the image to fill the tile */
.tile img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Overlay sits above image */
.overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Project page blocks */
.stills{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto 26px;
}

.stills img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  aspect-ratio: 16 / 9;
  background:#000;
}

.credits{
  text-align:center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 26px;
}

.credits p{ margin: 2px 0; }
.credits strong{ color: var(--text); font-weight: 600; }

.back{
  text-align:center;
  margin: 22px 0 34px;
  font-size: 12px;
}

/* ===== Project page (centered) ===== */
.project__title{
  text-align:center;
  font-size: 13px;
  letter-spacing: 2px;
  margin: 16px 0 18px;
  text-transform: uppercase;
}

/* 6 stills like Tanner */
.stills{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto 26px;
}

.stills img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  aspect-ratio: 16 / 9;
  background:#000;
}

/* centered credits */
.credits{
  text-align:center;
  font-size: 12px;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 26px;
}

.credits p{
  margin: 2px 0;
}

.credits strong{
  font-weight: 600;
}

.back{
  text-align:center;
  margin: 22px 0 34px;
  font-size: 12px;
}

@media (max-width: 900px){
  .stills{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .stills{ grid-template-columns: 1fr; }
}

/* ===== Masters of Craft page tweaks ===== */

/* Center ALL text inside the project page area */
.project,
.project * {
  text-align: center;
}

/* Title: centered + nicer spacing */
.project__title{
  text-align: center;
  margin: 18px 0 20px;
}

/* Stills: force true 16:9 */
.stills img{
  aspect-ratio: 16 / 9;
}

/* Credits: slightly bigger */
.credits{
  font-size: 13px;
}

/* ===== Info / About page ===== */

.info-page{
  max-width: 800px;
  margin: 0 auto 80px;
}

.about{
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  margin: 40px 0 60px;
}

.about p{
  margin-bottom: 20px;
}

.credits-list{
  text-align: center;
}

.credits-list h3{
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 40px 0 20px;
}

.credits-list ul{
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
}

.credits-list li{
  margin-bottom: 4px;
}

/* ===== Info Portrait ===== */

.portrait{
  text-align:center;
  margin-top: 40px;
}

.portrait img{
  width: 220px;
  max-width: 80%;
  border-radius: 4px;
}

/* ===== Contact Section ===== */

.contact{
  text-align:center;
  margin: 60px 0 80px;
}

.contact h3{
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact a{
  text-decoration: none;
}

.locations{
  display:flex;
  justify-content:center;
  gap: 80px;
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.7;
}

.locations div{
  text-align:center;
}

@media (max-width: 600px){
  .locations{
    flex-direction: column;
    gap: 30px;
  }
}

/* ===== Extended footer layout ===== */

.site-footer{
  margin-top: 70px;
  padding: 50px 20px 35px;
  border-top: 1px solid rgba(0,0,0,.08);
  position: relative;
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  min-height: 120px;
}

/* Left side (addresses) */
.footer-left{
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,.7);
}

.footer-left strong{
  display:block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Right side (contact) */
.footer-right{
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 13px;
}

.footer-right a{
  text-decoration: none;
  color: rgba(0,0,0,.7);
}

.footer-right a:hover{
  color: rgba(0,0,0,1);
}

/* Keep copyright perfectly centred */
.footer-copy{
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(0,0,0,.65);
}

/* Mobile */
@media (max-width: 800px){
  .footer-left,
  .footer-right{
    position: static;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-inner{
    min-height: auto;
  }
}

/* ============================= */
/* FOOTER FINAL OVERRIDE         */
/* ============================= */

.site-footer{
  margin-top: 80px !important;
  padding: 60px 40px !important;
  position: relative !important;

  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;

  font-size: 13px !important;
  letter-spacing: .08em !important;

  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* IMPORTANT: reset any old absolute positioning */
.footer-left,
.footer-right,
.footer-center{
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

/* LEFT */
.footer-left{
  text-align: left !important;
  line-height: 1.6 !important;
  color: rgba(0,0,0,.7) !important;
}

.footer-left strong{
  display: inline-block !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
}

/* CENTER */
.footer-center{
  flex: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  color: rgba(0,0,0,.65) !important;
}

/* RIGHT */
.footer-right{
  text-align: right !important;
  color: rgba(0,0,0,.7) !important;
}

.footer-right a{
  text-decoration: none !important;
  color: rgba(0,0,0,.7) !important;
}

.footer-right a:hover{
  color: rgba(0,0,0,1) !important;
}

/* kill any stray lines */
.site-footer,
.site-footer *{
  border: none !important;
  box-shadow: none !important;
}

/* Mobile */
@media (max-width: 800px){
  .site-footer{
    display: block !important;
    padding: 50px 20px 35px !important;
    text-align: center !important;
  }

  .footer-left,
  .footer-right{
    text-align: center !important;
    margin-bottom: 18px !important;
  }

  .footer-center{
    margin-top: 12px !important;
  }
}

/* =========================
   Brand logos strip (HOME)
   ========================= */

.brand-logos{
  /* Reduce dead space above/below the logos */
  margin: 18px auto 28px;
  padding: 0 18px;
  text-align: center;
}

.brand-logos img{
  /* Never crop/zoom — always show the whole image */
  display: block;
  width: 100%;
  height: auto;
  max-width: 750px;     /* your desktop size */
  object-fit: contain;  /* key line: prevents cropping */
  margin: 0 auto;
}

/* On mobile, let it fill the screen nicely */
@media (max-width: 800px){
  .brand-logos{
    margin: 14px auto 22px;
    padding: 0 14px;
  }

  .brand-logos img{
    max-width: 100%;
  }
}
