:root{
  --bg:#0d0d0d;
  --white:#fff;
  --accent:#E3A866;
  --cream:#fff2e6;
  --card:#1a1a1c;
  --section-light:#F1EBDD;
  --line-soft:rgba(255,255,255,.12);
  --text-secondary:rgba(255,255,255,.72);
  --heading:"Gowun Batang",Georgia,serif;
  --hero-sans:"Plus Jakarta Sans",Arial,Helvetica,sans-serif;
  --body:"Plus Jakarta Sans",Arial,Helvetica,sans-serif;
  --mixed-serif-baseline:.07em;

  /* Global layout system */
  --page-gutter:clamp(20px,5vw,80px);
  --grid-gap:clamp(8px,.8vw,12px);
  --section-space:clamp(72px,7.5vw,112px);
  --section-space-large:clamp(96px,8.5vw,128px);
  --section-space-tight:clamp(48px,5vw,80px);
  --content-gap:clamp(32px,3vw,48px);

  --radius-content:16px;
  --radius-control:8px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--white);font-family:var(--body);overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit}

/* ---------- Header ---------- */
.site-header{
  height:88px;
  position:fixed;
  inset:0 0 auto;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--page-gutter);
  pointer-events:none;
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background .3s ease,backdrop-filter .3s ease,border-color .3s ease;
  will-change:background,backdrop-filter;
}
.site-header>*{pointer-events:auto}
.logo{height:42px;display:block}
.logo img{height:100%;width:auto;display:block;object-fit:contain}
.desktop-nav{display:flex;align-items:center;gap:30px;font-size:11px;font-weight:500}
.desktop-nav a{opacity:1;transition:color .2s ease,opacity .2s ease}
.desktop-nav a:hover{color:var(--accent)}
.site-header.is-scrolled{
  background:rgba(13,13,13,.94);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom-color:rgba(255,255,255,.08);
}
.burger{display:none;background:none;border:0;padding:8px;cursor:pointer}
.burger span{display:block;width:20px;height:2px;background:#fff;margin:4px 0}
.mobile-menu{display:none}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  height:100svh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-video,.hero-texture{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-video{filter:saturate(.9)}
.hero-texture{opacity:.07125;mix-blend-mode:screen}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(13,13,13,.33),rgba(13,13,13,1) 100%);
}
.cursor-glow{
  position:fixed;
  left:0;
  top:0;
  width:280px;
  height:280px;
  border-radius:50%;
  pointer-events:none;
  z-index:1;
  background:radial-gradient(circle,rgba(227,168,102,.20) 0%,rgba(227,168,102,.08) 30%,transparent 68%);
  transform:translate3d(-50%,-50%,0);
  opacity:0;
  will-change:transform,opacity;
  transition:opacity .18s ease;
}
.cursor-glow.is-active{opacity:1}
.hero-content{
  position:relative;
  z-index:2;
  width:min(100%,calc(100vw - (var(--page-gutter) * 2)));
  max-width:none;
  text-align:center;
  margin-top:0;
  transform:translateY(-1.5vh);
}
.hero h1{
  font-weight:700;
  font-size:clamp(3.25rem,6vw,6.2rem);
  line-height:1;
  margin:0;
  color:#fff;
  letter-spacing:0;
  word-spacing:normal;
  white-space:nowrap;
}
.hero-sans,
.hero-serif{
  display:inline-block;
  vertical-align:baseline;
}
.hero-sans{
  font-family:var(--hero-sans);
  font-weight:400;
  font-size:1em;
  line-height:1.05;
}
.hero-serif{
  font-family:var(--heading);
  font-weight:700;
  font-size:1.11913em;
  line-height:1.05;
  letter-spacing:-.027em;
  position:relative;
  top:.07em;
}
.hero p{font-size:28px;color:var(--accent);margin:28px 0 30px}
.hero-actions{display:flex;justify-content:center;gap:12px}
.primary-cta,.secondary-cta{
  height:48px;
  padding:0 20px;
  border-radius:var(--radius-control);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:background .25s ease,border-color .25s ease,color .25s ease,transform .25s ease;
}
.primary-cta{background:#fff;color:#000}
.primary-cta:hover{background:var(--accent);color:#fff;transform:translateY(-1px)}
.secondary-cta{border:1px solid #333;background:transparent;color:#fff}
.secondary-cta:hover{background:rgba(227,168,102,.08);border-color:var(--accent);color:var(--accent);transform:translateY(-1px)}
.secondary-cta img{width:18px;height:18px;object-fit:contain;margin-right:8px}

/* ---------- Hero marquee ---------- */
.marquee{
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  bottom:0;
  height:64px;
  overflow:hidden;
  display:flex;
  align-items:center;
}
.marquee-track{
  display:flex;
  align-items:center;
  width:max-content;
  white-space:nowrap;
  animation:marquee 53.24s linear infinite;
  padding-left:20px;
  will-change:transform;
}
.marquee-group{display:flex;align-items:center;gap:28px;flex:0 0 auto;padding-right:28px}
.marquee span{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#fff}
.marquee span::after{content:"•";margin-left:28px;color:rgba(255,255,255,.5)}
@keyframes marquee{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(calc(var(--marquee-shift,0px) * -1),0,0)}
}

/* ---------- Shared section headers ---------- */
.section-header{text-align:center;padding:var(--section-space) var(--page-gutter) 48px}
.section-header h2{
  font-family:var(--hero-sans);
  letter-spacing:-.015em;
  word-spacing:normal;
  font-size:clamp(2.5rem,5vw,4.5rem);
  font-weight:500;
  margin:0;
  color:#fff;
}
.section-intro{
  max-width:680px;
  margin:18px auto 0;
  font-size:16px;
  line-height:1.5;
  color:rgba(13,13,13,.72);
}
.projects-section .section-intro,.gallery-section .section-intro{
  color:rgba(13,13,13,.72);
}
.projects-section .section-header h2{
  letter-spacing:-.015em;
  line-height:1.2;
}
.projects-section .section-header.project-section-header{padding-bottom:38px;}
.projects-section .section-header h2 .title-highlight{
  display:inline-block;
  font-family:var(--heading);
  font-weight:700;
  font-size:1.11913em;
  line-height:1.05;
  letter-spacing:-.027em;
  position:relative;
  top:.07em;
}
.section-header em{font-style:normal;color:var(--accent)}
.title-highlight{font:inherit;color:var(--accent)}
.section-header h2 .title-highlight,.motion-copy h2 .title-highlight,.about-copy h2 .title-highlight,.contact-content h2 .title-highlight{
  font-family:var(--heading);
  font-weight:700;
}

/* Typography calibration by composition. Gowun Batang has different vertical metrics
   from Plus Jakarta Sans, so each heading is optically balanced instead of sharing one
   universal size/line-height correction. The project heading remains the master reference. */
.gallery-section-header h2{
  letter-spacing:-.015em;
  line-height:1.12;
}
.gallery-section-header h2 .title-highlight{
  display:inline-block;
  font-size:1.085em;
  line-height:1.05;
  letter-spacing:-.027em;
  position:relative;
  top:.075em;
}
.motion-copy h2{
  letter-spacing:-.015em;
  line-height:.94;
}
.motion-copy h2 .title-highlight{
  display:inline-block;
  font-size:1.10em;
  line-height:.98;
  letter-spacing:-.027em;
  position:relative;
  top:.06em;
}
.about-copy h2,.contact-content h2{
  letter-spacing:-.015em;
}
.about-copy h2{
  line-height:1.06;
}
.about-copy h2 .title-highlight{
  display:inline-block;
  font-size:1.10em;
  line-height:1.02;
  letter-spacing:-.027em;
  position:relative;
  top:.07em;
}
.contact-content h2{
  line-height:.92;
}
.contact-content h2 .title-highlight{
  display:inline-block;
  font-size:1.095em;
  line-height:.94;
  letter-spacing:-.027em;
  position:relative;
  top:.06em;
}

/* ---------- Projects ---------- */
.projects-section{
  padding:0 0 var(--section-space-tight);
  background:var(--section-light);
  color:#0D0D0D;
}
.projects-section .section-header h2{color:#0D0D0D}
.project-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--grid-gap);
  padding:0 var(--page-gutter);
}
#projetos .project-card{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:var(--radius-content);
  background:var(--card);
  cursor:default;
}
#projetos a.project-card{cursor:pointer}
#projetos .project-card>img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}
#projetos a.project-card:hover>img{transform:scale(1.035);filter:blur(2px) saturate(.92)}
#projetos .card-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0);
  display:flex;
  align-items:flex-end;
  padding:clamp(20px,2vw,28px);
  transition:background .35s ease;
}
#projetos a.project-card:hover .card-overlay{background:rgba(0,0,0,.70)}
#projetos .card-overlay>div{opacity:0;transform:translateY(15px);transition:opacity .35s ease,transform .35s ease}
#projetos a.project-card:hover .card-overlay>div{opacity:1;transform:none}
/* Cards sem destino ficam estáticas, com o conteúdo visível e sem cursor/efeito de interação. */
#projetos article.project-card .card-overlay{background:rgba(0,0,0,.70)}
#projetos article.project-card .card-overlay>div{opacity:1;transform:none}
.card-overlay i{display:block;width:55px;height:1px;background:var(--accent);margin-bottom:12px}
.card-overlay h3{font-family:var(--heading);font-size:24px;color:#fff;margin:0 0 4px}
.card-overlay p{font-size:14px;color:var(--text-secondary);margin:0}

/* ---------- Motion ---------- */
.motion-section{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  display:grid;
  grid-template-columns:32% minmax(0,1fr);
  align-items:center;
  padding:var(--section-space) var(--page-gutter);
  background:var(--bg);
  color:var(--white);
  gap:var(--content-gap);
}
.motion-section> :not(.motion-mesh){position:relative;z-index:2}
.motion-copy{width:min(100%,440px);justify-self:end}
.motion-copy h2{
  font-family:var(--hero-sans);
  font-weight:500;
  letter-spacing:-.035em;
  word-spacing:normal;
  font-size:clamp(2.5rem,5vw,4.5rem);
  line-height:.92;
  margin:0 0 20px;
  color:#fff;
}
.motion-copy p{font-size:18px;line-height:1.5;max-width:440px;margin:0}
.video-stage{position:relative;min-height:430px;display:flex;align-items:center;justify-content:center}
.video-player-wrap{width:100%;min-width:0}
.video-frame{position:relative;width:100%;overflow:hidden;border-radius:22px;background:#111}
.portfolio-video{display:block;width:100%;aspect-ratio:16/9;height:auto;background:#111;border:0;border-radius:22px;transition:filter .3s ease}
.video-embed{aspect-ratio:16/9}
.video-embed .portfolio-video{height:100%;min-height:0}
.video-frame.is-poster-visible .portfolio-video{filter:brightness(.58)}
.video-frame.is-paused .portfolio-video{filter:brightness(.82)}
.video-play-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;transition:opacity .25s ease,visibility .25s ease}
.video-play-overlay::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.2);opacity:0;transition:opacity .25s ease}
.video-frame.is-paused .video-play-overlay::after{opacity:1}
.video-play-overlay::before{content:"";position:absolute;z-index:1;width:clamp(60px,6vw,82px);aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 6px 28px rgba(0,0,0,.26);transition:transform .25s ease,background .25s ease}
.video-play-symbol{position:relative;z-index:2;width:0;height:0;margin-left:6px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:19px solid #171717;transition:transform .25s ease}
.video-play-overlay:hover::before{transform:scale(1.07);background:#fff}
.video-play-overlay:focus-visible{outline:3px solid #fff;outline-offset:-7px}
.video-frame.is-playing .video-play-overlay{opacity:0;visibility:hidden;pointer-events:none}
.video-frame.is-paused .video-play-overlay{opacity:1;visibility:visible;pointer-events:auto}
@media(prefers-reduced-motion:reduce){.portfolio-video,.video-play-overlay,.video-play-overlay::before,.video-play-symbol{transition:none!important}}
.motion-mesh{
  position:absolute;
  inset:-20%;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  filter:blur(60px) saturate(1.25);
}
.motion-mesh-blob{
  position:absolute;
  width:55vw;
  height:55vw;
  border-radius:50%;
  mix-blend-mode:screen;
  opacity:.62;
  will-change:transform;
}
.motion-mesh-b1{
  background:radial-gradient(circle at center,#9D403D,transparent 60%);
  top:-10%;
  left:-5%;
  animation:motion-mesh-drift1 18s ease-in-out infinite;
}
.motion-mesh-b2{
  background:radial-gradient(circle at center,#E3A866,transparent 60%);
  top:10%;
  right:-10%;
  animation:motion-mesh-drift2 22s ease-in-out infinite;
}
.motion-mesh-b3{
  background:radial-gradient(circle at center,#27405D,transparent 60%);
  bottom:-15%;
  left:15%;
  animation:motion-mesh-drift3 20s ease-in-out infinite;
}
.motion-mesh-b4{
  background:radial-gradient(circle at center,#9D403D,transparent 60%);
  bottom:5%;
  right:10%;
  animation:motion-mesh-drift4 26s ease-in-out infinite;
}
@keyframes motion-mesh-drift1{
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(20vw,10vh) scale(1.15)}
  66%{transform:translate(8vw,25vh) scale(.9)}
}
@keyframes motion-mesh-drift2{
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(-18vw,15vh) scale(.95)}
  66%{transform:translate(-8vw,-12vh) scale(1.2)}
}
@keyframes motion-mesh-drift3{
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(15vw,-15vh) scale(1.1)}
  66%{transform:translate(-10vw,-8vh) scale(.95)}
}
@keyframes motion-mesh-drift4{
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(-12vw,-18vh) scale(1.15)}
  66%{transform:translate(10vw,10vh) scale(.9)}
}
.motion-mesh-grain{
  position:absolute;
  inset:0;
  opacity:.045;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='motion-grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23motion-grain)'/%3E%3C/svg%3E");
}

/* ---------- Other projects gallery ---------- */
.gallery-section{
  padding:0 var(--page-gutter) var(--section-space-tight);
  background:var(--section-light);
  color:#0D0D0D;
}
.gallery-section .section-header h2{color:#0D0D0D}
.gallery-section-header{padding-bottom:38px}
.gallery-bento{display:flex;flex-direction:column;gap:var(--grid-gap);width:100%;overflow:hidden}
.gallery-row{display:flex;width:100%;gap:var(--grid-gap)}
.gallery-item{position:relative;display:block;flex:0 0 auto;min-width:0;min-height:0;padding:0;border:0;overflow:hidden;background:#171717;cursor:zoom-in}
.gallery-item::after{
  content:"⌕";
  position:absolute;
  right:14px;
  bottom:14px;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,10,10,.6);
  color:#fff;
  font-size:19px;
  opacity:0;
  transform:translateY(5px);
  transition:opacity .25s ease,transform .25s ease,background .25s ease,border-color .25s ease;
  pointer-events:none;
  backdrop-filter:blur(5px);
}
.gallery-item:hover::after{opacity:1;transform:none;background-color:var(--accent);border-color:var(--accent)}
.gallery-item img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .45s cubic-bezier(.2,.7,.2,1),opacity .3s ease}
.gallery-item:hover img{transform:scale(1.02);opacity:.92}

/* ---------- Lightbox ---------- */
.gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5vh 7vw;
  background:rgba(0,0,0,.92);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .25s ease,visibility .25s ease;
}
.gallery-lightbox.open{opacity:1;visibility:visible;pointer-events:auto}
.lightbox-image{
  display:block;
  max-width:88vw;
  max-height:88vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 20px 80px rgba(0,0,0,.5);
  cursor:zoom-in;
  user-select:none;
  -webkit-user-drag:none;
  transform:translate3d(0,0,0) scale(1);
  transform-origin:center center;
  transition:transform .22s ease;
  will-change:transform;
}
.gallery-lightbox.is-zoomed .lightbox-image{cursor:grab;transition:none}
.gallery-lightbox.is-dragging .lightbox-image{cursor:grabbing}
.lightbox-close,.lightbox-prev,.lightbox-next{
  position:absolute;
  z-index:2;
  border:0;
  background:rgba(26,26,28,.85);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox-close{top:24px;right:28px;width:42px;height:42px;border-radius:50%;font-size:30px;line-height:1}
.lightbox-prev,.lightbox-next{top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;font-size:40px;line-height:1}
.lightbox-prev{left:24px}
.lightbox-next{right:24px}
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover{background:#333}
body.lightbox-open{overflow:hidden}

/* ---------- Testimonial ---------- */
.testimonial{
  position:relative;
  isolation:isolate;
  margin:0;
  padding:calc(var(--section-space-large) + 8px) calc(var(--page-gutter) + 8px);
  background:var(--section-light);
  color:var(--white);
}
.testimonial::before{
  content:"";
  position:absolute;
  z-index:0;
  /* Preserve the light outer frame, with more breathing room on the sides. */
  inset:8px 24px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:28px;
  background:var(--bg);
  pointer-events:none;
}
.testimonial-content{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:170px minmax(0,820px);
  column-gap:42px;
  align-items:start;
  max-width:1032px;
  margin:0 auto;
  padding:0;
}
.testimonial-quote-image{
  grid-column:1;
  grid-row:1;
  width:170px;
  height:auto;
  display:block;
  margin:0;
  pointer-events:none;
  user-select:none;
}
.testimonial h2{
  grid-column:2;
  font-family:var(--heading);
  font-weight:700;
  letter-spacing:-.035em;
  word-spacing:normal;
  color:#fff;
  font-size:clamp(2.35rem,3vw,3.15rem);
  line-height:.98;
  max-width:820px;
  margin:0 0 28px;
  text-wrap:balance;
}
.testimonial p{
  grid-column:2;
  font-size:16px;
  line-height:1.65;
  color:rgba(255,255,255,.82);
  max-width:820px;
  margin:0 0 20px;
}
.testimonial-emphasis{font-weight:700;color:inherit}
.author{grid-column:2;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:30px;font-size:14px}
.author strong{color:var(--accent)}
.author em{color:var(--text-secondary);font-style:italic}

/* ---------- About / Contact ---------- */
.about-contact{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(300px,1fr);
  gap:0;
  padding:var(--section-space-large) var(--page-gutter);
  background:var(--section-light);
  color:#0D0D0D;
}
.about-main{
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);
  gap:var(--content-gap);
  padding-right:clamp(32px,3vw,48px);
  align-items:stretch;
}
.about-photo-wrap{min-height:500px}
.about-photo{
  width:100%;
  height:100%;
  min-height:500px;
  display:block;
  object-fit:cover;
  object-position:center top;
  border-radius:var(--radius-content);
}
.about-copy{display:flex;flex-direction:column;justify-content:center;min-height:500px}
.about-copy h2,.contact-content h2{
  font-family:var(--hero-sans);
  font-weight:500;
  letter-spacing:-.035em;
  word-spacing:normal;
  line-height:.98;
  margin:0 0 24px;
}
.about-copy h2,.contact-content h2{font-size:clamp(2.6rem,4vw,4.4rem);color:#0D0D0D}
.about-copy p{max-width:600px;font-size:16px;line-height:1.65;margin:0 0 14px;color:rgba(13,13,13,.72)}
.about-copy .about-lead{font-size:18px;line-height:1.45;color:#0D0D0D;margin-bottom:18px}
.about-copy .about-cv-bridge{margin-top:8px;margin-bottom:0;color:#0D0D0D;font-weight:700}
.cv-button{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  width:max-content;
  min-width:190px;
  height:48px;
  padding:0 16px 0 18px;
  margin-top:18px;
  border:1px solid #0D0D0D;
  border-radius:var(--radius-control);
  font-size:13px;
  background:#0D0D0D;
  color:#fff;
  transition:background .25s ease,border-color .25s ease,color .25s ease,transform .25s ease;
}
.cv-button:hover{background:var(--accent);color:#0D0D0D;border-color:var(--accent);transform:translateY(-1px)}
.contact-column{position:relative;display:flex;align-items:stretch}
.contact-divider{width:1px;background:#0D0D0D;flex:0 0 1px}
.contact-content{
  padding:4px 0 4px clamp(32px,3vw,48px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:500px;
}
.contact-intro{font-size:16px;line-height:1.65;max-width:520px;margin:0 0 10px;color:rgba(13,13,13,.72)}
.contact-label{font-size:15px;line-height:1.5;max-width:520px;margin:8px 0 2px;color:rgba(13,13,13,.9)}
.contact-line{
  display:flex;
  align-items:center;
  gap:12px;
  width:max-content;
  max-width:100%;
  margin-top:18px;
  font-size:14px;
  color:rgba(13,13,13,.9);
  transition:color .2s ease;
}
.contact-line:hover{color:var(--accent)}
.contact-icon{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px}
.contact-icon img{width:21px;height:21px;display:block;object-fit:contain;filter:brightness(0)}
.contact-whatsapp-icon{filter:brightness(0)!important}

/* ---------- Footer ---------- */
.site-footer{padding:24px var(--page-gutter);background:var(--bg);color:var(--white)}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.footer-brand img{display:block;width:auto;height:34px;object-fit:contain}
.footer-copy{display:flex;align-items:center;justify-content:flex-end;color:rgba(255,255,255,.55);font-size:11px;text-align:right}

/* ---------- Editorial reveals and scroll-linked parallax ---------- */
/* Blur is reserved for typography. Cards/media reveal with opacity + restrained movement. */
body.motion-test-enabled .motion-reveal{
  opacity:1; transform:translate3d(0,0,0);
  transition:opacity 1.05s cubic-bezier(.22,.72,.2,1), transform 1.05s cubic-bezier(.22,.72,.2,1), filter 1.15s cubic-bezier(.22,.72,.2,1);
  transition-delay:var(--motion-delay,0ms);
}
body.motion-test-enabled .motion-reveal.motion-text-reveal:not(.is-revealed){opacity:0;filter:blur(5px);transform:translate3d(0,12px,0)}
body.motion-test-enabled .motion-reveal.motion-block-reveal:not(.is-revealed){opacity:0;transform:translate3d(0,28px,0)}
body.motion-test-enabled .motion-reveal--left.motion-block-reveal:not(.is-revealed){transform:translate3d(-20px,0,0)}
body.motion-test-enabled .motion-reveal--right.motion-block-reveal:not(.is-revealed){transform:translate3d(20px,0,0)}
body.motion-test-enabled .motion-reveal--down.motion-block-reveal:not(.is-revealed){transform:translate3d(0,-14px,0)}
body.motion-test-enabled .motion-reveal.is-revealed{opacity:1;filter:blur(0);transform:translate3d(0,0,0)}
body.motion-test-enabled .project-card>img{object-position:50% calc(50% + var(--motion-parallax-y,0%))}
body.motion-test-enabled .about-photo{object-position:50% var(--motion-parallax-y,0%)}
body.motion-test-enabled .motion-mesh{will-change:transform;transform:translate3d(0,var(--motion-mesh-y,0px),0)}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .marquee-track,.motion-mesh-blob{animation:none!important}
  body.motion-test-enabled .motion-reveal,body.motion-test-enabled .motion-reveal:not(.is-revealed),body.motion-test-enabled .motion-reveal.is-revealed{opacity:1!important;filter:none!important;transform:none!important;transition:none!important;transition-delay:0ms!important;will-change:auto!important}
  body.motion-test-enabled .project-card>img{object-position:50% 50%!important}
  body.motion-test-enabled .about-photo{object-position:center top!important}
  body.motion-test-enabled .motion-mesh{transform:none!important;will-change:auto!important}
  .project-card>img,.card-overlay,.card-overlay>div,.gallery-item img,.gallery-item::after{transition:none!important}
}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  .about-contact{grid-template-columns:1fr;gap:70px}
  .about-main{padding-right:0}
  .contact-column{min-height:0}
  .contact-divider{height:1px;width:100%;flex-basis:1px;background:#0D0D0D}
  .contact-content{padding:60px 0 0;min-height:0}
}

@media(max-width:800px){
  .testimonial::before{inset:8px 12px}

  :root{
    --page-gutter:20px;
    --grid-gap:8px;
    --section-space:70px;
    --section-space-large:78px;
    --section-space-tight:30px;
    --content-gap:30px;
  }

  .site-header{height:72px}
  .logo{height:36px}
  .desktop-nav{display:none}
  .burger{display:block}
  .mobile-menu{
    position:fixed;
    z-index:49;
    top:0;
    right:0;
    left:0;
    background:rgba(13,13,13,.97);
    padding:90px var(--page-gutter) 30px;
    display:flex;
    flex-direction:column;
    gap:20px;
    transform:translateY(-100%);
    transition:transform .3s ease;
  }
  .mobile-menu.open{transform:none}
  .mobile-menu a{font-family:var(--heading);font-size:34px}

  .hero h1{white-space:normal;font-size:clamp(3rem,12vw,5rem)}
  .hero p{font-size:20px}
  .hero-actions{flex-direction:column;align-items:center}
  .primary-cta,.secondary-cta{width:min(280px,80vw)}
  .marquee{height:52px}

  .project-grid{grid-template-columns:1fr}
  .project-card{aspect-ratio:4/3}

  .motion-section{grid-template-columns:1fr}
  .video-stage{min-height:auto}

  .gallery-section{padding-bottom:30px}
  .gallery-section-header{padding-bottom:30px}
  .gallery-bento{gap:8px}
  .gallery-row{gap:8px}
  .gallery-item::after{right:10px;bottom:10px;width:30px;height:30px;font-size:17px}

  .lightbox-prev{left:10px}
  .lightbox-next{right:10px}
  .lightbox-close{top:14px;right:14px}

  .testimonial-content{display:block;max-width:none}
  .testimonial-quote-image{width:150px;margin:0 0 26px}
  .testimonial h2{max-width:none;font-size:clamp(2.4rem,10vw,3.4rem);line-height:.92;margin-bottom:28px}
  .testimonial p{max-width:none;margin-bottom:18px}
  .author{margin-top:28px}
  .testimonial-desktop-break{display:none}

  .about-main{grid-template-columns:1fr;gap:30px}
  .about-photo-wrap,.about-photo{min-height:360px}
  .about-copy{min-height:0}
  .contact-content{padding-top:45px}
  .footer-inner{align-items:flex-start;flex-direction:column}
  .footer-copy{justify-content:flex-start;text-align:left}
}

/* Portfolio 1.6.75: footer intentionally static — no reveal, blur, or slide-in. */
footer .motion-reveal,
.footer .motion-reveal,
.site-footer .motion-reveal,
footer .motion-text-reveal,
footer .motion-block-reveal,
.footer .motion-text-reveal,
.footer .motion-block-reveal,
.site-footer .motion-text-reveal,
.site-footer .motion-block-reveal {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  transition-delay: 0ms !important;
}




/* Portfolio 1.6.102 — optical alignment for mixed Plus Jakarta Sans + Gowun Batang headings. */
.projects-section .section-header h2 .title-highlight,
.gallery-section-header h2 .title-highlight,
.motion-copy h2 .title-highlight,
.about-copy h2 .title-highlight,
.contact-content h2 .title-highlight {
  display: inline-block;
  font-family: var(--heading);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.027em;
  position: relative;
  top: .04em;
  vertical-align: baseline;
}

/* Home section headings had a noticeably deeper top inset than the content below. */
.section-header {
  padding-top: clamp(64px, 6.5vw, 100px);
}

/* The testimonial frame keeps generous breathing room, but the top inset is less dominant. */
.testimonial {
  padding-top: calc(var(--section-space-large) - 4px);
}


/* Portfolio 1.6.103 — shared baseline calibration for Plus Jakarta Sans + Gowun Batang.
   Keep all mixed-font keywords aligned to the optical treatment of the home hero. */
.hero-serif,
.projects-section .section-header h2 .title-highlight,
.gallery-section-header h2 .title-highlight,
.motion-copy h2 .title-highlight,
.about-copy h2 .title-highlight,
.contact-content h2 .title-highlight {
  position: relative;
  top: var(--mixed-serif-baseline);
  line-height: 1.05;
  vertical-align: baseline;
}

/* Portfolio 1.6.188 — conventional, quiet gallery controls. */
.gallery-item {
  border-radius: 14px;
}
.gallery-item::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background-color: rgba(10,10,10,.68);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  opacity: 0;
  transform: none;
  transition: opacity .14s ease, background-color .14s ease, border-color .14s ease;
  pointer-events: none;
  backdrop-filter: none;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}
.gallery-item:hover::after {
  background-color: var(--accent);
  border-color: var(--accent);
}
.gallery-item img {
  transition: none !important;
}
.gallery-item:hover img {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Keep the existing text symbols, centered with ordinary flex alignment. */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background-color: rgba(26,26,28,.85);
  background-image: none !important;
  background-repeat: no-repeat;
  background-position: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  text-align: center;
  text-indent: 0;
  text-shadow: none;
  transition: background-color .14s ease;
}
.lightbox-close {
  font-size: 21px;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
}
.lightbox-prev::before,
.lightbox-next::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.lightbox-prev::before { transform: rotate(-135deg); }
.lightbox-next::before { transform: rotate(45deg); }
.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  color: #fff;
  background-color: #333;
  background-image: none !important;
}
.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .gallery-item { border-radius: 10px; }
  .gallery-item::after {
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    background-size: 11px 11px;
  }
  .lightbox-close { font-size: 20px; }
  .lightbox-prev::before,
  .lightbox-next::before { width: 7px; height: 7px; }
}


/* ---------- Shared project dropdown ---------- */
.nav-projects{position:relative;display:inline-flex;align-items:center;gap:4px}
.nav-projects::after{content:"";position:absolute;top:100%;left:0;right:0;height:10px}
.projects-toggle{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;transition:color .18s ease,background-color .18s ease}
.projects-toggle::before{content:"";display:block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-1px) rotate(45deg);transition:transform .18s ease}
.nav-projects.is-open>.projects-toggle::before{transform:translateY(2px) rotate(225deg)}
.projects-toggle:hover{color:var(--accent);background:rgba(255,255,255,.07)}
.projects-dropdown{position:absolute;top:calc(100% + 8px);left:-12px;z-index:80;min-width:218px;max-width:min(280px,calc(100vw - 40px));margin:0;padding:8px;list-style:none;display:flex;flex-direction:column;gap:2px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(18,18,20,.97);box-shadow:0 14px 38px rgba(0,0,0,.28);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.projects-dropdown[hidden]{display:none!important}
.projects-dropdown a{display:block;padding:10px 11px;border-radius:7px;color:#fff;font-size:12px;font-weight:500;line-height:1.35;white-space:nowrap;transition:background-color .16s ease,color .16s ease}
.projects-dropdown a:hover,.projects-dropdown a:focus-visible{color:var(--accent);background:rgba(255,255,255,.08)}
.projects-toggle:focus-visible,.mobile-project-toggle:focus-visible,.desktop-nav a:focus-visible,.mobile-menu a:focus-visible,.burger:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.mobile-project-nav{display:flex;align-items:center;justify-content:space-between;gap:18px}
.mobile-project-nav>a{flex:1}
.mobile-project-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.04);color:#fff;cursor:pointer}
.mobile-project-toggle::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s ease}
.mobile-project-toggle[aria-expanded="true"]::before{transform:translateY(2px) rotate(225deg)}
.mobile-project-dropdown{display:flex;flex-direction:column;gap:3px;margin:2px 0 8px;padding:8px 0 8px 18px;border-left:1px solid rgba(227,168,102,.45);list-style:none}
.mobile-project-dropdown[hidden]{display:none!important}
.mobile-project-dropdown a{display:block;padding:8px 10px;font-family:var(--body);font-size:16px!important;font-weight:500;line-height:1.35;color:rgba(255,255,255,.82)}
.mobile-project-dropdown a:hover,.mobile-project-dropdown a:focus-visible{color:var(--accent)}
@keyframes project-dropdown-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.projects-dropdown:not([hidden]){animation:project-dropdown-enter .14s ease-out both}
@media(max-width:800px){
  .mobile-menu{max-height:100svh;overflow-y:auto;overscroll-behavior:contain}
  .nav-projects::after{display:none}
  .mobile-project-dropdown:not([hidden]){animation:project-dropdown-enter .14s ease-out both}
}
@media(prefers-reduced-motion:reduce){
  .projects-toggle,.projects-toggle::before,.mobile-project-toggle::before{transition:none!important}
  .projects-dropdown:not([hidden]),.mobile-project-dropdown:not([hidden]){animation:none!important}
}
