:root{
  --cream:#f8f4e8;
  --paper:#fffaf0;
  --blue:#94cfe8;
  --blue-dark:#6c9fc8;
  --ink:#3f3f42;
  --muted:#6c6c70;
  --orange:#e98b35;
  --coral:#ff8269;
  --line:rgba(63,63,66,.18);
  --shadow:0 24px 62px rgba(63,63,66,.16);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  background:var(--cream);
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background-image:
    linear-gradient(rgba(255,255,255,.38) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.38) 1px,transparent 1px);
  background-size:80px 80px;
}
.paper-noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.18;
  background-image:radial-gradient(rgba(63,63,66,.25) .7px,transparent .7px);
  background-size:5px 5px;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.mobile-nav{
  width:min(1160px,calc(100% - 24px));
  margin:16px auto;
  padding:12px 18px;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,250,240,.9);
  backdrop-filter:blur(14px);
  position:sticky;
  top:12px;
  z-index:60;
  box-shadow:0 12px 34px rgba(63,63,66,.08);
}
.brand{display:flex;align-items:center;gap:10px;font-family:Fredoka;font-size:1.25rem;font-weight:700}
.brand span{width:42px;height:25px;position:relative;display:inline-block}
.brand span:before,.brand span:after{content:"";position:absolute;top:0;width:25px;height:25px;border-radius:50%;border:2px solid var(--ink)}
.brand span:before{left:0;background:var(--ink)}
.brand span:after{right:0;background:var(--orange)}
.nav-list{display:flex;gap:22px;font-weight:900;font-size:.92rem}
.nav-list a{position:relative}
.nav-list a:after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:3px;background:var(--orange);transform:scaleX(0);transition:.2s}
.nav-list a:hover:after{transform:scaleX(1)}
.nav-toggle{display:none;background:transparent;border:0}
.nav-toggle i{display:block;width:28px;height:4px;background:var(--ink);border-radius:999px;margin:5px}

.profile-poster{
  width:min(1160px,calc(100% - 24px));
  margin:0 auto;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.poster-top{
  height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 28px;
  background:white;
  border-bottom:1px solid var(--line);
}
.poster-top h1{
  font-family:Fredoka;
  font-size:clamp(1.5rem,3vw,2.4rem);
  line-height:1;
  margin:0;
  letter-spacing:-.04em;
}
.color-bars{display:flex;gap:14px}
.color-bars b{display:block;width:50px;height:50px;box-shadow:0 8px 16px rgba(0,0,0,.08)}
.color-bars b:nth-child(1){background:#f8f4e8}.color-bars b:nth-child(2){background:#94cfe8}.color-bars b:nth-child(3){background:#6c9fc8}.color-bars b:nth-child(4){background:#3f3f42}.color-bars b:nth-child(5){background:#ff8269}

.poster-stage{
  min-height:980px;
  position:relative;
  overflow:hidden;
  background:var(--blue);
}
.blue-canvas{
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg,rgba(255,255,255,.18) 0 20%,transparent 20% 100%),
    radial-gradient(circle at 68% 40%,rgba(255,255,255,.22),transparent 20rem),
    var(--blue);
}
.grid-lines{
  position:absolute;
  inset:-40px;
  transform:rotate(-4deg);
  background-image:
    linear-gradient(white 2px,transparent 2px),
    linear-gradient(90deg,white 2px,transparent 2px);
  background-size:145px 145px;
  opacity:.46;
}
.faint-portrait{
  position:absolute;
  width:430px;
  height:560px;
  background:url("assets/hero-domath-main-cutout.png") center/contain no-repeat;
  filter:grayscale(1);
  opacity:.09;
}
.portrait-a{left:20px;top:120px;transform:scale(1.25) rotate(-7deg)}
.portrait-b{right:60px;top:30px;transform:scale(1.05) rotate(7deg)}

.note{
  position:absolute;
  background:var(--paper);
  border:1px solid rgba(63,63,66,.12);
  box-shadow:8px 10px 0 rgba(108,159,200,.42);
  z-index:12;
}
.score-block{left:80px;top:110px}
.score-block div{display:flex}
.score-block strong{
  font-family:Playfair Display,serif;
  font-size:2rem;
  line-height:1;
  padding:14px 18px;
  border-right:1px solid var(--line);
}
.score-block strong:last-child{border-right:0}
.score-block p{
  margin:0;
  border-top:1px solid var(--line);
  padding:12px 18px;
  font-family:Playfair Display,serif;
  font-size:1.3rem;
  font-weight:900;
}
.eye-panel{
  right:120px;
  top:130px;
  width:300px;
  padding:16px;
  transform:rotate(1deg);
}
.eye-panel span{
  display:block;
  height:82px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 26px, var(--ink) 27px 30px, transparent 31px),
    linear-gradient(135deg,transparent 45%,var(--ink) 46% 50%,transparent 51%),
    white;
  border:1px solid var(--line);
  margin-bottom:10px;
}
.eye-panel p,.quote p,.personality p{margin:0;color:var(--muted);line-height:1.65;font-weight:700}
.quote{
  left:58px;
  top:435px;
  width:375px;
  padding:18px 20px 16px 52px;
  transform:rotate(-1deg);
}
.quote b{
  position:absolute;
  left:14px;
  top:-14px;
  color:white;
  font-family:Playfair Display;
  font-size:4rem;
}
.quote p{
  font-family:Playfair Display,serif;
  color:var(--ink);
  font-size:1.24rem;
  font-weight:900;
}
.quote small{
  display:block;
  color:var(--blue-dark);
  font-weight:900;
  margin-top:10px;
}
.karbit{
  right:56px;
  top:500px;
  padding:13px 18px;
  font-family:Playfair Display,serif;
  font-size:1.38rem;
  font-weight:900;
  transform:rotate(-1deg);
}
.personality{
  left:68px;
  bottom:98px;
  width:320px;
  padding:22px;
}
.personality h2{
  font-family:Playfair Display,serif;
  font-size:2rem;
  margin:0 0 12px;
}
.character-wrap{
  position:absolute;
  right:170px;
  bottom:28px;
  width:560px;
  height:820px;
  z-index:8;
}
.cutout-stroke{
  position:absolute;
  inset:18px 0 0;
  background:var(--paper);
  clip-path:polygon(45% 0,68% 8%,83% 22%,96% 47%,88% 78%,67% 96%,36% 100%,12% 86%,0 58%,8% 28%,24% 11%);
  filter:drop-shadow(16px 16px 0 rgba(108,159,200,.58));
}
.character{
  position:absolute;
  bottom:0;
  right:48px;
  height:790px;
  width:auto;
  filter:grayscale(1) contrast(1.07);
}
.name-plate{
  position:absolute;
  right:100px;
  bottom:110px;
  z-index:20;
  background:var(--paper);
  padding:16px 26px;
  transform:rotate(-2deg);
  box-shadow:9px 10px 0 rgba(108,159,200,.4);
}
.name-plate span{
  display:block;
  font-family:Playfair Display,serif;
  font-size:2.4rem;
  font-weight:900;
  line-height:1;
}
.name-plate strong{
  display:block;
  font-family:Playfair Display,serif;
  color:var(--orange);
  font-size:2rem;
  margin-top:8px;
}
.rank-card{
  position:absolute;
  right:420px;
  bottom:70px;
  z-index:22;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:8px;
  padding:13px 17px;
  transform:rotate(2deg);
  box-shadow:8px 9px 0 rgba(63,63,66,.16);
}
.rank-card span{
  display:inline-block;
  background:var(--orange);
  color:var(--ink);
  border-radius:999px;
  padding:6px 12px;
  font-weight:1000;
  margin-bottom:8px;
}
.rank-card b{display:block;font-size:1.45rem}
.rank-card small{display:block;color:var(--muted);font-weight:900}
.marker-line{
  position:absolute;
  border:5px solid white;
  border-right:0;
  border-bottom:0;
  width:130px;
  height:170px;
  z-index:6;
}
.line-a{left:420px;top:300px;transform:rotate(18deg)}
.line-b{right:340px;top:330px;transform:rotate(190deg)}
.scribble-heart{
  position:absolute;
  right:210px;
  top:270px;
  color:white;
  font-family:Fredoka;
  font-size:3rem;
  z-index:7;
  transform:rotate(-12deg);
}
.scribble-spark{
  position:absolute;
  left:390px;
  top:250px;
  color:white;
  font-size:4rem;
  z-index:7;
}
.poster-footer{
  height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:white;
  padding:0 28px;
  font-weight:900;
  color:var(--muted);
}
.poster-footer span{
  font-family:Fredoka;
  font-size:1.2rem;
  color:var(--ink);
}

.chapter{
  width:min(1160px,calc(100% - 24px));
  margin:0 auto;
  padding:92px 0 0;
}
.chapter-title{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:26px;
}
.chapter-title span{
  font-family:Fredoka;
  font-size:6.6rem;
  line-height:.7;
  color:rgba(63,63,66,.1);
}
.chapter-title h2{
  margin:0;
  font-family:Fredoka;
  font-size:clamp(2.25rem,5vw,4.4rem);
  letter-spacing:-.055em;
  text-transform:uppercase;
}
.profile-grid{
  display:grid;
  grid-template-columns:310px 1fr 360px;
  gap:22px;
}
.photo-card,.about-card,.identity-table,.status-grid article,.project-grid article,.award-copy,.award-photo,.gallery-strip figure,.clip-grid a,.contact-box{
  background:rgba(255,250,240,.86);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 16px 44px rgba(63,63,66,.08);
}
.photo-card{
  padding:14px;
  transform:rotate(-1deg);
}
.photo-card img{
  aspect-ratio:3/4;
  width:100%;
  object-fit:cover;
  border-radius:10px;
}
.photo-card p,.award-photo figcaption,.gallery-strip figcaption{
  margin:12px 5px 2px;
  font-family:Fredoka;
  font-weight:700;
}
.about-card{
  padding:28px;
  font-size:1.04rem;
  color:var(--muted);
  line-height:1.9;
}
.about-card strong{color:var(--ink)}
.tag{
  display:inline-block;
  background:var(--orange);
  border-radius:999px;
  padding:7px 13px;
  color:var(--ink)!important;
  font-weight:1000;
  margin:0 0 14px!important;
}
.identity-table{
  padding:18px;
  display:grid;
  gap:12px;
}
.identity-table div{
  background:white;
  border:1px dashed var(--line);
  border-radius:12px;
  padding:12px;
}
.identity-table span{
  display:block;
  color:var(--blue-dark);
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:.75rem;
  font-weight:1000;
}
.identity-table b{display:block;margin-top:4px}
.status-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.status-grid article{
  padding:22px;
  position:relative;
  overflow:hidden;
}
.status-grid article:before{
  content:"";
  position:absolute;
  right:-30px;
  top:-30px;
  width:110px;
  height:110px;
  border-radius:50%;
  background:var(--blue);
  opacity:.7;
}
.status-grid b{
  display:block;
  max-width:72%;
  font-family:Fredoka;
  font-size:1.35rem;
  line-height:1.05;
}
.status-grid em{
  position:absolute;
  right:20px;
  top:18px;
  font-family:Playfair Display,serif;
  font-size:2.2rem;
  font-style:normal;
  font-weight:900;
  color:var(--orange);
}
.status-grid p,.project-grid p,.award-copy p:not(.tag){color:var(--muted);line-height:1.7}
.project-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.project-grid article{
  padding:22px;
  min-height:330px;
  display:flex;
  flex-direction:column;
}
.project-grid small{
  align-self:start;
  background:var(--blue);
  border-radius:999px;
  padding:7px 12px;
  font-weight:1000;
}
.project-grid h3{
  font-family:Fredoka;
  font-size:1.75rem;
  line-height:1;
  margin:18px 0 10px;
}
.project-grid p{flex:1}
.project-grid a,.award-copy a,.contact-box a{
  display:inline-flex;
  align-self:start;
  border:2px solid var(--ink);
  border-radius:999px;
  padding:10px 16px;
  background:var(--orange);
  font-weight:1000;
  box-shadow:5px 6px 0 rgba(63,63,66,.15);
}
.award-grid{
  display:grid;
  grid-template-columns:1fr 430px;
  gap:22px;
  align-items:center;
}
.award-copy{
  padding:34px;
}
.award-copy h3{
  margin:0 0 18px;
  font-family:Fredoka;
  font-size:clamp(3rem,6vw,5.2rem);
  line-height:.86;
  letter-spacing:-.06em;
  text-transform:uppercase;
}
.award-copy h3 span{color:var(--orange)}
.award-photo{
  margin:0;
  padding:12px;
  transform:rotate(1.5deg);
}
.award-photo img{
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:12px;
}
.gallery-strip{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:16px;
  margin-top:20px;
}
.gallery-strip figure{
  margin:0;
  padding:12px;
}
.gallery-strip img{
  width:100%;
  height:260px;
  border-radius:12px;
  object-fit:cover;
}
.clip-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.clip-grid a{
  padding:20px;
  min-height:170px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.clip-grid span{
  color:var(--blue-dark);
  font-weight:1000;
}
.clip-grid b{
  font-family:Fredoka;
  font-size:1.22rem;
  line-height:1.2;
}
.contact-box{
  padding:34px;
  background:var(--ink);
  color:white;
}
.contact-box h2{
  margin:0 0 22px;
  font-family:Fredoka;
  font-size:clamp(2rem,5vw,4rem);
  line-height:1.02;
  letter-spacing:-.045em;
}
.contact-box div{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.contact-box a{background:white;color:var(--ink)}
footer{
  width:min(1160px,calc(100% - 24px));
  margin:48px auto 34px;
  padding-top:22px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-weight:900;
}
@media(max-width:1050px){
  .nav-toggle{display:block}
  .nav-list{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:75px;
    background:rgba(255,250,240,.98);
    border:1px solid var(--line);
    border-radius:22px;
    padding:18px;
    flex-direction:column;
    box-shadow:var(--shadow);
  }
  .nav-list.open{display:flex}
  .poster-top{height:auto;min-height:80px}
  .color-bars{display:none}
  .poster-stage{min-height:1180px}
  .character-wrap{
    right:50%;
    transform:translateX(50%);
    bottom:100px;
    width:min(560px,95%);
  }
  .character{right:50%;transform:translateX(50%)}
  .name-plate{right:28px;bottom:120px}
  .rank-card{left:28px;right:auto;bottom:86px}
  .score-block{left:28px;top:96px}
  .eye-panel{right:28px;top:110px}
  .quote{left:28px;top:330px}
  .karbit{right:28px;top:420px}
  .personality{left:28px;bottom:290px}
  .profile-grid,.award-grid{grid-template-columns:1fr}
  .photo-card{max-width:340px}
  .status-grid,.project-grid,.clip-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .mobile-nav,.profile-poster,.chapter,footer{width:calc(100% - 18px)}
  .mobile-nav{top:8px}
  .poster-top{padding:18px}
  .poster-stage{min-height:1040px}
  .score-block{display:none}
  .eye-panel{display:none}
  .quote{
    left:16px;
    right:16px;
    width:auto;
    top:95px;
    padding:16px;
  }
  .quote b{display:none}
  .karbit{top:275px;right:16px;font-size:1rem}
  .character-wrap{height:560px;bottom:125px}
  .character{height:540px}
  .cutout-stroke{inset:50px 8px 0}
  .name-plate{
    left:16px;
    right:16px;
    bottom:95px;
  }
  .name-plate span{font-size:1.55rem}
  .name-plate strong{font-size:1.55rem}
  .rank-card{left:16px;bottom:15px}
  .personality{
    left:16px;
    right:16px;
    bottom:195px;
    width:auto;
  }
  .personality p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
  .marker-line,.scribble-heart,.scribble-spark{display:none}
  .poster-footer{height:auto;gap:8px;align-items:flex-start;flex-direction:column;padding:18px}
  .chapter{padding-top:60px}
  .chapter-title span{font-size:4rem}
  .chapter-title h2{font-size:2.3rem}
  .status-grid,.project-grid,.clip-grid,.gallery-strip{grid-template-columns:1fr}
  .gallery-strip figure:nth-child(n+3){display:none}
  footer{flex-direction:column}
}


.character{max-width:100%;object-fit:contain;}
@media(max-width:1050px){.character-wrap{width:min(620px,95%);} .character{height:560px;}}
@media(max-width:640px){.character{height:500px;} .character-wrap{height:520px;}}


/* updated final hero asset */
.character{object-fit:contain;max-width:100%;}
.character-wrap{width:600px;height:830px;}
@media(max-width:1050px){.character-wrap{width:min(600px,95%);height:700px;} .character{height:660px;}}
@media(max-width:640px){.character-wrap{height:540px;} .character{height:520px; right:50%; transform:translateX(50%);}}
